فهرست منبع

Fix Collada material roughness import function 2

Fix minus space.
Dmitriy Romanov 7 سال پیش
والد
کامیت
3b29e85257
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      editor/import/editor_import_collada.cpp

+ 1 - 1
editor/import/editor_import_collada.cpp

@@ -480,7 +480,7 @@ Error ColladaImport::_create_material(const String &p_target) {
 		}
 	}
 
-	float roughness = - Math::sqrt(1.0 - ((Math::log(effect.shininess) / Math::log(2.0)) / 9.0)) + 1;
+	float roughness = -Math::sqrt(1.0 - ((Math::log(effect.shininess) / Math::log(2.0)) / 9.0)) + 1;
 	material->set_roughness(roughness);
 
 	if (effect.double_sided) {