Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

RayTracingMode.DynamicGeometryManualUpdate

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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.