1 /* The ARB_shading_language_420pack says:
3 * "The *length* method may be applied to vectors (but not scalars). The
4 * result is the number of components in the vector. For example,
7 * const int L = v.length();
9 * sets the constant L to 3. The type returned by .length() on a vector is
12 * Verify that vec.length() returns the number of elements and that the type is
18 GL_ARB_shading_language_420pack
20 [vertex shader passthrough]
23 #extension GL_ARB_shading_language_420pack: enable
32 frag_color = vec4(0.0, 1.0, 0.0, 1.0);
34 if (v2.length() != 2 ||
37 frag_color = vec4(1.0, 0.0, 0.0, 1.0);
43 probe all rgba 0.0 1.0 0.0 1.0