Skip to content

Kuesa::Serenity::MetallicRoughnessMaterial

#include <metallicroughnessmaterial.h>

Inherits from Kuesa::Serenity::GLTF2Material, Serenity::Material

Public Classes

Name
struct UboData

Public Functions

Name
MetallicRoughnessMaterial()
~MetallicRoughnessMaterial()
std::vector< uint8_t > uboData(uint32_t set, uint32_t binding) const

Protected Functions

Name
virtual void updateShader()

Public Attributes

Name
Property< bool > metalRoughUsesTexCoord1
Property< bool > normalUsesTexCoord1
Property< bool > aoUsesTexCoord1
Property< bool > emissiveUsesTexCoord1
Property< float > metallicFactor
Property< float > roughnessFactor
Property< float > normalScale
Property< Color > emissiveFactor
Property<::Serenity::Texture * > metalRoughMap
Property<::Serenity::Texture * > normalMap
Property<::Serenity::Texture * > ambientOcclusionMap
Property<::Serenity::Texture * > emissiveMap

Additional inherited members

Public Types inherited from Kuesa::Serenity::GLTF2Material

Name
enum BlendMode { Opaque, Blend, Mask}
enum MeshType { Skybox, Background, Regular}
using std::shared_ptr<::Serenity::AnimationCallback > CallBackPtr
using std::function< CallBackPtr(GLTF2Material *)> CallBackGenerator
using std::pair< int, CallBackGenerator > ComponentCountAndGenerator

Public Functions inherited from Kuesa::Serenity::GLTF2Material

Name
~GLTF2Material()
virtual std::optional< ComponentCountAndGenerator > callBackAndComponentCountForPropertyName(const String & propertyName)
const MeshType meshType() const

Protected Functions inherited from Kuesa::Serenity::GLTF2Material

Name
GLTF2Material()

Public Attributes inherited from Kuesa::Serenity::GLTF2Material

Name
Property< bool > hasNormalAttribute
Property< bool > hasTangentAttribute
Property< bool > hasTexCoordAttribute
Property< bool > hasTexCoord1Attribute
Property< bool > hasColorAttribute
Property< bool > baseColorUsesTexCoord1
Property< Color > baseColorFactor
Property<::Serenity::Texture * > baseColorMap
Property< BlendMode > blendMode
Property< float > alphaCutOff

Protected Attributes inherited from Kuesa::Serenity::GLTF2Material

Name
MeshType m_meshType

Public Functions Documentation

function MetallicRoughnessMaterial

1
MetallicRoughnessMaterial()

function ~MetallicRoughnessMaterial

1
~MetallicRoughnessMaterial()

function uboData

1
2
3
4
std::vector< uint8_t > uboData(
    uint32_t set,
    uint32_t binding
) const

Protected Functions Documentation

function updateShader

1
virtual void updateShader()

Public Attributes Documentation

variable metalRoughUsesTexCoord1

1
Property< bool > metalRoughUsesTexCoord1 { false };

variable normalUsesTexCoord1

1
Property< bool > normalUsesTexCoord1 { false };

variable aoUsesTexCoord1

1
Property< bool > aoUsesTexCoord1 { false };

variable emissiveUsesTexCoord1

1
Property< bool > emissiveUsesTexCoord1 { false };

variable metallicFactor

1
Property< float > metallicFactor { 0.0f };

variable roughnessFactor

1
Property< float > roughnessFactor { 0.0f };

variable normalScale

1
Property< float > normalScale { 1.0f };

variable emissiveFactor

1
Property< Color > emissiveFactor { { 0.0f, 0.0f, 0.0f, 0.0f } };

variable metalRoughMap

1
Property<::Serenity::Texture * > metalRoughMap { nullptr };

variable normalMap

1
Property<::Serenity::Texture * > normalMap { nullptr };

variable ambientOcclusionMap

1
Property<::Serenity::Texture * > ambientOcclusionMap { nullptr };

variable emissiveMap

1
Property<::Serenity::Texture * > emissiveMap { nullptr };

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