1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-27 15:57:02 +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

@@ -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"));
}