From 431d32480085560ea7cc4122e12abd1360eeab32 Mon Sep 17 00:00:00 2001 From: routersys Date: Sun, 11 Oct 2026 21:35:33 +0900 Subject: [PATCH] =?UTF-8?q?=E7=AF=84=E5=9B=B2=E3=81=AE=E5=A4=96=E3=81=B8?= =?UTF-8?q?=E7=AB=AF=E3=81=AE=E7=94=BB=E7=B4=A0=E3=81=8C=E6=BC=8F=E3=82=8C?= =?UTF-8?q?=E3=82=8B=E8=A2=AB=E8=A6=86=E7=8E=87=E3=81=AE=E5=BC=8F=E3=82=92?= =?UTF-8?q?=E7=9B=B4=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SpectrumColorShift.Shader/SpectrumColorShift.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpectrumColorShift.Shader/SpectrumColorShift.hlsl b/SpectrumColorShift.Shader/SpectrumColorShift.hlsl index e4b8d36..541650d 100644 --- a/SpectrumColorShift.Shader/SpectrumColorShift.hlsl +++ b/SpectrumColorShift.Shader/SpectrumColorShift.hlsl @@ -46,7 +46,7 @@ float4 SampleCovered(float2 uv, float2 pixelStep, float2 scenePosition, float2 t float2 maximum = inputBounds.zw - 0.5; float2 clamped = clamp(target, minimum, maximum); float4 color = SourceTexture.SampleLevel(SourceSampler, uv + (clamped - scenePosition) * pixelStep, 0); - float2 coverage = saturate(min(target - inputBounds.xy, inputBounds.zw - target) + 1.0); + float2 coverage = saturate(min(target - inputBounds.xy, inputBounds.zw - target) + 0.5); return color * (coverage.x * coverage.y); }