Blender exporter: `opacity` should be `transparency`
@@ -310,10 +310,17 @@ THREE.Loader.prototype = {
if ( m.transparency ) {
+ console.warn( 'transparency has been renamed to opacity' );
mpars.opacity = m.transparency;
}
+ if ( m.opacity ) {
+
+ mpars.opacity = m.opacity;
+ }
if ( m.specularCoef ) {
mpars.shininess = m.specularCoef;
@@ -128,7 +128,7 @@ def normal_map(material):
@_material
def opacity(material):
logger.debug('material.opacity(%s)', material)
- return round(material.alpha - 1.0, 2);
+ return round( material.alpha, 2 );