source: OGRE/trunk/ogrenew/Samples/Media/materials/programs/Blur_ps.glsl @ 692

Revision 692, 288 bytes checked in by mattausch, 19 years ago (diff)

adding ogre 1.2 and dependencies

Line 
1uniform sampler2D tex0;
2
3varying vec2 texCoord[5];
4
5void main()
6{
7        vec4 sum = texture2D(tex0, texCoord[0]) +
8                           texture2D(tex0, texCoord[1]) +
9                           texture2D(tex0, texCoord[2]) +
10                           texture2D(tex0, texCoord[3]) +
11                           texture2D(tex0, texCoord[4]);
12        gl_FragColor = sum / 5.0;
13}
14
Note: See TracBrowser for help on using the repository browser.