|
|
@@ -41,6 +41,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
/** @file Implementation of the Collada loader */
|
|
|
|
|
|
+// Modified by Lasse Oorni for Urho3D
|
|
|
+
|
|
|
#include "AssimpPCH.h"
|
|
|
#ifndef ASSIMP_BUILD_NO_COLLADA_IMPORTER
|
|
|
|
|
|
@@ -318,7 +320,8 @@ void ColladaLoader::BuildLightsForNode( const ColladaParser& pParser, const Coll
|
|
|
out->mType = (aiLightSourceType)srcLight->mType;
|
|
|
|
|
|
// collada lights point in -Z by default, rest is specified in node transform
|
|
|
- out->mDirection = aiVector3D(0.f,0.f,-1.f);
|
|
|
+ // Urho3D: lights should use positive Z as local direction
|
|
|
+ out->mDirection = aiVector3D(0.f, 0.f,1.f);
|
|
|
|
|
|
out->mAttenuationConstant = srcLight->mAttConstant;
|
|
|
out->mAttenuationLinear = srcLight->mAttLinear;
|