21 lines
417 B
C
21 lines
417 B
C
|
#ifndef CG1_TRACER_SUNLIGHT_H
|
||
|
#define CG1_TRACER_SUNLIGHT_H
|
||
|
|
||
|
#include "scene/scene.h"
|
||
|
#include "light.h"
|
||
|
|
||
|
class SunLight : public Light
|
||
|
{
|
||
|
public:
|
||
|
SunLight(Vector3d const &direction, float intensity, Color const &color = Color(1, 1, 1));
|
||
|
|
||
|
// Light functions
|
||
|
Illumination illuminate(Scene const &scene, Ray const &ray) const override;
|
||
|
|
||
|
protected:
|
||
|
Vector3d direction;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif //CG1_TRACER_SUNLIGHT_H
|