2013-12-08 17:36:39 +00:00
|
|
|
#ifndef ATMOSPHEREMODELBRUNETON_H
|
|
|
|
#define ATMOSPHEREMODELBRUNETON_H
|
|
|
|
|
|
|
|
#include "software_global.h"
|
|
|
|
|
|
|
|
#include "AtmosphereResult.h"
|
|
|
|
|
|
|
|
namespace paysages {
|
|
|
|
namespace software {
|
|
|
|
|
|
|
|
class SOFTWARESHARED_EXPORT AtmosphereModelBruneton
|
|
|
|
{
|
|
|
|
public:
|
2013-12-08 19:54:34 +00:00
|
|
|
AtmosphereModelBruneton(SoftwareRenderer *parent);
|
2013-12-08 17:36:39 +00:00
|
|
|
|
2013-12-08 19:54:34 +00:00
|
|
|
AtmosphereResult getSkyColor(Vector3 eye, const Vector3 &direction, const Vector3 &sun_position, const Color &base);
|
|
|
|
AtmosphereResult applyAerialPerspective(Vector3 location, const Color &base);
|
2013-12-08 17:36:39 +00:00
|
|
|
void fillLightingStatus(LightStatus *status, const Vector3 &normal, int opaque);
|
|
|
|
|
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-08 17:36:39 +00:00
|
|
|
private:
|
2013-12-08 19:54:34 +00:00
|
|
|
SoftwareRenderer* parent;
|
2013-12-08 17:36:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // ATMOSPHEREMODELBRUNETON_H
|