bgfx/3rdparty/glsl-optimizer/tests/vertex/z-prepasslight-out.txt

36 lines
1 KiB
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
uniform vec4 _ProjectionParams;
2014-02-11 02:06:13 -05:00
uniform mat4 glstate_matrix_modelview0;
uniform mat4 glstate_matrix_mvp;
varying vec4 xlv_TEXCOORD0;
varying vec3 xlv_TEXCOORD1;
2012-04-03 23:30:07 -04:00
void main ()
{
vec4 tmpvar_1;
2014-10-11 15:32:43 -04:00
vec3 tmpvar_2;
2012-04-03 23:30:07 -04:00
tmpvar_1 = (glstate_matrix_mvp * gl_Vertex);
2014-10-11 15:32:43 -04:00
vec4 o_3;
o_3 = (tmpvar_1 * 0.5);
2012-10-07 23:41:18 -04:00
vec2 tmpvar_4;
2014-10-11 15:32:43 -04:00
tmpvar_4.x = o_3.x;
tmpvar_4.y = (o_3.y * _ProjectionParams.x);
o_3.xy = (tmpvar_4 + o_3.w);
o_3.zw = tmpvar_1.zw;
tmpvar_2 = ((glstate_matrix_modelview0 * gl_Vertex).xyz * vec3(-1.0, -1.0, 1.0));
vec3 tmpvar_5;
tmpvar_5 = mix (tmpvar_2, gl_Normal, vec3(float((gl_Normal.z != 0.0))));
tmpvar_2 = tmpvar_5;
2012-04-03 23:30:07 -04:00
gl_Position = tmpvar_1;
2014-10-11 15:32:43 -04:00
xlv_TEXCOORD0 = o_3;
xlv_TEXCOORD1 = tmpvar_5;
2012-04-03 23:30:07 -04:00
}
2014-02-11 02:06:13 -05:00
2014-10-11 15:32:43 -04:00
// stats: 9 alu 0 tex 0 flow
// inputs: 2
// #0: gl_Normal (high float) 3x1 [-1] loc 2
// #1: gl_Vertex (high float) 4x1 [-1] loc 0
// uniforms: 3 (total size: 0)
// #0: _ProjectionParams (high float) 4x1 [-1]
// #1: glstate_matrix_modelview0 (high float) 4x4 [-1]
// #2: glstate_matrix_mvp (high float) 4x4 [-1]