]> 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 fc70af117ef7ca05813c61c6f98fe043f7458ac6..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;
@@ -43,7 +43,6 @@ DesertPillars::DesertPillars(int, char **):
        step->set_depth_test(&GL::DepthTest::lequal());
 
        shadow_map = make_unique<GL::ShadowMap>(shadow_size, *sky, sun, *shadow_seq);
-       shadow_map->set_darkness(0.9f);
        shadow_map->set_target(GL::Vector3(0.0f, 0.0f, 0.0f), 20.0f);
 
        GL::SequenceBuilder seq_bld(resources.get<GL::SequenceTemplate>("Desert.seq"));