goat3d
annotate src/light.cc @ 51:fa5c52ea9d59
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 17 Jan 2014 18:16:09 +0200 |
parents | cd71f0b92f44 |
children | dad392c710df |
rev | line source |
---|---|
nuclear@8 | 1 #include "light.h" |
nuclear@8 | 2 |
nuclear@47 | 3 using namespace g3dimpl; |
nuclear@47 | 4 |
nuclear@8 | 5 Light::Light() |
nuclear@8 | 6 : color(1, 1, 1), attenuation(1, 0, 0) |
nuclear@8 | 7 { |
nuclear@8 | 8 max_dist = 0.0; |
nuclear@8 | 9 } |
nuclear@8 | 10 |
nuclear@8 | 11 DirLight::DirLight() |
nuclear@8 | 12 : dir(0, 0, 1) |
nuclear@8 | 13 { |
nuclear@8 | 14 } |
nuclear@8 | 15 |
nuclear@8 | 16 SpotLight::SpotLight() |
nuclear@8 | 17 { |
nuclear@8 | 18 inner_cone = DEG_TO_RAD(30); |
nuclear@8 | 19 outer_cone = DEG_TO_RAD(45); |
nuclear@8 | 20 } |