Documentation

Unity Engine

Unity Engine

opaqueMaterial

Determines whether Unity considers the material opaque.
Read time 1 minuteLast updated a month ago

Definition

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.