opaqueMaterial
Determines whether Unity considers the material opaque.
Read time 1 minuteLast updated 10 days ago
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.