Browse Source

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

clementlandrin 2 years ago
parent
commit
88b89cf85b
1 changed files with 1 additions and 1 deletions
  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;