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

Last change on this file since 1905 was 1905, checked in by lolbot, 8 years ago

fixed 14 files out of 2200:

  • removed 0 CR characters
  • removed 12 trailing whitespaces
  • replaced 245 tabs with spaces
File size: 348 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 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.