Files
crystall-punk-14/Resources/Textures/Shaders/hcut.swsl
2024-06-27 14:35:06 +03:00

14 lines
298 B
Plaintext

light_mode unshaded;
const highp float c = 0.5;
const highp float alphaModifier = 0.2;
const bool below = true;
void fragment()
{
highp vec4 tex = zTexture(UV);
highp float modifier = (UV.y > c ^^ !below) ? 1.0 : alphaModifier;
COLOR = vec4(tex.x, tex.y, tex.z, tex.w * modifier);
}