mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 03:30:05 -05:00
Clamp min to 0 in colorclip (for wavelet et al)
This commit is contained in:
parent
ec1e84fee6
commit
e1914a9c87
@ -25,6 +25,10 @@ void colorclip(float4 *pixbuf, float gamma, float vibrance, float highpow,
|
||||
return;
|
||||
}
|
||||
|
||||
pix.x = fmaxf(0.0f, pix.x);
|
||||
pix.y = fmaxf(0.0f, pix.y);
|
||||
pix.z = fmaxf(0.0f, pix.z);
|
||||
|
||||
float4 opix = pix;
|
||||
|
||||
float alpha = powf(pix.w, gamma);
|
||||
|
Loading…
Reference in New Issue
Block a user