* Updates the size of this pass. * * @param {Number} width - The width. * @param {Number} height - The height.
(width, height)
| 149 | */ |
| 150 | |
| 151 | setSize(width, height) { |
| 152 | |
| 153 | const resolution = this.resolution; |
| 154 | resolution.setBaseSize(width, height); |
| 155 | this.renderTarget.setSize(resolution.width, resolution.height); |
| 156 | |
| 157 | // Use the full resolution to calculate the depth/normal buffer texel size. |
| 158 | this.fullscreenMaterial.setSize(width, height); |
| 159 | |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * Performs initialization tasks. |
no test coverage detected