shader/sprite_frag.glsl@3b78ad115ccd
shader/sprite_frag.glsl
Sat, 02 Aug 2025 13:07:28 +0200
- author
- Mike Becker <universe@uap-core.de>
- date
- Sat, 02 Aug 2025 13:07:28 +0200
- changeset 239
- 3b78ad115ccd
- parent 137
-
f8e6e0ae61a8
- permissions
- -rw-r--r--
remove the possibility of non-lazy-initializable shader programs
it is still possible to pre-initialize them, but whenever they are used,
they should be re-created when they don't exist anymore
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);
}