Last change
on this file since 12216 was
12115,
checked in by wiesep, 6 years ago
|
Changed folder structure, deletet some unused files and cleaned up code
|
File size:
255 bytes
|
Rev | Line | |
---|
[12115] | 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.