From 00e21af5bb9f38eccb6e421b3afc00df58924942 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Thu, 12 Jul 2012 16:31:27 +0100 Subject: [PATCH] Correct index used by building.eff for lightmap. --- simgear/scene/tgdb/SGBuildingBin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5