Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Reorganised shader programs

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