mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
fixed highlight_power functionality difference between cuburn and smoulder
This commit is contained in:
parent
b240fc8459
commit
8ea057ff96
@ -37,11 +37,10 @@ void colorclip(float4 *pixbuf, float gamma, float vibrancy, float highpow,
|
|||||||
|
|
||||||
if (maxa > 1.0f && highpow >= 0.0f) {
|
if (maxa > 1.0f && highpow >= 0.0f) {
|
||||||
float lsratio = powf(newls / ls, highpow);
|
float lsratio = powf(newls / ls, highpow);
|
||||||
|
|
||||||
pix.x *= newls;
|
pix.x *= newls;
|
||||||
pix.y *= newls;
|
pix.y *= newls;
|
||||||
pix.z *= newls;
|
pix.z *= newls;
|
||||||
maxc *= newls;
|
//maxc *= newls;
|
||||||
|
|
||||||
// Reduce saturation (according to the HSV model) by proportionally
|
// Reduce saturation (according to the HSV model) by proportionally
|
||||||
// increasing the values of the other colors.
|
// increasing the values of the other colors.
|
||||||
|
Loading…
Reference in New Issue
Block a user