8ec7cf6ff361f50a352deda24922e71ad8132f53
[MicroTrace.git] / SpotLight.cxx
1 #include "SpotLight.hxx"
2
3 SpotLight::SpotLight(Scene* scene,
4 const Vec3f& pos,
5 const Vec3f& dir,
6 const Vec3f& intensity,
7 float alpha_min,
8 float alpha_max)
9 : Light(scene),
10 m_pos(pos),
11 m_dir(dir),
12 m_intensity(intensity),
13 m_alpha_min(alpha_min),
14 m_alpha_max(alpha_max)
15 {
16 }
17
18 SpotLight::~SpotLight()
19 {
20 }
21
22 SpotLight::SpotLight()
23 : Light(0),
24 m_pos(Vec3f()),
25 m_dir(Vec3f()),
26 m_intensity(Vec3f()),
27 m_alpha_min(0.0f),
28 m_alpha_max(0.0f)
29 {
30 }
31
32 bool
33 SpotLight::Illuminate(Ray& ray, Vec3f& intensity)
34 {
35 return false;
36 }
37
38 const Vec3f&
39 SpotLight::position() const
40 {
41 return m_pos;
42 }
43
44 const Vec3f&
45 SpotLight::direction() const
46 {
47 return m_dir;
48 }
This page took 0.041879 seconds and 3 git commands to generate.