MCPcopy Create free account
hub / github.com/beutton/browser-flight-simulator / update

Method update

packages/effects/src/NormalEffect.ts:91–104  ·  view source on GitHub ↗
(
    renderer: WebGLRenderer,
    inputBuffer: WebGLRenderTarget,
    deltaTime?: number
  )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected