Pbr.hh
Go to the documentation of this file.
This class contains Physically-Based-Rendering (PBR) workflow properties.
Definition: Pbr.hh:56
bool operator==(const Pbr &_pbr) const
Return true if both Pbr objects contain the same values.
double Metalness() const
Get the metalness value of the material for metal workflow.
std::string RoughnessMap() const
Get the roughness map filename for metal workflow. This will be an empty string if a roughness map ha...
std::string MetalnessMap() const
Get the metalness map filename for metal workflow. This will be an empty string if a metalness map ha...
void SetAlbedoMap(const std::string &_map)
Set the albedo map filename.
std::string NormalMap() const
Get the normal map filename. This will be an empty string if a normal map has not been set.
void SetRoughnessMap(const std::string &_map)
Set the roughness map filename for metal workflow.
void SetSpecularMap(const std::string &_map)
Set the specular map filename for specular workflow.
void SetMetalness(double _value)
Set the metalness value of the material for metal workflow.
std::string SpecularMap() const
Get the specular map filename for specular workflow. This will be an empty string if a specular map h...
std::string GlossinessMap() const
Get the glossiness map filename for specular workflow. This will be an empty string if a glossiness m...
double Roughness() const
Get the roughness value of the material for metal workflow.
NormalMapSpace NormalMapType() const
Get the normal map type, either tangent or object space.
void SetGlossinessMap(const std::string &_map)
Set the glossiness map filename for specular workflow.
double Glossiness() const
Get the glossiness value of the material for specular workflow.
void SetEmissiveMap(const std::string &_map)
Set the emissive map filename.
void SetRoughness(double _value)
Set the roughness value of the material for metal workflow.
void SetGlossiness(double _value)
Set the glossiness value of the material for specular workflow.
void SetMetalnessMap(const std::string &_map)
Set the metalness map filename for metal workflow.
std::string AlbedoMap() const
Get the albedo map filename. This will be an empty string if an albedo map has not been set.
void SetLightMap(const std::string &_map, unsigned int _uvSet=0u)
Set the light map filename.
std::string AmbientOcclusionMap() const
Get the ambient occlusion map filename. This will be an empty string if an ambient occlusion map has ...
std::string EnvironmentMap() const
Get the environment map filename. This will be an empty string if an environment map has not been set...
unsigned int LightMapTexCoordSet() const
Get the light map texture coordinate set.
void SetAmbientOcclusionMap(const std::string &_map)
Set the ambient occlusion map filename.
std::string EmissiveMap() const
Get the emissive map filename. This will be an empty string if an emissive map has not been set.
std::string LightMap() const
Get the light map filename. This will be an empty string if an light map has not been set.
bool operator!=(const Pbr &_pbr) const
Return true this Pbr object does not contain the same values as the passed in parameter.
void SetNormalMap(const std::string &_map, NormalMapSpace _space=NormalMapSpace::TANGENT)
Set the normal map filename.
void SetEnvironmentMap(const std::string &_map)
Set the environment map filename.
NormalMapSpace
Space the normal map is defined in.
Definition: Pbr.hh:45
Forward declarations for the common classes.