UpdateInstanceGeometry
Marks the geometry of the ray tracing instance as dirty.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
UpdateInstanceGeometry(Renderer)
Marks the geometry of the ray tracing instance as dirty.
public void UpdateInstanceGeometry(Renderer renderer)
Parameters
The associated with the ray tracing instance.
RendererUpdateInstanceGeometry(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
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.
Additional Resources: RayTracingAccelerationStructure.AddInstance, RayTracingAccelerationStructure.AddInstances.