Files
NixOS-configs/modules/wallpaper-engine/effects/blend/preview/shaders/effects/spin.frag
2025-04-29 13:39:02 -05:00

15 lines
336 B
GLSL

// [COMBO] {"material":"Repeat","combo":"CLAMP","type":"options","default":1}
varying vec2 v_TexCoord;
uniform sampler2D g_Texture0; // {"material":"Framebuffer","hidden":true}
void main() {
vec2 texCoord = v_TexCoord;
#if CLAMP
texCoord = frac(texCoord);
#endif
gl_FragColor = texSample2D(g_Texture0, texCoord);
}