Sort:  

Thanks. All done mathematically. You define a light source usually as in this case, ouside the field of view and cast rays from it onto the objects.