Documentation

Unity Engine

Unity Engine

ClosestHitOnly

Unity considers this geometry opaque. This geometry responds to ray intersections as if it does not have an any hit shader.
Read time 1 minuteLast updated 2 months ago

Definition

ClosestHitOnly = 2

Remarks

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