Revision 9e771d06
Added by Leszek Koltunski almost 6 years ago
src/main/res/raw/preprocess_fragment_shader.glsl | ||
---|---|---|
19 | 19 |
|
20 | 20 |
precision highp float; |
21 | 21 |
|
22 |
in vec2 v_TexCoordinate; // Interpolated texture coordinate per fragment. |
|
22 | 23 |
out vec4 fragColor; |
23 | 24 |
uniform vec4 u_Color; |
25 |
uniform sampler2D u_Texture; // The input texture. |
|
24 | 26 |
|
25 | 27 |
////////////////////////////////////////////////////////////////////////////////////////////// |
26 | 28 |
|
27 | 29 |
void main() |
28 | 30 |
{ |
29 |
fragColor = u_Color; |
|
31 |
vec4 color = texture(u_Texture,v_TexCoordinate); |
|
32 |
|
|
33 |
if( color.a != 0.0 ) |
|
34 |
{ |
|
35 |
fragColor = u_Color; |
|
36 |
} |
|
37 |
else |
|
38 |
{ |
|
39 |
discard; |
|
40 |
} |
|
30 | 41 |
} |
Also available in: Unified diff
Progress with thr Glow effect - moving glow app looks ok now.