X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FTime%2Flight.hxx;h=b1dd41ab853912197fe253ab9a774ff059267b94;hb=a4ba46a270959bc866387873f29c1d980979fff7;hp=38e7935c00e0b301bca0f7b10cac0111ae247d81;hpb=c90db01dc8d5462a3da22771ffa7c96f5ea31217;p=flightgear.git diff --git a/src/Time/light.hxx b/src/Time/light.hxx index 38e7935c0..b1dd41ab8 100644 --- a/src/Time/light.hxx +++ b/src/Time/light.hxx @@ -39,20 +39,21 @@ #endif #include -#include +#include -// #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 *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,10 @@ public: // Derived lighting values // ambient component - GLfloat scene_ambient[3]; + GLfloat scene_ambient[4]; // diffuse component - GLfloat scene_diffuse[3]; + GLfloat scene_diffuse[4]; // fog color GLfloat fog_color[4]; @@ -148,5 +149,3 @@ extern fgLIGHT cur_light_params; #endif // _LIGHT_HXX - -