mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-14 14:33:53 +01:00
12 lines
227 B
Plaintext
12 lines
227 B
Plaintext
|
varying vec2 v_vTexcoord;
|
||
|
varying vec4 v_vColour;
|
||
|
|
||
|
uniform int invert;
|
||
|
|
||
|
void main() {
|
||
|
vec4 c = texture2D( gm_BaseTexture, v_vTexcoord );
|
||
|
c.rgb = pow(c.rgb, invert == 1? vec3(2.2) : vec3(1. / 2.2));
|
||
|
|
||
|
gl_FragColor = c;
|
||
|
}
|