Flip.qml 438 B

12345678910111213141516171819202122
  1. // Copyright (C) 2020 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick
  4. import QtQuick3D
  5. Effect {
  6. property bool flipHorizontally: true
  7. property bool flipVertically: true
  8. Shader {
  9. id: flip
  10. stage: Shader.Fragment
  11. shader: "qrc:/qtquick3deffects/shaders/flip.frag"
  12. }
  13. passes: [
  14. Pass {
  15. shaders: [ flip ]
  16. }
  17. ]
  18. }