]> git.mxchange.org Git - simgear.git/commitdiff
Correct index used by building.eff for lightmap.
authorStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Thu, 12 Jul 2012 15:31:27 +0000 (16:31 +0100)
committerStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Thu, 12 Jul 2012 15:31:27 +0000 (16:31 +0100)
simgear/scene/tgdb/SGBuildingBin.cxx

index b4c2856af1713d0ca1b470dc5f024b1ea112dbcd..180dc48d373c0b2d35cc954be4b77f07603f9023 100644 (file)
@@ -619,8 +619,8 @@ osg::Group* createRandomBuildings(SGBuildingBinList buildings, const osg::Matrix
             params->getChild("texture", 0, true)->getChild("image", 0, true)
                 ->setStringValue(bin->texture);
 
-            // Light map - n=1
-            params->getChild("texture", 1, true)->getChild("image", 0, true)
+            // Light map - n=3
+            params->getChild("texture", 3, true)->getChild("image", 0, true)
                 ->setStringValue(bin->lightMap);
                 
             effect = makeEffect(effectProp, true, options);