ShaderInfo QML Type | Qt Quick 3D 5.14.2

Qt 5.14 | Qt Quick 3D | QML Types | ShaderInfo QML Type

Qt 5.14.2 Reference Documentation

# ShaderInfo QML Type

Defines basic information about custom shader code for CustomMaterials. More...

Import Statement: | import QtQuick3D.Materials 1.14

- List of all members, including inherited members

## Properties

- shaderKey : string
- type : string
- version : string

## Detailed Description

## Property Documentation

shaderKey : string

Specifies the options used by the shader using the combination of shader key values.

Constant | Description
--- | ---
`ShaderInfo.Diffuse` | The shader uses diffuse lighting.
`ShaderInfo.Specular` | The shader uses specular lighting.
`ShaderInfo.Cutout` | The shader uses alpha cutout.
`ShaderInfo.Refraction` | The shader uses refraction.
`ShaderInfo.Transparent` | The shader uses transparency.
`ShaderInfo.Displace` | The shader uses displacement mapping.
`ShaderInfo.Transmissive` | The shader uses transmissiveness.
`ShaderInfo.Glossy` | The shader is default glossy. This is a combination of `ShaderInfo.Diffuse` and `ShaderInfo.Specular`.

type : string

Specifies the shader code type.

version : string

Specifies the shader code version.