All Posts

Phong/Lambert shading

fsharpseries:fsharp-raytracerseries:fsharp-raytracer:3
A simple Lambert shader gives adds depth to our spheres. Lighting is proportional to the cosine of the angle between the light and the surface normal