goat3d

view src/light.cc @ 47:498ca7ac7047

- placed all the implementation stuff in the g3dimpl namespace - added animation stuff to the public API - started writing animation saving/loading
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 28 Dec 2013 06:47:39 +0200
parents cd71f0b92f44
children dad392c710df
line source
1 #include "light.h"
3 using namespace g3dimpl;
5 Light::Light()
6 : color(1, 1, 1), attenuation(1, 0, 0)
7 {
8 max_dist = 0.0;
9 }
11 DirLight::DirLight()
12 : dir(0, 0, 1)
13 {
14 }
16 SpotLight::SpotLight()
17 {
18 inner_cone = DEG_TO_RAD(30);
19 outer_cone = DEG_TO_RAD(45);
20 }