From 0915a83e51c73e6348233162fc203e7c207c514b Mon Sep 17 00:00:00 2001 From: slipher Date: Tue, 5 Nov 2024 04:26:27 -0600 Subject: [PATCH] Use half float instead of int16 for color buffer This allows us to use values greater than 1 in the color buffer and as the color output of a fragment shader, so we don't have to worry so much about values getting clamped in multi-stage shaders. --- src/engine/renderer/tr_image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/renderer/tr_image.cpp b/src/engine/renderer/tr_image.cpp index 41bc26b0f9..e24176f063 100644 --- a/src/engine/renderer/tr_image.cpp +++ b/src/engine/renderer/tr_image.cpp @@ -2593,7 +2593,7 @@ static void R_CreateCurrentRenderImage() } else { - imageParams.bits |= IF_RGBA16; + imageParams.bits |= IF_RGBA16F; } }