Collada: changed specification of material alpha from using transparency to using transparent with opaque=A_ONE

This commit is contained in:
Gaia Clary
2016-07-15 16:12:39 +02:00
parent e3b79544be
commit 27641b51e7

View File

@@ -30,6 +30,7 @@
#include <set> #include <set>
#include "COLLADASWEffectProfile.h" #include "COLLADASWEffectProfile.h"
#include "COLLADAFWColorOrTexture.h"
#include "EffectExporter.h" #include "EffectExporter.h"
#include "DocumentExporter.h" #include "DocumentExporter.h"
@@ -217,9 +218,9 @@ void EffectsExporter::operator()(Material *ma, Object *ob)
// transparency // transparency
if (ma->mode & MA_TRANSP) { if (ma->mode & MA_TRANSP) {
// Tod: because we are in A_ONE mode transparency is calculated like this: // Tod: because we are in A_ONE mode transparency is calculated like this:
ep.setTransparency(ma->alpha, false, "transparency"); cot = getcol(1.0f, 1.0f, 1.0f, ma->alpha);
// cot = getcol(1.0f, 1.0f, 1.0f, 1.0f); ep.setTransparent(cot);
// ep.setTransparent(cot); ep.setOpaque(COLLADASW::EffectProfile::A_ONE);
} }
// emission // emission