Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UpdateInstanceGeometry

Marks the geometry of the ray tracing instance as dirty.
Read time 1 minuteLast updated 6 days ago

Definition

UpdateInstanceGeometry(Renderer)

Marks the geometry of the ray tracing instance as dirty.
public void UpdateInstanceGeometry(Renderer renderer)

Parameters

renderer

The
Renderer
associated with the ray tracing instance.

UpdateInstanceGeometry(int)

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).
public void UpdateInstanceGeometry(int handle)

Parameters

handle

The handle associated with the ray tracing instance.

Remarks

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.