Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
6.5.2
-
None
-
macOS 13.5.1
Qt 6.5.2
Description
MultiEffect mask effect looks much worse than OpacityMask
Just compare on the screenshot. OpacityMask at the left, MultiEffect at the right.
The mask source is identical, alpha of each individual pixel should be identical, but results differ a lot.
import QtQuick import QtQuick.Effects import Qt5Compat.GraphicalEffects
Row { spacing: 10 Rectangle { color: "magenta" width: 30 height: 20 layer.enabled: true layer.effect: OpacityMask { maskSource: Rectangle { width: 30 height: 20 border.width: 1 border.color: "cyan" color: "transparent" radius: 5 } } } Rectangle { color: "magenta" width: 30 height: 20 layer.enabled: true layer.effect: MultiEffect { maskEnabled: true maskSource: ShaderEffectSource { sourceItem: Rectangle { width: 30 height: 20 border.width: 1 border.color: "cyan" color: "transparent" radius: 5 } } } } }