Add tile entity occlusion (#14626)

This commit is contained in:
metalgearsloth
2023-08-30 12:32:35 +10:00
committed by GitHub
parent 1416942bea
commit cae574cbda
9 changed files with 168 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
light_mode unshaded;
const highp float c = 0.3;
const highp float alphaModifier = 0.2;
uniform bool below = true;
void fragment()
{
highp vec4 tex = zTexture(UV);
highp float modifier = (UV.y > c ^^ !below) ? 1 : alphaModifier;
COLOR = vec4(tex.x, tex.y, tex.z, tex.w * modifier);
}