X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FTime%2Flight.hxx;h=40ae8ef798d5f5b4a39516e7269b6bbb4651dc0d;hb=6be8042a0178900ecd3a3363a826f04001f44da4;hp=38e7935c00e0b301bca0f7b10cac0111ae247d81;hpb=c90db01dc8d5462a3da22771ffa7c96f5ea31217;p=flightgear.git diff --git a/src/Time/light.hxx b/src/Time/light.hxx index 38e7935c0..40ae8ef79 100644 --- a/src/Time/light.hxx +++ b/src/Time/light.hxx @@ -38,21 +38,22 @@ # include #endif -#include -#include +#include GLUT_H -// #include -#include -#include +#include // plib include + +#include +#include // Define a structure containing the global lighting parameters 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: @@ -66,10 +67,10 @@ public: Point3D fg_sunpos; // (in view coordinates) - GLfloat sun_vec[4]; + sgVec4 sun_vec; // inverse (in view coordinates) - GLfloat sun_vec_inv[4]; + sgVec4 sun_vec_inv; // the angle between the sun and the local horizontal (in radians) double sun_angle; @@ -112,10 +113,13 @@ public: // Derived lighting values // ambient component - GLfloat scene_ambient[3]; + GLfloat scene_ambient[4]; + + // diffuse component + GLfloat scene_diffuse[4]; // diffuse component - GLfloat scene_diffuse[3]; + GLfloat scene_specular[4]; // fog color GLfloat fog_color[4]; @@ -123,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 ); @@ -148,5 +158,3 @@ extern fgLIGHT cur_light_params; #endif // _LIGHT_HXX - -