mirror of https://github.com/bsnes-emu/bsnes.git
15 lines
364 B
Plaintext
15 lines
364 B
Plaintext
//HDRTV GLSL shader
|
|
//license: GPL
|
|
//original version by SimoneT
|
|
//ruby port by byuu
|
|
|
|
uniform sampler2D rubyTexture;
|
|
|
|
void main(void) {
|
|
vec4 rgb = texture2D(rubyTexture, gl_TexCoord[0].xy);
|
|
vec4 intens = smoothstep(0.2,0.8,rgb) + normalize(vec4(rgb.xyz, 1.0));
|
|
|
|
if(fract(gl_FragCoord.y * 0.5) > 0.5) intens = rgb * 0.8;
|
|
gl_FragColor = intens;
|
|
}
|