RDAccelerationStructureInstance
Experimental: This class may be changed or removed in future versions.
Inherits: RefCounted < Object
Acceleration structure instance (used by RenderingDevice).
Description
RDAccelerationStructureInstance describes an instance of a Bottom-Level Acceleration Structure (BLAS) used in the RenderingDevice.tlas_build() method.
Properties
|
||
BitField[AccelerationStructureInstanceFlagBits] |
|
|
|
||
|
||
|
||
|
Property Descriptions
The BLAS referenced by this instance. If null, the instance is treated as a placeholder but still contributes to gl_InstanceIndex in GLSL.
BitField[AccelerationStructureInstanceFlagBits] flags = 0 🔗
void set_flags(value: BitField[AccelerationStructureInstanceFlagBits])
BitField[AccelerationStructureInstanceFlagBits] get_flags()
Flags for the instance.
Hit shader binding table range used for this instance, allocated using the RenderingDevice.hit_sbt_range_alloc() method.
Custom instance ID that can be accessed in GLSL using gl_InstanceCustomIndexEXT.
Visibility mask used to control which rays can intersect this instance.
Transform3D transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) 🔗
void set_transform(value: Transform3D)
Transform3D get_transform()
Transform applied to the referenced BLAS for this instance.