Version: 2023.2
public void RemoveInstance (Renderer targetRenderer);

参数

targetRenderer The Renderer associated with the ray tracing instance.

描述

Removes a ray tracing instance associated with a Renderer from this RayTracingAccelerationStructure.


public void RemoveInstance (int handle);

参数

handle The handle associated with an AABB or Mesh ray tracing instance.

描述

Removes a ray tracing instance associated with an axis-aligned bounding box (AABBs) GraphicsBuffer or a Mesh instance from this RayTracingAccelerationStructure.