]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/sky.h
Access builtin resources through a global instance
[libs/gl.git] / source / effects / sky.h
index eb4f618d9607569bcdb32a9151a44ebf7442d8bd..faa3eb033d594bc73f8eb7cff6eae6b664d6be96 100644 (file)
@@ -4,7 +4,7 @@
 #include "effect.h"
 #include "framebuffer.h"
 #include "programdata.h"
-#include "texture2d.h"
+#include "rendertarget.h"
 
 namespace Msp {
 namespace GL {
@@ -42,13 +42,11 @@ public:
 
 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;
@@ -57,7 +55,7 @@ private:
        bool rendered;
 
 public:
-       Sky(Resources &, Renderable &, const Light &);
+       Sky(Renderable &, const Light &);
 
        void set_planet(const Planet &);
        void set_view_height(float);