Class ArrayOccluder3D
3D polygon shape for use with occlusion culling in OccluderInstance3D.
- Inheritance
-
ArrayOccluder3D
Remarks
ArrayOccluder3D stores an arbitrary 3D polygon shape that can be used by the engine's occlusion culling system. This is analogous to ArrayMesh, but for occluders.
See OccluderInstance3D's documentation for instructions on setting up occlusion culling.
See Also
Properties
indices
The occluder's index position. Indices determine which points from the vertices array should be drawn, and in which order.
Note: The occluder is always updated after setting this value. If creating occluders procedurally, consider using ArrayOccluder3D.set_arrays instead to avoid updating the occluder twice when it's created.
var indices : PackedInt32Array = PackedInt32Array()
Property Value
Remarks
- void set_indices(PackedInt32Array value)
- PackedInt32Array get_indices
vertices
The occluder's vertex positions in local 3D coordinates.
Note: The occluder is always updated after setting this value. If creating occluders procedurally, consider using ArrayOccluder3D.set_arrays instead to avoid updating the occluder twice when it's created.
var vertices : PackedVector3Array = PackedVector3Array()
Property Value
Remarks
- void set_vertices(PackedVector3Array value)
- PackedVector3Array get_vertices
Methods
set_arrays(PackedVector3Array, PackedInt32Array)
void set_arrays(PackedVector3Array vertices, PackedInt32Array indices)
Parameters
vertices
PackedVector3Arrayindices
PackedInt32Array