Browse Source

fixup mirror,js

aardgoose 8 years ago
parent
commit
3a86f768e4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      examples/js/Mirror.js

+ 3 - 3
examples/js/Mirror.js

@@ -129,9 +129,9 @@ THREE.Mirror = function ( renderer, camera, options ) {
 
 
 	} );
 	} );
 
 
-	this.material.uniforms.mirrorSampler.value = this.renderTarget.texture;
-	this.material.uniforms.mirrorColor.value = mirrorColor;
-	this.material.uniforms.textureMatrix.value = this.textureMatrix;
+	this.material.uniforms.mirrorSampler = new THREE.Uniform( this.renderTarget.texture );
+	this.material.uniforms.mirrorColor = new THREE.Uniform( mirrorColor );
+	this.material.uniforms.textureMatrix = new THREE.Uniform( this.textureMatrix );
 
 
 	if ( ! THREE.Math.isPowerOfTwo( width ) || ! THREE.Math.isPowerOfTwo( height ) ) {
 	if ( ! THREE.Math.isPowerOfTwo( width ) || ! THREE.Math.isPowerOfTwo( height ) ) {