All Posts

Specular Reflection and Mirrors

fsharpseries:fsharp-raytracerseries:fsharp-raytracer:4
Reflections are quite simple in a raytracer

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

Sphere/Ray Intersections

fsharpseries:fsharp-raytracerseries:fsharp-raytracer:2
We derive the equation to intersect a sphere and a ray from basic definitions