Changeset 1020 for GTP/trunk/Lib/Vis/Preprocessing/src/X3dExporter.cpp
- Timestamp:
- 06/18/06 03:47:06 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/X3dExporter.cpp
r1006 r1020 211 211 tStack.push(pair<BspNode *, BspNodeGeometry *>(tree.GetRoot(), geom)); 212 212 213 if (maxPvs > 0)213 if (maxPvs) 214 214 mUseForcedMaterial = true; 215 215 … … 238 238 else 239 239 { 240 if (maxPvs > 0)240 if (maxPvs) 241 241 { 242 242 BspLeaf *leaf = dynamic_cast<BspLeaf *>(node); 243 243 244 244 mForcedMaterial.mDiffuseColor.b = 1.0f; 245 float importance = (float)leaf->GetViewCell()->GetPvs().GetSize() / (float)maxPvs;245 const float importance = (float)leaf->GetViewCell()->GetPvs().GetSize() / (float)maxPvs; 246 246 247 247 mForcedMaterial.mDiffuseColor.r = importance;
Note: See TracChangeset
for help on using the changeset viewer.