mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 03:30:05 -05:00
Fix reversed angle factor. Ugh.
This commit is contained in:
parent
b4132c7cd9
commit
a4b482f61a
@ -260,7 +260,7 @@ void bilateral(float4 *dst, float sstd, float cstd,
|
||||
// Oh, this is ridiculous. But it works!
|
||||
float factor = spa_coefs[abs(i)] * spa_coefs[abs(j)]
|
||||
* expf(cscale * cdiff) * dfact
|
||||
* exp2f(2.0f * (angfact - 1.0f));
|
||||
* exp2f(2.0f * (-angfact - 1.0f));
|
||||
|
||||
weightsum += factor;
|
||||
out.x += factor * pix.x;
|
||||
|
Loading…
Reference in New Issue
Block a user