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, 6 years ago | |
---|---|
File size: 423 bytes |
Rev | Line | |
---|---|---|
[12083] | 1 | #version 150 |
2 | ||
3 | uniform mat4 worldViewProj; | |
4 | ||
5 | out vec2 texCoord[5]; | |
6 | in vec4 vertex; | |
7 | in vec2 uv0; | |
8 | ||
9 | void 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.