Rename main.cpp file

This commit is contained in:
CJSatnarine
2024-07-08 18:41:45 -04:00
parent 8a50479e27
commit e1e2d4ac2a

View File

@@ -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<checkerTexture>(0.32, colour(.2, .3, .1), colour(.9, .9, .9));
world.add(make_shared<sphere>(point3(0,-1000,0), 1000, make_shared<lambertian>(checker)));
// Code from the book.
auto ground_material = make_shared<lambertian>(colour(0.5, 0.5, 0.5));
world.add(make_shared<sphere>(point3(0,-1000,0), 1000, ground_material));