Ignore:
Timestamp:
01/07/09 14:22:34 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ViewCellsTree.cpp

    r3251 r3256  
    1313 
    1414#define VIEWCELLS_VERSION 1.0f 
    15  
    16 // hack: this has to be set to 0.05f for powerplant, to 1 otherwise 
    17 //static const float sScale = 0.05f; 
    18 static const float sScale = 1.0f; 
    1915 
    2016 
     
    8581        fread(&box, sizeof(AxisAlignedBox3), 1, fr); 
    8682 
    87         box.Scale(sScale); 
     83        box.Scale(mScaleFactor); 
    8884 
    8985        Vector3 v1(box.Min().x, -box.Min().z, box.Min().y); 
     
    128124                        fread(&mypos, sizeof(float), 1, fr); 
    129125 
    130                         mypos *= sScale; 
     126                        mypos *= mScaleFactor; 
    131127 
    132128                        // changed coordinate system must be considered also here 
     
    154150 
    155151 
     152void ViewCellsTree::SetScaleFactor(float scale) 
     153{ 
     154        mScaleFactor = scale; 
    156155} 
     156 
     157 
     158} 
Note: See TracChangeset for help on using the changeset viewer.