]> git.mxchange.org Git - flightgear.git/commit
Add LOD to each AI model
authorTorsten Dreyer <Torsten@t3r.de>
Tue, 9 Aug 2011 16:02:37 +0000 (18:02 +0200)
committerTorsten Dreyer <Torsten@t3r.de>
Tue, 9 Aug 2011 16:02:37 +0000 (18:02 +0200)
commit1e7d072eed9060bede14ff04f8aca57237fad3cd
tree2c72b270068414aa9fdd5b66d4d0681a3e775e7d
parent5e30675c70e04c526e62733e3ae25e96937bcb35
Add LOD to each AI model

Add a LOD (range animation) to each AI model if the property
/sim/rendering/static-lod/ai is set to any number greater than
zero. AI models get loaded but only displayed when closer than
the number given in the property (in meters).
If the property is absent or it's value is less or equal 0.0
than no LOD is added to the AI model.
src/AIModel/AIBase.cxx
src/AIModel/AIBase.hxx