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

15 lines
281 B
Text

uniform mat4 mvp;
uniform mat4 unusedMatrix;
uniform float unusedFloat;
attribute vec4 myColor;
attribute vec3 myUnused;
void main ()
{
vec4 tmpvar_1;
tmpvar_1 = (mvp * gl_Vertex);
gl_Position = tmpvar_1;
vec4 tmpvar_2;
tmpvar_2 = myColor;
gl_FrontColor = tmpvar_2;
}