feat():initial version
This commit is contained in:
10
insDavi2.0/Res/shader/prog_font_attr_alpha.fp
Normal file
10
insDavi2.0/Res/shader/prog_font_attr_alpha.fp
Normal file
@@ -0,0 +1,10 @@
|
||||
uniform sampler2D u_sam_tex;
|
||||
uniform vec3 u_v3_clr;
|
||||
uniform float u_flt_inv_alpha;
|
||||
varying vec2 v_v2_txc;
|
||||
varying float v_flt_alpha;
|
||||
void main()
|
||||
{
|
||||
float alpha = texture2D(u_sam_tex, v_v2_txc).a*v_flt_alpha;
|
||||
gl_FragColor = vec4(u_v3_clr.r, u_v3_clr.g, u_v3_clr.b, (1.0-u_flt_inv_alpha)*alpha);
|
||||
}
|
||||
Reference in New Issue
Block a user