Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-116829

QtQuick.Effects MultiEffect mask effect - visual regression compared to OpacityMask

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.5.2
    • None
    • macOS 13.5.1
      Qt 6.5.2
    • macOS

    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
                              }
                          }
                      }
                  }
              }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kagro Kaj Grönholm
            sergei.nevdakh Sergei Nevdakh
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes