bugfix when calculating kernel weights for smaller than 1px blur size

This commit is contained in:
Martins Mozeiko
2024-01-23 14:30:55 -08:00
committed by Ryan Fleury
parent e56eb077d0
commit 82f86d654f
+1 -1
View File
@@ -1263,8 +1263,8 @@ r_window_submit(OS_Handle window, R_Handle window_equip, R_PassList *passes)
// zw elements are not used, a bit of waste but it allows for simpler shader code
uniforms.kernel[(idx+1)/2] = v4f32(w, (F32)idx + t, 0, 0);
}
uniforms.kernel[0].x = weights[0];
}
uniforms.kernel[0].x = weights[0];
// technically we need just direction be different
// but there are 256 bytes of usable space anyway for each constant buffer chunk