Added rotation for textures.