Last change
on this file since 12302 was
12115,
checked in by wiesep, 6 years ago
|
Changed folder structure, deletet some unused files and cleaned up code
|
File size:
353 bytes
|
Rev | Line | |
---|
[12115] | 1 | #version 150 |
---|
| 2 | |
---|
| 3 | out vec2 oDepth; |
---|
| 4 | uniform mat4 worldViewProjMatrix; |
---|
| 5 | in vec4 vertex; |
---|
| 6 | |
---|
| 7 | void main() |
---|
| 8 | { |
---|
| 9 | // This is the view space position |
---|
| 10 | gl_Position = worldViewProjMatrix * vertex; |
---|
| 11 | |
---|
| 12 | // Depth info for the fragment. |
---|
| 13 | oDepth.x = gl_Position.z; |
---|
| 14 | oDepth.y = gl_Position.w; |
---|
| 15 | |
---|
| 16 | // Clamp z to zero. seem to do the trick. :-/ |
---|
| 17 | //oPosition.z = max(oPosition.z, 0); |
---|
| 18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.