blob: 2df8906486d389f3cdaea6fe63858237b328c1fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//Copyright 2014 JogAmp Community. All rights reserved.
#if __VERSION__ >= 130
#define varying in
out vec4 svr_FragColor;
#define texture2D texture
#else
#define svr_FragColor gl_FragColor
#endif
uniform sampler2D svr_Texture0;
varying vec3 svv_Fade;
varying vec2 svv_TexCoordR;
void main (void)
{
// 3 samples for fixing chromatic aberrations
vec3 color = texture2D(svr_Texture0, svv_TexCoordR).rgb;
svr_FragColor = vec4(svv_Fade * color, 1.0); // include vignetteFade
}
|