Skip to content
Snippets Groups Projects
Commit 25f8a23e authored by Lukas Werner's avatar Lukas Werner
Browse files

Documentation for ShadingParameters functions

parent 7b2908ab
No related merge requests found
...@@ -63,12 +63,17 @@ struct ShadingParameters { ...@@ -63,12 +63,17 @@ struct ShadingParameters {
shininess = config.getParameter<real_t>("shininess"); shininess = config.getParameter<real_t>("shininess");
} }
/*!\brief Makes a rendered object shiny by setting the shininess and adjusting the specularColor.
* \param _shininess Shininess
*/
ShadingParameters& makeGlossy(real_t _shininess = 30) { ShadingParameters& makeGlossy(real_t _shininess = 30) {
shininess = _shininess; shininess = _shininess;
specularColor.set(real_t(1), real_t(1), real_t(1)); specularColor.set(real_t(1), real_t(1), real_t(1));
return *this; return *this;
} }
/*!\brief Makes the rendered object matte by setting the shininess attribute to zero and adjusting the specularColor.
*/
ShadingParameters& makeMatte() { ShadingParameters& makeMatte() {
shininess = 0; shininess = 0;
specularColor.set(real_t(0.1), real_t(0.1), real_t(0.1)); specularColor.set(real_t(0.1), real_t(0.1), real_t(0.1));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment