From: Stuart Buchanan Date: Thu, 12 Jul 2012 15:31:27 +0000 (+0100) Subject: Correct index used by building.eff for lightmap. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=00e21af5bb9f38eccb6e421b3afc00df58924942;p=simgear.git Correct index used by building.eff for lightmap. --- diff --git a/simgear/scene/tgdb/SGBuildingBin.cxx b/simgear/scene/tgdb/SGBuildingBin.cxx index b4c2856a..180dc48d 100644 --- a/simgear/scene/tgdb/SGBuildingBin.cxx +++ b/simgear/scene/tgdb/SGBuildingBin.cxx @@ -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);