float dot(vec2 x, vec2 y);
float dot(vec3 x, vec3 y);
float dot(vec4 x, vec4 y);
-vec3 cross(vec3 x);
+vec3 cross(vec3 x, vec3 y);
float normalize(float x);
vec2 normalize(vec2 x);
vec3 normalize(vec3 x);
("T::Base length(T x)", floattypes),
("T::Base distance(T p0, T p1)", floattypes),
("T::Base dot(T x, T y)", floattypes),
- "vec3 cross(vec3 x)",
+ "vec3 cross(vec3 x, vec3 y)",
("T normalize(T x)", floattypes),
("T faceforward(T N, T I, T Nref)", floattypes),
("T reflect(T I, T N)", floattypes),