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

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

postfx optimization

File size: 331 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 source;
16uniform sampler2D buffer;
17uniform vec2 mix;
18
19void main(void)
20        {
21        gl_FragColor=texture2D(source,gl_TexCoord[0].xy)*mix.x+texture2D(buffer,gl_TexCoord[0].xy)*mix.y;
22        }
Note: See TracBrowser for help on using the repository browser.