]> git.localhorst.tv Git - blobs.git/commitdiff
of course...
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 10 Dec 2017 17:07:50 +0000 (18:07 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 10 Dec 2017 17:07:50 +0000 (18:07 +0100)
src/app/states.cpp

index 68c66f2f3d29d6c3ac9c35cf1f83206d30646d03..842b2f1e02c42a8630f4489b775fbb3a5190a172 100644 (file)
@@ -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();
        }