Version: 2023.2
public bool opaqueMaterial ;

描述

Determines whether Unity considers the material opaque.

If you use ray tracing shaders, Unity disables any hit shaders for opaque materials so the GPU doesn't execute them.