文档

Unity Engine

Unity Engine

RayTracingMode

Options for updating a ray tracing instance added to a RayTracingAccelerationStructure.
阅读时间1 分钟最后更新于 1 个月前

Definition

public enum RayTracingMode

Remarks

Additional Resources: SystemInfo.supportsRayTracing.

Fields

Value

Description

DynamicGeometryUse this mode when the associated geometry or transformation can change.
DynamicGeometryManualUpdateUse this mode when the associated geometry or transformation can change. Call RayTracingAccelerationStructure.UpdateInstanceGeometry to mark the geometry as dirty.
DynamicTransformUse this mode to have ray tracing instances update the transformation. This mode does not update their geometry.
OffUse this mode to ensure the ray tracing instances are not added to a RayTracingAccelerationStructure, and that they cannot be ray traced.
StaticUse this mode to have the ray tracing instances remain static, and never update their transformation or geometry.