Files
tbd-station-14/Resources/Textures/Shaders/hcut.swsl
2023-09-01 00:31:26 +10:00

14 lines
298 B
Plaintext

light_mode unshaded;
const highp float c = 0.3;
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);
}