cloudy-raytracer/light/sunlight.h

21 lines
417 B
C
Raw Permalink Normal View History

2023-01-24 11:31:09 +01:00
#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