shader/sprite_frag.glsl

changeset 88
6234b7ea48f3
parent 50
d8d2e4817db1
--- a/shader/sprite_frag.glsl	Sat Apr 19 19:30:46 2025 +0200
+++ b/shader/sprite_frag.glsl	Sun Apr 20 15:41:16 2025 +0200
@@ -2,9 +2,11 @@
 
 layout(location = 0) out vec4 diffuse;
 in vec2 texcoord;
+in vec2 uvcoord;
 
-uniform sampler2DRect tex;
+uniform sampler2D uv_tex;
+uniform sampler2DRect rect_tex;
 
 void main(void) {
-    diffuse = texture(tex, texcoord);
+    diffuse = texture(rect_tex, texcoord) * texture(uv_tex, uvcoord);
 }

mercurial