]> git.mxchange.org Git - flightgear.git/blobdiff - src/Time/light.hxx
Add support for moving cloud layers
[flightgear.git] / src / Time / light.hxx
index 0466f033e8e8dbb0b8b8cd6ff95b3c644a15a746..40ae8ef798d5f5b4a39516e7269b6bbb4651dc0d 100644 (file)
@@ -38,8 +38,7 @@
 #  include <windows.h>
 #endif
 
-#include <GL/glut.h>
-#include <simgear/xgl/xgl.h>
+#include GLUT_H
 
 #include <plib/sg.h>                   // plib include
 
 class fgLIGHT {
 
     // Lighting look up tables (based on sun angle with local horizon)
-    fgINTERPTABLE *ambient_tbl;
-    fgINTERPTABLE *diffuse_tbl;
-    fgINTERPTABLE *sky_tbl;
+    SGInterpTable *ambient_tbl;
+    SGInterpTable *diffuse_tbl;
+    SGInterpTable *specular_tbl;
+    SGInterpTable *sky_tbl;
 
 public:
 
@@ -113,10 +113,13 @@ public:
     // Derived lighting values
 
     // ambient component
-    GLfloat scene_ambient[3];
+    GLfloat scene_ambient[4];
 
     // diffuse component
-    GLfloat scene_diffuse[3];
+    GLfloat scene_diffuse[4];
+
+    // diffuse component
+    GLfloat scene_specular[4];
 
     // fog color
     GLfloat fog_color[4];
@@ -124,9 +127,15 @@ public:
     // fog color adjusted for sunset effects
     GLfloat adj_fog_color[4];
 
+    // cloud color
+    GLfloat cloud_color[4];
+
     // clear screen color
     GLfloat sky_color[4];
 
+    // screen color adjusted for sunset effects
+    GLfloat adj_sky_color[4];
+
     // Constructor
     fgLIGHT( void );