Skip to content

Kuesa::Qt3D::UnlitMaterial

Module: Kuesa Qt 3D API

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

#include <Kuesa/Qt3D/api/materials/unlitmaterial.h>

Inherits from Kuesa::Qt3D::GLTF2Material, Qt3DRender::QMaterial

Public Signals

Name
void materialPropertiesChanged(Kuesa::Qt3D::UnlitProperties * properties)

Public Functions

Name
UnlitMaterial(Qt3DCore::QNode * parent =nullptr)
~UnlitMaterial()
UnlitProperties * materialProperties() const
void setMaterialProperties(Kuesa::Qt3D::UnlitProperties * materialProperties)

Public Properties

Name
Kuesa::Qt3D::UnlitProperties * materialProperties

Additional inherited members

Public Slots inherited from Kuesa::Qt3D::GLTF2Material

Name
void setMorphController(Kuesa::Qt3D::MorphController * morphController)

Public Signals inherited from Kuesa::Qt3D::GLTF2Material

Name
void morphControllerChanged(Kuesa::Qt3D::MorphController * morphController)

Public Functions inherited from Kuesa::Qt3D::GLTF2Material

Name
~GLTF2Material()
MorphController * morphController() const

Protected Functions inherited from Kuesa::Qt3D::GLTF2Material

Name
GLTF2Material(Qt3DCore::QNode * parent =nullptr)
void setShadowMapDepthTexture(Qt3DRender::QAbstractTexture * depthTexture)
void setShadowMapCubeDepthTexture(Qt3DRender::QAbstractTexture * cubeDepthTexture)

Public Properties inherited from Kuesa::Qt3D::GLTF2Material

Name
Kuesa::Qt3D::MorphController * morphController

Protected Attributes inherited from Kuesa::Qt3D::GLTF2Material

Name
Qt3DRender::QParameter * m_morphControllerParameter
Qt3DRender::QParameter * m_textureTransformParameter
Qt3DRender::QParameter * m_shadowMapDepthTextureParameter
Qt3DRender::QParameter * m_shadowMapCubeDepthTextureParameter

Detailed Description

1
class Kuesa::Qt3D::UnlitMaterial;

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

See: Kuesa::Qt3D::UnlitProperties

Since: Kuesa 2.0

Note: Kuesa::Qt3D::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.

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

Public Signals Documentation

signal materialPropertiesChanged

1
2
3
void materialPropertiesChanged(
    Kuesa::Qt3D::UnlitProperties * properties
)

Public Functions Documentation

function UnlitMaterial

1
2
3
explicit UnlitMaterial(
    Qt3DCore::QNode * parent =nullptr
)

function ~UnlitMaterial

1
~UnlitMaterial()

function materialProperties

1
UnlitProperties * materialProperties() const

function setMaterialProperties

1
2
3
void setMaterialProperties(
    Kuesa::Qt3D::UnlitProperties * materialProperties
)

Public Property Documentation

property materialProperties

1
Kuesa::Qt3D::UnlitProperties * materialProperties;

The properties defining the appearance of the material.


Updated on 2022-10-18 at 11:12:52 +0200