着色器技术飞跃

框架跟进
This commit is contained in:
MrZ_26
2022-04-03 02:41:49 +08:00
parent a6c63c41b6
commit 716a08b31d
27 changed files with 59 additions and 120 deletions

View File

@@ -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);
uniform float a;
vec4 effect(vec4 color,sampler2D tex,vec2 texCoord,vec2 scrCoord){
return vec4(1.,1.,1.,sign(texture2D(tex,texCoord).a)*a);
}