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