# opaqueMaterial

> Determines whether Unity considers the material opaque.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.Rendering](/engine/6000.6/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
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.
