1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

remove solid boxes voxelGI and ReflectionProbe

This commit is contained in:
landervr
2024-12-13 16:26:22 +01:00
parent 7f5c469292
commit dd7325d3f7
2 changed files with 1 additions and 17 deletions

View File

@@ -47,9 +47,6 @@ ReflectionProbeGizmoPlugin::ReflectionProbeGizmoPlugin() {
gizmo_color.a = 0.5; gizmo_color.a = 0.5;
create_material("reflection_internal_material", gizmo_color); 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_icon_material("reflection_probe_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("GizmoReflectionProbe"), EditorStringName(EditorIcons)));
create_handle_material("handles"); create_handle_material("handles");
} }
@@ -210,11 +207,6 @@ void ReflectionProbeGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
p_gizmo->add_lines(lines, material); p_gizmo->add_lines(lines, material);
p_gizmo->add_lines(internal_lines, material_internal); 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")); p_gizmo->add_handles(handles, get_material("handles"));
} }

View File

@@ -46,12 +46,9 @@ VoxelGIGizmoPlugin::VoxelGIGizmoPlugin() {
create_material("voxel_gi_material", gizmo_color); create_material("voxel_gi_material", gizmo_color);
// This gizmo draws a lot of lines. Use a low opacity to make it not too intrusive. // 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); 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_icon_material("voxel_gi_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("GizmoVoxelGI"), EditorStringName(EditorIcons)));
create_handle_material("handles"); create_handle_material("handles");
} }
@@ -164,11 +161,6 @@ void VoxelGIGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
Vector<Vector3> handles = helper->box_get_handles(probe->get_size()); 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")); p_gizmo->add_handles(handles, get_material("handles"));
} }