From 3dc66de3bcf9bffe155588e338463fe106bcb75e Mon Sep 17 00:00:00 2001 From: Green Sky Date: Tue, 29 Mar 2022 15:32:33 +0200 Subject: [PATCH] change bloom render texture format, and make gles/webgl work properly --- framework/opengl_renderer/src/mm/opengl/bloom.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/framework/opengl_renderer/src/mm/opengl/bloom.cpp b/framework/opengl_renderer/src/mm/opengl/bloom.cpp index bf65ef9..a99017d 100644 --- a/framework/opengl_renderer/src/mm/opengl/bloom.cpp +++ b/framework/opengl_renderer/src/mm/opengl/bloom.cpp @@ -26,14 +26,16 @@ void setup_bloom( #ifdef MM_OPENGL_3_GLES #if 0 // NOPE!! // TODO: caps at 1, invest in half float? - const auto bloom_internal_format = GL_RGB565; // prolly fine + const auto bloom_internal_format = GL_RGB565; // prolly fine. NOPE its not. it causes green pixely halos const auto bloom_format_type = GL_UNSIGNED_BYTE; #else - const auto bloom_internal_format = GL_RGB16F; + //const auto bloom_internal_format = GL_RGBA16F; + const auto bloom_internal_format = GL_R11F_G11F_B10F; const auto bloom_format_type = GL_FLOAT; #endif #else - const auto bloom_internal_format = GL_RGB16F; + //const auto bloom_internal_format = GL_RGB16F; + const auto bloom_internal_format = GL_R11F_G11F_B10F; const auto bloom_format_type = GL_FLOAT; #endif