bgfx/3rdparty/glsl-optimizer/tests/vertex/glsl140-basic-ir.txt
2014-02-10 23:06:13 -08:00

18 lines
297 B
Text

#version 140
uniform vec2 p;
in vec4 position;
in vec4 icol;
out vec4 col;
void main ()
{
vec4 tmpvar_1;
tmpvar_1 = icol;
col = tmpvar_1;
vec4 tmpvar_2;
tmpvar_2.zw = vec2(0.0, 0.0);
tmpvar_2.xy = p.xy;
vec4 tmpvar_3;
tmpvar_3 = (tmpvar_2 + position);
gl_Position = tmpvar_3;
}