shader/sprite_frag.glsl

changeset 40
6c438be1a1fd
parent 16
c5dde81b6fb2
child 50
d8d2e4817db1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/shader/sprite_frag.glsl	Thu Mar 21 20:48:18 2024 +0100
@@ -0,0 +1,10 @@
+#version 400 core
+
+layout(location = 0) out vec4 diffuse;
+in vec2 texcoord;
+
+uniform sampler2DRect surface;
+
+void main(void) {
+    diffuse = texture(surface, texcoord);
+}

mercurial