From 6f8ee3cae41804ddc9d8f2493b71d0ad37c1d413 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 1 Dec 2021 10:55:04 +0200 Subject: [PATCH] Use RGBA as the default format for effect render targets --- source/effects/environmentmap.h | 2 +- source/effects/sky.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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")), -- 2.43.0