Inherits: Occluder3D < Resource < RefCounted < Object
3D polygon shape for use with occlusion culling in OccluderInstance3D.
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.
| ||
|
void | set_arrays ( PackedVector3Array vertices, PackedInt32Array indices ) |
PackedInt32Array()
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 set_arrays instead to avoid updating the occluder twice when it's created.
PackedVector3Array()
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 set_arrays instead to avoid updating the occluder twice when it's created.
Sets indices and vertices, while updating the final occluder only once after both values are set.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_arrayoccluder3d.html