# allowOpaqueMaterials

> Whether to allow Renderers that use opaque Materials.

## Definition

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

```csharp
public bool allowOpaqueMaterials
```

### Remarks

If this value is false and the Mesh used by a Renderer uses opaque Materials then the test fails. A Material is considered opaque if it's not alpha tested or transparent.

Additional Resources: [RayTracingAccelerationStructure.CullInstances](/engine/6000.0/script-reference/unityengine/rendering/raytracingaccelerationstructure/cullinstances.md).
