Merge pull request #1080 from johnmaf/bugfix/collada-transparency

Properly export COLLADA <transparency> value
pull/1028/merge
Kim Kulling 2016-11-27 16:30:59 +01:00 committed by GitHub
commit 1d9f91946f
1 changed files with 1 additions and 1 deletions

View File

@ -691,7 +691,7 @@ void ColladaExporter::WriteMaterials()
materials[a].shininess.exist = mat->Get( AI_MATKEY_SHININESS, materials[a].shininess.value) == aiReturn_SUCCESS;
materials[a].transparency.exist = mat->Get( AI_MATKEY_OPACITY, materials[a].transparency.value) == aiReturn_SUCCESS;
materials[a].transparency.value = 1 - materials[a].transparency.value;
materials[a].transparency.value = materials[a].transparency.value;
materials[a].index_refraction.exist = mat->Get( AI_MATKEY_REFRACTI, materials[a].index_refraction.value) == aiReturn_SUCCESS;
}