ドキュメント

Unity Engine

Unity Engine

RemoveInstance

Removes a ray tracing instance associated with a Renderer from this RayTracingAccelerationStructure.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

RemoveInstance(Renderer)

Removes a ray tracing instance associated with a Renderer from this RayTracingAccelerationStructure.
public void RemoveInstance(Renderer targetRenderer)

Parameters

targetRenderer

The Renderer associated with the ray tracing instance.

RemoveInstance(int)

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

Parameters

handle

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

Remarks

Note that to build the acceleration structure on the GPU, you must call RayTracingAccelerationStructure.Build or CommandBuffer.BuildRayTracingAccelerationStructure.