mirror of
https://github.com/godotengine/godot.git
synced 2025-01-24 21:01:50 +08:00
Fix ReflectionProbe AABB
This commit is contained in:
parent
0eadbdb5d0
commit
11225de197
@ -165,13 +165,6 @@ void ReflectionProbeGizmoPlugin::redraw(EditorNode3DGizmo *p_gizmo) {
|
||||
aabb.position = -size / 2;
|
||||
aabb.size = size;
|
||||
|
||||
for (int i = 0; i < 12; i++) {
|
||||
Vector3 a, b;
|
||||
aabb.get_edge(i, a, b);
|
||||
lines.push_back(a);
|
||||
lines.push_back(b);
|
||||
}
|
||||
|
||||
for (int i = 0; i < 8; i++) {
|
||||
Vector3 ep = aabb.get_endpoint(i);
|
||||
internal_lines.push_back(probe->get_origin_offset());
|
||||
|
@ -185,8 +185,8 @@ ReflectionProbe::UpdateMode ReflectionProbe::get_update_mode() const {
|
||||
|
||||
AABB ReflectionProbe::get_aabb() const {
|
||||
AABB aabb;
|
||||
aabb.position = -origin_offset;
|
||||
aabb.size = origin_offset + size / 2;
|
||||
aabb.position = -size / 2;
|
||||
aabb.size = size;
|
||||
return aabb;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user