source: trunk/tools/neercs/video/glow.lolfx @ 1683

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

moved blur after glow, tweaked a lot of parameters

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