]> git.tdb.fi Git - libs/gl.git/commitdiff
Use RGBA as the default format for effect render targets
authorMikko Rasa <tdb@tdb.fi>
Wed, 1 Dec 2021 08:55:04 +0000 (10:55 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 1 Dec 2021 08:55:15 +0000 (10:55 +0200)
source/effects/environmentmap.h
source/effects/sky.cpp

index 20c6779abf4ef3672f556e51531455f2edb56ff3..9ef0e87d87a599fa8632a45234b8d3de6a3f0b95 100644 (file)
@@ -47,7 +47,7 @@ public:
                };
 
                unsigned size = 512;
-               PixelFormat format = RGB16F;
+               PixelFormat format = RGBA16F;
                std::string environment_name;
                unsigned roughness_levels = 5;
                Vector3 fixed_position;
index 2e5a6e1825114141fb57784324475e3acfdd84c2..fc6d49fd37385e908ca57e4480b1ec61f6190e8f 100644 (file)
@@ -16,10 +16,10 @@ namespace GL {
 Sky::Sky(Renderable &c, DirectionalLight &s):
        Effect(c),
        sun(s),
-       transmittance_lookup(128, 64, (COLOR_ATTACHMENT,RGB16F)),
+       transmittance_lookup(128, 64, (COLOR_ATTACHMENT,RGBA16F)),
        transmittance_shprog(Resources::get_global().get<Program>("_sky_transmittance.glsl.shader")),
        transmittance_lookup_dirty(true),
-       distant(256, 128, (COLOR_ATTACHMENT,RGB16F)),
+       distant(256, 128, (COLOR_ATTACHMENT,RGBA16F)),
        distant_shprog(Resources::get_global().get<Program>("_sky_distant.glsl.shader")),
        fullscreen_mesh(Resources::get_global().get<Mesh>("_fullscreen_quad.mesh")),
        backdrop_shprog(Resources::get_global().get<Program>("_sky_backdrop.glsl.shader")),