]> git.tdb.fi Git - libs/gl.git/commitdiff
Use an RGBA environment map in desertpillars
authorMikko Rasa <tdb@tdb.fi>
Sun, 5 Dec 2021 08:53:38 +0000 (10:53 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 5 Dec 2021 08:53:38 +0000 (10:53 +0200)
demos/desertpillars/source/desertpillars.cpp

index 1afd57b8d1a41cc50798976213680061ab15628d..bfb25f30c6b5c3564dee3746955ace47ddf8bf51 100644 (file)
@@ -49,7 +49,7 @@ DesertPillars::DesertPillars(int, char **):
        env_bld.set_debug_name("Environment sequence");
        env_seq.reset(env_bld.build());
 
-       env_map = make_unique<GL::EnvironmentMap>(256, GL::RGB16F, 7, sphere, *env_seq);
+       env_map = make_unique<GL::EnvironmentMap>(256, GL::RGBA16F, 7, sphere, *env_seq);
        env_map->set_debug_name("Environment map");
        sphere.set_matrix(GL::Matrix::translation(GL::Vector3(0.0f, 0.0f, 3.3f)));