* Updates the size of internal render targets. * * @param {Number} width - The width. * @param {Number} height - The height.
(width, height)
| 424 | */ |
| 425 | |
| 426 | setSize(width, height) { |
| 427 | |
| 428 | const resolution = this.resolution; |
| 429 | resolution.setBaseSize(width, height); |
| 430 | |
| 431 | this.renderTarget.setSize(resolution.width, resolution.height); |
| 432 | this.blurPass.resolution.copy(resolution); |
| 433 | |
| 434 | this.luminancePass.setSize(width, height); |
| 435 | this.mipmapBlurPass.setSize(width, height); |
| 436 | |
| 437 | } |
| 438 | |
| 439 | /** |
| 440 | * Performs initialization tasks. |
no test coverage detected