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));