1#ifndef POINT_LIGHT_INCLUDED
2#define POINT_LIGHT_INCLUDED
25 static std::string
Directive(
void ){
return "light_point"; }
31 void _write( std::ostream &stream )
const;
32 void _read( std::istream &stream );
34 std::string
name(
void )
const {
return "point light"; }
Definition: GLSLProgram.h:33
Definition: pointLight.h:9
Util::Point3D getDiffuse(Util::Ray3D ray, const class RayShapeIntersectionInfo &iInfo, const Material &material) const
Definition: pointLight.todo.cpp:22
Util::Point3D _location
Definition: pointLight.h:12
Util::Point3D getAmbient(Util::Ray3D ray, const class RayShapeIntersectionInfo &iInfo, const Material &material) const
Definition: pointLight.todo.cpp:13
Util::Point3D transparency(const class RayShapeIntersectionInfo &iInfo, const class Shape &shape, Util::Point3D cLimit, unsigned int samples, unsigned int tIdx) const
Definition: pointLight.todo.cpp:49
bool isInShadow(const class RayShapeIntersectionInfo &iInfo, const class Shape &shape, unsigned int tIdx) const
Definition: pointLight.todo.cpp:40
double _quadAtten
Definition: pointLight.h:21
double _linearAtten
Definition: pointLight.h:18
Util::Point3D getSpecular(Util::Ray3D ray, const class RayShapeIntersectionInfo &iInfo, const Material &material) const
Definition: pointLight.todo.cpp:31
std::string name(void) const
Definition: pointLight.h:34
double _constAtten
Definition: pointLight.h:15
void _write(std::ostream &stream) const
Definition: pointLight.cpp:21
static std::string Directive(void)
Definition: pointLight.h:25
void drawOpenGL(int index, GLSLProgram *glslProgram) const
Definition: pointLight.todo.cpp:58
void _read(std::istream &stream)
Definition: pointLight.cpp:15
Definition: geometry.h:299