Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/GLSL150/Blur_ps.glsl @ 12181

Last change on this file since 12181 was 12115, checked in by wiesep, 6 years ago

Changed folder structure, deletet some unused files and cleaned up code

File size: 307 bytes
Line 
1#version 150
2
3uniform sampler2D tex0;
4
5in vec2 texCoord[5];
6
7out vec4 fragColour;
8
9void 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.