Blender Git Loki

Git Commits -> Revision 73379fd

July 24, 2019, 14:17 (GMT)
Incompatible usage of the Collada transparency value

Some external tools seem to have issues with the definition
of Collada <transparency> - a float value in range (0,1).
However it is possible to use the <transparent> color as a container
for the <transparency> value. This seems to be a more reliable
method to export transparency values from Blender PBSDF Shaders.

The relevant documentation is in the collada 1.14 reference manual,
page 7-5 about the usage of transparent and transparency.

This fix makes export and import of the <transparency>
and <transparent> values more convenient and more reliable.

Reviewers: brecht, jesterking

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D5305

Commit Details:

Full Hash: 73379fd974c17fd14f4b64b983623e6e5e2363e4
Parent Commit: 33acb75
Committed By: Brecht Van Lommel
Lines Changed: +35, -5

2 Modified Paths:

/source/blender/collada/EffectExporter.cpp (+9, -2) (Diff)
/source/blender/collada/Materials.cpp (+26, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021