2023-08-30 12:32:35 +10:00
|
|
|
light_mode unshaded;
|
|
|
|
|
|
|
|
|
|
const highp float c = 0.3;
|
|
|
|
|
const highp float alphaModifier = 0.2;
|
2023-08-30 22:28:59 +10:00
|
|
|
const bool below = true;
|
2023-08-30 12:32:35 +10:00
|
|
|
|
|
|
|
|
void fragment()
|
|
|
|
|
{
|
|
|
|
|
highp vec4 tex = zTexture(UV);
|
2023-09-01 00:31:26 +10:00
|
|
|
highp float modifier = (UV.y > c ^^ !below) ? 1.0 : alphaModifier;
|
2023-08-30 12:32:35 +10:00
|
|
|
|
|
|
|
|
COLOR = vec4(tex.x, tex.y, tex.z, tex.w * modifier);
|
|
|
|
|
}
|