bgfx/3rdparty/glsl-optimizer/tests/vertex/builtin-vars-in.txt

17 lines
293 B
Text
Raw Normal View History

2015-07-28 23:04:55 -04:00
#extension GL_ARB_draw_instanced : require
#extension GL_EXT_gpu_shader4 : require
attribute vec3 _inPos;
attribute vec3 _inNor;
void main()
{
vec3 p;
p = _inPos;
p.y += float(gl_VertexID);
p.y += float(gl_InstanceIDARB);
p += _inNor;
gl_Position = vec4(p,1.0);
gl_PointSize = p.x;
}