goat3d
annotate src/light.cc @ 23:b59a3650ed51
mac fixes
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 27 Sep 2013 07:20:22 +0300 |
parents | |
children | 498ca7ac7047 |
rev | line source |
---|---|
nuclear@8 | 1 #include "light.h" |
nuclear@8 | 2 |
nuclear@8 | 3 Light::Light() |
nuclear@8 | 4 : color(1, 1, 1), attenuation(1, 0, 0) |
nuclear@8 | 5 { |
nuclear@8 | 6 max_dist = 0.0; |
nuclear@8 | 7 } |
nuclear@8 | 8 |
nuclear@8 | 9 DirLight::DirLight() |
nuclear@8 | 10 : dir(0, 0, 1) |
nuclear@8 | 11 { |
nuclear@8 | 12 } |
nuclear@8 | 13 |
nuclear@8 | 14 SpotLight::SpotLight() |
nuclear@8 | 15 { |
nuclear@8 | 16 inner_cone = DEG_TO_RAD(30); |
nuclear@8 | 17 outer_cone = DEG_TO_RAD(45); |
nuclear@8 | 18 } |