Fix mistaken revert of EEVEE fix in recent commit
[0] unintentionally reverted [1], correcting. [0]:3d607be572[1]:068e117a8b
This commit is contained in:
@@ -1275,7 +1275,7 @@ float4 utility_tx_sample_lut(sampler2DArray util_tx, float cos_theta, float roug
|
||||
{
|
||||
/* LUTs are parameterized by `sqrt(1.0 - cos_theta)` for more precision near grazing incidence.
|
||||
*/
|
||||
vec2 coords = vec2(roughness, sqrt(saturate(1.0 - cos_theta)));
|
||||
vec2 coords = vec2(roughness, sqrt(clamp(1.0 - cos_theta, 0.0, 1.0)));
|
||||
return utility_tx_sample_lut(util_tx, coords, layer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user