21#include <gz/utils/ImplPtr.hh>
24#include "sdf/config.hh"
30 inline namespace SDF_VERSION_NAMESPACE {
168 public:
void SetLightMap(
const std::string &_map,
unsigned int _uvSet = 0u);
233 GZ_UTILS_IMPL_PTR(dataPtr)
265 GZ_UTILS_IMPL_PTR(dataPtr)
This class contains Physically-Based-Rendering (PBR) workflow properties.
Definition Pbr.hh:59
std::string LightMap() const
Get the light map filename.
void SetAmbientOcclusionMap(const std::string &_map)
Set the ambient occlusion map filename.
void SetGlossiness(const double _value)
Set the glossiness value of the material for specular workflow.
void SetSpecularMap(const std::string &_map)
Set the specular map filename for specular workflow.
Errors Load(ElementPtr _sdf)
Load the pbr workflow based on an element pointer.
std::string NormalMap() const
Get the normal map filename.
void SetEnvironmentMap(const std::string &_map)
Set the environment map filename.
void SetType(PbrWorkflowType _type)
Set the PBR workflow to use.
std::string SpecularMap() const
Get the specular map filename for specular workflow.
void SetLightMap(const std::string &_map, unsigned int _uvSet=0u)
Set the light map filename.
double Glossiness() const
Get the glossiness value of the material for specular workflow.
void SetMetalness(const double _value)
Set the metalness value of the material for metal workflow.
double Roughness() const
Get the roughness value of the material for metal workflow.
std::string AlbedoMap() const
Get the albedo map filename.
std::string AmbientOcclusionMap() const
Get the ambient occlusion map filename.
PbrWorkflow()
Default constructor.
PbrWorkflowType Type() const
Get the workflow type.
std::string EmissiveMap() const
Get the emissive map filename.
void SetAlbedoMap(const std::string &_map)
Set the albedo map filename.
void SetRoughnessMap(const std::string &_map)
Set the roughness map filename for metal workflow.
std::string MetalnessMap() const
Get the metalness map filename for metal workflow.
bool operator==(const PbrWorkflow &_workflow) const
Return true if both PbrWorkflow objects contain the same values.
void SetNormalMap(const std::string &_map, NormalMapSpace _space=NormalMapSpace::TANGENT)
Set the normal map filename.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.
double Metalness() const
Get the metalness value of the material for metal workflow.
unsigned int LightMapTexCoordSet() const
Get the light map texture coordinate set.
void SetRoughness(const double _value)
Set the roughness value of the material for metal workflow.
bool operator!=(const PbrWorkflow &_workflow) const
Return true this PbrWorkflow object does not contain the same values as the passed in parameter.
std::string GlossinessMap() const
Get the glossiness map filename for specular workflow.
void SetEmissiveMap(const std::string &_map)
Set the emissive map filename.
std::string RoughnessMap() const
Get the roughness map filename for metal workflow.
std::string EnvironmentMap() const
Get the environment map filename.
void SetGlossinessMap(const std::string &_map)
Set the glossiness map filename for specular workflow.
void SetMetalnessMap(const std::string &_map)
Set the metalness map filename for metal workflow.
NormalMapSpace NormalMapType() const
Get the normal map type, either tangent or object space.
This class provides access to Physically-Based-Rendering (PBR) material workflows.
Definition Pbr.hh:239
Pbr()
Default constructor.
const PbrWorkflow * Workflow(PbrWorkflowType _type) const
Get a PBR workflow by type.
Errors Load(ElementPtr _sdf)
Load the pbr based on an element pointer.
void SetWorkflow(PbrWorkflowType _type, const PbrWorkflow &_workflow)
Set a PBR workflow by type.
PbrWorkflowType
Type of PBR workflow.
Definition Pbr.hh:35
@ SPECULAR
Specular/Glossiness workflow.
@ METAL
Metal/Roughness workflow.
std::vector< Error > Errors
A vector of Error.
Definition Types.hh:81
NormalMapSpace
Space the normal map is defined in.
Definition Pbr.hh:48
std::shared_ptr< Element > ElementPtr
Definition Element.hh:55
namespace for Simulation Description Format parser
Definition Actor.hh:35
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition system_util.hh:25