Add tile entity occlusion (#14626)
This commit is contained in:
13
Resources/Textures/Shaders/hcut.swsl
Normal file
13
Resources/Textures/Shaders/hcut.swsl
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user