Last change
on this file since 12292 was
12115,
checked in by wiesep, 6 years ago
|
Changed folder structure, deletet some unused files and cleaned up code
|
File size:
465 bytes
|
Line | |
---|
1 | #version 150 |
---|
2 | |
---|
3 | uniform sampler2D inRTT; |
---|
4 | |
---|
5 | uniform vec4 sampleOffsets[15]; |
---|
6 | uniform vec4 sampleWeights[15]; |
---|
7 | |
---|
8 | in vec2 oUv0; |
---|
9 | out vec4 fragColour; |
---|
10 | |
---|
11 | void main(void) |
---|
12 | { |
---|
13 | vec4 accum = vec4(0.0, 0.0, 0.0, 1.0); |
---|
14 | vec2 sampleUV; |
---|
15 | |
---|
16 | for( int i = 0; i < 15; i++ ) |
---|
17 | { |
---|
18 | // Sample from adjacent points, 7 each side and central |
---|
19 | sampleUV = oUv0 + sampleOffsets[i].xy; |
---|
20 | accum += sampleWeights[i] * texture(inRTT, sampleUV); |
---|
21 | } |
---|
22 | |
---|
23 | fragColour = accum; |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.