///////////// // // pointl.hpp // // point light class // point lights cannot make soft shadows // #ifndef _POINTLIGHT_ #define _POINTLIGHT_ #include "light.hpp" class pointl : public light { public: Vec3f pos; pointl() {} void set(Vec3f p, Vec3f col) { color = col; pos = p; } pointl(Vec3f p, Vec3f col) { set(p,col); } Vec3f getPos(void) //return single light location (center) { return(pos); } Vec3f getSoftPos(void) //return jittered light location { return(pos); //no softshadows possible for point light } }; #endif