新增游戏内方块和场地的亮度参数调整
This commit is contained in:
10
parts/shaders/blockSatur.glsl
Normal file
10
parts/shaders/blockSatur.glsl
Normal file
@@ -0,0 +1,10 @@
|
||||
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,
|
||||
texcolor.a*color.a
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user