COLLADA: small tweaks to directional light import.

This commit is contained in:
Nathan Letwory 2011-03-21 09:50:30 +00:00
parent ae530c23c1
commit e1a44e9ae6

@ -596,7 +596,7 @@ private:
// default - lambert
else {
ma->diff_shader = MA_DIFF_LAMBERT;
fprintf(stderr, "Current shader type is not supported.\n");
fprintf(stderr, "Current shader type is not supported, default to lambert.\n");
}
// reflectivity
ma->ray_mirror = ef->getReflectivity().getFloatValue();
@ -955,7 +955,10 @@ private:
break;
case COLLADAFW::Light::DIRECTIONAL_LIGHT:
{
/* our sun is very strong, so pick a smaller energy level */
lamp->type = LA_SUN;
lamp->energy = 1.0;
lamp->mode |= LA_NO_SPEC;
}
break;
case COLLADAFW::Light::POINT_LIGHT: