Last change
on this file since 1661 was
1661,
checked in by rez, 11 years ago
|
new font / blur+chromatic aberration boosted on screen corners / various optimization in postfx
|
File size:
487 bytes
|
Line | |
---|
1 | -- GLSL.Vert -- |
---|
2 | |
---|
3 | #version 120 |
---|
4 | |
---|
5 | void main() |
---|
6 | { |
---|
7 | gl_Position=gl_Vertex; |
---|
8 | gl_TexCoord[0]=gl_MultiTexCoord0; |
---|
9 | } |
---|
10 | |
---|
11 | -- GLSL.Frag -- |
---|
12 | |
---|
13 | #version 120 |
---|
14 | |
---|
15 | uniform sampler2D texture; |
---|
16 | uniform sampler2D texture_buffer; |
---|
17 | uniform vec2 screen_size; |
---|
18 | uniform float screen_color; |
---|
19 | uniform float value1; |
---|
20 | uniform float value2; |
---|
21 | |
---|
22 | void main(void) |
---|
23 | { |
---|
24 | vec2 p=gl_TexCoord[0].xy; |
---|
25 | vec4 source=texture2D(texture,p); |
---|
26 | vec4 buffer=texture2D(texture_buffer,p); |
---|
27 | vec4 color=source*value1+buffer*value2; |
---|
28 | gl_FragColor=color; |
---|
29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.