source:
data/branches/Shader_HS18/programs/GLSL150/StdQuad_vp.glsl
@
12302
Last change on this file since 12302 was 12115, checked in by wiesep, 6 years ago | |
---|---|
File size: 255 bytes |
Line | |
---|---|
1 | #version 150 |
2 | |
3 | in vec4 vertex; |
4 | // in vec2 uv0; |
5 | uniform mat4 worldViewProj; |
6 | |
7 | out vec2 oUv0; |
8 | |
9 | void main() |
10 | { |
11 | gl_Position = worldViewProj * vertex; |
12 | |
13 | // oUv0 = uv0; |
14 | |
15 | vec2 inPos = sign(vertex.xy); |
16 | |
17 | oUv0 = (vec2(inPos.x, -inPos.y) + 1.0) * 0.5; |
18 | } |
Note: See TracBrowser
for help on using the repository browser.