界面美化/死亡动画/自定义序列编辑器
This commit is contained in:
11
Zframework/shader/strap.glsl
Normal file
11
Zframework/shader/strap.glsl
Normal file
@@ -0,0 +1,11 @@
|
||||
#define PI 3.14159265
|
||||
extern float t;
|
||||
vec4 effect(vec4 color,Image text,vec2 pos,vec2 scr_pos){
|
||||
float x=scr_pos.x/262.+t;
|
||||
return vec4(
|
||||
color.r*(sin(x+PI*0./3.)*0.3+0.5),
|
||||
color.g*(sin(x+PI*2./3.)*0.3+0.5),
|
||||
color.b*(sin(x+PI*4./3.)*0.3+0.5),
|
||||
1.
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user