goat3d

view src/light.cc @ 10:1f94a2107c64

merged with win32 stuff
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 26 Aug 2013 05:30:40 +0300
parents
children 498ca7ac7047
line source
1 #include "light.h"
3 Light::Light()
4 : color(1, 1, 1), attenuation(1, 0, 0)
5 {
6 max_dist = 0.0;
7 }
9 DirLight::DirLight()
10 : dir(0, 0, 1)
11 {
12 }
14 SpotLight::SpotLight()
15 {
16 inner_cone = DEG_TO_RAD(30);
17 outer_cone = DEG_TO_RAD(45);
18 }