Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::Import::MaterialData Struct Reference

#include <MeshImporter.h>

Public Types

using SpecularGlossiness = vec2< F32 >
 

Public Member Functions

bool serialize (ByteBuffer &dataOut) const
 
bool deserialize (ByteBuffer &dataIn)
 
 PROPERTY_RW (bool, ignoreTexDiffuseAlpha, false)
 
 PROPERTY_RW (bool, doubleSided, true)
 
 PROPERTY_RW (Str< 128 >, name)
 
 PROPERTY_RW (ShadingMode, shadingMode, ShadingMode::FLAT)
 
 PROPERTY_RW (BumpMethod, bumpMethod, BumpMethod::NONE)
 
 PROPERTY_RW (FColour4, baseColour, DefaultColours::WHITE)
 
 PROPERTY_RW (FColour3, emissive, DefaultColours::BLACK)
 
 PROPERTY_RW (FColour3, ambient, DefaultColours::BLACK)
 
 PROPERTY_RW (FColour4, specular, DefaultColours::BLACK)
 
 PROPERTY_RW (SpecularGlossiness, specGloss)
 
 PROPERTY_RW (F32, metallic, 0.0f)
 
 PROPERTY_RW (F32, roughness, 1.0f)
 
 PROPERTY_RW (F32, parallaxFactor, 1.0f)
 

Public Attributes

std::array< TextureEntry, to_base(TextureSlot::COUNT)> _textures
 

Detailed Description

Definition at line 89 of file MeshImporter.h.

Member Typedef Documentation

◆ SpecularGlossiness

Member Function Documentation

◆ deserialize()

bool Divide::Import::MaterialData::deserialize ( ByteBuffer dataIn)

Definition at line 242 of file MeshImporter.cpp.

◆ PROPERTY_RW() [1/13]

Divide::Import::MaterialData::PROPERTY_RW ( bool  ,
doubleSided  ,
true   
)

◆ PROPERTY_RW() [2/13]

Divide::Import::MaterialData::PROPERTY_RW ( bool  ,
ignoreTexDiffuseAlpha  ,
false   
)

◆ PROPERTY_RW() [3/13]

Divide::Import::MaterialData::PROPERTY_RW ( BumpMethod  ,
bumpMethod  ,
BumpMethod::NONE   
)

◆ PROPERTY_RW() [4/13]

Divide::Import::MaterialData::PROPERTY_RW ( F32  ,
metallic  ,
0.  0f 
)

◆ PROPERTY_RW() [5/13]

Divide::Import::MaterialData::PROPERTY_RW ( F32  ,
parallaxFactor  ,
1.  0f 
)

◆ PROPERTY_RW() [6/13]

Divide::Import::MaterialData::PROPERTY_RW ( F32  ,
roughness  ,
1.  0f 
)

◆ PROPERTY_RW() [7/13]

Divide::Import::MaterialData::PROPERTY_RW ( FColour3  ,
ambient  ,
DefaultColours::BLACK   
)

◆ PROPERTY_RW() [8/13]

Divide::Import::MaterialData::PROPERTY_RW ( FColour3  ,
emissive  ,
DefaultColours::BLACK   
)

◆ PROPERTY_RW() [9/13]

Divide::Import::MaterialData::PROPERTY_RW ( FColour4  ,
baseColour  ,
DefaultColours::WHITE   
)

◆ PROPERTY_RW() [10/13]

Divide::Import::MaterialData::PROPERTY_RW ( FColour4  ,
specular  ,
DefaultColours::BLACK   
)

◆ PROPERTY_RW() [11/13]

Divide::Import::MaterialData::PROPERTY_RW ( ShadingMode  ,
shadingMode  ,
ShadingMode::FLAT   
)

◆ PROPERTY_RW() [12/13]

Divide::Import::MaterialData::PROPERTY_RW ( SpecularGlossiness  ,
specGloss   
)

◆ PROPERTY_RW() [13/13]

Divide::Import::MaterialData::PROPERTY_RW ( Str< 128 >  ,
name   
)

◆ serialize()

bool Divide::Import::MaterialData::serialize ( ByteBuffer dataOut) const

Definition at line 215 of file MeshImporter.cpp.

Member Data Documentation

◆ _textures

std::array<TextureEntry, to_base(TextureSlot::COUNT)> Divide::Import::MaterialData::_textures

Definition at line 109 of file MeshImporter.h.


The documentation for this struct was generated from the following files: