X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=demos%2Fdesertpillars%2Fsource%2Fdesertpillars.cpp;h=5f3b29b1375fdfd6c99283fbd60779e9724bb655;hb=a6923e6315d5b91a0641dfcde653a897e8afeb1f;hp=41d150b0a8e6c7bffd0b8fb62722ec0df653e9d3;hpb=54d0db2e998cd07a72acc883f9d8735bd97563a2;p=libs%2Fgl.git diff --git a/demos/desertpillars/source/desertpillars.cpp b/demos/desertpillars/source/desertpillars.cpp index 41d150b0..5f3b29b1 100644 --- a/demos/desertpillars/source/desertpillars.cpp +++ b/demos/desertpillars/source/desertpillars.cpp @@ -35,15 +35,14 @@ DesertPillars::DesertPillars(int, char **): keyboard.signal_button_press.connect(sigc::bind_return(sigc::mem_fun(this, &DesertPillars::key_press), false)); const GL::Light &sun = resources.get("Sun.light"); - sky = make_unique(resources, content, sun); + sky = make_unique(content, sun); unsigned shadow_size = 8192; shadow_seq = make_unique(shadow_size, shadow_size); GL::Sequence::Step *step = &shadow_seq->add_step("shadow", content); step->set_depth_test(&GL::DepthTest::lequal()); - shadow_map = make_unique(resources, shadow_size, *sky, sun, *shadow_seq); - shadow_map->set_darkness(0.9f); + shadow_map = make_unique(shadow_size, *sky, sun, *shadow_seq); shadow_map->set_target(GL::Vector3(0.0f, 0.0f, 0.0f), 20.0f); GL::SequenceBuilder seq_bld(resources.get("Desert.seq")); @@ -56,7 +55,7 @@ DesertPillars::DesertPillars(int, char **): step->set_lighting(&resources.get("Desert.lightn")); step->set_depth_test(&GL::DepthTest::lequal()); - env_map = make_unique(resources, 256, GL::RGB16F, sphere, *env_seq); + env_map = make_unique(256, GL::RGB16F, sphere, *env_seq); sphere.set_matrix(GL::Matrix::translation(GL::Vector3(0.0f, 0.0f, 3.3f))); content.add(resources.get("Background.scene"));