Kuesa Runtime

UnlitMaterial Class

class Kuesa::UnlitMaterial

Kuesa::UnlitMaterial is a simple material without shading. It implements the KHR_materials_unlit extension from glTF 2.0. More...

Header: #include <Kuesa/UnlitMaterial>
Since: Kuesa 1.1
Instantiated By: UnlitMaterial
Inherits: Kuesa::GLTF2Material

This class was introduced in Kuesa 1.1.

Properties

Public Functions

Kuesa::UnlitProperties *materialProperties() const
void setMaterialProperties(Kuesa::UnlitProperties *materialProperties)

Signals

void materialPropertiesChanged(Kuesa::UnlitProperties *properties)

Detailed Description

It is configured through the set of properties held on the UnlitProperties instance it can receive.

Note: Kuesa::UnlitMaterial is implemented using a custom shader graph. Some changes in the properties will activate or deactivate some nodes of the shader graph and will trigger a recompilation of the shader. It is recommended to create the variations of the material that you need once up front at application initialisation time.

See also Kuesa::UnlitProperties.

Property Documentation

materialProperties : Kuesa::UnlitProperties*

The properties defining the appearance of the material.

This property was introduced in Qt 1.2.

Access functions:

Kuesa::UnlitProperties *materialProperties() const
void setMaterialProperties(Kuesa::UnlitProperties *materialProperties)

Notifier signal:

void materialPropertiesChanged(Kuesa::UnlitProperties *properties)