Bläddra i källkod

examples: GTAOPass fix setting of PERSPECTIVE_CAMERA (#27436)

Gernot Steinegger 1 år sedan
förälder
incheckning
85b3ee713a
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      examples/jsm/postprocessing/GTAOPass.js

+ 1 - 1
examples/jsm/postprocessing/GTAOPass.js

@@ -61,7 +61,7 @@ class GTAOPass extends Pass {
 			depthTest: false,
 			depthWrite: false,
 		} );
-		this.gtaoMaterial.definesPERSPECTIVE_CAMERA = this.camera.isPerspectiveCamera ? 1 : 0;
+		this.gtaoMaterial.defines.PERSPECTIVE_CAMERA = this.camera.isPerspectiveCamera ? 1 : 0;
 		this.gtaoMaterial.uniforms.tNoise.value = this.gtaoNoiseTexture;
 		this.gtaoMaterial.uniforms.resolution.value.set( this.width, this.height );
 		this.gtaoMaterial.uniforms.cameraNear.value = this.camera.near;