triangles

This commit is contained in:
Ben Kyd
2019-08-05 02:14:28 +01:00
parent 8c495cc66b
commit 8ee9e71a0a
6 changed files with 81 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ int main(int argc, char** argv) {
scene->camera = new Camera(600, 600);
scene->objects.push_back(new Plane({0.0f, -0.5f, 0.0f}, {0.0f, -1.0f, 0.0f}));
scene->objects.push_back(new Sphere({0.0f, 0.0f, -4.0f}, 1.0f));
scene->objects.push_back(new Triangle({ 0.0f, 0.0f, -1.0f }, { 1.0f, 1.0f, 0.0f }, { -1.0f, 1.0f, 0.0f }, { 1.0f, -1.0f ,0.0f }, { 0.25f, 0.75f, 0.75f }, { 0.0f, 0.0f, 0.0f }));
inferno.SetScene(scene);