aboutsummaryrefslogtreecommitdiff
path: root/rtiaw
diff options
context:
space:
mode:
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)