From 486f74a45c8241862f2b94d63e54aeb2bc5d5424 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 1 May 2012 20:44:11 +0000 Subject: Added light environment classes --- src/render/light.cc | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/render/light.cc (limited to 'src/render/light.cc') 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 + + -- cgit v1.2.3