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

Last change on this file since 1638 was 1638, checked in by rez, 8 years ago

remanency lolfx added

File size: 461 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_prv;
17uniform vec2 screen_size;
18uniform float time;
19uniform float value;
20
21void main(void)
22        {
23        vec2 p=gl_TexCoord[0].xy;
24        vec4 source=texture2D(texture,p);
25        vec4 remanency=texture2D(texture_prv,p);
26        vec4 color=source*(1.0-value)+remanency*value;
27        gl_FragColor=color;
28        }
Note: See TracBrowser for help on using the repository browser.