opaqueMaterial
Determines whether Unity considers the material opaque.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public bool opaqueMaterial { readonly get; set; }
Remarks
If you use ray tracing shaders, Unity disables any hit shaders for opaque materials so the GPU doesn't execute them.