bsnes-hd/pack/Shaders/CRT-Glow.shader/linearize.fs
2021-02-20 00:03:31 +01:00

15 lines
209 B
GLSL

#version 150
#define INPUT_GAMMA 2.2
uniform sampler2D source[];
in Vertex {
vec2 vTexCoord;
};
out vec4 FragColor;
void main() {
FragColor = pow(texture(source[0], vTexCoord), vec4(INPUT_GAMMA));
}