Working ray tracer with Lambertian reflectance and shadows