shader/sprite_frag.glsl@a1d70b8018c1
shader/sprite_frag.glsl
Thu, 31 Jul 2025 22:14:27 +0200
- author
- Mike Becker <universe@uap-core.de>
- date
- Thu, 31 Jul 2025 22:14:27 +0200
- changeset 234
- a1d70b8018c1
- parent 137
-
f8e6e0ae61a8
- permissions
- -rw-r--r--
improve structure of the game code and add a function to set the player position
layout(location = 0) out vec4 diffuse;
in vec2 uvcoord;
#ifdef USE_RECT
uniform sampler2DRect tex;
#else
uniform sampler2D tex;
#endif
void main(void) {
diffuse = texture(tex, uvcoord);
}