1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- import QtQuick
- Item {
- id: rootItem
- property variant source
- property variant maskSource
- property bool cached: false
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: parent
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
- ShaderEffect {
- id: shaderItem
- property variant source: rootItem.source
- property variant maskSource: rootItem.maskSource
- anchors.fill: parent
- fragmentShader: "qrc:/qt-project.org/imports/QtQuick/Controls/Imagine/impl/shaders/OpacityMask.frag"
- }
- }
|