source:
data/branches/Shader_HS18/programs/Example/GLSL150/Blur_ps.glsl
@
12083
Last change on this file since 12083 was 12083, checked in by wiesep, 6 years ago | |
---|---|
File size: 325 bytes |
Line | |
---|---|
1 | #version 150 |
2 | |
3 | uniform sampler2D tex0; |
4 | |
5 | in vec2 texCoord[5]; |
6 | |
7 | out vec4 fragColour; |
8 | |
9 | void main() |
10 | { |
11 | vec4 sum = texture(tex0, texCoord[0]) + |
12 | texture(tex0, texCoord[1]) + |
13 | texture(tex0, texCoord[2]) + |
14 | texture(tex0, texCoord[3]) + |
15 | texture(tex0, texCoord[4]); |
16 | fragColour = sum / 5.0; |
17 | } |
18 |
Note: See TracBrowser
for help on using the repository browser.