Merge pull request #116995 from Calinou/editor-marker3d-gizmo-fix-line-brightness
Fix Marker3D editor gizmo being darker than intended for negative axis lines
This commit is contained in:
commit
8e58bc2cf6
1 changed files with 6 additions and 8 deletions
|
|
@ -63,22 +63,20 @@ Marker3DGizmoPlugin::Marker3DGizmoPlugin() {
|
|||
const Color color_x = EditorNode::get_singleton()->get_editor_theme()->get_color(SNAME("axis_x_color"), EditorStringName(Editor));
|
||||
cursor_colors.push_back(color_x);
|
||||
cursor_colors.push_back(color_x);
|
||||
// FIXME: Use less strong darkening factor once GH-48573 is fixed.
|
||||
// The current darkening factor compensates for lines being too bright in the 3D editor.
|
||||
cursor_colors.push_back(color_x.lerp(Color(0, 0, 0), 0.75));
|
||||
cursor_colors.push_back(color_x.lerp(Color(0, 0, 0), 0.75));
|
||||
cursor_colors.push_back(color_x.darkened(0.5));
|
||||
cursor_colors.push_back(color_x.darkened(0.5));
|
||||
|
||||
const Color color_y = EditorNode::get_singleton()->get_editor_theme()->get_color(SNAME("axis_y_color"), EditorStringName(Editor));
|
||||
cursor_colors.push_back(color_y);
|
||||
cursor_colors.push_back(color_y);
|
||||
cursor_colors.push_back(color_y.lerp(Color(0, 0, 0), 0.75));
|
||||
cursor_colors.push_back(color_y.lerp(Color(0, 0, 0), 0.75));
|
||||
cursor_colors.push_back(color_y.darkened(0.5));
|
||||
cursor_colors.push_back(color_y.darkened(0.5));
|
||||
|
||||
const Color color_z = EditorNode::get_singleton()->get_editor_theme()->get_color(SNAME("axis_z_color"), EditorStringName(Editor));
|
||||
cursor_colors.push_back(color_z);
|
||||
cursor_colors.push_back(color_z);
|
||||
cursor_colors.push_back(color_z.lerp(Color(0, 0, 0), 0.75));
|
||||
cursor_colors.push_back(color_z.lerp(Color(0, 0, 0), 0.75));
|
||||
cursor_colors.push_back(color_z.darkened(0.5));
|
||||
cursor_colors.push_back(color_z.darkened(0.5));
|
||||
|
||||
Ref<StandardMaterial3D> mat = memnew(StandardMaterial3D);
|
||||
mat->set_shading_mode(StandardMaterial3D::SHADING_MODE_UNSHADED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue