shader/sprite_frag.glsl@b3da4096c607
shader/sprite_frag.glsl
Tue, 26 Mar 2024 20:37:21 +0100
- author
- Mike Becker <universe@uap-core.de>
- date
- Tue, 26 Mar 2024 20:37:21 +0100
- changeset 44
- b3da4096c607
- parent 40
-
6c438be1a1fd
- child 50
-
d8d2e4817db1
- permissions
- -rw-r--r--
create own compilation unit for GL context - fixes shader not being created per context
#version 400 core
layout(location = 0) out vec4 diffuse;
in vec2 texcoord;
uniform sampler2DRect surface;
void main(void) {
diffuse = texture(surface, texcoord);
}