]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/sky.h
Split the Light class into subclasses by light type
[libs/gl.git] / source / effects / sky.h
index 74580d7502a165fb1b8e1d48f8206c600ab7397d..782aef1ceb1d0b0faa2c5e58a6407118834b0457 100644 (file)
@@ -2,15 +2,14 @@
 #define MSP_GL_SKY_H_
 
 #include "effect.h"
-#include "framebuffer.h"
 #include "programdata.h"
 #include "rendertarget.h"
 
 namespace Msp {
 namespace GL {
 
+class DirectionalLight;
 class Mesh;
-class Light;
 class Program;
 
 /**
@@ -42,7 +41,7 @@ public:
 
 private:
        Planet planet;
-       Light &sun;
+       DirectionalLight &sun;
        RenderTarget transmittance_lookup;
        const Program &transmittance_shprog;
        bool transmittance_lookup_dirty;
@@ -57,7 +56,7 @@ private:
        bool rendered;
 
 public:
-       Sky(Renderable &, Light &);
+       Sky(Renderable &, DirectionalLight &);
 
        void set_planet(const Planet &);
        void set_view_height(float);