Skip to content

Commit

Permalink
Merge pull request assimp#350 from Gargaj/ambientlight
Browse files Browse the repository at this point in the history
Enable ambient lights
  • Loading branch information
acgessler committed Aug 28, 2014
2 parents 258afb3 + ae7aba3 commit 201807f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion code/ColladaHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ struct Camera
float mZNear, mZFar;
};

#define aiLightSource_AMBIENT 0xdeaddead
#define ASSIMP_COLLADA_LIGHT_ANGLE_NOT_SET 1e9f

/** A collada light source. */
Expand Down
4 changes: 0 additions & 4 deletions code/ColladaLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,6 @@ void ColladaLoader::BuildLightsForNode( const ColladaParser& pParser, const Coll
continue;
}
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
aiLight* out = new aiLight();
Expand Down
7 changes: 7 additions & 0 deletions include/assimp/light.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ enum aiLightSourceType
//! sport arenas.
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
* compiler to map this enum to a 32 Bit integer.
Expand Down

0 comments on commit 201807f

Please sign in to comment.