Brandon Eleuterio

Day: October 3, 2022

Learning Rust – Part 12: Depth of Field

depth of field

In the last post, we added the ability to position our camera. This time we’ll add code for focus, or rather the ability to blur objects that are not in focus. Here we go In order to handle “depth of field”, we need to pass two more parameters into our Camera constructor: aperture – the […]

Back to top