From: Daniel Karbach Date: Sun, 10 Dec 2017 17:07:50 +0000 (+0100) Subject: of course... X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=a19fdf3d9f0d7ecbf6eeeec817856d85049a8336;p=blobs.git of course... --- diff --git a/src/app/states.cpp b/src/app/states.cpp index 68c66f2..842b2f1 100644 --- a/src/app/states.cpp +++ b/src/app/states.cpp @@ -229,7 +229,7 @@ void MasterState::OnRender(graphics::Viewport &viewport) { double sun_radius = sun->Radius(); assets.shaders.sun_surface.SetM( cam.Model(*sun) * glm::scale(glm::vec3(sun_radius, sun_radius, sun_radius))); - assets.shaders.sun_surface.SetLight(sun->Color(), sun->Luminosity()); + assets.shaders.sun_surface.SetLight(glm::vec3(sun->Color()), float(sun->Luminosity())); assets.shaders.sun_surface.Draw(); }