From d30869cc5e81bf359fa2044d46a5a8a7d2f0aec3 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 15 Feb 2022 09:03:05 -0500 Subject: [PATCH] Adjust point light sizes for example scene --- example/src/example.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/src/example.cpp b/example/src/example.cpp index 1c00e6d..5e59a41 100644 --- a/example/src/example.cpp +++ b/example/src/example.cpp @@ -20,11 +20,13 @@ void ExampleApp::initialize_render() { camera_obj = scene->add_object(); auto& camera = scene->add(camera_obj); + camera.near = 0.1f; auto sun_obj = scene->add_object(); auto& sun = scene->add(sun_obj); sun.type = Light::Type::Point; sun.use_dynamic_shadows = true; + sun.size = 25.0f; auto& sun_trans = scene->get(sun_obj); sun_trans.position = {-2, 5, 1}; @@ -33,6 +35,7 @@ void ExampleApp::initialize_render() { second_sun.type = Light::Type::Point; second_sun.color = {1, 0, 0}; second_sun.use_dynamic_shadows = true; + second_sun.size = 25.0f; scene->get(second_sun_obj).position = {-14, 1, -1}; auto third_sun_obj = scene->add_object(); @@ -40,6 +43,7 @@ void ExampleApp::initialize_render() { third_sun.type = Light::Type::Point; third_sun.color = {0, 0, 1}; third_sun.use_dynamic_shadows = true; + third_sun.size = 25.0f; scene->get(third_sun_obj).position = {3, 1, -1}; main_object = scene->add_object();