aboutsummaryrefslogtreecommitdiff
path: root/rtiaw
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2024-06-13 18:15:56 +0100
committerNat Lasseter <user@4574.co.uk>2024-06-13 18:15:56 +0100
commit3bf56da7aa64ea3ca05559a4e52df8f596bcf86b (patch)
tree76709ef777249c2d88ff121ea407b0962d4e9f27 /rtiaw
parent69e0357135a49157ed7a8c2e57c331e960422e15 (diff)
Finish Chapter 12
Diffstat (limited to 'rtiaw')
-rwxr-xr-xrtiaw6
1 files changed, 5 insertions, 1 deletions
diff --git a/rtiaw b/rtiaw
index 45487b9..234aa85 100755
--- a/rtiaw
+++ b/rtiaw
@@ -1,5 +1,7 @@
#!/usr/bin/env ruby
+Maths = Math
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))
require 'interval'
require 'vec3'
@@ -21,5 +23,7 @@ world << Sphere.new(-1, 0, -1, 0.5, mat_left)
world << Sphere.new(-1, 0, -1, 0.4, mat_bubble)
world << Sphere.new( 1, 0, -1, 0.5, mat_right)
-camera = Camera.new(400, 16.0 / 9)
+camera = Camera.new(400, 16.0 / 9,
+ vfov: 20,
+ lookfrom: Point.new(-2,2,1))
camera.render(world)