paysages3d/src/render/software/NightSky.h

37 lines
793 B
C
Raw Normal View History

#pragma once
#include "software_global.h"
2015-09-24 22:12:31 +00:00
#include "LightSource.h"
namespace paysages {
namespace software {
2016-01-03 18:21:23 +00:00
/**
* Night sky renderer.
*/
class SOFTWARESHARED_EXPORT NightSky : public LightSource {
public:
NightSky(SoftwareRenderer *renderer);
virtual ~NightSky();
2016-01-03 18:21:23 +00:00
/**
* Update the night sky renderer, when the scenery or parent renderer changed.
*/
void update();
2016-01-03 18:21:23 +00:00
/**
* Get the color of the night sky at a given direction.
*
2016-01-06 18:55:49 +00:00
* 'altitude' is above water level, in coordinate units (not kilometers).
*/
virtual const Color getColor(double altitude, const Vector3 &direction);
2015-12-10 23:36:50 +00:00
virtual bool getLightsAt(vector<LightComponent> &result, const Vector3 &location) const override;
2013-12-26 17:28:25 +00:00
private:
SoftwareRenderer *renderer;
};
}
}