obj loading and proper raytracing

This commit is contained in:
Ben Kyd
2019-08-05 03:28:01 +01:00
parent 8ee9e71a0a
commit dcb4ff99cf
5 changed files with 2742 additions and 15 deletions

View File

@@ -15,7 +15,6 @@ 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);