paysages3d/src/render/software/AtmosphereModelBruneton.h

34 lines
955 B
C++

#ifndef ATMOSPHEREMODELBRUNETON_H
#define ATMOSPHEREMODELBRUNETON_H
#include "software_global.h"
#include "LightSource.h"
namespace paysages {
namespace software {
class SOFTWARESHARED_EXPORT AtmosphereModelBruneton: public LightSource
{
public:
AtmosphereModelBruneton(SoftwareRenderer *parent);
virtual ~AtmosphereModelBruneton();
AtmosphereResult getSkyColor(Vector3 eye, const Vector3 &direction, const Vector3 &sun_position, const Color &base);
AtmosphereResult applyAerialPerspective(Vector3 location, const Color &base);
virtual bool getLightsAt(std::vector<LightComponent> &result, const Vector3 &location) const override;
/* Functions to get access to internal textures (for opengl shaders) */
Texture2D* getTextureTransmittance() const;
Texture2D* getTextureIrradiance() const;
Texture4D* getTextureInscatter() const;
private:
SoftwareRenderer* parent;
};
}
}
#endif // ATMOSPHEREMODELBRUNETON_H