From e1e2d4ac2a25ff76ef06cf6c1bbf455374125226 Mon Sep 17 00:00:00 2001 From: CJSatnarine Date: Mon, 8 Jul 2024 18:41:45 -0400 Subject: [PATCH] Rename main.cpp file --- ImageGenerator.cpp => main.cpp | 4 ++++ 1 file changed, 4 insertions(+) rename ImageGenerator.cpp => main.cpp (92%) diff --git a/ImageGenerator.cpp b/main.cpp similarity index 92% rename from ImageGenerator.cpp rename to main.cpp index b191072..2f3c689 100644 --- a/ImageGenerator.cpp +++ b/main.cpp @@ -5,11 +5,15 @@ #include "hittableList.h" #include "material.h" #include "sphere.h" +#include "texture.h" int main(void) { // World. hittableList world; + auto checker = make_shared(0.32, colour(.2, .3, .1), colour(.9, .9, .9)); + world.add(make_shared(point3(0,-1000,0), 1000, make_shared(checker))); + // Code from the book. auto ground_material = make_shared(colour(0.5, 0.5, 0.5)); world.add(make_shared(point3(0,-1000,0), 1000, ground_material));