Color 4 definition class.
Represents specular material properties.
void setBaseColorTextureMaskedTransparencyThreshold(float maskedTransparencyThreshold)
Set base color texture masked transparency threshold.
void setBaseColorTexture(Texture *baseColorTexture)
Set up a base color texture by the texture itself.
bool hasBaseColorTexture() const
bool hasMetallicRoughnessTexture() const
Texture * getMetallicRoughnessTexture() const
string normalTexturePathName
const string & getMetallicRoughnessTextureFileName() const
const string & getBaseColorTexturePathName() const
PBRMaterialProperties()
Public constructor.
Texture * baseColorTexture
float getExposure() const
const string & getEmissiveTexturePathName() const
bool hasEmissiveTexture() const
float baseColorTextureMaskedTransparencyThreshold
Texture * getEmissiveTexture() const
float getNormalScale() const
const Color4 & getBaseColorFactor() const
void setBaseColorTextureTransparency(bool transparency)
Set if base color texture uses transparency.
void setEmissiveTexture(Texture *emissiveTexture)
Set up a emissive texture by the texture itself.
void setRoughnessFactor(float roughnessFactor)
Set roughness factor.
string emissiveTextureFileName
void setBaseColorFactor(const Color4 &baseColorFactor)
Set base color factor.
const string & getEmissiveTextureFileName() const
const string & getMetallicRoughnessTexturePathName() const
string emissiveTexturePathName
void setExposure(float exposure)
Set exposure.
Texture * metallicRoughnessTexture
void setNormalScale(float normalScale)
Set normal scale.
string baseColorTextureFileName
const Color4 & getEmissiveFactor() const
~PBRMaterialProperties()
Destructor.
string metallicRoughnessTexturePathName
bool baseColorTextureTransparency
void setMetallicRoughnessTexture(Texture *metallicRoughnessTexture)
Set up a metallic roughness texture by the texture itself.
void setBaseColorTextureMaskedTransparency(bool maskedTransparency)
Set if base color texture uses masked transparency(means pixel are eighter opaque or not visible)
void setEmissiveFactor(const Color4 &emissiveFactor)
Set emissive factor.
bool baseColorTextureMaskedTransparency
Texture * emissiveTexture
string normalTextureFileName
bool hasBaseColorTextureTransparency() const
string metallicRoughnessTextureFileName
float getMetallicFactor() const
float getBaseColorTextureMaskedTransparencyThreshold() const
Texture * getBaseColorTexture() const
const string & getNormalTexturePathName() const
const string & getBaseColorTextureFileName() const
void setNormalTexture(Texture *normalTexture)
Set up a normal texture by the texture itself.
bool hasNormalTexture() const
Texture * getNormalTexture() const
string baseColorTexturePathName
void setMetallicFactor(float metallicFactor)
Set metallic factor.
bool hasBaseColorTextureMaskedTransparency() const
const string & getNormalTextureFileName() const
float getRoughnessFactor() const
void checkBaseColorTextureTransparency()
Checks and set ups base color texture transparency.
#define FORBID_CLASS_COPY(CLASS)