John Kessenich | f6eae2a | 2016-01-22 17:47:22 -0700 | [diff] [blame] | 1 | #version 310 es |
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 2 | |
3 | in mediump float ps; | ||||
4 | |||||
5 | invariant gl_Position; | ||||
6 | |||||
7 | void main() | ||||
8 | { | ||||
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 9 | gl_Position = vec4(ps); |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 10 | gl_Position *= float(4 - gl_VertexIndex); |
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 11 | |
12 | gl_PointSize = ps; | ||||
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 13 | gl_PointSize *= float(5 - gl_InstanceIndex); |
John Kessenich | 39374da | 2015-05-15 21:32:46 +0000 | [diff] [blame] | 14 | } |