Misc clean ups.
This commit is contained in:
parent
c162577340
commit
cf96178ea8
1 changed files with 2 additions and 7 deletions
|
@ -1399,15 +1399,13 @@ bool fgBinObjLoad( const string& path, const bool is_base,
|
|||
for ( i = 0; i < pts_v.size(); ++i ) {
|
||||
// cout << "pts_v.size() = " << pts_v.size() << endl;
|
||||
if ( pt_materials[i].substr(0, 3) == "RWY" ) {
|
||||
material = "GROUND_LIGHTS";
|
||||
is_lighting = true;
|
||||
sgVec3 up;
|
||||
sgSetVec3( up, center->x(), center->y(), center->z() );
|
||||
ssgBranch *branch = gen_directional_lights( nodes, normals,
|
||||
pts_v[i], pts_n[i],
|
||||
up );
|
||||
float ranges[] = { 0, 12000 };
|
||||
// branch->setCallback( SSG_CALLBACK_PREDRAW, runway_lights_predraw );
|
||||
branch->setCallback( SSG_CALLBACK_PREDRAW, runway_lights_predraw );
|
||||
ssgRangeSelector * lod = new ssgRangeSelector;
|
||||
lod->setRanges( ranges, 2 );
|
||||
lod->addKid( branch );
|
||||
|
@ -1421,9 +1419,6 @@ bool fgBinObjLoad( const string& path, const bool is_base,
|
|||
false, ground_lights );
|
||||
geometry->addKid( leaf );
|
||||
}
|
||||
|
||||
if ( is_lighting ) {
|
||||
}
|
||||
}
|
||||
|
||||
// Put all randomly-placed objects under a separate branch
|
||||
|
|
Loading…
Reference in a new issue