mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Improve the gizmo axis colors and increase the manipulator opacity
The new colors should make it easier to see the manipulator gizmo. Highlighted gizmos are now fully opaque (instead of being white), keeping the color information while a gizmo is highlighted. This also adds a setting hint for the manipulator gizmo opacity editor setting. Axis colors were taken from Blender 2.80. This partially addresses #16154.
This commit is contained in:
parent
3a6102a6f7
commit
d57680cf34
2 changed files with 47 additions and 43 deletions
|
|
@ -528,7 +528,8 @@ private:
|
|||
Ref<ArrayMesh> move_gizmo[3], move_plane_gizmo[3], rotate_gizmo[3], scale_gizmo[3], scale_plane_gizmo[3];
|
||||
Ref<SpatialMaterial> gizmo_color[3];
|
||||
Ref<SpatialMaterial> plane_gizmo_color[3];
|
||||
Ref<SpatialMaterial> gizmo_hl;
|
||||
Ref<SpatialMaterial> gizmo_color_hl[3];
|
||||
Ref<SpatialMaterial> plane_gizmo_color_hl[3];
|
||||
|
||||
int over_gizmo_handle;
|
||||
|
||||
|
|
@ -635,6 +636,7 @@ private:
|
|||
Node *custom_camera;
|
||||
|
||||
Object *_get_editor_data(Object *p_what);
|
||||
Color _get_axis_color(int axis);
|
||||
|
||||
Ref<Environment> viewport_environment;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue