Commit 51538514 authored by Jan's avatar Jan

Renamed a function

Clarified that baseColor and emissive color are handled in the same way
parent 0b8fb87a
...@@ -554,7 +554,7 @@ MaterialNode::read(std::istream& _is) ...@@ -554,7 +554,7 @@ MaterialNode::read(std::istream& _is)
material_.set_refractive(b); material_.set_refractive(b);
} }
} }
// OverlayColor // Refraction Index
else if (specifier == "indexOfRefraction") { else if (specifier == "indexOfRefraction") {
buffer >> x; buffer >> x;
......
...@@ -167,15 +167,15 @@ public: ...@@ -167,15 +167,15 @@ public:
1.0)); 1.0));
} }
/// set the base color /// set the base color (Sets the baseColor which is the same as the emission(const Vec4f& _c) )
void baseColor(const Vec4f& _c) { baseColor_ = _c;} void baseColor(const Vec4f& _c) { baseColor_ = _c;}
/// get the base color /// get the base color ( Same as emission() )
const Vec4f& baseColor() const { return baseColor_; } const Vec4f& baseColor() const { return baseColor_; }
/// set emission /// set emission ( Same as baseColor( const Vec4f& _c )) )
void emission(const Vec4f& _c) { baseColor_ = _c;} void emissionColor(const Vec4f& _c) { baseColor_ = _c;}
/// get emission /// get emission ( Same as baseColor() )
const Vec4f& emission() const { return baseColor_; } const Vec4f& emissionColor() const { return baseColor_; }
/// set the ambient color. /// set the ambient color.
void ambientColor(const Vec4f& _a) { ambientColor_ = _a; } void ambientColor(const Vec4f& _a) { ambientColor_ = _a; }
...@@ -222,7 +222,7 @@ public: ...@@ -222,7 +222,7 @@ public:
double indexOfRefraction() const { return indexOfRefraction_; } double indexOfRefraction() const { return indexOfRefraction_; }
/// set refractive flag /// set refractive flag
void set_refractive(bool _r) { isRefractive_ = _r; } void setRefractive(bool _r) { isRefractive_ = _r; }
/// get refractive flag /// get refractive flag
bool isRefractive() const {return isRefractive_;} bool isRefractive() const {return isRefractive_;}
...@@ -423,14 +423,14 @@ public: ...@@ -423,14 +423,14 @@ public:
material_.generateRandomColor(); material_.generateRandomColor();
} }
/// set the base color /// set the base color ( Same as set_emission(const Vec4f& _c) )
void set_base_color(const Vec4f& _c) { material_.baseColor(_c); } void set_base_color(const Vec4f& _c) { material_.baseColor(_c); }
/// get the base color /// get the base color ( same as emission() )
const Vec4f& base_color() const { return material_.baseColor(); } const Vec4f& base_color() const { return material_.baseColor(); }
/// set emission /// set emission ( same as set_base_color(const Vec4f& _c) )
void set_emission(const Vec4f& _c) { material_.baseColor(_c); } void set_emission(const Vec4f& _c) { material_.baseColor(_c); }
/// get emission /// get emission ( same as base_color() )
const Vec4f& emission() const { return material_.baseColor(); } const Vec4f& emission() const { return material_.baseColor(); }
/// set the ambient color. /// set the ambient color.
......
Markdown is supported
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