1#ifndef DIRECTIONAL_LIGHT_INCLUDED
2#define DIRECTIONAL_LIGHT_INCLUDED
15 static std::string
Directive(
void ){
return "light_dir"; }
21 void _write( std::ostream &stream )
const;
22 void _read( std::istream &stream );
24 std::string
name(
void )
const {
return "directional light"; }
Definition GLSLProgram.h:33
Definition directionalLight.h:10
Util::Point3D getDiffuse(Util::Ray3D ray, const class RayShapeIntersectionInfo &iInfo, const Material &material) const
Definition directionalLight.todo.cpp:22
Util::Point3D getSpecular(Util::Ray3D ray, const class RayShapeIntersectionInfo &iInfo, const Material &material) const
Definition directionalLight.todo.cpp:31
Util::Point3D transparency(const class RayShapeIntersectionInfo &iInfo, const class Shape &shape, Util::Point3D cLimit, unsigned int samples, unsigned int tIdx) const
Definition directionalLight.todo.cpp:49
void drawOpenGL(int index, GLSLProgram *glslProgram) const
Definition directionalLight.todo.cpp:58
void _read(std::istream &stream)
Definition directionalLight.cpp:15
Util::Point3D _direction
Definition directionalLight.h:12
Util::Point3D getAmbient(Util::Ray3D ray, const class RayShapeIntersectionInfo &iInfo, const Material &material) const
Definition directionalLight.todo.cpp:13
bool isInShadow(const class RayShapeIntersectionInfo &iInfo, const class Shape &shape, unsigned int tIdx) const
Definition directionalLight.todo.cpp:40
std::string name(void) const
Definition directionalLight.h:24
static std::string Directive(void)
Definition directionalLight.h:15
void _write(std::ostream &stream) const
Definition directionalLight.cpp:22
Definition geometry.h:299