test/snake/shader/player.glsl

changeset 267
92fdd53de74f
parent 266
a73674e99e62
child 268
d8c05102b017
--- a/test/snake/shader/player.glsl	Mon Aug 18 23:11:50 2025 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-layout(location = 0) out vec4 diffuse;
-in vec2 uvcoord;
-
-uniform sampler2D map_albedo;
-uniform sampler2D map_color;
-uniform vec4 color;
-
-void main(void) {
-    // TODO: use greyscale texture instead
-    vec4 color_map_pixel = texture(map_color, uvcoord);
-    if (color_map_pixel.a > 0) {
-        diffuse = color * color_map_pixel * texture(map_albedo, uvcoord);
-    } else {
-        diffuse = texture(map_albedo, uvcoord);
-    }
-}

mercurial