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:
parent
78de371f2d
commit
dac9ff7096
2 changed files with 0 additions and 6 deletions
|
@ -53,7 +53,6 @@ centroid varying vec2 varTexCoord;
|
||||||
centroid varying float nightRatio;
|
centroid varying float nightRatio;
|
||||||
#endif
|
#endif
|
||||||
varying highp vec3 eyeVec;
|
varying highp vec3 eyeVec;
|
||||||
varying float nightRatio;
|
|
||||||
varying float nightFactor;
|
varying float nightFactor;
|
||||||
|
|
||||||
#ifdef ENABLE_DYNAMIC_SHADOWS
|
#ifdef ENABLE_DYNAMIC_SHADOWS
|
||||||
|
@ -561,10 +560,6 @@ void main(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#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 ?),
|
// 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
|
// the fog will only be rendered correctly if the last operation before the
|
||||||
// clamp() is an addition. Else, the clamp() seems to be ignored.
|
// clamp() is an addition. Else, the clamp() seems to be ignored.
|
||||||
|
|
|
@ -47,7 +47,6 @@ centroid varying float nightRatio;
|
||||||
varying float area_enable_parallax;
|
varying float area_enable_parallax;
|
||||||
|
|
||||||
varying highp vec3 eyeVec;
|
varying highp vec3 eyeVec;
|
||||||
varying float nightRatio;
|
|
||||||
varying vec3 sunTint;
|
varying vec3 sunTint;
|
||||||
varying float nightFactor;
|
varying float nightFactor;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue