Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Changed folder structure, deletet some unused files and cleaned up code

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