mmh, there was something missing for assignment 3
[MicroTrace.git] / PointLight.cxx
1 #include "PointLight.hxx"
2
3 PointLight::PointLight(Scene* scene, const Vec3f& pos, const Vec3f& intensity)
4 : Light(scene),
5 m_pos(pos),
6 m_intensity(intensity)
7 {
8 }
9
10 PointLight::~PointLight()
11 {
12 }
13
14 PointLight::PointLight()
15 : Light(0),
16 m_pos(Vec3f()),
17 m_intensity(Vec3f())
18 {
19 }
20
21 bool
22 PointLight::Illuminate(Ray& ray, Vec3f& intensity)
23 {
24
25 return false;
26 }
27
28 const Vec3f&
29 PointLight::position() const
30 {
31 return m_pos;
32 }
33
34 const Vec3f&
35 PointLight::intensity() const
36 {
37 return m_intensity;
38 }
39
40
This page took 0.046296 seconds and 5 git commands to generate.