flx max depth

This commit is contained in:
Fabien Freling 2021-05-27 23:07:07 +02:00
parent 2ab82d4c92
commit 3b3cb72dc0

View file

@ -88,7 +88,7 @@ pub fn main() anyerror!void {
const imageWidth = 600; const imageWidth = 600;
const imageHeight = @floatToInt(usize, imageWidth / aspectRatio); const imageHeight = @floatToInt(usize, imageWidth / aspectRatio);
const samplesPerPixel = 100; const samplesPerPixel = 100;
const maxDepth = 5; const maxDepth = 50;
// World // World
const materialGround = Material{ const materialGround = Material{