Explorar el Código

Merge pull request #54197 from clayjohn/GLES3-irradiance-map

Fudge irradiance map lookup to avoid precision issues
Rémi Verschelde hace 3 años
padre
commit
ecedc7df0b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      drivers/gles3/shaders/scene.glsl

+ 1 - 1
drivers/gles3/shaders/scene.glsl

@@ -1938,7 +1938,7 @@ FRAGMENT_SHADER_CODE
 		norm = normalize((radiance_inverse_xform * vec4(norm, 0.0)).xyz);
 		norm.xy /= 1.0 + abs(norm.z);
 		norm.xy = norm.xy * vec2(0.5, 0.25) + vec2(0.5, 0.25);
-		if (norm.z > 0.0) {
+		if (norm.z > 0.0001) {
 			norm.y = 0.5 - norm.y + 0.5;
 		}