Browse Source

No normalize reading normal buffer with MRT_low.

clementlandrin 2 years ago
parent
commit
49d55a98b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h3d/shader/pbr/PropsImport.hx

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

@@ -36,7 +36,7 @@ class PropsImport extends hxsl.Shader {
 
 			normal = normalTex.get(uv).xyz;
 			#if MRT_low
-			normal = unpackNormal(vec4(normal, 1.0));
+			normal = (normal - 0.5) * 2.0;
 			#end
 			var pbr = pbrTex.get(uv);
 			metalness = pbr.r;