source: trunk/tools/neercs/video/remanency.lolfx @ 1661

Last change on this file since 1661 was 1661, checked in by rez, 9 years ago

new font / blur+chromatic aberration boosted on screen corners / various optimization in postfx

File size: 487 bytes
Line 
1-- GLSL.Vert --
2
3#version 120
4
5void main()
6        {
7        gl_Position=gl_Vertex;
8        gl_TexCoord[0]=gl_MultiTexCoord0;
9        }
10
11-- GLSL.Frag --
12
13#version 120
14
15uniform sampler2D texture;
16uniform sampler2D texture_buffer;
17uniform vec2 screen_size;
18uniform float screen_color;
19uniform float value1;
20uniform float value2;
21
22void main(void)
23        {
24        vec2 p=gl_TexCoord[0].xy;
25        vec4 source=texture2D(texture,p);
26        vec4 buffer=texture2D(texture_buffer,p);
27        vec4 color=source*value1+buffer*value2;
28        gl_FragColor=color;
29        }
Note: See TracBrowser for help on using the repository browser.