Ignore:
Timestamp:
06/30/06 14:22:34 (18 years ago)
Author:
gumbau
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoLodTreeLibrary.cpp

    r1069 r1070  
    8989void LodTreeLibrary::GoToFoliageLod(float newlod) 
    9090{ 
    91         uint32 targetLeaves = (1.0f-newlod)*foliage->minLeaves + newlod*foliage->leafCount; 
     91        uint32 targetLeaves = (uint32) 
     92                                                                                                ( 
     93                                                                                                        (1.0f - newlod) 
     94                                                                                                        * 
     95                                                                                                        foliage->minLeaves 
     96                                                                                                        + 
     97                                                                                                        newlod 
     98                                                                                                        * 
     99                                                                                                        foliage->leafCount 
     100                                                                                                ); 
     101 
    92102        foliage->CalculateLOD(targetLeaves); 
    93103 
Note: See TracChangeset for help on using the changeset viewer.