Fix: EEVEE: Light: LTC artifact

This was caused by the tangent basis computation that
had a threshold that was too noticeable.

Increasing the threshold makes the artifact
unoticeable.

Fix #122949
This commit is contained in:
Clément Foucault
2024-06-20 20:18:43 +02:00
parent 6ef2e6f606
commit eecbe77632

View File

@@ -147,7 +147,7 @@ mat3 ltc_matrix(vec4 lut)
mat3x3 ltc_tangent_basis(vec3 N, vec3 V)
{
float NV = dot(N, V);
if (NV > 0.9999) {
if (NV > 0.999999) {
/* Mostly for orthographic view and surfel light eval. */
return from_up_axis(N);
}