rendering cube and a pyramid