浏览代码

Merge pull request #18154 from mrdoob/meshstandardmaterial

MeshStandardMaterial: Changed roughness and metalness default values.
Mr.doob 5 年之前
父节点
当前提交
8f83c3f424

+ 2 - 2
docs/api/en/materials/MeshStandardMaterial.html

@@ -201,7 +201,7 @@
 		<h3>[property:Float metalness]</h3>
 		<p>
 			How much the material is like a metal. Non-metallic materials such as wood or stone use 0.0, metallic use 1.0, with nothing
-			(usually) in between. Default is 0.5. A value between 0.0 and 1.0 could be used for a rusty metal look. If metalnessMap is
+			(usually) in between. Default is 0.0. A value between 0.0 and 1.0 could be used for a rusty metal look. If metalnessMap is
 			also provided, both values are multiplied.
 		</p>
 
@@ -245,7 +245,7 @@
 
 		<h3>[property:Float roughness]</h3>
 		<p>
-			How rough the material appears. 0.0 means a smooth mirror reflection, 1.0 means fully diffuse. Default is 0.5.
+			How rough the material appears. 0.0 means a smooth mirror reflection, 1.0 means fully diffuse. Default is 1.0.
 			If roughnessMap is also provided, both values are multiplied.
 		</p>
 

+ 2 - 2
docs/api/zh/materials/MeshStandardMaterial.html

@@ -164,7 +164,7 @@
 
 		<h3>[property:Float metalness]</h3>
 		<p> 材质与金属的相似度。非金属材质,如木材或石材,使用0.0,金属使用1.0,通常没有中间值。
-			默认值为0.5。0.0到1.0之间的值可用于生锈金属的外观。如果还提供了metalnessMap,则两个值相乘。
+			默认值为0.0。0.0到1.0之间的值可用于生锈金属的外观。如果还提供了metalnessMap,则两个值相乘。
 		</p>
 
 		<h3>[property:Texture metalnessMap]</h3>
@@ -197,7 +197,7 @@
 		</p>
 
 		<h3>[property:Float roughness]</h3>
-		<p> 材质的粗糙程度。0.0表示平滑的镜面反射,1.0表示完全漫反射。默认值为0.5。如果还提供roughnessMap,则两个值相乘。
+		<p> 材质的粗糙程度。0.0表示平滑的镜面反射,1.0表示完全漫反射。默认值为1.0。如果还提供roughnessMap,则两个值相乘。
 		</p>
 
 		<h3>[property:Texture roughnessMap]</h3>

+ 2 - 2
src/materials/MeshStandardMaterial.js

@@ -64,8 +64,8 @@ function MeshStandardMaterial( parameters ) {
 	this.type = 'MeshStandardMaterial';
 
 	this.color = new Color( 0xffffff ); // diffuse
-	this.roughness = 0.5;
-	this.metalness = 0.5;
+	this.roughness = 1.0;
+	this.metalness = 0.0;
 
 	this.map = null;
 

+ 2 - 2
test/unit/example/exporters/GLTFExporter.tests.js

@@ -81,8 +81,8 @@ export default QUnit.module( 'Exporters', () => {
 				assert.smartEqual( {
 
 					baseColorFactor: [ 1, 0, 0, 1 ],
-					metallicFactor: 0.5,
-					roughnessFactor: 0.5
+					metallicFactor: 0.0,
+					roughnessFactor: 1.0
 
 				}, material.pbrMetallicRoughness, 'material' );