8 #ifndef META_OCEAN_RENDERING_GI_MATERIAL_H
9 #define META_OCEAN_RENDERING_GI_MATERIAL_H
22 namespace GlobalIllumination
96 inline const RGBAColor& ambientColorInline()
const;
102 inline const RGBAColor& diffuseColorInline()
const;
108 inline const RGBAColor& emissiveColorInline()
const;
114 inline const RGBAColor& specularColorInline()
const;
120 inline float specularExponentInline()
const;
126 inline float transparencyInline()
const;
132 inline float reflectivityInline()
const;
138 inline float refractionIndexInline()
const;
This class implements a color defined by red, green, blue and alpha parameters.
Definition: RGBAColor.h:41
This class wraps a Global Illumination attribute object.
Definition: GIAttribute.h:35
This class implements a class factory for all Global Illumination objects.
Definition: GIFactory.h:30
This class implements a Global Illumination material object.
Definition: GIMaterial.h:33
GIMaterial()
Creates a new Global Illumination material object.
const RGBAColor & diffuseColorInline() const
Returns the diffuse color of this material.
Definition: GIMaterial.h:238
float transparency() const override
Returns the transparency factor of this material with range [0.0, 1.0].
~GIMaterial() override
Destructs a Global Illumination material object.
float reflectivity() const override
Returns the reflectivity factor of this material with range [0.0, 1.0].
bool set(const RGBAColor &ambient, const RGBAColor &diffuse, const RGBAColor &emissive, const RGBAColor &specular, const float specularExponent, const float transparency) override
Sets the transparency of the material.
RGBAColor emissiveColor() const override
Returns the emissive color of this material.
bool setAmbientColor(const RGBAColor &color) override
Sets the ambient color of the material.
float refractionIndexInline() const
Returns the index of refraction of this material with range [0.0, 1.0].
Definition: GIMaterial.h:268
float materialReflectivity
Specular exponent.
Definition: GIMaterial.h:227
bool setReflectivity(const float reflectivity) override
Sets the reflectivity of this material.
RGBAColor ambientColor() const override
Returns the ambient color of this material.
float specularExponentInline() const
Returns the specular exponent of this material.
Definition: GIMaterial.h:253
float reflectivityInline() const
Returns the reflectivity factor of this material with range [0.0, 1.0].
Definition: GIMaterial.h:263
float refractionIndex() const override
Returns the index of refraction of this material with range [0.0, 1.0].
float specularExponent() const override
Returns the specular exponent of this material.
float transparencyInline() const
Returns the transparency factor of this material with range [0.0, 1.0].
Definition: GIMaterial.h:258
bool setRefractionIndex(const float index) override
Sets the index of refraction of this material.
bool setDiffuseColor(const RGBAColor &color) override
Sets the diffuse color of the material.
bool setTransparency(const float transparency) override
Sets the specular exponent of this material.
RGBAColor specularColor() const override
Returns the specular color of this material.
RGBAColor materialDiffuseColor
Diffuse color.
Definition: GIMaterial.h:212
RGBAColor materialEmissiveColor
Emissive color.
Definition: GIMaterial.h:215
float materialSpecularExponent
Specular exponent.
Definition: GIMaterial.h:221
const RGBAColor & ambientColorInline() const
Returns the ambient color of this material.
Definition: GIMaterial.h:233
float materialTransparency
Transparency value.
Definition: GIMaterial.h:224
RGBAColor materialSpecularColor
Specular color.
Definition: GIMaterial.h:218
RGBAColor diffuseColor() const override
Returns the diffuse color of this material.
RGBAColor materialAmbientColor
Ambient color.
Definition: GIMaterial.h:209
bool setSpecularColor(const RGBAColor &color) override
Sets the specular color of the material.
bool setSpecularExponent(const float specularExponent) override
Sets the specular exponent of this material.
void get(RGBAColor &ambient, RGBAColor &diffuse, RGBAColor &emissive, RGBAColor &specular, float &specularExponent, float &transparency) override
Gets all color values of the material at once.
bool setEmissiveColor(const RGBAColor &color) override
Sets the emissive color of the material.
const RGBAColor & specularColorInline() const
Returns the specular color of this material.
Definition: GIMaterial.h:248
float materialRefractionIndex
Transparency value.
Definition: GIMaterial.h:230
const RGBAColor & emissiveColorInline() const
Returns the emissive color of this material.
Definition: GIMaterial.h:243
This class is the base class for all materials.
Definition: rendering/Material.h:49
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15