代码规范:所有文件以空行结尾
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
extern float a;
|
||||
vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 scr_coords){
|
||||
return vec4(1.,1.,1.,sign(Texel(tex,tex_coords).a)*a);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,4 +39,4 @@ vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 scr_coords){
|
||||
|
||||
dx=1.626*max(max(V.r,V.g),V.b);
|
||||
return vec4(V/dx,0.4);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,4 +7,4 @@ vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 scr_coords){
|
||||
(b+texcolor.b*k)*color.b,
|
||||
texcolor.a*color.a
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,4 +7,4 @@ vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 scr_coords){
|
||||
(b+texcolor.b*k)*color.b,
|
||||
texcolor.a*color.a
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,4 +7,4 @@ vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 scr_coords){
|
||||
.15+x*.7,
|
||||
.4
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,4 +7,4 @@ vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 scr_coords){
|
||||
.3+.1*sin(t),
|
||||
.4
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,4 +6,4 @@ vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 scr_coords){
|
||||
pow(texcolor.b+.26,.7023),
|
||||
texcolor.a*color.a
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,4 +8,4 @@ vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 scr_coords){
|
||||
.2+x*.6-.1*sin(t/2.83),
|
||||
.4
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,4 +8,4 @@ vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 scr_coords){
|
||||
abs(.7-x*1.4+y*.5*sin(t/16.)),
|
||||
.4
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,4 +3,4 @@ vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 scr_coords){
|
||||
float dx=abs(scr_coords.x/w-0.5);
|
||||
float a=(dx*2.6-.626)*level;
|
||||
return vec4(1.,0.,0.,a);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user