Преглед изворни кода

Merge pull request #3851 from julien-moreau/master

Computing good normals for fur material, as vNormalW is use only for …
David Catuhe пре 7 година
родитељ
комит
447a268ee3
1 измењених фајлова са 0 додато и 4 уклоњено
  1. 0 4
      materialsLibrary/src/fur/fur.vertex.fx

+ 0 - 4
materialsLibrary/src/fur/fur.vertex.fx

@@ -115,12 +115,8 @@ float r = Rand(position);
 	#endif
 	
 	#ifdef NORMAL
-	#ifdef HIGHLEVEL
-	vNormalW = normalize(vec3(finalWorld * vec4(normal, 0.0)) * aNormal);
-	#else
 	vNormalW = normalize(vec3(finalWorld * vec4(normal, 0.0)));
 	#endif
-	#endif
 	
 //END FUR
 	gl_Position = viewProjection * finalWorld * vec4(newPosition, 1.0);