文档

Unity Engine

Unity Engine

opaqueMaterials

The corresponding RayTracingSubMeshFlags value for opaque Materials.
阅读时间1 分钟最后更新于 1 个月前

Definition

public RayTracingSubMeshFlags opaqueMaterials

Remarks

To maximize ray tracing performance on the GPU, RayTracingSubMeshFlags.Enabled combined with RayTracingSubMeshFlags.ClosestHitOnly is recommended. This flags combination will ensure that any hit shaders are not invoked during acceleration structure traversal when rays hit opaque geometries.