229 void setDiffuseTexture(
const string& pathName,
const string& fileName,
const string& transparencyPathName =
string(),
const string& transparencyFileName =
string());
Color 4 definition class.
Represents specular material properties.
string diffuseTransparencyTextureFileName
void setAmbientColor(const Color4 &ambientColor)
Set ambient color component.
bool hasDiffuseTextureTransparency() const
string normalTexturePathName
float diffuseTextureMaskedTransparencyThreshold
string diffuseTextureFileName
bool hasDiffuseTextureMaskedTransparency() const
bool hasColorTransparency() const
void checkDiffuseTextureTransparency()
Checks and set ups diffuse texture transparency.
const string & getDiffuseTexturePathName() const
float getReflection() const
void setDiffuseColor(const Color4 &diffuseColor)
Set diffuse color component.
bool diffuseTextureTransparency
string specularTexturePathName
Texture * getDiffuseTexture() const
~SpecularMaterialProperties()
Destructor.
void setDiffuseTextureTransparency(bool textureTransparency)
Set diffuse texture transparency.
void setEmissionColor(const Color4 &emissionColor)
Set emission color component.
void setDiffuseTextureMaskedTransparency(bool maskedTransparency)
Set if diffuse texture uses masked transparency(means pixel are eighter opaque or not visible)
void setDiffuseTexturePathName(const string &diffuseTexturePathName)
Set diffuse texture path name.
string specularTextureFileName
Texture * specularTexture
void setSpecularColor(const Color4 &specularColor)
Set specular color component.
const Matrix3x3 & getTextureMatrix() const
float getDiffuseTextureMaskedTransparencyThreshold() const
void setNormalTextureFileName(const string &normalTextureFileName)
Set normal texture file name.
string diffuseTexturePathName
void setNormalTexturePathName(const string &normalTexturePathName)
Set normal texture path name.
bool hasSpecularTexture() const
const Color4 & getEmissionColor() const
void setSpecularTextureFileName(const string &specularTextureFileName)
Set specular texture file name.
void setDiffuseTextureMaskedTransparencyThreshold(float maskedTransparencyThreshold)
Set diffuse texture masked transparency threshold.
const Color4 & getDiffuseColor() const
bool hasTextureTransparency() const
void setDiffuseTextureFileName(const string &diffuseTextureFileName)
Set diffuse texture file name.
void setSpecularTexture(Texture *specularTexture)
Set up a specular texture by the texture itself.
bool hasDiffuseTexture() const
string normalTextureFileName
void setDiffuseTexture(Texture *diffuseTexture)
Set up a diffuse texture by the texture itself.
Texture * getSpecularTexture() const
const string & getDiffuseTransparencyTexturePathName() const
const string & getSpecularTexturePathName() const
const string & getNormalTexturePathName() const
bool diffuseTextureMaskedTransparency
void setNormalTexture(Texture *normalTexture)
Set up a normal texture by the texture itself.
bool hasNormalTexture() const
string diffuseTransparencyTexturePathName
void setSpecularTexturePathName(const string &specularTexturePathName)
Set specular texture path name.
Texture * getNormalTexture() const
const string & getSpecularTextureFileName() const
void setTextureAtlasSize(int32_t textureAtlasSize)
Set texture atlas size.
float getShininess() const
const Color4 & getSpecularColor() const
SpecularMaterialProperties()
Public constructor.
const string & getDiffuseTransparencyTextureFileName() const
const Color4 & getAmbientColor() const
void setReflection(float reflection)
Set up material reflection.
void setTextureMatrix(const Matrix3x3 &textureMatrix)
Set texture matrix.
const string & getNormalTextureFileName() const
bool getDiffuseTextureTransparency()
const string & getDiffuseTextureFileName() const
int32_t getTextureAtlasSize() const
void setShininess(float shininess)
Set up material shininess.
Matrix3x3 class representing matrix3x3 mathematical structure and operations for 2d space.
#define FORBID_CLASS_COPY(CLASS)