Explorar o código

Replace THREE.RGBA with THREE.RGBAFormat

Jiulong Hu %!s(int64=6) %!d(string=hai) anos
pai
achega
cfc397597b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/js/postprocessing/SSAOPass.js

+ 1 - 1
examples/js/postprocessing/SSAOPass.js

@@ -392,7 +392,7 @@ THREE.SSAOPass.prototype = Object.assign( Object.create( THREE.Pass.prototype ),
 
 		}
 
-		this.noiseTexture = new THREE.DataTexture( data, width, height, THREE.RGBA, THREE.FloatType );
+		this.noiseTexture = new THREE.DataTexture( data, width, height, THREE.RGBAFormat, THREE.FloatType );
 		this.noiseTexture.wrapS = THREE.RepeatWrapping;
 		this.noiseTexture.wrapT = THREE.RepeatWrapping;
 		this.noiseTexture.needsUpdate = true;