source: trunk/tools/neercs/video/mirror.lolfx @ 1978

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

neercs: minors debug (and some bugs added)

File size: 393 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 texture;
16uniform vec2 screen_size;
17uniform vec4 mirror;
18
19void main(void)
20{
21    vec2 p = gl_TexCoord[0].xy;
22    vec3 source = texture2D(texture, p).xyz;
23
24    vec3 color = vec3(0.0,0.1,0.0);
25
26    gl_FragColor = vec4(source+color, 1.0);
27}
Note: See TracBrowser for help on using the repository browser.