mirror of
https://github.com/godotengine/godot.git
synced 2025-04-25 01:48:08 +08:00
Merge pull request #100370 from lander-vr/remove-boxes-refprobes-voxelgi
Remove solid boxes in gizmos of VoxelGI and ReflectionProbe
This commit is contained in:
commit
6f2f90935d
editor/plugins/gizmos
@ -47,9 +47,6 @@ ReflectionProbeGizmoPlugin::ReflectionProbeGizmoPlugin() {
|
||||
gizmo_color.a = 0.5;
|
||||
create_material("reflection_internal_material", gizmo_color);
|
||||
|
||||
gizmo_color.a = 0.025;
|
||||
create_material("reflection_probe_solid_material", gizmo_color);
|
||||
|
||||
create_icon_material("reflection_probe_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("GizmoReflectionProbe"), EditorStringName(EditorIcons)));
|
||||
create_handle_material("handles");
|
||||
}
|
||||
@ -210,11 +207,6 @@ void ReflectionProbeGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
|
||||
p_gizmo->add_lines(lines, material);
|
||||
p_gizmo->add_lines(internal_lines, material_internal);
|
||||
|
||||
if (p_gizmo->is_selected()) {
|
||||
Ref<Material> solid_material = get_material("reflection_probe_solid_material", p_gizmo);
|
||||
p_gizmo->add_solid_box(solid_material, probe->get_size());
|
||||
}
|
||||
|
||||
p_gizmo->add_handles(handles, get_material("handles"));
|
||||
}
|
||||
|
||||
|
@ -46,12 +46,9 @@ VoxelGIGizmoPlugin::VoxelGIGizmoPlugin() {
|
||||
create_material("voxel_gi_material", gizmo_color);
|
||||
|
||||
// This gizmo draws a lot of lines. Use a low opacity to make it not too intrusive.
|
||||
gizmo_color.a = 0.03;
|
||||
gizmo_color.a = 0.02;
|
||||
create_material("voxel_gi_internal_material", gizmo_color);
|
||||
|
||||
gizmo_color.a = 0.025;
|
||||
create_material("voxel_gi_solid_material", gizmo_color);
|
||||
|
||||
create_icon_material("voxel_gi_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("GizmoVoxelGI"), EditorStringName(EditorIcons)));
|
||||
create_handle_material("handles");
|
||||
}
|
||||
@ -164,11 +161,6 @@ void VoxelGIGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
|
||||
|
||||
Vector<Vector3> handles = helper->box_get_handles(probe->get_size());
|
||||
|
||||
if (p_gizmo->is_selected()) {
|
||||
Ref<Material> solid_material = get_material("voxel_gi_solid_material", p_gizmo);
|
||||
p_gizmo->add_solid_box(solid_material, aabb.get_size());
|
||||
}
|
||||
|
||||
p_gizmo->add_handles(handles, get_material("handles"));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user