OccluderShapeSphere

Inherits: OccluderShape < Resource < Reference < Object

Spherical occlusion primitive for use with the Occluder node.

Description

OccluderShapes are resources used by Occluder 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 set_spheres. The sphere positions can be set by dragging the handle in the Editor viewport. The radius can be set with the smaller handle.

Properties

Array

spheres

[ Plane( 0, 0, 0, 1 ) ]

Methods

void

set_sphere_position ( int index, Vector3 position )

void

set_sphere_radius ( int index, float radius )


Property Descriptions

Array spheres = [ Plane( 0, 0, 0, 1 ) ]

  • void set_spheres ( Array value )

  • Array get_spheres ( )

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


Method Descriptions

void set_sphere_position ( int index, Vector3 position )

Sets an individual sphere's position.


void set_sphere_radius ( int index, float radius )

Sets an individual sphere's radius.