mmh, there was something missing for assignment 3
[MicroTrace.git] / PointLight.hxx
1 #ifndef POINTLIGHT_HXX
2 #define POINTLIGHT_HXX
3
4 #include "Light.hxx"
5
6 class PointLight : public Light
7 {
8 public:
9 PointLight(Scene* scene, const Vec3f& pos, const Vec3f& intensity);
10 virtual ~PointLight();
11
12 virtual bool Illuminate(Ray& ray, Vec3f& intensity);
13
14 const Vec3f& position() const;
15 const Vec3f& intensity() const;
16
17 private:
18 PointLight();
19
20 // origin
21 Vec3f m_pos;
22 // emission ( red, green, blue )
23 Vec3f m_intensity;
24 };
25 #endif
This page took 0.042851 seconds and 5 git commands to generate.