浏览代码

fix normalScale

sunag 7 年之前
父节点
当前提交
195b42c74a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/webgl_materials_nodes.html

+ 1 - 1
examples/webgl_materials_nodes.html

@@ -427,7 +427,7 @@
 							mtl.map = useMap ? getTexture( "brick" ) : undefined;
 
 							mtl.normalMap = useNormals ? getTexture( "decalNormal" ) : undefined;
-							mtl.normalScale = new THREE.Vector2( .5, .5 );
+							mtl.normalScale = oldMaterial ? oldMaterial.normalScale : new THREE.Vector2( .5, .5 );
 
 							mtl.envMap = cubemap;