bgfx/3rdparty/glsl-optimizer/tests/vertex/loops-forvarious-outES.txt

45 lines
1.5 KiB
Plaintext
Raw Normal View History

2012-10-08 07:41:18 +04:00
attribute highp vec4 _glesVertex;
2014-02-11 11:06:13 +04:00
uniform highp mat4 UNITY_MATRIX_MVP;
uniform highp vec4 unity_LightAtten[4];
uniform highp vec4 unity_LightColor[4];
varying mediump vec4 xlv_TEXCOORD0;
2012-10-08 07:41:18 +04:00
void main ()
{
2014-10-11 23:32:43 +04:00
highp vec4 l_1_1;
highp vec4 l_2;
mediump vec4 tmpvar_3;
mediump vec4 tmpvar_4;
2012-10-08 07:41:18 +04:00
tmpvar_3 = (UNITY_MATRIX_MVP * _glesVertex);
tmpvar_4 = unity_LightColor[0];
2014-10-11 23:32:43 +04:00
tmpvar_4 = (tmpvar_4 + unity_LightColor[1]);
tmpvar_4 = (tmpvar_4 + unity_LightColor[0]);
tmpvar_4 = (tmpvar_4 + unity_LightColor[1]);
tmpvar_4 = (tmpvar_4 + unity_LightColor[2]);
tmpvar_4 = (tmpvar_4 + unity_LightColor[3]);
tmpvar_4 = (tmpvar_4 + unity_LightColor[3]);
tmpvar_4 = (tmpvar_4 + unity_LightColor[2]);
tmpvar_4 = (tmpvar_4 + unity_LightColor[1]);
tmpvar_4 = (tmpvar_4 + unity_LightColor[0]);
l_2 = (unity_LightColor[0] * unity_LightAtten[0].x);
tmpvar_4 = (tmpvar_4 + l_2);
l_2 = (unity_LightColor[1] * unity_LightAtten[1].x);
tmpvar_4 = (tmpvar_4 + l_2);
l_1_1 = (unity_LightColor[0] * unity_LightAtten[0].z);
tmpvar_4 = (tmpvar_4 + l_1_1);
l_1_1 = (unity_LightColor[1] * unity_LightAtten[1].z);
tmpvar_4 = (tmpvar_4 + l_1_1);
tmpvar_4 = (tmpvar_4 + unity_LightColor[1].x);
tmpvar_4 = (tmpvar_4 + unity_LightColor[2].x);
gl_Position = tmpvar_3;
xlv_TEXCOORD0 = tmpvar_4;
2012-10-08 07:41:18 +04:00
}
2014-02-11 11:06:13 +04:00
2014-10-11 23:32:43 +04:00
// stats: 20 alu 0 tex 0 flow
// inputs: 1
// #0: _glesVertex (high float) 4x1 [-1]
// uniforms: 3 (total size: 0)
// #0: UNITY_MATRIX_MVP (high float) 4x4 [-1]
// #1: unity_LightAtten (high float) 4x1 [4]
// #2: unity_LightColor (high float) 4x1 [4]