From: Mikko Rasa Date: Wed, 1 Dec 2021 08:55:04 +0000 (+0200) Subject: Use RGBA as the default format for effect render targets X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=6f8ee3cae41804ddc9d8f2493b71d0ad37c1d413 Use RGBA as the default format for effect render targets --- diff --git a/source/effects/environmentmap.h b/source/effects/environmentmap.h index 20c6779a..9ef0e87d 100644 --- a/source/effects/environmentmap.h +++ b/source/effects/environmentmap.h @@ -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; diff --git a/source/effects/sky.cpp b/source/effects/sky.cpp index 2e5a6e18..fc6d49fd 100644 --- a/source/effects/sky.cpp +++ b/source/effects/sky.cpp @@ -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("_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("_sky_distant.glsl.shader")), fullscreen_mesh(Resources::get_global().get("_fullscreen_quad.mesh")), backdrop_shprog(Resources::get_global().get("_sky_backdrop.glsl.shader")),