source:
data/branches/Shader_HS18/programs/Example/GLSL150/Blur_vs.glsl
@
12083
Last change on this file since 12083 was 12083, checked in by wiesep, 6 years ago | |
---|---|
File size: 389 bytes |
Line | |
---|---|
1 | #version 150 |
2 | |
3 | in vec4 vertex; |
4 | out vec2 texCoord[5]; |
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] = uv0 + vec2(0.0, 1.0)*size; |
17 | texCoord[2] = uv0 + vec2(0.0, 2.0)*size; |
18 | texCoord[3] = uv0 + vec2(0.0, -1.0)*size; |
19 | texCoord[4] = uv0 + vec2(0.0, -2.0)*size; |
20 | } |
Note: See TracBrowser
for help on using the repository browser.