9 lines
217 B
Forth
9 lines
217 B
Forth
|
uniform float gamma; /// set:2.2
|
||
|
out vec4 color;
|
||
|
|
||
|
void main(void) {
|
||
|
vec2 uv = TEXCOORD.st;
|
||
|
vec4 src = texture2D(iChannel0, uv);
|
||
|
color = vec4( pow(src.xyz, vec3(1.0 / gamma)), src.a); // gamma correction
|
||
|
}
|