From 958e0d51271eb1a698e6197cdec1eff6d0fb23a6 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Mon, 4 Aug 2025 18:16:13 -0500 Subject: [PATCH] correct for mip weighting --- .../scripts/HDR/HDR_Bloom/downSampleP.hlsl | 19 ++++++++------ .../scripts/HDR/HDR_Bloom/upSampleP.hlsl | 26 ++++++++++--------- 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/Templates/BaseGame/game/core/postFX/scripts/HDR/HDR_Bloom/downSampleP.hlsl b/Templates/BaseGame/game/core/postFX/scripts/HDR/HDR_Bloom/downSampleP.hlsl index c358087f6..4bfa93ed0 100644 --- a/Templates/BaseGame/game/core/postFX/scripts/HDR/HDR_Bloom/downSampleP.hlsl +++ b/Templates/BaseGame/game/core/postFX/scripts/HDR/HDR_Bloom/downSampleP.hlsl @@ -29,12 +29,14 @@ uniform int mipCount0; float4 main(PFXVertToPix IN) : TORQUE_TARGET0 { - float4 downSample = float4(0, 0, 0, 0); - float x = oneOverTargetSize.x; - float y = oneOverTargetSize.y; + float4 downSample = float4(0, 0, 0, 0); + float4 finalOut = float4(0, 0, 0, 0); for (int mipId = 0; mipId