X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=demos%2Fdesertpillars%2Fsource%2Fdesertpillars.cpp;h=5932e56968be16851469fd045e58b96708b30dc6;hb=be92396630a2065e43c21d9d1904e97014844cff;hp=b5db8afd1f05d02867376819a160f2d2fea0fbc0;hpb=d4e380914f02800b7d915a8748ac9ccd7029bc3b;p=libs%2Fgl.git diff --git a/demos/desertpillars/source/desertpillars.cpp b/demos/desertpillars/source/desertpillars.cpp index b5db8afd..5932e569 100644 --- a/demos/desertpillars/source/desertpillars.cpp +++ b/demos/desertpillars/source/desertpillars.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -34,11 +35,12 @@ 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)); - GL::Light &sun = resources.get("Sun.light"); + GL::DirectionalLight &sun = resources.get("Sun.light"); sky = make_unique(content, sun); sky->set_debug_name("Sky"); shadow_seq = make_unique(); + shadow_seq->set_clear_enabled(true); shadow_seq->set_debug_name("Shadow sequence"); GL::Sequence::Step *step = &shadow_seq->add_step("shadow", content); step->set_depth_test(GL::LEQUAL); @@ -53,6 +55,7 @@ DesertPillars::DesertPillars(int, char **): sequence.reset(seq_bld.build(view)); env_seq = make_unique(); + env_seq->set_clear_enabled(true); env_seq->set_debug_name("Environment sequence"); step = &env_seq->add_step("", *shadow_map); step->set_lighting(&resources.get("Desert.lightn"));