Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Reorganised shader programs

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