aboutsummaryrefslogtreecommitdiff
path: root/rtiaw
diff options
context:
space:
mode:
Diffstat (limited to 'rtiaw')
-rwxr-xr-xrtiaw12
1 files changed, 7 insertions, 5 deletions
diff --git a/rtiaw b/rtiaw
index 71b4fbd..45487b9 100755
--- a/rtiaw
+++ b/rtiaw
@@ -10,14 +10,16 @@ require 'material'
mat_ground = Lambertian.new(0.8, 0.8, 0.0)
mat_centre = Lambertian.new(0.1, 0.2, 0.5)
-mat_left = Metal.new(0.8, 0.8, 0.8, 0.3)
+mat_left = Dielectric.new(1.5)
+mat_bubble = Dielectric.new(1 / 1.5)
mat_right = Metal.new(0.8, 0.6, 0.2, 1.0)
world = Hittables.new
-world << Sphere.new(0, -100.5, -1, 100, mat_ground)
-world << Sphere.new(0, 0, -1, 0.5, mat_centre)
-world << Sphere.new(-1, 0, -1, 0.5, mat_left)
-world << Sphere.new(1, 0, -1, 0.5, mat_right)
+world << Sphere.new( 0, -100.5, -1, 100, mat_ground)
+world << Sphere.new( 0, 0, -1.2, 0.5, mat_centre)
+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.render(world)