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

22 lines
459 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
void main ()
{
2012-10-07 23:41:18 -04:00
vec3 n_1;
mat3 m_2;
vec4 tmpvar_3;
tmpvar_3 = (gl_ModelViewProjectionMatrix * gl_Vertex);
gl_Position = tmpvar_3;
mat3 tmpvar_4;
tmpvar_4 = (mat3(0.1, 0.8, 0.1, 0.3, 0.3, 0.5, 0.9, 0.0, 0.1));
m_2 = (tmpvar_4);
vec3 tmpvar_5;
tmpvar_5 = (m_2 * gl_Normal);
n_1 = tmpvar_5;
vec4 tmpvar_6;
tmpvar_6.w = 1.0;
tmpvar_6.xyz = ((n_1 * 0.5) + 0.5).xyz;
vec4 tmpvar_7;
tmpvar_7 = tmpvar_6;
gl_FrontColor = tmpvar_7;
2012-04-03 23:30:07 -04:00
}