6 class SpotLight : public Light
9 SpotLight(Scene* scene, const Vec3f& pos, const Vec3f& dir, const Vec3f& intensity, float alpha_min, float alpha_max);
12 virtual bool Illuminate(Ray& ray, Vec3f& intensity);
13 virtual bool IsArea();
15 const Vec3f& position() const;
16 const Vec3f& direction() const;
21 // position and direction
23 // emission (red, green, blue)
26 float m_alpha_min, m_alpha_max;