ArrayOccluder3D

继承: 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.

属性

方法

voidset_arrays ( vertices: PackedVector3Array, indices: PackedInt32Array )

属性说明

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.

Note: The returned array is copied and any changes to it will not update the original property value. See PackedInt32Array for more details.


PackedVector3Array vertices = 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.

Note: The returned array is copied and any changes to it will not update the original property value. See PackedVector3Array for more details.


方法说明

void set_arrays ( vertices: PackedVector3Array, indices: PackedInt32Array )

Sets indices and vertices, while updating the final occluder only once after both values are set.

1

本方法通常需要用户覆盖才能生效。

2

本方法无副作用,不会修改该实例的任何成员变量。

3

本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。

4

本方法用于构造某个类型。

5

调用本方法无需实例,可直接使用类名进行调用。

6

本方法描述的是使用本类型作为左操作数的有效运算符。

7

这个值是由下列位标志构成位掩码的整数。

8

无返回值。