John Kessenich | 1376106 | 2019-07-26 08:02:40 -0600 | [diff] [blame] | 1 | #version 310 es |
2 | |||||
3 | layout(location = 0) in mediump float ps; | ||||
4 | |||||
5 | invariant gl_Position; | ||||
6 | |||||
7 | void main() | ||||
8 | { | ||||
9 | gl_Position = vec4(ps); | ||||
10 | gl_Position *= float(4 - gl_VertexIndex); | ||||
11 | |||||
12 | gl_PointSize = ps; | ||||
13 | gl_PointSize *= float(5 - gl_InstanceIndex); | ||||
14 | } |