Rendering 3D objects with ilumination and shadow