diff options
author | Nat Lasseter <user@4574.co.uk> | 2024-06-24 23:23:45 +0100 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2024-06-24 23:23:45 +0100 |
commit | c64284af4f5fd44360b88261a1c49a36f8bc7344 (patch) | |
tree | 8dde1dccc3f33797f2f1d8a2a56b90564009c3e0 /rtiaw.go | |
parent | 3deef4d969dd50ddf540b80fe43ef16af5c17169 (diff) |
Chapter 12
Diffstat (limited to 'rtiaw.go')
-rw-r--r-- | rtiaw.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |