File: DepthDrawTestMaterial.qml

package info (click to toggle)
qt6-quick3d 6.10.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 143,588 kB
  • sloc: cpp: 395,989; ansic: 41,469; xml: 288; sh: 242; makefile: 32
file content (17 lines) | stat: -rw-r--r-- 456 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import QtQuick
import QtQuick3D

CustomMaterial {
    property TextureInput baseColor: TextureInput {
        texture: Texture {
            source: "../shared/maps/texture_withAlpha.png"
            generateMipmaps: true
            mipFilter: Texture.Linear
        }
    }
    sourceBlend: CustomMaterial.SrcAlpha
    destinationBlend: CustomMaterial.OneMinusSrcAlpha
    cullMode: CustomMaterial.BackFaceCulling

    fragmentShader: "depthdraw.frag"
}