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

RayTracingSubMeshFlags.ClosestHitOnly

切换到手册

描述

When rays encounter this geometry, the geometry acts as though no any hit shader is present. The geometry is considered opaque.

It is recommended that apps use this flag liberally, as it can enable important ray-processing optimizations.