blob: 34b88c4658bd8732e6d2abf85bd9d6e520d3c40c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// 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 ]
}
]
}
|