From 3deef4d969dd50ddf540b80fe43ef16af5c17169 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Mon, 24 Jun 2024 22:51:51 +0100 Subject: Chapter 11 --- rtiaw.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rtiaw.go') diff --git a/rtiaw.go b/rtiaw.go index d95501d..1427fbf 100644 --- a/rtiaw.go +++ b/rtiaw.go @@ -11,13 +11,15 @@ func main() { mat_ground := Lambertian{Vec3{0.8, 0.8, 0}}; mat_centre := Lambertian{Vec3{0.1, 0.2, 0.5}}; - mat_left := Metal{Vec3{0.8, 0.8, 0.8}, 0.3}; + mat_left := Dielectric{1.5}; + mat_bubble := Dielectric{1.0 / 1.5}; mat_right := Metal{Vec3{0.8, 0.6, 0.2}, 1.0}; var world Hittables; world.Add(Sphere{Vec3{ 0, -100.5, -1 }, 100 , mat_ground}); world.Add(Sphere{Vec3{ 0, 0 , -1.2}, 0.5, mat_centre}); world.Add(Sphere{Vec3{-1.0, 0 , -1 }, 0.5, mat_left}); + world.Add(Sphere{Vec3{-1.0, 0 , -1 }, 0.4, mat_bubble}); world.Add(Sphere{Vec3{ 1.0, 0 , -1 }, 0.5, mat_right}); cam := NewCamera(400, 16.0/9.0, 100, 50); -- cgit v1.2.1