Files
Techmino/Zframework/shader/grad1.glsl
2020-07-23 00:42:47 +08:00

10 lines
161 B
GLSL

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