Grow culling spheres with enlarged objects

This commit is contained in:
eltanschauung authored and GitHub committed 2026-10-06 01:29:48 -04:00
1 parent 201874d783
commit 77efb01b00
1 file changed
+4
+4
View File
@@ -529,6 +529,10 @@ __inline void object_get_render_bounding_sphere(
*center = object->object.bounding_sphere_center;
*radius = object_definition_get(object->definition_index)->object.render_bounding_radius;
/* Growing an object must grow its culling sphere. Preserve the existing
* conservative sphere for scales at or below one. */
if (object->object.scale > 1.0f)
*radius *= object->object.scale;
return;
}