在application中,有osgEarth_lights
ShadowCaster* caster = osgEarth::findTopMostNodeOfType<ShadowCaster>(root);
if (caster)
{
OE_INFO << "Found a shadow caster!\n";
caster->setLight(sunLight);
}
以后有时间时把这些例子都调下。