Merge pull request #17840 from Dimonasdf/master

Fix Collada material roughness import function
This commit is contained in:
Juan Linietsky 2018-04-07 16:19:11 -03:00 committed by GitHub
commit 829c455a48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)) / 8.0)); //not very right..
float roughness = (effect.shininess - 1.0) / 510;
material->set_roughness(roughness);
if (effect.double_sided) {