diff options
author | Nat Lasseter <user@4574.co.uk> | 2024-06-13 18:15:56 +0100 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2024-06-13 18:15:56 +0100 |
commit | 3bf56da7aa64ea3ca05559a4e52df8f596bcf86b (patch) | |
tree | 76709ef777249c2d88ff121ea407b0962d4e9f27 /rtiaw | |
parent | 69e0357135a49157ed7a8c2e57c331e960422e15 (diff) |
Finish Chapter 12
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) |