Rename main.cpp file
This commit is contained in:
@@ -5,11 +5,15 @@
|
|||||||
#include "hittableList.h"
|
#include "hittableList.h"
|
||||||
#include "material.h"
|
#include "material.h"
|
||||||
#include "sphere.h"
|
#include "sphere.h"
|
||||||
|
#include "texture.h"
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
// World.
|
// World.
|
||||||
hittableList 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.
|
// Code from the book.
|
||||||
auto ground_material = make_shared<lambertian>(colour(0.5, 0.5, 0.5));
|
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));
|
world.add(make_shared<sphere>(point3(0,-1000,0), 1000, ground_material));
|
Reference in New Issue
Block a user