Skip to content

Commit

Permalink
Use half float instead of int16 for color buffer
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slipher committed Nov 5, 2024
1 parent 559e2df commit 0915a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/renderer/tr_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2593,7 +2593,7 @@ static void R_CreateCurrentRenderImage()
}
else
{
imageParams.bits |= IF_RGBA16;
imageParams.bits |= IF_RGBA16F;
}
}

Expand Down

0 comments on commit 0915a83

Please sign in to comment.