Files
Vibe-HD-2D/assets/shaders/mesh_depth.frag
Gabrieal Jimmy 2c99305fb0 init
2026-10-02 12:42:00 -05:00

19 lines
369 B
GLSL

#version 450 core
// Shadow pass for 3D scenery: alpha-tested so leaves cast dappled shadows.
in VS {
vec3 worldPos;
vec3 normal;
vec2 uv;
vec3 color;
float height;
} v;
layout(binding = 0) uniform sampler2D uTex;
uniform int uAlphaMask;
uniform float uCutoff;
void main() {
if (uAlphaMask == 1 && texture(uTex, v.uv).a < uCutoff) discard;
}