You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Avoid color conversion roundtrip in colorpicker
This commit is contained in:
@@ -680,6 +680,9 @@ void ColorPicker::_copy_hsv_okhsl_to_normalized() {
|
||||
}
|
||||
|
||||
Color ColorPicker::_color_apply_intensity(const Color &col) const {
|
||||
if (intensity == 0.0f) {
|
||||
return col;
|
||||
}
|
||||
Color linear_color = col.srgb_to_linear();
|
||||
Color result;
|
||||
float multiplier = Math::pow(2, intensity);
|
||||
|
||||
Reference in New Issue
Block a user