文档

Unity Engine

Unity Engine

subMeshFlags

Flags that determine the ray-geometry intersection behavior relative to material type during ray tracing.
阅读时间1 分钟最后更新于 1 个月前

Definition

public RayTracingSubMeshFlags subMeshFlags { readonly get; set; }

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.