소스 검색

Unflipped Beckmann shader. Also tweaked more LeePerry.

I think normal map scale needs to be now positive, though not sure, it just looks closer to how it was before with positive scale, also mole on the right cheek is elevated instead of sunk.
alteredq 13 년 전
부모
커밋
ba2088b020
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      examples/js/ShaderSkin.js
  2. 1 1
      examples/obj/leeperrysmith/LeePerrySmith.js
  3. 1 1
      examples/webgl_materials_skin.html

+ 1 - 1
examples/js/ShaderSkin.js

@@ -708,7 +708,7 @@ THREE.ShaderSkin = {
 
 			"void main() {",
 
-				"vUv = vec2( uv.x, 1.0 - uv.y );",
+				"vUv = uv;",
 				"gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
 
 			"}"

+ 1 - 1
examples/obj/leeperrysmith/LeePerrySmith.js

@@ -13,7 +13,7 @@
         "materials"     : 1
     },
 
-    "scale" : 0.05000000,
+    "scale" : 0.053,
 
     "materials": [	{
 	"DbgColor" : 15658734,

+ 1 - 1
examples/webgl_materials_skin.html

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