tweak quality

This commit is contained in:
Fabien Freling 2021-05-28 19:59:32 +02:00
parent ac56eed3a2
commit 46f28e9b65

View file

@ -175,11 +175,11 @@ pub fn main() anyerror!void {
// Image
const aspectRatio: f32 = 16.0 / 9.0;
const aspectRatio: f32 = 3.0 / 2.0;
const imageWidth = 600;
const imageHeight = @floatToInt(usize, imageWidth / aspectRatio);
const samplesPerPixel = 100;
const maxDepth = 50;
const samplesPerPixel = 128;
const maxDepth = 16;
// World
var world = World.init();