Replaced float3 by glm vectors.