blob: 46c3f0fedbbd054b050fbadb93e6d58a2f8a1ff3 [file] [log] [blame]
John Kessenichf6eae2a2016-01-22 17:47:22 -07001#version 310 es
John Kessenich39374da2015-05-15 21:32:46 +00002
3in mediump float ps;
4
5invariant gl_Position;
6
7void main()
8{
John Kessenich39374da2015-05-15 21:32:46 +00009 gl_Position = vec4(ps);
John Kessenich6c292d32016-02-15 20:58:50 -070010 gl_Position *= float(4 - gl_VertexIndex);
John Kessenich39374da2015-05-15 21:32:46 +000011
12 gl_PointSize = ps;
John Kessenich6c292d32016-02-15 20:58:50 -070013 gl_PointSize *= float(5 - gl_InstanceIndex);
John Kessenich39374da2015-05-15 21:32:46 +000014}