Files
NixOS-configs/modules/wallpaper-engine/effects/clouds/preview/shaders/effects/perspective.frag
2025-02-07 17:04:43 -06:00

16 lines
400 B
GLSL

// [COMBO] {"material":"ui_editor_properties_repeat","combo":"REPEAT","type":"options","default":1}
varying vec3 v_TexCoord;
uniform sampler2D g_Texture0; // {"material":"ui_editor_properties_framebuffer","hidden":true}
void main() {
vec2 texCoord = v_TexCoord.xy / v_TexCoord.z;
#if REPEAT
texCoord = frac(texCoord);
#endif
gl_FragColor = texSample2D(g_Texture0, texCoord);
}