]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/sky.h
Use RenderTargets in the Sky effect
[libs/gl.git] / source / effects / sky.h
index eb4f618d9607569bcdb32a9151a44ebf7442d8bd..5cc7bdaa668a6d6935be713f890f9c20991fc891 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;