<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 27.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalFX",
  "identifier" : "/documentation/MetalFX/MTLFXTemporalScalerBase/reactiveMaskTexture",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MetalFX"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLFXTemporalScalerBase(py)reactiveMaskTexture"
  },
  "title" : "reactiveMaskTexture"
}
-->

# reactiveMaskTexture

A reactive-mask texture input you set for a temporal scaler that supports the
correct usage options.

```
var reactiveMaskTexture: (any MTLTexture)? { get set }
```

## Discussion

This texture helps when objects move quickly in a scene with inaccurate motion information,
such as when they involve alpha blending.
In these situations, you can get better results by guiding MetalFX whether to
favor the current frame on a per-pixel basis with a reactive mask texture.
Each pixel needs to be in the range `[0.0, 1.0]`, where a value:

- Equal to `0.0` tells MetalFX to follow its normal behavior for the corresponding pixel
- Equal to `1.0` tells MetalFX to ignore temporal history for the corresponding pixel
- In the range `(0.0, 1.0)` proportionally blends the effect for the corresponding pixel

The <doc://com.apple.documentation/documentation/Metal/MTLTexture/usage>
property of the texture you set to this property needs to be the same as, or a
superset of, the temporal scaling effect’s
[`reactiveTextureUsage`](/documentation/MetalFX/MTLFXTemporalScalerBase/reactiveTextureUsage) property.

---

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)