Learning Rust – Part 12: 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 […]