Tint 3D light gizmos using the light's color

This makes navigation more convenient in the 3D viewport, especially
when using the unshaded display mode.
This commit is contained in:
Hugo Locurcio 2020-01-01 00:52:20 +01:00
parent 7fddf5eb7c
commit ac18665c88
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
7 changed files with 36 additions and 22 deletions

View file

@ -103,6 +103,8 @@ void Light::set_color(const Color &p_color) {
color = p_color;
VS::get_singleton()->light_set_color(light, p_color);
// The gizmo color depends on the light color, so update it.
update_gizmo();
}
Color Light::get_color() const {