]> git.tdb.fi Git - libs/gl.git/commitdiff
Use a HDR environment map in desertpillars
authorMikko Rasa <tdb@tdb.fi>
Sat, 24 Apr 2021 20:28:38 +0000 (23:28 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 24 Apr 2021 20:28:38 +0000 (23:28 +0300)
demos/desertpillars/source/desertpillars.cpp

index c138d65a6cdb428718212ebb6e2d112ebc04afea..41d150b0a8e6c7bffd0b8fb62722ec0df653e9d3 100644 (file)
@@ -56,7 +56,7 @@ DesertPillars::DesertPillars(int, char **):
        step->set_lighting(&resources.get<GL::Lighting>("Desert.lightn"));
        step->set_depth_test(&GL::DepthTest::lequal());
 
-       env_map = make_unique<GL::EnvironmentMap>(resources, 256, sphere, *env_seq);
+       env_map = make_unique<GL::EnvironmentMap>(resources, 256, GL::RGB16F, sphere, *env_seq);
        sphere.set_matrix(GL::Matrix::translation(GL::Vector3(0.0f, 0.0f, 3.3f)));
 
        content.add(resources.get<GL::Scene>("Background.scene"));