From a637fec63a2956ba4239711a364351a39bf25713 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Tue, 26 Oct 2021 01:11:45 +0300 Subject: feat: implement softmin function --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 5e25562..bf70415 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,13 +11,13 @@ trait Object { fn main() { let mut cam = Camera { - position: Vector { x: 0.0, y: 0.0, z: 0.0 }, + position: Vector { x: 0.0, y: -0.7, z: 0.0 }, direction: Vector { x: 1.0, y: 0.0, z: 0.0 }, angle: PI / 2.0, distance: 1.0, aspect_ratio: 1.0, brightness: 10.0, - buffer: Buffer([['.'; 100]; 50]) + buffer: Buffer([['.'; 120]; 60]) }; cam.render(); -- cgit v1.2.3