From d250cca58677bfc4400a42af37041cbc6d5a2c15 Mon Sep 17 00:00:00 2001 From: chico ferreira <36338391+chicoferreira@users.noreply.github.com> Date: Sat, 25 May 2024 19:29:30 +0100 Subject: [PATCH] fix: MacOS compilation issue --- generator/src/SolarSystem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generator/src/SolarSystem.cpp b/generator/src/SolarSystem.cpp index 624c282..b1775d4 100644 --- a/generator/src/SolarSystem.cpp +++ b/generator/src/SolarSystem.cpp @@ -123,7 +123,9 @@ namespace generator::solarsystem 1000.0f // far ); - world.getLights().push_back(world::lighting::PointLight(Vec3f(0, 0, 0))); + auto middle_light = world::lighting::PointLight(); + middle_light.pos = Vec3f{0, 0, 0}; + world.getLights().push_back(middle_light); auto sphere_id = world.AddModelName("sphere_1_20_20.3d"); auto sphere_low_poly_id = world.AddModelName("sphere_1_10_10.3d");