ArrayOccluder3D
Inherits:Occluder3D<Resource<RefCounted<Object
3D polygon shape for use with occlusion culling inOccluderInstance3D.
Description
ArrayOccluder3D stores an arbitrary 3D polygon shape that can be used by the engine's occlusion culling system. This is analogous toArrayMesh, but for occluders.
SeeOccluderInstance3D's documentation for instructions on setting up occlusion culling.
Tutorials
Properties
| ||
|
Methods
set_arrays(vertices:PackedVector3Array, indices:PackedInt32Array) |
Property Descriptions
PackedInt32Arrayindices =PackedInt32Array()
🔗
PackedInt32Arrayget_indices()
The occluder's index position. Indices determine which points from thevertices array should be drawn, and in which order.
Note: The occluder is always updated after setting this value. If creating occluders procedurally, consider usingset_arrays() instead to avoid updating the occluder twice when it's created.
Note: The returned array iscopied and any changes to it will not update the original property value. SeePackedInt32Array for more details.
PackedVector3Arrayvertices =PackedVector3Array()
🔗
PackedVector3Arrayget_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 usingset_arrays() instead to avoid updating the occluder twice when it's created.
Note: The returned array iscopied and any changes to it will not update the original property value. SeePackedVector3Array for more details.
Method Descriptions
voidset_arrays(vertices:PackedVector3Array, indices:PackedInt32Array)🔗
Setsindices andvertices, while updating the final occluder only once after both values are set.