goat3d

view src/light.cc @ 40:a5c5cec3cb88

- added mesh attribute and face append functions - added Int4 constructor - continued the blender exporter - fixed a bug in clean_filename which made it produce unterminated strings - renamed clean_filename to goat3d_clean_filename and made it extern - added call to goat3d_clean_filename in the mesh XML export code to cleanup ctm filenames
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 13 Oct 2013 10:14:19 +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 }