added a cubemap functionality