Browse Source

remove UniformsUtils.*

aardgoose 8 năm trước cách đây
mục cha
commit
51719f8dd1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/js/postprocessing/SavePass.js

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

@@ -13,7 +13,7 @@ THREE.SavePass = function ( renderTarget ) {
 
 	this.textureID = "tDiffuse";
 
-	this.uniforms = THREE.UniformsUtils.clone( shader.uniforms );
+	this.uniforms = Object.assign( {}, shader.uniforms );
 
 	this.material = new THREE.ShaderMaterial( {