Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Goers <mega@osirion.org>2014-09-21 03:30:48 +0000
committerEvan Goers <mega@osirion.org>2014-09-21 03:30:48 +0000
commit7550a2e19516d7924bcd89356f3f1b0402180e2f (patch)
tree9554b0e74737d431640521c47aba68c2e26c98a6 /src/model/layer.h
parent62a0cbd0f2f9b59d078d3feecf1296c7066163a8 (diff)
Added shininess setting for shaders.
Diffstat (limited to 'src/model/layer.h')
-rw-r--r--src/model/layer.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/model/layer.h b/src/model/layer.h
index d6af529..6bf75ca 100644
--- a/src/model/layer.h
+++ b/src/model/layer.h
@@ -104,6 +104,15 @@ public:
}
/**
+ * @brief layer shininess
+ * The shininess value is used to control the GL_SHININESS of the layer.
+ * */
+ inline const math::Color & shininess() const
+ {
+ return layer_shininess;
+ }
+
+ /**
* @brief layer texture map
*/
const TexMap texmap() const
@@ -169,6 +178,12 @@ public:
* This value is used in lighting calculations
* */
void set_specular(const math::Color & specular);
+
+ /**
+ * @brief set layer specular color
+ * This value is used in lighting calculations
+ * */
+ void set_shininess(const math::Color & shininess);
/**
* @brief set the texture map type
@@ -210,7 +225,8 @@ private:
math::Vector2f layer_size;
RGBGen layer_rgbgen;
math::Color layer_color;
- math::Color layer_color_specular;
+ math::Color layer_color_specular;
+ math::Color layer_shininess;
TexMap layer_texmap;
std::string layer_texture_name;
size_t layer_texture_id;