chaoc | 771d89f | 2017-01-13 01:10:53 -0800 | [diff] [blame] | 1 | #version 450 |
2 | |||||
3 | #extension GL_NV_viewport_array2 :require | ||||
4 | #extension GL_NV_stereo_view_rendering : require | ||||
5 | |||||
6 | layout (viewport_relative, secondary_view_offset = 2) out highp int gl_Layer; | ||||
7 | void main() | ||||
8 | { | ||||
9 | gl_SecondaryViewportMaskNV[0] = 1; | ||||
10 | gl_SecondaryPositionNV = gl_Position; | ||||
11 | } | ||||
12 |