# Opacity Mask is broken in some Masked materials in 5.8

**URL:** <https://forums.unrealengine.com/t/opacity-mask-is-broken-in-some-masked-materials-in-5-8/2854782>\
**Category:** Issues and Bug Reporting (Unreal Engine)\
**Tags:** opacity-mask, unreal-engine, mask, masked, UE5\
**Created:** [November 12, 2026, 9:19pm UTC](https://forums.unrealengine.com/t/opacity-mask-is-broken-in-some-masked-materials-in-5-8/2854782 "2026-11-12T21:19:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lyaflora](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lyaflora](https://forums.unrealengine.com/u/lyaflora)\
**Post date:** [November 12, 2026, 9:19pm UTC](https://forums.unrealengine.com/t/opacity-mask-is-broken-in-some-masked-materials-in-5-8/2854782/1 "2026-11-12T21:19:32Z")

</div>

### Summary

Some materials ignore Opacity Mask in Masked Blend Mode. For example a material copied from an engine built-in material (DefaultSpriteMaterial, the default material for Niagara Sprite Renderer).

### What Type of Bug are you experiencing?

Rendering (Graphics / Niagara)

### Steps to Reproduce

1. Create a blank project in UE 5.8 (I tested it in 5.8.3 and 5.8.4)
2. Make a copy of the engine material “DefaultSpriteMaterial” (found under Engine/Niagara/DefaultAssets)
3. Set the Blend Mode of the copied material to Masked
4. Set Opacity Mask value to 0

### Expected Result

Preview mesh should be completely invisible

### Observed Result

Preview mesh is fully visible, as if Opacity Mask value were 1.

### Affects Versions

5.8

### Platform(s)

Windows

### Upload an image

 ![MaskedMaterialOpacityBug_5_8.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/c/61c7fd82a2ddd53b052371c7ac1e582dc6cafb98.png)

### Video

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/e/cbe07870000d3f93b89103a324b559421917358a.jpeg "Unreal Engine 5.8.4 – Masked material opacity bug") ](https://www.youtube.com/watch?v=Fc4WtmhzLSE)

### Additional Notes

I found this thread that might be related to this issue:

> [@\[UE5.8.1\] Older materials ignore Opacity Mask and AO when using substrate](https://forums.unrealengine.com/t/ue5-8-1-older-materials-ignore-opacity-mask-and-ao-when-using-substrate/2769761):
>
> Summary On older materials, Blend Mode of Masked doesn’t work. And there is no setting that you can turn on or off to make it work ever. That material file is now useless. I have no idea what the cause is or when this happened. If you create a new material from scratch, it works. What Type of Bug are you experiencing? Rendering (Graphics / Niagara) Steps to Reproduce Not sure what the steps would be. Best guess is to create a material with a single texture to color in an older version of UE. …

I tried the C++ function written in this thread. While it didn’t fix the problem, I made some interesting observations: the flag “bCanMaskedBeAssumedOpaque” is present and set to true in the faulty material, and if I open the HLSL code of the material, the value of PixelMaterialInputs.OpacityMask is 1.0f (in 4 occurrences within the HLSL code), even though I set it to 0.0f. If I run the fixing function in the above mentioned thread, bCanMaskedBeAssumedOpaque is set to false and the HLSL OpacityMask value becomes correct, but only until I modify anything and click Apply again – then the bCanMaskedBeAssumedOpaque flag gets reset to true and the HLSL OpacityMask value becomes incorrect agian. Even when the HLSL code was right, the preview of the material still hasn’t changed.

Creating an instance of the faulty material, and setting the Blend Mode to Masked solves the problem within the material instance, while the parent material remains faulty.

I also tried playing with Substrate material settings in Project Settings (turning it completely off, changing GBuffer Format, etc.), but no combination seemed to yield results.
