소스 검색

Revert normalize when reading normals as artifacts are only visible on perfect planes and the fix introduced NaN on some drivers.

clementlandrin 2 년 전
부모
커밋
88b89cf85b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      h3d/shader/pbr/PropsImport.hx

+ 1 - 1
h3d/shader/pbr/PropsImport.hx

@@ -34,7 +34,7 @@ class PropsImport extends hxsl.Shader {
 			albedo = albedoTex.get(uv).rgb;
 			albedo *= albedo; // gamma correct
 
-			normal = normalize(normalTex.get(uv).xyz);
+			normal = normalTex.get(uv).xyz;
 			var pbr = pbrTex.get(uv);
 			metalness = pbr.r;
 			roughness = pbr.g;