mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Bias the radius to avoid very large dither offsets
This commit is contained in:
parent
3be14547ea
commit
63483480d0
@ -166,7 +166,7 @@ void iter(mwc_st *msts, iter_info *infos, uint64_t accbuf_ptr) {
|
||||
|
||||
if (threadIdx.y == 1 && threadIdx.x == 0) {
|
||||
float ditherwidth = {{packer.get("0.33 * cp.spatial_filter_radius")}};
|
||||
float u0 = mwc_next_01(rctx);
|
||||
float u0 = mwc_next_01(rctx) + 0.02f;
|
||||
float r = ditherwidth * sqrt(-2.0f * log2f(u0) / M_LOG2E);
|
||||
|
||||
float u1 = 2.0f * M_PI * mwc_next_01(rctx);
|
||||
|
Loading…
Reference in New Issue
Block a user