aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2021-10-26 01:11:45 +0300
committereug-vs <eugene@eug-vs.xyz>2021-10-27 09:59:15 +0300
commita637fec63a2956ba4239711a364351a39bf25713 (patch)
treed41990a813f9f802bb01afd0e6e080dd5851893a /src/main.rs
parentbd2150c70e5cbfc06cedfc6ec7e765d31c4ed506 (diff)
downloadpistol-a637fec63a2956ba4239711a364351a39bf25713.tar.gz
feat: implement softmin function
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
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();