Detect tile under foot

This commit is contained in:
YourWishes committed 2025-01-02 21:36:24 -06:00
1 parent 95b13a7f55
commit 4303aafb59
11 files changed
+84 -54

No files matched your search

+1 -2
View File
@@ -4,11 +4,10 @@ render_mode cull_disabled;
uniform sampler2D tileset : filter_nearest;
void vertex() {
// Called for every vertex the material is visible on.
}
void fragment() {
vec4 textureColor = texture(tileset, UV);
vec4 textureColor = texture(tileset, UV) * COLOR;
if(textureColor.a == 0.0)
discard;