John Kessenich | e690332 | 2015-10-13 16:29:02 -0600 | [diff] [blame] | 1 | #version 450 |
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 2 | |
John Kessenich | e690332 | 2015-10-13 16:29:02 -0600 | [diff] [blame] | 3 | in vec4 Color; |
4 | in float Depth; | ||||
5 | |||||
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 6 | layout(depth_greater) out float gl_FragDepth; |
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 7 | |
8 | void main() | ||||
9 | { | ||||
10 | gl_FragDepth = Depth; | ||||
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 11 | } |