Version: 2022.2
Experimental: this API is experimental and might be changed or removed in the future.

RayTracingInstanceCullingFlags.EnableSphereCulling

切换到手册

描述

Causes RayTracingAccelerationStructure.CullInstances to perform sphere culling.

The sphere is defined by RayTracingInstanceCullingConfig.sphereCenter and RayTracingInstanceCullingConfig.sphereRadius values.

A Renderer in the Scene is accepted to the acceleration structure if its AABB lies completely or partially inside the sphere.