Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Reorganised shader programs

File size: 423 bytes
Line 
1#version 150
2
3uniform mat4 worldViewProj;
4
5out vec2 texCoord[5];
6in vec4 vertex;
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(0.0, 1.0)*size;
17        texCoord[2] = texCoord[0] + vec2(0.0, 2.0)*size;
18        texCoord[3] = texCoord[0] + vec2(0.0, -1.0)*size;
19        texCoord[4] = texCoord[0] + vec2(0.0, -2.0)*size;
20}
Note: See TracBrowser for help on using the repository browser.