#include "effect.h"
#include "framebuffer.h"
#include "programdata.h"
-#include "texture2d.h"
+#include "rendertarget.h"
namespace Msp {
namespace GL {
private:
const Light &sun;
- Texture2D transmittance_lookup;
+ RenderTarget transmittance_lookup;
const Program &transmittance_shprog;
- Framebuffer transmittance_fbo;
bool transmittance_lookup_dirty;
- Texture2D distant;
+ RenderTarget distant;
const Program &distant_shprog;
- Framebuffer distant_fbo;
const Mesh &fullscreen_mesh;
const Program &backdrop_shprog;
const Sampler &sampler;
bool rendered;
public:
- Sky(Resources &, Renderable &, const Light &);
+ Sky(Renderable &, const Light &);
void set_planet(const Planet &);
void set_view_height(float);