glsl: Transform dot product by a basis vector into a swizzle