Skip to content

Kuesa::Qt3D::Iro2MatteAlphaProperties

Module: Kuesa Qt 3D API

Kuesa::Qt3D::Iro2MatteAlphaProperties holds the properties controlling the visual appearance of a Iro2MatteAlphaMaterial instance. More...

#include <iro2mattealphaproperties.h>

Inherits from Kuesa::Qt3D::GLTF2MaterialProperties, Qt3DCore::QNode

Public Slots

Name
void setUsesMatteMap(bool usesMatteMap)
void setMatteMap(Qt3DRender::QAbstractTexture * matteMap)
void setMatteGain(float matteGain)
void setMatteInnerFilter(const QVector3D & matteInnerFilter)
void setMatteOuterFilter(const QVector3D & matteOuterFilter)
void setUvOffset(const QVector2D & uvOffset)
void setInnerAlpha(float innerAlpha)
void setOuterAlpha(float outerAlpha)
void setAlphaGain(float alphaGain)
void setUsesNormalMap(bool usesNormalMap)
void setNormalMap(Qt3DRender::QAbstractTexture * normalMap)
void setNormalMapGain(float normalMapGain)
void setNormalScaling(const QVector3D & normalScaling)
void setNormalDisturb(const QVector2D & normalDisturb)
void setPostVertexColor(float postVertexColor)
void setPostHemiFilter(const QVector3D & postHemiFilter)
void setPostGain(float postGain)
void setGltfYUp(bool gltfYUp)

Public Signals

Name
void usesMatteMapChanged(bool )
void matteMapChanged(Qt3DRender::QAbstractTexture * )
void matteGainChanged(float )
void matteInnerFilterChanged(QVector3D )
void matteOuterFilterChanged(QVector3D )
void uvOffsetChanged(QVector2D )
void innerAlphaChanged(float )
void outerAlphaChanged(float )
void alphaGainChanged(float )
void usesNormalMapChanged(bool )
void normalMapChanged(Qt3DRender::QAbstractTexture * )
void normalMapGainChanged(float )
void normalScalingChanged(QVector3D )
void normalDisturbChanged(QVector2D )
void postVertexColorChanged(float )
void postHemiFilterChanged(QVector3D )
void postGainChanged(float )
void gltfYUpChanged(bool )

Public Functions

Name
Q_INVOKABLE Iro2MatteAlphaProperties(Qt3DCore::QNode * parent =nullptr)
~Iro2MatteAlphaProperties()
virtual Qt3DRender::QShaderData * shaderData() const override
bool usesMatteMap() const
Qt3DRender::QAbstractTexture * matteMap() const
float matteGain() const
QVector3D matteInnerFilter() const
QVector3D matteOuterFilter() const
QVector2D uvOffset() const
float innerAlpha() const
float outerAlpha() const
float alphaGain() const
bool usesNormalMap() const
Qt3DRender::QAbstractTexture * normalMap() const
float normalMapGain() const
QVector3D normalScaling() const
QVector2D normalDisturb() const
float postVertexColor() const
QVector3D postHemiFilter() const
float postGain() const
bool gltfYUp() const

Public Properties

Name
bool usesMatteMap
Qt3DRender::QAbstractTexture * matteMap
float matteGain
QVector3D matteInnerFilter
QVector3D matteOuterFilter
QVector2D uvOffset
float innerAlpha
float outerAlpha
float alphaGain
bool usesNormalMap
Qt3DRender::QAbstractTexture * normalMap
float normalMapGain
QVector3D normalScaling
QVector2D normalDisturb
float postVertexColor
QVector3D postHemiFilter
float postGain
bool gltfYUp

Additional inherited members

Public Types inherited from Kuesa::Qt3D::GLTF2MaterialProperties

Name
enum class ColorSpace { Linear, sRGB}

Public Slots inherited from Kuesa::Qt3D::GLTF2MaterialProperties

Name
void setBaseColorUsesTexCoord1(bool baseColorUsesTexCoord1)
void setBaseColorFactor(const QColor & baseColorFactor)
void setBaseColorMap(Qt3DRender::QAbstractTexture * baseColorMap)
void setAlphaCutoff(float alphaCutoff)
void setOutputColorSpace(ColorSpace colorSpace)
void setReceivesShadows(bool receivesShadows)
void setShadowMapDepthTexture(Qt3DRender::QAbstractTexture * depthTexture)
void setShadowMapCubeDepthTexture(Qt3DRender::QAbstractTexture * cubeMapDepthTexture)

Public Signals inherited from Kuesa::Qt3D::GLTF2MaterialProperties

Name
void baseColorUsesTexCoord1Changed(bool )
void baseColorFactorChanged(const QColor & baseColorFactor)
void baseColorMapChanged(Qt3DRender::QAbstractTexture * baseColorMap)
void alphaCutoffChanged(float alphaCutoff)
void receivesShadowsChanged(bool receivesShadows)
void shadowMapDepthTextureChanged(Qt3DRender::QAbstractTexture * depthTexture)
void shadowMapCubeDepthTextureChanged(Qt3DRender::QAbstractTexture * cubeMapDepthTexture)
void outputColorSpaceChanged(ColorSpace colorSpace)

Public Functions inherited from Kuesa::Qt3D::GLTF2MaterialProperties

Name
GLTF2MaterialProperties(Qt3DCore::QNode * parent =nullptr)
~GLTF2MaterialProperties()
bool isBaseColorUsingTexCoord1() const
QColor baseColorFactor() const
Qt3DRender::QAbstractTexture * baseColorMap() const
float alphaCutoff() const
ColorSpace outputColorSpace() const
void addClientMaterial(Qt3DRender::QMaterial * material)
QVector< Qt3DRender::QMaterial * > clientMaterials() const
bool receivesShadows() const
Qt3DRender::QAbstractTexture * shadowMapDepthTexture() const
Qt3DRender::QAbstractTexture * shadowMapCubeDepthTexture() const

Public Properties inherited from Kuesa::Qt3D::GLTF2MaterialProperties

Name
bool baseColorUsesTexCoord1
QColor baseColorFactor
Qt3DRender::QAbstractTexture * baseColorMap
float alphaCutoff
bool receivesShadows
ColorSpace outputColorSpace

Detailed Description

1
class Kuesa::Qt3D::Iro2MatteAlphaProperties;

Kuesa::Qt3D::Iro2MatteAlphaProperties holds the properties controlling the visual appearance of a Iro2MatteAlphaMaterial instance.

Since: Kuesa 2.0

Public Slots Documentation

slot setUsesMatteMap

1
2
3
void setUsesMatteMap(
    bool usesMatteMap
)

slot setMatteMap

1
2
3
void setMatteMap(
    Qt3DRender::QAbstractTexture * matteMap
)

slot setMatteGain

1
2
3
void setMatteGain(
    float matteGain
)

slot setMatteInnerFilter

1
2
3
void setMatteInnerFilter(
    const QVector3D & matteInnerFilter
)

slot setMatteOuterFilter

1
2
3
void setMatteOuterFilter(
    const QVector3D & matteOuterFilter
)

slot setUvOffset

1
2
3
void setUvOffset(
    const QVector2D & uvOffset
)

slot setInnerAlpha

1
2
3
void setInnerAlpha(
    float innerAlpha
)

slot setOuterAlpha

1
2
3
void setOuterAlpha(
    float outerAlpha
)

slot setAlphaGain

1
2
3
void setAlphaGain(
    float alphaGain
)

slot setUsesNormalMap

1
2
3
void setUsesNormalMap(
    bool usesNormalMap
)

slot setNormalMap

1
2
3
void setNormalMap(
    Qt3DRender::QAbstractTexture * normalMap
)

slot setNormalMapGain

1
2
3
void setNormalMapGain(
    float normalMapGain
)

slot setNormalScaling

1
2
3
void setNormalScaling(
    const QVector3D & normalScaling
)

slot setNormalDisturb

1
2
3
void setNormalDisturb(
    const QVector2D & normalDisturb
)

slot setPostVertexColor

1
2
3
void setPostVertexColor(
    float postVertexColor
)

slot setPostHemiFilter

1
2
3
void setPostHemiFilter(
    const QVector3D & postHemiFilter
)

slot setPostGain

1
2
3
void setPostGain(
    float postGain
)

slot setGltfYUp

1
2
3
void setGltfYUp(
    bool gltfYUp
)

Public Signals Documentation

signal usesMatteMapChanged

1
2
3
void usesMatteMapChanged(
    bool 
)

signal matteMapChanged

1
2
3
void matteMapChanged(
    Qt3DRender::QAbstractTexture * 
)

signal matteGainChanged

1
2
3
void matteGainChanged(
    float 
)

signal matteInnerFilterChanged

1
2
3
void matteInnerFilterChanged(
    QVector3D 
)

signal matteOuterFilterChanged

1
2
3
void matteOuterFilterChanged(
    QVector3D 
)

signal uvOffsetChanged

1
2
3
void uvOffsetChanged(
    QVector2D 
)

signal innerAlphaChanged

1
2
3
void innerAlphaChanged(
    float 
)

signal outerAlphaChanged

1
2
3
void outerAlphaChanged(
    float 
)

signal alphaGainChanged

1
2
3
void alphaGainChanged(
    float 
)

signal usesNormalMapChanged

1
2
3
void usesNormalMapChanged(
    bool 
)

signal normalMapChanged

1
2
3
void normalMapChanged(
    Qt3DRender::QAbstractTexture * 
)

signal normalMapGainChanged

1
2
3
void normalMapGainChanged(
    float 
)

signal normalScalingChanged

1
2
3
void normalScalingChanged(
    QVector3D 
)

signal normalDisturbChanged

1
2
3
void normalDisturbChanged(
    QVector2D 
)

signal postVertexColorChanged

1
2
3
void postVertexColorChanged(
    float 
)

signal postHemiFilterChanged

1
2
3
void postHemiFilterChanged(
    QVector3D 
)

signal postGainChanged

1
2
3
void postGainChanged(
    float 
)

signal gltfYUpChanged

1
2
3
void gltfYUpChanged(
    bool 
)

Public Functions Documentation

function Iro2MatteAlphaProperties

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

function ~Iro2MatteAlphaProperties

1
~Iro2MatteAlphaProperties()

function shaderData

1
virtual Qt3DRender::QShaderData * shaderData() const override

Reimplements: Kuesa::Qt3D::GLTF2MaterialProperties::shaderData

function usesMatteMap

1
bool usesMatteMap() const

function matteMap

1
Qt3DRender::QAbstractTexture * matteMap() const

function matteGain

1
float matteGain() const

function matteInnerFilter

1
QVector3D matteInnerFilter() const

function matteOuterFilter

1
QVector3D matteOuterFilter() const

function uvOffset

1
QVector2D uvOffset() const

function innerAlpha

1
float innerAlpha() const

function outerAlpha

1
float outerAlpha() const

function alphaGain

1
float alphaGain() const

function usesNormalMap

1
bool usesNormalMap() const

function normalMap

1
Qt3DRender::QAbstractTexture * normalMap() const

function normalMapGain

1
float normalMapGain() const

function normalScaling

1
QVector3D normalScaling() const

function normalDisturb

1
QVector2D normalDisturb() const

function postVertexColor

1
float postVertexColor() const

function postHemiFilter

1
QVector3D postHemiFilter() const

function postGain

1
float postGain() const

function gltfYUp

1
bool gltfYUp() const

Public Property Documentation

property usesMatteMap

1
bool usesMatteMap;

Specifies whether we use a matte map or not.

property matteMap

1
Qt3DRender::QAbstractTexture * matteMap;

property matteGain

1
float matteGain;

Specifies the gain to apply to the matte color.

property matteInnerFilter

1
QVector3D matteInnerFilter;

Specifies the inner color filter to be applied based on fresnel on the matte map lookup.

property matteOuterFilter

1
QVector3D matteOuterFilter;

Specifies the outer color filter to be applied based on fresnel on the matte map lookup.

property uvOffset

1
QVector2D uvOffset;

Applies an offset to texture lookup.

property innerAlpha

1
float innerAlpha;

Specifies the inner alpha factor to be applied.

property outerAlpha

1
float outerAlpha;

Specifies the outer alpha factor to be applied.

property alphaGain

1
float alphaGain;

Specifies the overall gain factor to apply to the alpha channel.

property usesNormalMap

1
bool usesNormalMap;

Specifies whether we use a normal map or not.

property normalMap

1
Qt3DRender::QAbstractTexture * normalMap;

property normalMapGain

1
float normalMapGain;

Specifies the strength of the normal map.

property normalScaling

1
QVector3D normalScaling;

Specifies a factor to be applied to the normal.

property normalDisturb

1
QVector2D normalDisturb;

Specifies a disturbance factor that will be added to the normal

property postVertexColor

1
float postVertexColor;

Specifies the factor which controls how much of the per vertex color we want to transmit.

property postHemiFilter

1
QVector3D postHemiFilter;

Specifies the color to be applied to the lower hemisphere. It is multiplied like a negative diffuse light coming from below.

property postGain

1
float postGain;

Specifies the gain factor to be applied to the final result.

property gltfYUp

1
bool gltfYUp;

Specifies whether this material should consider the Y and Z axis as being inverted.


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