fix RGBUnboundedSpectrum
This commit is contained in:
parent
75c56c0032
commit
9eb8afcb59
@ -15,7 +15,7 @@ public final class RGBUnboundedSpectrum implements Spectrum {
|
|||||||
}
|
}
|
||||||
var max = Math.max(rgb.r(), Math.max(rgb.g(), rgb.b()));
|
var max = Math.max(rgb.r(), Math.max(rgb.g(), rgb.b()));
|
||||||
this.scale = 2 * max;
|
this.scale = 2 * max;
|
||||||
this.polynomial = cs.toSpectrum(scale == 0 ? rgb.div(scale) : ColorRGB.BLACK);
|
this.polynomial = cs.toSpectrum(scale != 0 ? rgb.div(scale) : ColorRGB.BLACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user