Преглед на файлове

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 );
 
 				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[ "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 );
 
 				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" );