文档

Unity Engine

Unity Engine

opaqueMaterial

Determines whether Unity considers the material opaque.
阅读时间1 分钟最后更新于 1 个月前

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.