Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Example/GLSL/Blur_vs.glsl @ 12083

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

Reorganised shader programs

File size: 446 bytes
Line 
1uniform mat4 worldViewProj;
2attribute vec2 uv0;
3
4void main()                   
5{
6        gl_Position = worldViewProj * gl_Vertex;
7
8        gl_TexCoord[0]  = vec4( uv0, 0, 0 );
9       
10        const float size = 0.01;
11        gl_TexCoord[1] = vec4( uv0 + vec2(0.0, 1.0)*size, 0, 0);
12        gl_TexCoord[2] = vec4( uv0  + vec2(0.0, 2.0)*size, 0, 0);
13        gl_TexCoord[3] = vec4( uv0  + vec2(0.0, -1.0)*size, 0, 0);
14        gl_TexCoord[4] = vec4( uv0  + vec2(0.0, -2.0)*size, 0, 0);
15}
Note: See TracBrowser for help on using the repository browser.