paysages3d/src/render/software/AtmosphereModelBruneton.h

30 lines
907 B
C
Raw Normal View History

#pragma once
2013-12-08 17:36:39 +00:00
#include "software_global.h"
2015-09-24 22:12:31 +00:00
#include "LightSource.h"
2013-12-08 17:36:39 +00:00
namespace paysages {
namespace software {
class SOFTWARESHARED_EXPORT AtmosphereModelBruneton : public LightSource {
public:
AtmosphereModelBruneton(SoftwareRenderer *parent);
2015-09-24 22:12:31 +00:00
virtual ~AtmosphereModelBruneton();
2013-12-08 17:36:39 +00:00
2016-01-12 18:50:56 +00:00
AtmosphereResult getSkyColor(Vector3 eye, const Vector3 &direction, const Vector3 &sun_position,
const Color &base) const;
2016-01-10 16:14:54 +00:00
AtmosphereResult applyAerialPerspective(Vector3 location, const Color &base) const;
2015-12-10 23:36:50 +00:00
virtual bool getLightsAt(vector<LightComponent> &result, const Vector3 &location) const override;
2013-12-08 17:36:39 +00:00
2013-12-21 22:48:54 +00:00
/* Functions to get access to internal textures (for opengl shaders) */
Texture2D *getTextureTransmittance() const;
Texture2D *getTextureIrradiance() const;
Texture4D *getTextureInscatter() const;
2013-12-21 22:48:54 +00:00
private:
SoftwareRenderer *parent;
2013-12-08 17:36:39 +00:00
};
}
}