Shader QML Type

Container component for defining shader code used by CustomMaterials. More...

Import Statement: import QtQuick3D.Materials .

Properties

Detailed Description

Property Documentation

shader : string

Specifies the name of the shader source file.


stage : enumeration

Specifies the shader stage.

ConstantDescription
Shader.SharedThe shader can be shared among different stages
Shader.VertexThe shader is a vertex shader
Shader.FragmentThe shader is a fragment shader
Shader.GeometryThe shader is a geometry shader
Shader.ComputeThe shader is a compute shader