Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Reorganised shader programs

File size: 443 bytes
Line 
1#version 150
2
3out vec2 texCoord[5];
4in vec4 vertex;
5
6uniform mat4 worldViewProj;
7in vec2 uv0;
8
9void main()                   
10{
11        gl_Position = worldViewProj * vertex;
12       
13        texCoord[0]  = uv0;
14       
15        const float size = 0.01;
16        texCoord[1] = texCoord[0] + vec2(1.0, 0.0)*size;
17        texCoord[2] = texCoord[0] + vec2(2.0, 0.0)*size;
18        texCoord[3] = texCoord[0] + vec2(-1.0, 0.0)*size;
19        texCoord[4] = texCoord[0] + vec2(-2.0, 0.0)*size;
20}
Note: See TracBrowser for help on using the repository browser.