|
@@ -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 ) ) {
|
|
|
|