goat3d

diff src/light.cc @ 8:cd71f0b92f44

a bit more...
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 21 Aug 2013 05:52:28 +0300
parents
children 498ca7ac7047
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/light.cc	Wed Aug 21 05:52:28 2013 +0300
     1.3 @@ -0,0 +1,18 @@
     1.4 +#include "light.h"
     1.5 +
     1.6 +Light::Light()
     1.7 +	: color(1, 1, 1), attenuation(1, 0, 0)
     1.8 +{
     1.9 +	max_dist = 0.0;
    1.10 +}
    1.11 +
    1.12 +DirLight::DirLight()
    1.13 +	: dir(0, 0, 1)
    1.14 +{
    1.15 +}
    1.16 +
    1.17 +SpotLight::SpotLight()
    1.18 +{
    1.19 +	inner_cone = DEG_TO_RAD(30);
    1.20 +	outer_cone = DEG_TO_RAD(45);
    1.21 +}