浏览代码

Unflipped normal scale also in other examples using LeePerry.

alteredq 13 年之前
父节点
当前提交
8f715d794b
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/webgl_materials_normalmap2.html
  2. 1 1
      examples/webgl_postprocessing.html

+ 1 - 1
examples/webgl_materials_normalmap2.html

@@ -128,7 +128,7 @@
 				var uniforms = THREE.UniformsUtils.clone( shader.uniforms );
 				var uniforms = THREE.UniformsUtils.clone( shader.uniforms );
 
 
 				uniforms[ "tNormal" ].texture = THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Infinite-Level_02_Tangent_SmoothUV.jpg" );
 				uniforms[ "tNormal" ].texture = THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Infinite-Level_02_Tangent_SmoothUV.jpg" );
-				uniforms[ "uNormalScale" ].value = - 0.8;
+				uniforms[ "uNormalScale" ].value = 0.8;
 
 
 				uniforms[ "tDiffuse" ].texture = THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Map-COL.jpg" );
 				uniforms[ "tDiffuse" ].texture = THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Map-COL.jpg" );
 				uniforms[ "tSpecular" ].texture = THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Map-SPEC.jpg" );
 				uniforms[ "tSpecular" ].texture = THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Map-SPEC.jpg" );

+ 1 - 1
examples/webgl_postprocessing.html

@@ -333,7 +333,7 @@
 				var uniforms = THREE.UniformsUtils.clone( shader.uniforms );
 				var uniforms = THREE.UniformsUtils.clone( shader.uniforms );
 
 
 				uniforms[ "tNormal" ].texture = THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Infinite-Level_02_Tangent_SmoothUV.jpg" );
 				uniforms[ "tNormal" ].texture = THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Infinite-Level_02_Tangent_SmoothUV.jpg" );
-				uniforms[ "uNormalScale" ].value = - 0.75;
+				uniforms[ "uNormalScale" ].value = 0.75;
 
 
 				uniforms[ "tDiffuse" ].texture = THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Map-COL.jpg" );
 				uniforms[ "tDiffuse" ].texture = THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Map-COL.jpg" );