EEVEE: Fix Shader Compilation
Pull Request: https://projects.blender.org/blender/blender/pulls/112890
This commit is contained in:
@@ -421,8 +421,15 @@ vec2 bsdf_lut(float cos_theta, float roughness, float ior, float do_multiscatter
|
||||
float F0 = F0_from_ior(ior);
|
||||
vec3 color = vec3(1.0);
|
||||
vec3 reflectance, transmittance;
|
||||
bsdf_lut(
|
||||
F0, color, color, cos_theta, roughness, ior, do_multiscatter, reflectance, transmittance);
|
||||
bsdf_lut(vec3(F0),
|
||||
color,
|
||||
color,
|
||||
cos_theta,
|
||||
roughness,
|
||||
ior,
|
||||
do_multiscatter,
|
||||
reflectance,
|
||||
transmittance);
|
||||
return vec2(reflectance.r, transmittance.r);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user