0.9.2:调试界面,新背景,布局微调
This commit is contained in:
@@ -5,6 +5,6 @@ vec4 effect(vec4 color,Image text,vec2 pos,vec2 scr_pos){
|
||||
.8-x*.6,
|
||||
.3+.2*sin(t),
|
||||
.15+x*.7,
|
||||
1
|
||||
1.
|
||||
);
|
||||
}
|
||||
@@ -5,6 +5,6 @@ vec4 effect(vec4 color,Image text,vec2 pos,vec2 scr_pos){
|
||||
.8-y*.6,
|
||||
.2+y*.4,
|
||||
.3+.1*sin(t),
|
||||
1
|
||||
1.
|
||||
);
|
||||
}
|
||||
@@ -6,6 +6,6 @@ vec4 effect(vec4 color,Image text,vec2 pos,vec2 scr_pos){
|
||||
.8-y*.6-.2*sin(t/6.26),
|
||||
.3+.1*sin(t),
|
||||
.2+x*.6,
|
||||
1
|
||||
1.
|
||||
);
|
||||
}
|
||||
11
Zframework/shader/rgb2.glsl
Normal file
11
Zframework/shader/rgb2.glsl
Normal file
@@ -0,0 +1,11 @@
|
||||
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(
|
||||
.4-y*.3-.1*sin(t/6.26),
|
||||
.2+.1*sin(t),
|
||||
abs(.7-x*1.2+y*.5*sin(t/16.)),
|
||||
1.
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user