Changeset 1920 for GTP/trunk/Lib/Vis/Preprocessing/src/Exporter.cpp
- Timestamp:
- 12/22/06 20:08:48 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Exporter.cpp
r1843 r1920 105 105 106 106 bool Exporter::ExportBvHierarchy(const BvHierarchy &bvHierarchy, 107 const int maxPvs,107 const float maxPvs, 108 108 AxisAlignedBox3 *box, 109 109 const bool exportBoundingBoxes) … … 135 135 } 136 136 137 if (maxPvs ) // color code pvs137 if (maxPvs > 0) // color code pvs 138 138 { 139 139 mForcedMaterial.mDiffuseColor.b = 1.0f; 140 const float importance = (float)leaf->m Objects.size()/ (float)maxPvs;140 const float importance = (float)leaf->mRenderCost / (float)maxPvs; 141 141 142 142 mForcedMaterial.mDiffuseColor.r = importance;
Note: See TracChangeset
for help on using the changeset viewer.