ClosestHitOnly
Unity considers this geometry opaque. This geometry responds to ray intersections as if it does not have an any hit shader.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Field
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
ClosestHitOnly = 2
Remarks
It is recommended that apps use this flag liberally, as it can enable important ray-processing optimizations.