opaqueMaterials
The corresponding RayTracingSubMeshFlags value for opaque Materials.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Field
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
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.
Additional Resources: RayTracingAccelerationStructure.CullInstances.