Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-05-01 20:44:11 +0000
committerStijn Buys <ingar@osirion.org>2012-05-01 20:44:11 +0000
commit486f74a45c8241862f2b94d63e54aeb2bc5d5424 (patch)
treef4b1c357d630cde55e822d8bf31bff0b73cfde50
parentba3ac1309452b4622d4f90ee95d8d987b451f7e1 (diff)
Added light environment classes
-rw-r--r--src/render/light.cc35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/render/light.cc b/src/render/light.cc
new file mode 100644
index 0000000..cc8453e
--- /dev/null
+++ b/src/render/light.cc
@@ -0,0 +1,35 @@
+/*
+ render/light.cc
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2
+*/
+
+#include "render/light.h"
+
+namespace render
+{
+
+Light::Light() :
+ light_location(),
+ light_color(),
+ light_attenuation(1.0f, 0.0f, 0.0f)
+{
+
+}
+
+Light::Light(const math::Vector3f & location, const math::Color & color) :
+ light_location(location),
+ light_color(color),
+ light_attenuation(1.0f, 0.0f, 0.0f)
+{
+
+}
+
+Light::~Light()
+{
+}
+
+
+} // namespace render
+
+