Planet of the Crabs
🦀 fearless rust


Writing a Raytracer in Rust - Part 2 - Light and Shadow

Posted on by bheisler.github.io

Welcome to Part 2 of my series on writing a raytracer in Rust. If you haven’t already, you may wish to read Part 1. Previously, we implemented a basic raytracer which can render only a single sphere with no lighting. This time, we’ll add multiple objects, planes, and basic lighting. Multiple Objects It’s pretty easy to change our scene definition to contain a Vec of spheres instead of just a single one.