mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-04 21:31:11 -05:00
16 lines
227 B
Text
16 lines
227 B
Text
|
#version 300 es
|
||
|
|
||
|
in highp vec3 _inPos;
|
||
|
in highp vec3 _inNor;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
highp vec3 p;
|
||
|
p = _inPos;
|
||
|
p.x += float(gl_VertexID);
|
||
|
p.y += float(gl_InstanceID);
|
||
|
p += _inNor;
|
||
|
gl_Position = vec4(p,1.0);
|
||
|
gl_PointSize = p.x;
|
||
|
}
|