OccluderShapeSphere

    Spherical occlusion primitive for use with the Occluder node.

    OccluderShapes are resources used by nodes, allowing geometric occlusion culling.

    This shape can include multiple spheres. These can be created and deleted either in the Editor inspector or by calling . The sphere positions can be set by dragging the handle in the Editor viewport. The radius can be set with the smaller handle.

    The sphere data can be accessed as an array of s. The position of each sphere is stored in the , and the radius is stored in the value of the plane.

    • void set_sphere_position ( index, Vector3 position )

    • void set_sphere_radius ( index, float radius )

    Sets an individual sphere’s radius.