combine the drawing logic for 2d and cubemap textured entities
add clip-sphere struct