* Updates the size of internal render targets. * * @param {Number} width - The width. * @param {Number} height - The height.
(width, height)
| 244 | */ |
| 245 | |
| 246 | setSize(width, height) { |
| 247 | |
| 248 | const resolution = this.resolution; |
| 249 | resolution.setBaseSize(width, height); |
| 250 | |
| 251 | this.renderTarget.setSize(resolution.width, resolution.height); |
| 252 | this.blurPass.resolution.copy(resolution); |
| 253 | |
| 254 | } |
| 255 | |
| 256 | /** |
| 257 | * Performs initialization tasks. |
no test coverage detected