Adding texture coordinates to primitives.