mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
21 lines
462 B
Text
21 lines
462 B
Text
#extension GL_EXT_draw_instanced : enable
|
|
attribute highp vec3 _inPos;
|
|
attribute highp vec3 _inNor;
|
|
void main ()
|
|
{
|
|
highp vec3 p_1;
|
|
p_1.xz = _inPos.xz;
|
|
p_1.y = (_inPos.y + float(gl_InstanceIDEXT));
|
|
p_1 = (p_1 + _inNor);
|
|
highp vec4 tmpvar_2;
|
|
tmpvar_2.w = 1.0;
|
|
tmpvar_2.xyz = p_1;
|
|
gl_Position = tmpvar_2;
|
|
gl_PointSize = p_1.x;
|
|
}
|
|
|
|
|
|
// stats: 4 alu 0 tex 0 flow
|
|
// inputs: 2
|
|
// #0: _inPos (high float) 3x1 [-1]
|
|
// #1: _inNor (high float) 3x1 [-1]
|