Files
2026-04-29 07:19:21 +03:00

30 lines
728 B
QML

// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQuick3D
Effect {
property TextureInput maskTexture: TextureInput {
texture: Texture {
source: "qrc:/qtquick3deffects/maps/white.png"
tilingModeHorizontal: Texture.Repeat
tilingModeVertical: Texture.Repeat
}
}
property real aberrationAmount: 50
property real focusDepth: 600
Shader {
id: chromaticAberration
stage: Shader.Fragment
shader: "qrc:/qtquick3deffects/shaders/chromaticaberration.frag"
}
passes: [
Pass {
shaders: [ chromaticAberration ]
}
]
}