RayTracingAccelerationStructure.UpdateInstanceGeometry

Declaration

public void UpdateInstanceGeometry(Renderer renderer);

Parameters

renderer The Renderer associated with the ray tracing instance.

Description

Marks the geometry of the ray tracing instance as dirty.


Declaration

public void UpdateInstanceGeometry(int handle);

Parameters

handle The handle associated with the ray tracing instance.

Description

Only ray tracing instances that use RayTracingMode.DynamicGeometryManualUpdate can use this function to update their geometry. The function doesn't have any effects on ray tracing instances using procedural geometries (AABBs).

To trigger an acceleration structure build on the GPU, call RayTracingAccelerationStructure.Build or CommandBuffer.BuildRayTracingAccelerationStructure. After invoking one of these functions, the geometry is not considered dirty anymore.

Additional resources: RayTracingAccelerationStructure.AddInstance, RayTracingAccelerationStructure.AddInstances.


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