fixed Box::Extend(Vec3f&)
[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 virtual bool IsArea();
18
19 private:
20 PointLight();
21
22 // origin
23 Vec3f m_pos;
24 // emission ( red, green, blue )
25 Vec3f m_intensity;
26 };
27 #endif
This page took 0.058183 seconds and 5 git commands to generate.