Discard transparent parts of textured surfaces

This commit is contained in:
Grant Sanderson 2024-10-17 12:31:53 -05:00
parent d499544366
commit aaa28a2712

View file

@ -26,6 +26,7 @@ void main() {
float alpha = smoothstep(-dark_shift, dark_shift, dp);
color = mix(dark_color, color, alpha);
}
if (color.a == 0) discard;
frag_color = finalize_color(
color,