commit
201807f733
|
@ -118,7 +118,6 @@ struct Camera
|
||||||
float mZNear, mZFar;
|
float mZNear, mZFar;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define aiLightSource_AMBIENT 0xdeaddead
|
|
||||||
#define ASSIMP_COLLADA_LIGHT_ANGLE_NOT_SET 1e9f
|
#define ASSIMP_COLLADA_LIGHT_ANGLE_NOT_SET 1e9f
|
||||||
|
|
||||||
/** A collada light source. */
|
/** A collada light source. */
|
||||||
|
|
|
@ -308,10 +308,6 @@ void ColladaLoader::BuildLightsForNode( const ColladaParser& pParser, const Coll
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const Collada::Light* srcLight = &srcLightIt->second;
|
const Collada::Light* srcLight = &srcLightIt->second;
|
||||||
if (srcLight->mType == aiLightSource_AMBIENT) {
|
|
||||||
DefaultLogger::get()->error("Collada: Skipping ambient light for the moment");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// now fill our ai data structure
|
// now fill our ai data structure
|
||||||
aiLight* out = new aiLight();
|
aiLight* out = new aiLight();
|
||||||
|
|
|
@ -75,6 +75,13 @@ enum aiLightSourceType
|
||||||
//! sport arenas.
|
//! sport arenas.
|
||||||
aiLightSource_SPOT = 0x3,
|
aiLightSource_SPOT = 0x3,
|
||||||
|
|
||||||
|
//! The generic light level of the world, including the bounces
|
||||||
|
//! of all other lightsources.
|
||||||
|
//! Typically, there's at most one ambient light in a scene.
|
||||||
|
//! This light type doesn't have a valid position, direction, or
|
||||||
|
//! other properties, just a color.
|
||||||
|
aiLightSource_AMBIENT = 0x4,
|
||||||
|
|
||||||
|
|
||||||
/** This value is not used. It is just there to force the
|
/** This value is not used. It is just there to force the
|
||||||
* compiler to map this enum to a 32 Bit integer.
|
* compiler to map this enum to a 32 Bit integer.
|
||||||
|
|
Loading…
Reference in New Issue