* Sets the size. * * @param {Number} width - The width. * @param {Number} height - The height.
(width, height)
| 574 | */ |
| 575 | |
| 576 | setSize(width, height) { |
| 577 | |
| 578 | const resolution = this.resolution; |
| 579 | resolution.setBaseSize(width, height); |
| 580 | const w = resolution.width, h = resolution.height; |
| 581 | |
| 582 | this.ssaoMaterial.copyCameraSettings(this.camera); |
| 583 | this.ssaoMaterial.setSize(w, h); |
| 584 | this.renderTarget.setSize(w, h); |
| 585 | |
| 586 | this.depthDownsamplingPass.resolution.scale = resolution.scale; |
| 587 | this.depthDownsamplingPass.setSize(width, height); |
| 588 | |
| 589 | } |
| 590 | |
| 591 | /** |
| 592 | * Performs initialization tasks. |
no test coverage detected