Browse Source

USDZExporter: Log warning when material.side === THREE.DoubleSide. (#24214)

mrdoob 3 years ago
parent
commit
478d282c92
1 changed files with 7 additions and 0 deletions
  1. 7 0
      examples/jsm/exporters/USDZExporter.js

+ 7 - 0
examples/jsm/exporters/USDZExporter.js

@@ -407,6 +407,13 @@ function buildMaterial( material, textures ) {
 
 
 	}
 	}
 
 
+
+	if ( material.side === THREE.DoubleSide ) {
+
+		console.warn( 'THREE.USDZExporter: USDZ does not support double sided materials', material );
+
+	}
+
 	if ( material.map !== null ) {
 	if ( material.map !== null ) {
 
 
 		inputs.push( `${ pad }color3f inputs:diffuseColor.connect = </Materials/Material_${ material.id }/Texture_${ material.map.id }_diffuse.outputs:rgb>` );
 		inputs.push( `${ pad }color3f inputs:diffuseColor.connect = </Materials/Material_${ material.id }/Texture_${ material.map.id }_diffuse.outputs:rgb>` );