- Timestamp:
- 01/07/09 14:22:34 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ViewCellsTree.cpp
r3251 r3256 13 13 14 14 #define VIEWCELLS_VERSION 1.0f 15 16 // hack: this has to be set to 0.05f for powerplant, to 1 otherwise17 //static const float sScale = 0.05f;18 static const float sScale = 1.0f;19 15 20 16 … … 85 81 fread(&box, sizeof(AxisAlignedBox3), 1, fr); 86 82 87 box.Scale( sScale);83 box.Scale(mScaleFactor); 88 84 89 85 Vector3 v1(box.Min().x, -box.Min().z, box.Min().y); … … 128 124 fread(&mypos, sizeof(float), 1, fr); 129 125 130 mypos *= sScale;126 mypos *= mScaleFactor; 131 127 132 128 // changed coordinate system must be considered also here … … 154 150 155 151 152 void ViewCellsTree::SetScaleFactor(float scale) 153 { 154 mScaleFactor = scale; 156 155 } 156 157 158 }
Note: See TracChangeset
for help on using the changeset viewer.