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

Last change on this file since 1928 was 1928, checked in by sam, 8 years ago

lolfx: use square brackets to indicate shader sections.

File size: 331 bytes
Line 
1[vert.glsl]
2
3#version 120
4
5void main()
6{
7    gl_Position = gl_Vertex;
8    gl_TexCoord[0] = gl_MultiTexCoord0;
9}
10
11[frag.glsl]
12
13#version 120
14
15uniform sampler2D glow;
16uniform sampler2D source;
17uniform vec2 mix;
18
19void main(void)
20{
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.