修复hold块不可用时显示没有变
This commit is contained in:
@@ -2,9 +2,9 @@ extern float k,b;
|
||||
vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 scr_coords){
|
||||
vec4 texcolor=Texel(tex,tex_coords);
|
||||
return vec4(
|
||||
b+texcolor.r*k,
|
||||
b+texcolor.g*k,
|
||||
b+texcolor.b*k,
|
||||
(b+texcolor.r*k)*color.r,
|
||||
(b+texcolor.g*k)*color.g,
|
||||
(b+texcolor.b*k)*color.b,
|
||||
texcolor.a*color.a
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user