Issue with masked materials (Forward rendering + MSAA)

I’m having issues with a masked materials on forward shading and MSAA. All masked materials become translucent. I have no problem with MSAA and deferred rendering.

With MSAA:

127361-msaa.png

With TAA:

127362-taa.png

You can reproduce it in Material_Properties map (Content Example).

Hey amasnyi,

Thanks for the clear and precise repro steps. I was able to confirm what you are reporting and have gone ahead and entered a bug report for the issue. You can track the report following the link below on our public issues tracker.

UE-42316

Once the issue has been addressed by our engineers the ticket will be updated and reflected in the public tracker. Let me know if you have further questions or need additional assistance.

Cheers,

This is how AlphaToCoverage works. Your opacity mask becomes an MSAA coverage value, which allows anti-aliasing of the mask.

To get a result closer to the deferred renderer, you can make your OpacityMask input into a steeper gradient. For example if you have an OpacityMaskClipValue of .33, you can do a Mul with 5 and then Subtract (.33 * 5). This will make the OpacityMask gradient steeper, pushing the translucent bands closer together, but keeping the value .33 in the same spot.

In your picture, the side of the material has artifact lines due to MSAA. Do you know how to work around that?