From Konstantin Matveyev, "Multiple light fix in FBX-importer"
This commit is contained in:
@@ -20,11 +20,11 @@ osgDB::ReaderWriter::ReadResult OsgFbxReader::readFbxLight(FbxNode* pNode, int&
|
||||
}
|
||||
|
||||
osg::Light* osgLight = new osg::Light;
|
||||
osg::LightSource* osgLightSource = new osg::LightSource;
|
||||
|
||||
osgLightSource->setLight(osgLight);
|
||||
osgLight->setLightNum(nLightCount++);
|
||||
|
||||
osg::LightSource* osgLightSource = new osg::LightSource;
|
||||
osgLightSource->setLight(osgLight);
|
||||
|
||||
FbxLight::EType fbxLightType = fbxLight->LightType.IsValid() ?
|
||||
fbxLight->LightType.Get() : FbxLight::ePoint;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user