1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Remove clipping

This commit is contained in:
Gefüllte Taubenbrust 2025-01-04 11:59:36 +01:00
parent 78de371f2d
commit dac9ff7096
2 changed files with 0 additions and 6 deletions

View file

@ -53,7 +53,6 @@ centroid varying vec2 varTexCoord;
centroid varying float nightRatio;
#endif
varying highp vec3 eyeVec;
varying float nightRatio;
varying float nightFactor;
#ifdef ENABLE_DYNAMIC_SHADOWS
@ -561,10 +560,6 @@ void main(void)
#endif
}
#endif
// We clip the color if it gets too bright
col *= min(2.0 / base.a / max(col.r, max(col.g, col.b)), 1.0);
// Due to a bug in some (older ?) graphics stacks (possibly in the glsl compiler ?),
// the fog will only be rendered correctly if the last operation before the
// clamp() is an addition. Else, the clamp() seems to be ignored.