Commit e50ef54b authored by TheNumbat's avatar TheNumbat
Browse files

fix directional light color export

parent 42f67118
...@@ -501,7 +501,15 @@ void ColladaExporter::WriteDirectionalLight(const aiLight *const light) { ...@@ -501,7 +501,15 @@ void ColladaExporter::WriteDirectionalLight(const aiLight *const light) {
mOutput << startstr << "<color sid=\"color\">" mOutput << startstr << "<color sid=\"color\">"
<< color.r << " " << color.g << " " << color.b << color.r << " " << color.g << " " << color.b
<< "</color>" << endstr; << "</color>" << endstr;
mOutput << startstr << "<constant_attenuation>"
<< light->mAttenuationConstant
<< "</constant_attenuation>" << endstr;
mOutput << startstr << "<linear_attenuation>"
<< light->mAttenuationLinear
<< "</linear_attenuation>" << endstr;
mOutput << startstr << "<quadratic_attenuation>"
<< light->mAttenuationQuadratic
<< "</quadratic_attenuation>" << endstr;
PopTag(); PopTag();
mOutput << startstr << "</directional>" << endstr; mOutput << startstr << "</directional>" << endstr;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment