Files
Techmino/Zframework/shader/grad3.glsl
2020-07-21 00:16:15 +08:00

11 lines
198 B
GLSL

extern float t,w,h;
vec4 effect(vec4 color,Image text,vec2 pos,vec2 scr_pos){
float x=scr_pos.x/w;
float y=scr_pos.y/h;
return vec4(
.8-y*.6-.2*sin(t/6.26),
.3+.1*sin(t),
.2+x*.6,
1
);
}