| 89 | } |
| 90 | |
| 91 | override update( |
| 92 | renderer: WebGLRenderer, |
| 93 | inputBuffer: WebGLRenderTarget, |
| 94 | deltaTime?: number |
| 95 | ): void { |
| 96 | const uniforms = this.uniforms |
| 97 | const projectionMatrix = uniforms.get('projectionMatrix') |
| 98 | const inverseProjectionMatrix = uniforms.get('inverseProjectionMatrix') |
| 99 | const camera = this.camera |
| 100 | if (camera != null) { |
| 101 | projectionMatrix.value.copy(camera.projectionMatrix) |
| 102 | inverseProjectionMatrix.value.copy(camera.projectionMatrixInverse) |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | get normalBuffer(): Texture | null { |
| 107 | return this.uniforms.get('normalBuffer').value |