Merge pull request #647 from Gargaj/patch-1

add opencollada extension
pull/651/head
Alexander Gessler 2015-08-29 14:58:27 +02:00
commit ce5baa95ca
1 changed files with 6 additions and 0 deletions

View File

@ -1067,6 +1067,12 @@ void ColladaParser::ReadLight( Collada::Light& pLight)
pLight.mFalloffAngle = ReadFloatFromTextContent();
TestClosing("hotspot_beam");
}
// OpenCOLLADA extensions
// -------------------------------------------------------
else if (IsElement("decay_falloff")) {
pLight.mOuterAngle = ReadFloatFromTextContent();
TestClosing("decay_falloff");
}
}
else if( mReader->getNodeType() == irr::io::EXN_ELEMENT_END) {
if( strcmp( mReader->getNodeName(), "light") == 0)