<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/UnlitMaterial/opacityThreshold",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation13UnlitMaterialV16opacityThresholdSfSgvp"
  },
  "title" : "opacityThreshold"
}
-->

# opacityThreshold

A threshold below which RealityKit ignores opacity.

```
var opacityThreshold: Float? { get set }
```

## Discussion

When `opacityThreshold` is set, RealityKit discards pixels with opacity values less
than the `opacityThreshold`, and renders opacity values greater than or equal to
`opacityThreshold` fully opaque.

> Note: When the `opacityThreshold` property is set, the blend mode of the
> ``doc://com.apple.RealityKit/documentation/RealityKit/UnlitMaterial/blending-swift.property`` property is ignored and the renderer
> applies the masking behavior.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)