From cd9daac81ec3ce219df59fac6ed581273e24c366 Mon Sep 17 00:00:00 2001 From: papadanku <115061077+papadanku@users.noreply.github.com> Date: Fri, 5 Jul 2024 13:44:51 -0700 Subject: [PATCH] cBloom: Fixed downsample kernel --- shaders/cBloom.fx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shaders/cBloom.fx b/shaders/cBloom.fx index ad5d991..f70e538 100644 --- a/shaders/cBloom.fx +++ b/shaders/cBloom.fx @@ -219,10 +219,10 @@ float4 GetPixelDownscale(VS2PS_Quad Input, sampler2D SampleSource, bool PartialK // -- D2 -- D3 -- // A2 -- B2 -- C2 float2 PixelSize = fwidth(Input.Tex0.xy); - float4 Tex0 = Input.Tex0.xyxy + (float4(-1.0, -1.0, 1.0, 1.0) * PixelSize.xyxy); - float4 Tex1 = Input.Tex0.xyyy + (float4(-2.0, 2.0, 0.0, -2.0) * PixelSize.xyyy); - float4 Tex2 = Input.Tex0.xyyy + (float4(0.0, 2.0, 0.0, -2.0) * PixelSize.xyyy); - float4 Tex3 = Input.Tex0.xyyy + (float4(2.0, 2.0, 0.0, -2.0) * PixelSize.xyyy); + float4 Tex0 = Input.Tex0.xyxy + (float4(-0.5, -0.5, 0.5, 0.5) * PixelSize.xyxy); + float4 Tex1 = Input.Tex0.xyyy + (float4(-1.0, 1.0, 0.0, -1.0) * PixelSize.xyyy); + float4 Tex2 = Input.Tex0.xyyy + (float4(0.0, 1.0, 0.0, -1.0) * PixelSize.xyyy); + float4 Tex3 = Input.Tex0.xyyy + (float4(1.0, 1.0, 0.0, -1.0) * PixelSize.xyyy); if (PartialKaris) {