mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
14 lines
243 B
Text
14 lines
243 B
Text
#extension GL_EXT_draw_instanced : require
|
|
|
|
attribute highp vec3 _inPos;
|
|
attribute highp vec3 _inNor;
|
|
|
|
void main()
|
|
{
|
|
highp vec3 p;
|
|
p = _inPos;
|
|
p.y += float(gl_InstanceIDEXT);
|
|
p += _inNor;
|
|
gl_Position = vec4(p,1.0);
|
|
gl_PointSize = p.x;
|
|
}
|