Small change

This commit is contained in:
CamilleLaVey
2026-09-09 18:41:57 -04:00
parent c44742f79e
commit f6c6f7ddb9
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -44,9 +44,9 @@ float4 PS_Bloom(float4 pos : SV_Position, float2 uv : TEXCOORD) : SV_Target
float spread = 0.002 * gray / max(saturation, 0.25) * Radius;
float3 sum = float3(0.0, 0.0, 0.0);
for (int x = -3; x <= 3; x += 2)
[unroll] for (int x = -3; x <= 3; x += 2)
{
for (int y = -3; y <= 3; y += 2)
[unroll] for (int y = -3; y <= 3; y += 2)
{
float3 tap = tex2D(BackBuffer, uv + float2(x, y) * spread).rgb;
sum += tap * Weight(tap);