Fix: EEVEE: wrong reflectance at `IOR == 0.0`

should be 1 instead of 0
This commit is contained in:
Weizhen Huang 2023-09-14 16:12:19 +02:00
parent 9433a1701a
commit d10a87da48
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ vec3 lut_coords_btdf(float cos_theta, float roughness, float ior)
vec2 bsdf_lut(float cos_theta, float roughness, float ior, float do_multiscatter)
{
if (ior <= 1e-5) {
return vec2(0.0);
return vec2(0.0, 1.0);
}
if (ior >= 1.0) {

View File

@ -300,7 +300,7 @@ vec2 brdf_lut(float cos_theta, float roughness)
vec2 bsdf_lut(float cos_theta, float roughness, float ior, float do_multiscatter)
{
if (ior <= 1e-5) {
return vec2(0.0);
return vec2(0.0, 1.0);
}
if (ior >= 1.0) {