Experimental: this API is experimental and might be changed or removed in the future.

RayTracingMode.DynamicGeometryManualUpdate

Description

Use this mode when the associated geometry or transformation can change. Call RayTracingAccelerationStructure.UpdateInstanceGeometry to mark the geometry as dirty.

If you add a ray tracing instance that uses this mode to a RayTracingAccelerationStructure and its geometry is dirty, Unity updates the associated geometry acceleration structure (BLAS) when RayTracingAccelerationStructure.Build or CommandBuffer.BuildRayTracingAccelerationStructure is invoked. After invoking one of these functions, the geometry isn't considered dirty anymore.

Additional resources: RayTracingAccelerationStructure.UpdateInstanceGeometry, RayTracingAccelerationStructure.AddInstance, RayTracingAccelerationStructure.CullInstances.


Did you find this page useful? Please give it a rating: