Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
RDAccelerationStructureGeometry
实验性: This class may be changed or removed in future versions.
继承: RefCounted < Object
加速结构几何体(由 RenderingDevice 使用)。
描述
RDAccelerationStructureGeometry 描述了一组三角形,这些三角形在 RenderingDevice.blas_create() 方法中被用作光线追踪几何体。
该几何体始终以三角形列表(triangle list)的形式存在,无论是索引还是非索引形式。不支持三角形带(Triangle strips)。
属性
BitField[AccelerationStructureGeometryFlagBits] |
|
|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
属性说明
BitField[AccelerationStructureGeometryFlagBits] flags = 0 🔗
void set_flags(value: BitField[AccelerationStructureGeometryFlagBits])
BitField[AccelerationStructureGeometryFlagBits] get_flags()
几何体的标志位。
包含顶点索引的缓冲区。如果为 null,则三角形为非索引形式。
该几何体在 index_buffer 中使用的索引数量。
index_buffer(索引缓冲区)中第一个索引的字节偏移量。
包含顶点的缓冲区。
该几何体在 vertex_buffer 中使用的顶点数量。
DataFormat vertex_format = 232 🔗
void set_vertex_format(value: DataFormat)
DataFormat get_vertex_format()
vertex_buffer(顶点缓冲区)中顶点的格式。
vertex_buffer(顶点缓冲区)中第一个顶点的字节偏移量。
vertex_buffer 中每个顶点之间的字节数。