subMeshFlags
Flags that determine how rays intersect the geometry for each sub-mesh relative to material type during ray tracing.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Field
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public RayTracingSubMeshFlags subMeshFlags
Remarks
The material type can influence the value of this flag. For example if Unity considers the material opaque, you can specify the RayTracingSubMeshFlags.Enabled and RayTracingSubMeshFlags.ClosestHitOnly flags together for maximum ray tracing performance.