Last change
on this file since 5 was
5,
checked in by anonymous, 17 years ago
|
=hoffentlich gehts jetzt
|
File size:
300 bytes
|
Rev | Line | |
---|
[5] | 1 | |
---|
| 2 | varying vec2 depth; |
---|
| 3 | |
---|
| 4 | void main() |
---|
| 5 | { |
---|
| 6 | #if LINEAR_RANGE |
---|
| 7 | float finalDepth = depth.x; |
---|
| 8 | #else |
---|
| 9 | float finalDepth = depth.x / depth.y; |
---|
| 10 | #endif |
---|
| 11 | // just smear across all components |
---|
| 12 | // therefore this one needs high individual channel precision |
---|
| 13 | gl_FragColor = vec4(finalDepth, finalDepth, finalDepth, 1); |
---|
| 14 | |
---|
| 15 | } |
---|
| 16 | |
---|
Note: See
TracBrowser
for help on using the repository browser.