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

RayTracingSubMeshFlags.Enabled

切换到手册

描述

The sub-mesh is provided as input to a RayTracingAccelerationStructure build operation.

When using this flag alone, the sub-mesh is treated as transparent. During acceleration structure traversal, the GPU can invoke an user-defined any hit shader when a ray encounters the geometry.