aboutsummaryrefslogtreecommitdiff
path: root/rtiaw.go
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2024-06-24 23:23:45 +0100
committerNat Lasseter <user@4574.co.uk>2024-06-24 23:23:45 +0100
commitc64284af4f5fd44360b88261a1c49a36f8bc7344 (patch)
tree8dde1dccc3f33797f2f1d8a2a56b90564009c3e0 /rtiaw.go
parent3deef4d969dd50ddf540b80fe43ef16af5c17169 (diff)
Chapter 12
Diffstat (limited to 'rtiaw.go')
-rw-r--r--rtiaw.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/rtiaw.go b/rtiaw.go
index 1427fbf..25dd971 100644
--- a/rtiaw.go
+++ b/rtiaw.go
@@ -22,7 +22,10 @@ func main() {
world.Add(Sphere{Vec3{-1.0, 0 , -1 }, 0.4, mat_bubble});
world.Add(Sphere{Vec3{ 1.0, 0 , -1 }, 0.5, mat_right});
- cam := NewCamera(400, 16.0/9.0, 100, 50);
+ cam := NewCamera(400, 16.0/9.0,
+ 100, 50,
+ 20, Vec3{-2, 2, 1},
+ Vec3{0, 0, -1}, Vec3{0, 1, 0});
cam.Render(world);
dur := time.Since(start);