文档

Unity Engine

Unity Engine

mask

The mask used by ray tracing instances.
阅读时间1 分钟最后更新于 1 个月前

Definition

public uint mask { readonly get; set; }

Remarks

During acceleration structure traversal, the GPU accepts or rejects geometry based on the ray tracing instance mask and InstanceInclusionMask specified when you call the
TraceRay
HLSL function, or when you execute ray queries while calling the
TraceRayInline
HLSL function.