feat(clusterApp): initial version run in Ubuntu.
change fb to DRM
This commit is contained in:
15
clusterApp/Res/shader/prog_texture_with_mask.fp
Normal file
15
clusterApp/Res/shader/prog_texture_with_mask.fp
Normal file
@@ -0,0 +1,15 @@
|
||||
precision mediump float;
|
||||
|
||||
uniform sampler2D u_sam_tex;
|
||||
uniform sampler2D u_sam_tex_mask;
|
||||
uniform float u_flt_inv_alpha;
|
||||
varying vec2 v_v2_txc;
|
||||
varying vec2 v_v2_txc_mask;
|
||||
void main()
|
||||
{
|
||||
if(v_v2_txc_mask.y < 0.0)discard;
|
||||
if(v_v2_txc_mask.y > 1.0)discard;
|
||||
float alpha = texture2D(u_sam_tex_mask, v_v2_txc_mask).a;
|
||||
gl_FragColor = texture2D(u_sam_tex, v_v2_txc);
|
||||
gl_FragColor.a *= alpha*(1.0-u_flt_inv_alpha);
|
||||
}
|
||||
Reference in New Issue
Block a user