bgfx/3rdparty/glsl-optimizer/tests/vertex/zun-TexGen_Cube_Refl-out.txt

28 lines
677 B
Text
Raw Normal View History

2012-10-07 23:41:18 -04:00
uniform mat4 _World2Object;
2014-02-11 02:06:13 -05:00
uniform vec3 _WorldSpaceCameraPos;
uniform vec4 unity_Scale;
2012-10-07 23:41:18 -04:00
void main ()
{
vec4 tmpvar_1;
tmpvar_1.w = 1.0;
tmpvar_1.xyz = _WorldSpaceCameraPos;
vec3 tmpvar_2;
2014-02-11 02:06:13 -05:00
tmpvar_2 = -(normalize((
((_World2Object * tmpvar_1).xyz * unity_Scale.w)
- gl_Vertex.xyz)));
2012-10-07 23:41:18 -04:00
vec4 tmpvar_3;
tmpvar_3.w = 0.0;
2014-02-11 02:06:13 -05:00
tmpvar_3.xyz = (tmpvar_2 - (2.0 * (
dot (gl_Normal, tmpvar_2)
* gl_Normal)));
2012-10-07 23:41:18 -04:00
gl_Position = (gl_ModelViewProjectionMatrix * gl_Vertex);
gl_FrontColor = gl_Color;
vec4 tmpvar_4;
tmpvar_4.w = 0.0;
tmpvar_4.xyz = (gl_ModelViewMatrix * tmpvar_3).xyz;
gl_TexCoord[0] = tmpvar_4;
}
2014-02-11 02:06:13 -05:00
// inputs: 3, stats: 14 alu 0 tex 0 flow