Jelajahi Sumber

Manual: update material feature table (#30164)

Co-authored-by: Samuel Rigaud <srigaud@duodisplay.com>
Samuel Rigaud 1 tahun lalu
induk
melakukan
f28ec3c0c7
1 mengubah file dengan 55 tambahan dan 28 penghapusan
  1. 55 28
      manual/resources/threejs-material-table.js

+ 55 - 28
manual/resources/threejs-material-table.js

@@ -9,6 +9,8 @@ const materials = [
 			'color',
 			'color',
 			'combine',
 			'combine',
 			'envMap',
 			'envMap',
+			'envMapRotation',
+			'fog',
 			'lightMap',
 			'lightMap',
 			'lightMapIntensity',
 			'lightMapIntensity',
 			'map',
 			'map',
@@ -16,6 +18,9 @@ const materials = [
 			'refractionRatio',
 			'refractionRatio',
 			'specularMap',
 			'specularMap',
 			'wireframe',
 			'wireframe',
+			'wireframeLinecap',
+			'wireframeLinejoin',
+			'wireframeLinewidth'
 		],
 		],
 	},
 	},
 	{
 	{
@@ -29,13 +34,16 @@ const materials = [
 			'bumpScale',
 			'bumpScale',
 			'color',
 			'color',
 			'combine',
 			'combine',
+			'displacementBias',
 			'displacementMap',
 			'displacementMap',
 			'displacementScale',
 			'displacementScale',
-			'displacementBias',
 			'emissive',
 			'emissive',
-			'emissiveMap',
 			'emissiveIntensity',
 			'emissiveIntensity',
+			'emissiveMap',
 			'envMap',
 			'envMap',
+			'envMapRotation',
+			'flatShading',
+			'fog',
 			'lightMap',
 			'lightMap',
 			'lightMapIntensity',
 			'lightMapIntensity',
 			'map',
 			'map',
@@ -46,6 +54,9 @@ const materials = [
 			'refractionRatio',
 			'refractionRatio',
 			'specularMap',
 			'specularMap',
 			'wireframe',
 			'wireframe',
+			'wireframeLinecap',
+			'wireframeLinejoin',
+			'wireframeLinewidth'
 		],
 		],
 	},
 	},
 	{
 	{
@@ -59,13 +70,16 @@ const materials = [
 			'bumpScale',
 			'bumpScale',
 			'color',
 			'color',
 			'combine',
 			'combine',
+			'displacementBias',
 			'displacementMap',
 			'displacementMap',
 			'displacementScale',
 			'displacementScale',
-			'displacementBias',
 			'emissive',
 			'emissive',
-			'emissiveMap',
 			'emissiveIntensity',
 			'emissiveIntensity',
+			'emissiveMap',
 			'envMap',
 			'envMap',
+			'envMapRotation',
+			'flatShading',
+			'fog',
 			'lightMap',
 			'lightMap',
 			'lightMapIntensity',
 			'lightMapIntensity',
 			'map',
 			'map',
@@ -78,6 +92,9 @@ const materials = [
 			'specular',
 			'specular',
 			'specularMap',
 			'specularMap',
 			'wireframe',
 			'wireframe',
+			'wireframeLinecap',
+			'wireframeLinejoin',
+			'wireframeLinewidth'
 		],
 		],
 	},
 	},
 	{
 	{
@@ -90,14 +107,17 @@ const materials = [
 			'bumpMap',
 			'bumpMap',
 			'bumpScale',
 			'bumpScale',
 			'color',
 			'color',
+			'displacementBias',
 			'displacementMap',
 			'displacementMap',
 			'displacementScale',
 			'displacementScale',
-			'displacementBias',
 			'emissive',
 			'emissive',
-			'emissiveMap',
 			'emissiveIntensity',
 			'emissiveIntensity',
+			'emissiveMap',
 			'envMap',
 			'envMap',
 			'envMapIntensity',
 			'envMapIntensity',
+			'envMapRotation',
+			'flatShading',
+			'fog',
 			'lightMap',
 			'lightMap',
 			'lightMapIntensity',
 			'lightMapIntensity',
 			'map',
 			'map',
@@ -106,10 +126,12 @@ const materials = [
 			'normalMap',
 			'normalMap',
 			'normalMapType',
 			'normalMapType',
 			'normalScale',
 			'normalScale',
-			'refractionRatio',
 			'roughness',
 			'roughness',
 			'roughnessMap',
 			'roughnessMap',
 			'wireframe',
 			'wireframe',
+			'wireframeLinecap',
+			'wireframeLinejoin',
+			'wireframeLinewidth'
 		],
 		],
 	},
 	},
 	{
 	{
@@ -119,38 +141,46 @@ const materials = [
 			'alphaMap',
 			'alphaMap',
 			'aoMap',
 			'aoMap',
 			'aoMapIntensity',
 			'aoMapIntensity',
+			'anisotropy',
+			'anisotropyRotation',
+			'anisotropyMap',
+			'attenuationColor',
+			'attenuationDistance',
 			'bumpMap',
 			'bumpMap',
 			'bumpScale',
 			'bumpScale',
 			'clearcoat',
 			'clearcoat',
 			'clearcoatMap',
 			'clearcoatMap',
+			'clearcoatNormalMap',
+			'clearcoatNormalScale',
 			'clearcoatRoughness',
 			'clearcoatRoughness',
 			'clearcoatRoughnessMap',
 			'clearcoatRoughnessMap',
-			'clearcoatNormalScale',
-			'clearcoatNormalMap',
 			'color',
 			'color',
+			'displacementBias',
 			'displacementMap',
 			'displacementMap',
 			'displacementScale',
 			'displacementScale',
-			'displacementBias',
 			'emissive',
 			'emissive',
-			'emissiveMap',
 			'emissiveIntensity',
 			'emissiveIntensity',
+			'emissiveMap',
 			'envMap',
 			'envMap',
 			'envMapIntensity',
 			'envMapIntensity',
+			'envMapRotation',
+			'flatShading',
+			'fog',
+			'ior',
 			'iridescence',
 			'iridescence',
-			'iridescenceMap',
 			'iridescenceIOR',
 			'iridescenceIOR',
-			'iridescenceThicknessRange',
+			'iridescenceMap',
 			'iridescenceThicknessMap',
 			'iridescenceThicknessMap',
+			'iridescenceThicknessRange',
 			'lightMap',
 			'lightMap',
 			'lightMapIntensity',
 			'lightMapIntensity',
-			'ior',
 			'map',
 			'map',
 			'metalness',
 			'metalness',
 			'metalnessMap',
 			'metalnessMap',
 			'normalMap',
 			'normalMap',
 			'normalMapType',
 			'normalMapType',
 			'normalScale',
 			'normalScale',
-			'refractionRatio',
+			'reflectivity',
 			'roughness',
 			'roughness',
 			'roughnessMap',
 			'roughnessMap',
 			'sheen',
 			'sheen',
@@ -158,31 +188,28 @@ const materials = [
 			'sheenColorMap',
 			'sheenColorMap',
 			'sheenRoughness',
 			'sheenRoughness',
 			'sheenRoughnessMap',
 			'sheenRoughnessMap',
+			'specularColor',
+			'specularColorMap',
+			'specularIntensity',
+			'specularIntensityMap',
 			'thickness',
 			'thickness',
 			'thicknessMap',
 			'thicknessMap',
 			'transmission',
 			'transmission',
 			'transmissionMap',
 			'transmissionMap',
-			'attenuationDistance',
-			'attenuationColor',
-			'anisotropy',
-			'anisotropyRotation',
-			'anisotropyMap',
-			'specularIntensity',
-			'specularIntensityMap',
-			'specularColor',
-			'specularColorMap',
 			'wireframe',
 			'wireframe',
-			'reflectivity',
+			'wireframeLinecap',
+			'wireframeLinejoin',
+			'wireframeLinewidth'
 		],
 		],
 	},
 	},
 ];
 ];
 
 
-const allProperties = {};
+const allProperties = new Set();
 materials.forEach( ( material ) => {
 materials.forEach( ( material ) => {
 
 
 	material.properties.forEach( ( property ) => {
 	material.properties.forEach( ( property ) => {
 
 
-		allProperties[ property ] = true;
+		allProperties.add( property );
 
 
 	} );
 	} );
 
 
@@ -222,7 +249,7 @@ const thead = addElem( 'thead', table );
 
 
 }
 }
 
 
-Object.keys( allProperties ).sort().forEach( ( property ) => {
+Array.from( allProperties ).sort().forEach( ( property ) => {
 
 
 	const tr = addElem( 'tr', table );
 	const tr = addElem( 'tr', table );
 	addElem( 'td', tr, property );
 	addElem( 'td', tr, property );

粤ICP备19079148号