added work on cubemapped textures, not quite done