- Bugfix: Collada loader writes "zero transparency" to material now
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1202 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/5/head
parent
b908b00f96
commit
f633437d88
|
@ -1242,7 +1242,7 @@ void ColladaLoader::FillMaterials( const ColladaParser& pParser, aiScene* /*pSce
|
||||||
|
|
||||||
// transparency, a very hard one. seemingly not all files are following the
|
// transparency, a very hard one. seemingly not all files are following the
|
||||||
// specification here .. but we can trick.
|
// specification here .. but we can trick.
|
||||||
if (effect.mTransparency > 0.f && effect.mTransparency < 1.f) {
|
if (effect.mTransparency >= 0.f && effect.mTransparency < 1.f) {
|
||||||
effect.mTransparency = 1.f- effect.mTransparency;
|
effect.mTransparency = 1.f- effect.mTransparency;
|
||||||
mat.AddProperty( &effect.mTransparency, 1, AI_MATKEY_OPACITY );
|
mat.AddProperty( &effect.mTransparency, 1, AI_MATKEY_OPACITY );
|
||||||
mat.AddProperty( &effect.mTransparent, 1, AI_MATKEY_COLOR_TRANSPARENT );
|
mat.AddProperty( &effect.mTransparent, 1, AI_MATKEY_COLOR_TRANSPARENT );
|
||||||
|
|
Loading…
Reference in New Issue