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

16 lines
327 B
Text
Raw Normal View History

2014-02-11 02:06:13 -05:00
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;
}