Skip to content

Kuesa::Qt3D::GLTF2Material

Module: Kuesa Qt 3D API

GLTF2Material is a subclass of Qt3DRender::QMaterial which is the base class of all GLTF2 based material subclasses. More...

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

Inherits from Qt3DRender::QMaterial

Inherited by Kuesa::Qt3D::Iro2AlphaEquiRectMaterial, Kuesa::Qt3D::Iro2AlphaSemMaterial, Kuesa::Qt3D::Iro2DiffuseEquiRectMaterial, Kuesa::Qt3D::Iro2DiffuseSemMaterial, Kuesa::Qt3D::Iro2GlassEquiRectMaterial, Kuesa::Qt3D::Iro2GlassSemMaterial, Kuesa::Qt3D::Iro2MatteAlphaMaterial, Kuesa::Qt3D::Iro2PlanarReflectionEquiRectMaterial, Kuesa::Qt3D::Iro2PlanarReflectionSemMaterial, Kuesa::Qt3D::IroDiffuseAlphaMaterial, Kuesa::Qt3D::IroDiffuseHemiMaterial, Kuesa::Qt3D::IroDiffuseMaterial, Kuesa::Qt3D::IroGlassAddMaterial, Kuesa::Qt3D::IroMatteAddMaterial, Kuesa::Qt3D::IroMatteAlphaMaterial, Kuesa::Qt3D::IroMatteBackgroundMaterial, Kuesa::Qt3D::IroMatteMultMaterial, Kuesa::Qt3D::IroMatteOpaqueMaterial, Kuesa::Qt3D::IroMatteSkyboxMaterial, Kuesa::Qt3D::MetallicRoughnessMaterial, Kuesa::Qt3D::UnlitMaterial

Public Slots

Name
void setMorphController(Kuesa::Qt3D::MorphController * morphController)
void setSRGBOutput(bool sRGBOutput)

Public Signals

Name
void morphControllerChanged(Kuesa::Qt3D::MorphController * morphController)
void sRGBOutputChanged(bool sRGBOutput)

Public Functions

Name
~GLTF2Material()
MorphController * morphController() const
bool sRGBOutput() const

Protected Functions

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

Public Properties

Name
Kuesa::Qt3D::MorphController * morphController

Protected Attributes

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

Detailed Description

1
class Kuesa::Qt3D::GLTF2Material;

GLTF2Material is a subclass of Qt3DRender::QMaterial which is the base class of all GLTF2 based material subclasses.

Since: Kuesa 2.0

We assume a GLTF2 material consists of the following base properties:

  • morphController: The MorphTarget controller used to control the weights to interpolate between different morph targers

Public Slots Documentation

slot setMorphController

1
2
3
void setMorphController(
    Kuesa::Qt3D::MorphController * morphController
)

slot setSRGBOutput

1
2
3
void setSRGBOutput(
    bool sRGBOutput
)

Public Signals Documentation

signal morphControllerChanged

1
2
3
void morphControllerChanged(
    Kuesa::Qt3D::MorphController * morphController
)

signal sRGBOutputChanged

1
2
3
void sRGBOutputChanged(
    bool sRGBOutput
)

Public Functions Documentation

function ~GLTF2Material

1
~GLTF2Material()

function morphController

1
MorphController * morphController() const

function sRGBOutput

1
bool sRGBOutput() const

Protected Functions Documentation

function GLTF2Material

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

function setShadowMapDepthTexture

1
2
3
void setShadowMapDepthTexture(
    Qt3DRender::QAbstractTexture * depthTexture
)

function setShadowMapCubeDepthTexture

1
2
3
void setShadowMapCubeDepthTexture(
    Qt3DRender::QAbstractTexture * cubeDepthTexture
)

function updateEffectSRGBOutput

1
void updateEffectSRGBOutput()

Public Property Documentation

property morphController

1
Kuesa::Qt3D::MorphController * morphController;

Since: Kuesa 2.0

The morph controller instance used to control morph targets weights. This can be null if a material is not used with morph targets.

Protected Attributes Documentation

variable m_morphControllerParameter

1
Qt3DRender::QParameter * m_morphControllerParameter;

variable m_textureTransformParameter

1
Qt3DRender::QParameter * m_textureTransformParameter;

variable m_shadowMapDepthTextureParameter

1
Qt3DRender::QParameter * m_shadowMapDepthTextureParameter;

variable m_shadowMapCubeDepthTextureParameter

1
Qt3DRender::QParameter * m_shadowMapCubeDepthTextureParameter;

variable m_sRGBOutput

1
bool m_sRGBOutput;

Updated on 2023-07-03 at 11:02:09 +0000