From 6b10ae96f82082211be6ceaf4cc31677f1bb4a3e Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 7 Feb 2022 18:36:36 -0500 Subject: [PATCH] Add more point lights to the example scene --- example/src/example.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/example/src/example.cpp b/example/src/example.cpp index 1ee146a..c79574e 100644 --- a/example/src/example.cpp +++ b/example/src/example.cpp @@ -26,13 +26,19 @@ void ExampleApp::initialize_render() { auto& sun = scene->add(sun_obj); sun.type = Light::Type::Point; auto& sun_trans = scene->get(sun_obj); - sun_trans.position = {0, 5, -3}; + sun_trans.position = {-2, 5, 1}; auto second_sun_obj = scene->add_object(); auto& second_sun = scene->add(second_sun_obj); second_sun.type = Light::Type::Point; second_sun.color = {1, 0, 0}; - scene->get(second_sun_obj).position = {2, 3, 3}; + scene->get(second_sun_obj).position = {-14, 1, -1}; + + auto third_sun_obj = scene->add_object(); + auto& third_sun = scene->add(third_sun_obj); + third_sun.type = Light::Type::Point; + third_sun.color = {0, 0, 1}; + scene->get(third_sun_obj).position = {3, 1, -1}; auto sphere_obj = scene->add_object(); auto& sphere_render = scene->add(sphere_obj);