bgfx/3rdparty/glsl-optimizer/tests/vertex/opt-unusedvars-ir.txt

16 lines
281 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
uniform mat4 mvp;
2014-02-11 02:06:13 -05:00
uniform mat4 unusedMatrix;
uniform float unusedFloat;
attribute vec4 myColor;
attribute vec3 myUnused;
2012-04-03 23:30:07 -04:00
void main ()
{
vec4 tmpvar_1;
tmpvar_1 = (mvp * gl_Vertex);
gl_Position = tmpvar_1;
vec4 tmpvar_2;
tmpvar_2 = myColor;
gl_FrontColor = tmpvar_2;
}