Material.hh
Go to the documentation of this file.
47 SHADE_MODE_BEGIN = 0,
50 FLAT = 0,
53 GOURAUD = 1,
56 PHONG = 2,
59 BLINN = 3,
65 };
74 BLEND_MODE_BEGIN = 0,
77 ADD = 0,
80 MODULATE = 1,
83 REPLACE = 2,
89 };
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
Microsoft Visual Studio does not automatically export the interface information for member variables ...
Definition: SuppressWarning.hh:64
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: SuppressWarning.hh:67
void SetTextureImage(const std::string &_tex)
Set a texture image.
void SetShade(ShadeMode _b)
Set the shading mode param[in] the shading mode.
void SetAmbient(const math::Color &_clr)
Set the ambient color.
friend std::ostream & operator<<(std::ostream &_out, const Material &_m)
Stream insertion operator param[in] _out the output stream to extract from param[out] _m the material...
Definition: Material.hh:267
void SetTextureImage(const std::string &_tex, const std::string &_resourcePath)
Set a texture image.
void SetTransparency(double _t)
Set the transparency percentage (0..1)
void SetRenderOrder(float _renderOrder)
Set the render order. The higher value will be rendered on top of the other coplanar polygons.
void SetDiffuse(const math::Color &_clr)
Set the diffuse color.
double Transparency() const
Get the transparency percentage (0..1) A value of 1 is fully transparent and 0 is not transparent.
void SetAlphaFromTexture(bool _enabled, double _alpha=0.5, bool _twoSided=true)
Set the material to use the alpha channel from the textures.
void SetPbrMaterial(const Pbr &_pbr)
Set the Physically Based Rendering (PBR) material.
bool TwoSidedEnabled() const
Get the enable two sided rendering.
Pbr * PbrMaterial() const
Get the Physically Based Rendering (PBR) material.
void SetEmissive(const math::Color &_clr)
Set the emissive color.
void BlendFactors(double &_srcFactor, double &_dstFactor) const
Get the blend factors.
void SetSpecular(const math::Color &_clr)
Set the specular color.
Material(const math::Color &_clr)
Create a material with a default color.
bool TextureAlphaEnabled() const
Get the enable alpha from textures.
void SetBlendFactors(double _srcFactor, double _dstFactor)
Set the blend factors. Will be interpreted as: (texture * _srcFactor) + (scene_pixel * _dstFactor)
This class contains Physically-Based-Rendering (PBR) workflow properties.
Definition: Pbr.hh:56
Forward declarations for the common classes.