1#ifndef SPOT_LIGHT_INCLUDED
2#define SPOT_LIGHT_INCLUDED
38 static std::string
Directive(
void ){
return "light_spot"; }
44 void _write( std::ostream &stream )
const;
45 void _read( std::istream &stream );
47 std::string
name(
void )
const {
return "spot light"; }
Definition: GLSLProgram.h:33
Definition: spotLight.h:14
double _cutOffAngle
Definition: spotLight.h:31
double _linearAtten
Definition: spotLight.h:25
void _read(std::istream &stream)
Definition: spotLight.cpp:16
double _constAtten
Definition: spotLight.h:22
Util::Point3D getDiffuse(Util::Ray3D ray, const class RayShapeIntersectionInfo &iInfo, const Material &material) const
Definition: spotLight.todo.cpp:21
double _dropOffRate
Definition: spotLight.h:34
Util::Point3D getSpecular(Util::Ray3D ray, const class RayShapeIntersectionInfo &iInfo, const Material &material) const
Definition: spotLight.todo.cpp:30
Util::Point3D _location
Definition: spotLight.h:16
void _write(std::ostream &stream) const
Definition: spotLight.cpp:23
static std::string Directive(void)
Definition: spotLight.h:38
void drawOpenGL(int index, GLSLProgram *glslProgram) const
Definition: spotLight.todo.cpp:57
Util::Point3D transparency(const class RayShapeIntersectionInfo &iInfo, const class Shape &shape, Util::Point3D cLimit, unsigned int samples, unsigned int tIdx) const
Definition: spotLight.todo.cpp:48
bool isInShadow(const class RayShapeIntersectionInfo &iInfo, const Shape &shape, unsigned int tIdx) const
Definition: spotLight.todo.cpp:39
Util::Point3D _direction
Definition: spotLight.h:19
std::string name(void) const
Definition: spotLight.h:47
double _quadAtten
Definition: spotLight.h:28
Util::Point3D getAmbient(Util::Ray3D ray, const class RayShapeIntersectionInfo &iInfo, const Material &material) const
Definition: spotLight.todo.cpp:12
Definition: geometry.h:299