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

15 lines
327 B
Text

varying vec3 var_a;
void main ()
{
vec4 tmpvar_1;
tmpvar_1 = normalize (vec4(1.0, 2.0, 3.0, 4.0));
vec4 tmpvar_2;
tmpvar_2 = (gl_Vertex * tmpvar_1);
gl_Position = tmpvar_2;
vec3 tmpvar_3;
tmpvar_3 = normalize (vec3(0.0, 0.0, 0.0));
vec3 tmpvar_4;
tmpvar_4 = (gl_Vertex.xyz * tmpvar_3);
var_a = tmpvar_4;
}