Add normalization to Reflections debug view to be usable in HDR scenes

This commit is contained in:
Wojtek Figat
2026-03-26 19:16:16 +01:00
parent d1f6440a76
commit 6d433d4ef7
2 changed files with 38 additions and 27 deletions

View File

@@ -414,6 +414,7 @@ bool TextureTool::UpdateTexture(GPUContext* context, GPUTexture* texture, int32
Array<byte> tempData;
if (textureFormat != dataFormat)
{
PROFILE_CPU_NAMED("ConvertTexture");
auto dataSampler = PixelFormatSampler::Get(dataFormat);
auto textureSampler = PixelFormatSampler::Get(textureFormat);
if (!dataSampler || !textureSampler)