2013-12-08 17:36:39 +00:00
|
|
|
#ifndef ATMOSPHEREMODELBRUNETON_H
|
|
|
|
#define ATMOSPHEREMODELBRUNETON_H
|
|
|
|
|
|
|
|
#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 {
|
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
class SOFTWARESHARED_EXPORT AtmosphereModelBruneton : public LightSource {
|
|
|
|
public:
|
2013-12-08 19:54:34 +00:00
|
|
|
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) */
|
2015-11-09 21:30:46 +00:00
|
|
|
Texture2D *getTextureTransmittance() const;
|
|
|
|
Texture2D *getTextureIrradiance() const;
|
|
|
|
Texture4D *getTextureInscatter() const;
|
2013-12-21 22:48:54 +00:00
|
|
|
|
2015-11-09 21:30:46 +00:00
|
|
|
private:
|
|
|
|
SoftwareRenderer *parent;
|
2013-12-08 17:36:39 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // ATMOSPHEREMODELBRUNETON_H
|