diff options
Diffstat (limited to 'rtiaw')
-rwxr-xr-x | rtiaw | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |