mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-07 06:18:42 +00:00
bugfix when calculating kernel weights for smaller than 1px blur size
This commit is contained in:
committed by
Ryan Fleury
parent
e56eb077d0
commit
82f86d654f
@@ -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
|
// 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[(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
|
// technically we need just direction be different
|
||||||
// but there are 256 bytes of usable space anyway for each constant buffer chunk
|
// but there are 256 bytes of usable space anyway for each constant buffer chunk
|
||||||
|
|||||||
Reference in New Issue
Block a user