mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-30 17:06:27 +01:00
11 lines
241 B
GLSL
11 lines
241 B
GLSL
varying vec2 v_vTexcoord;
|
|
varying vec4 v_vColour;
|
|
|
|
uniform int alpha;
|
|
|
|
void main() {
|
|
vec4 c = texture2D( gm_BaseTexture, v_vTexcoord );
|
|
|
|
if(alpha == 0) gl_FragColor = vec4(1. - c.rgb, c.a);
|
|
else if(alpha == 1) gl_FragColor = 1. - c;
|
|
}
|