Sfoglia il codice sorgente

Replace THREE.RGBA with THREE.RGBAFormat

Jiulong Hu 6 anni fa
parent
commit
cfc397597b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;