summaryrefslogtreecommitdiffstats
path: root/src/graphs3d/qml/resources/SplineMaterial.qml
blob: ef7cd183762da15071423fd3c136c43c6f86ea4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick3D
import QtQuick

CustomMaterial {
    property TextureInput controlPoints: TextureInput {}
    property int points

    property real tension
    property real knotting
    property bool loop
    property color color

    shadingMode: CustomMaterial.Shaded

    vertexShader: "qrc:/shaders/splinevert"
    fragmentShader: "qrc:/shaders/splinefrag"
}