Last change
on this file since 12202 was
12115,
checked in by wiesep, 6 years ago
|
Changed folder structure, deletet some unused files and cleaned up code
|
File size:
578 bytes
|
Rev | Line | |
---|
[12115] | 1 | #version 150 |
---|
| 2 | |
---|
| 3 | in vec4 vertex; |
---|
| 4 | // in vec2 uv0; |
---|
| 5 | out vec2 texCoord[5]; |
---|
| 6 | |
---|
| 7 | // uniform mat4 worldViewProj; |
---|
| 8 | |
---|
| 9 | void main() |
---|
| 10 | { |
---|
| 11 | // gl_Position = worldViewProj * vertex; |
---|
| 12 | |
---|
| 13 | // texCoord[0] = uv0; |
---|
| 14 | |
---|
| 15 | vec2 inPos = sign(vertex.xy); |
---|
| 16 | gl_Position = vec4(inPos.xy, 0.0, 1.0); |
---|
| 17 | |
---|
| 18 | texCoord[0] = (vec2(inPos.x, -inPos.y) + 1.0)/2.0; |
---|
| 19 | |
---|
| 20 | const float size = 0.01; |
---|
| 21 | texCoord[1] = texCoord[0] + vec2(1.0, 0.0) * size; |
---|
| 22 | texCoord[2] = texCoord[0] + vec2(2.0, 0.0) * size; |
---|
| 23 | texCoord[3] = texCoord[0] + vec2(-1.0, 0.0) * size; |
---|
| 24 | texCoord[4] = texCoord[0] + vec2(-2.0, 0.0) * size; |
---|
| 25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.