Fix: EEVEE: wrong reflectance at `IOR == 0.0`
should be 1 instead of 0
This commit is contained in:
parent
9433a1701a
commit
d10a87da48
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue