Various tweaks to handling taxiway lighting.
This commit is contained in:
@@ -491,6 +491,8 @@ bool SGMaterialLib::load( const string &fg_root, const string& mpath ) {
|
||||
rwy_green_low_lights->setTexture( tex_name );
|
||||
matlib["RWY_GREEN_LOW_LIGHTS"]
|
||||
= new SGMaterial( rwy_green_low_lights );
|
||||
matlib["RWY_GREEN_TAXIWAY_LIGHTS"]
|
||||
= new SGMaterial( rwy_green_low_lights );
|
||||
|
||||
// hard coded low intensity taxiway blue light state
|
||||
tex_name = gen_taxiway_dir_light_map( 90, 90, 235, 205 );
|
||||
|
||||
@@ -359,7 +359,11 @@ bool sgBinObjLoad( const string& path, const bool is_base,
|
||||
pts_v[i], pts_n[i],
|
||||
matlib,
|
||||
pt_materials[i], up );
|
||||
if ( pt_materials[i].substr(0, 16) == "RWY_BLUE_TAXIWAY" ) {
|
||||
if ( pt_materials[i].substr(0, 16) == "RWY_BLUE_TAXIWAY_LIGHTS" ) {
|
||||
taxi_lights->addKid( branch );
|
||||
} else if ( pt_materials[i].substr(0, 16)
|
||||
== "RWY_GREEN_TAXIWAY_LIGHTS" )
|
||||
{
|
||||
taxi_lights->addKid( branch );
|
||||
} else {
|
||||
rwy_lights->addKid( branch );
|
||||
|
||||
@@ -49,20 +49,6 @@ typedef int_list::iterator int_list_iterator;
|
||||
typedef int_list::const_iterator int_point_list_iterator;
|
||||
|
||||
|
||||
// Define the various supported light types
|
||||
typedef enum {
|
||||
SG_RWYLIGHT_TAXI = 0,
|
||||
SG_RWYLIGHT_VASI,
|
||||
SG_RWYLIGHT_EDGE,
|
||||
SG_RWYLIGHT_TOUCHDOWN,
|
||||
SG_RWYLIGHT_THRESHOLD,
|
||||
SG_RWYLIGHT_WHITE,
|
||||
SG_RWYLIGHT_RED,
|
||||
SG_RWYLIGHT_GREEN,
|
||||
SG_RWYLIGHT_YELLOW
|
||||
} sgPointLightType;
|
||||
|
||||
|
||||
// Generate a directional light. This routines creates a
|
||||
// 'directional' light that can only be viewed from within 90 degrees
|
||||
// of the specified dir vector.
|
||||
|
||||
Reference in New Issue
Block a user