Last change
on this file since 12033 was
7708,
checked in by dafrick, 14 years ago
|
Merging cleanup branch. You will need to update your data repository as well as your local copy of the code.
|
-
Property svn:eol-style set to
native
|
File size:
445 bytes
|
Line | |
---|
1 | uniform sampler2D inRTT; |
---|
2 | |
---|
3 | uniform vec4 sampleOffsets[15]; |
---|
4 | uniform vec4 sampleWeights[15]; |
---|
5 | |
---|
6 | varying vec2 uv; |
---|
7 | |
---|
8 | void main(void) |
---|
9 | { |
---|
10 | vec4 accum = vec4(0.0, 0.0, 0.0, 1.0); |
---|
11 | vec2 sampleUV; |
---|
12 | |
---|
13 | for( int i = 0; i < 15; i++ ) |
---|
14 | { |
---|
15 | // Sample from adjacent points, 7 each side and central |
---|
16 | sampleUV = uv + sampleOffsets[i].xy; |
---|
17 | accum += sampleWeights[i] * texture2D(inRTT, sampleUV); |
---|
18 | } |
---|
19 | |
---|
20 | gl_FragColor = accum; |
---|
21 | |
---|
22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.