]> git.tdb.fi Git - libs/gl.git/blobdiff - demos/desertpillars/source/desertpillars.cpp
Modify sunlight color based on transmittance of the atmosphere
[libs/gl.git] / demos / desertpillars / source / desertpillars.cpp
index 5f3b29b1375fdfd6c99283fbd60779e9724bb655..bdbc069e3e153d31bc69747c5a4f4a203c0dce2d 100644 (file)
@@ -34,7 +34,7 @@ DesertPillars::DesertPillars(int, char **):
        window.signal_close.connect(sigc::bind(sigc::mem_fun(this, &DesertPillars::exit), 0));
        keyboard.signal_button_press.connect(sigc::bind_return(sigc::mem_fun(this, &DesertPillars::key_press), false));
 
-       const GL::Light &sun = resources.get<GL::Light>("Sun.light");
+       GL::Light &sun = resources.get<GL::Light>("Sun.light");
        sky = make_unique<GL::Sky>(content, sun);
 
        unsigned shadow_size = 8192;