History

Adding a Hack for the apaartment model to boost the lightmaps

Sam Gateau committed 11 years ago

Commit 845e6871 parent 1b5b4c03 files · +9 −5Browse files

Showing the changes to interface/src/renderer/GeometryCache.cpp (1 of 3 files). Show all

Unified · Split

interface/src/renderer/GeometryCache.cpp+4−1
@@ -835,11 +835,14 @@ void GeometryReader::run() { · 834 unmodified lines
835835 fbxgeo = readSVO(_reply->readAll());
836836 } else {
837837 bool grabLightmaps = true;
838+ float lightmapLevel = 1.0f;
838839 // HACK: For monday 12/01/2014 we need to kill lighmaps loading in starchamber...
839840 if (_url.path().toLower().endsWith("loungev4_11-18.fbx")) {
840841 grabLightmaps = false;
842+ } else if (_url.path().toLower().endsWith("apt8_reboot.fbx")) {
843+ lightmapLevel = 4.0f;
841844 }
842− fbxgeo = readFBX(_reply->readAll(), _mapping, grabLightmaps);
845+ fbxgeo = readFBX(_reply->readAll(), _mapping, grabLightmaps, lightmapLevel);
843846 }
844847 QMetaObject::invokeMethod(geometry.data(), "setGeometry", Q_ARG(const FBXGeometry&, fbxgeo));
845848