瀏覽代碼

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

mrdoob 3 年之前
父節點
當前提交
478d282c92
共有 1 個文件被更改,包括 7 次插入0 次删除
  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 ) {
 
 		inputs.push( `${ pad }color3f inputs:diffuseColor.connect = </Materials/Material_${ material.id }/Texture_${ material.map.id }_diffuse.outputs:rgb>` );