00001
00002
00003 #ifndef __DIRECTIONAL_LIGHT_SOURCE_H
00004 #define __DIRECTIONAL_LIGHT_SOURCE_H
00005
00006 #include <esg/LightSource.h>
00007 #include <esg/emittance/DirEmittance.h>
00008
00009 namespace esg {
00010
00016 class DirLight : public LightSource {
00017 public:
00030 DirLight (const Vector3& location,
00031 const Vector3& dir,
00032 const Color3f& intensity,
00033 double fadeDist = .0,
00034 double fadePower = .0,
00035 OID oid = 0,
00036 const char* name = "")
00037 : LightSource(oid, name, new DirEmittance(location, dir, intensity,
00038 fadeDist, fadePower))
00039 {
00040 }
00041 };
00042
00043 };
00044
00045 #endif // __DIRECTIONAL_LIGHT_SOURCE_H