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

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;