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

import QtQuick3D
import QtQuick

CustomMaterial {
    property color gridColor: 'black'
    property TextureInput height: TextureInput {}

    property vector2d vertices
    property vector2d range
    property real graphHeight
    property bool fill: false

    vertexShader: "qrc:/shaders/surfaceGridvert"
    fragmentShader: "qrc:/shaders/surfaceGridfrag"
}