Rendering a cube and sphere