Browse Source

Exporter updates

Panagiotis Christopoulos Charitos 10 years ago
parent
commit
3759712a4b
2 changed files with 5 additions and 3 deletions
  1. 1 1
      testapp/Main.cpp
  2. 4 2
      tools/scene/Exporter.cpp

+ 1 - 1
testapp/Main.cpp

@@ -61,7 +61,7 @@ Error init()
 	MainRenderer& renderer = app->getMainRenderer();
 	ResourceManager& resources = app->getResourceManager();
 
-	scene.setAmbientColor(Vec4(0.1, 0.05, 0.05, 0.0) * 0.8);
+	scene.setAmbientColor(Vec4(1.0) * 0.1);
 
 	if(getenv("PROFILE"))
 	{

+ 4 - 2
tools/scene/Exporter.cpp

@@ -704,14 +704,16 @@ void Exporter::exportLight(const aiLight& light)
 	file << "lcomp = node:getSceneNodeBase():getLightComponent()\n";
 
 	// Colors
-	aiColor3D linear = computeLightColor(light.mColorDiffuse);
+	//aiColor3D linear = computeLightColor(light.mColorDiffuse);
+	aiColor3D linear = light.mColorDiffuse;
 	file << "lcomp:setDiffuseColor(Vec4.new("
 		<< linear[0] << ", "
 		<< linear[1] << ", "
 		<< linear[2] << ", "
 		<< "1))\n";
 
-	linear = computeLightColor(light.mColorSpecular);
+	//linear = computeLightColor(light.mColorSpecular);
+	linear = light.mColorSpecular;
 	file << "lcomp:setSpecularColor(Vec4.new("
 		<< linear[0] << ", "
 		<< linear[1] << ", "