paysages3d/src/render/software/AtmosphereModelBruneton.h

34 lines
955 B
C
Raw Normal View History

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-09-24 22:12:31 +00:00
class SOFTWARESHARED_EXPORT AtmosphereModelBruneton: public LightSource
2013-12-08 17:36:39 +00:00
{
public:
AtmosphereModelBruneton(SoftwareRenderer *parent);
2015-09-24 22:12:31 +00:00
virtual ~AtmosphereModelBruneton();
2013-12-08 17:36:39 +00:00
AtmosphereResult getSkyColor(Vector3 eye, const Vector3 &direction, const Vector3 &sun_position, const Color &base);
AtmosphereResult applyAerialPerspective(Vector3 location, const Color &base);
2015-09-24 22:12:31 +00:00
virtual bool getLightsAt(std::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-08 17:36:39 +00:00
private:
SoftwareRenderer* parent;
2013-12-08 17:36:39 +00:00
};
}
}
#endif // ATMOSPHEREMODELBRUNETON_H