]> git.tdb.fi Git - libs/gl.git/commitdiff
Re-export desert pillars data with ambient light
authorMikko Rasa <tdb@tdb.fi>
Wed, 5 May 2021 15:04:51 +0000 (18:04 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 5 May 2021 15:04:51 +0000 (18:04 +0300)
demos/desertpillars/data/exported/Desert.lightn
demos/desertpillars/source/desertpillars.cpp

index 30ca7478be5ea4e4d71f08f3cc17f00d7e25b4b2..25144b2e5d02034ebfd5637355b4e381b572cfef 100644 (file)
@@ -1 +1,2 @@
+ambient 0.320000 0.480000 0.880000;
 light "Sun.light";
 light "Sun.light";
index fc70af117ef7ca05813c61c6f98fe043f7458ac6..5f3b29b1375fdfd6c99283fbd60779e9724bb655 100644 (file)
@@ -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);
        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"));
        shadow_map->set_target(GL::Vector3(0.0f, 0.0f, 0.0f), 20.0f);
 
        GL::SequenceBuilder seq_bld(resources.get<GL::SequenceTemplate>("Desert.seq"));