浏览代码

MeshPhysicalMaterial

duanjobs 6 年之前
父节点
当前提交
f6ec8fe619
共有 2 个文件被更改,包括 22 次插入31 次删除
  1. 1 1
      docs/api/zh/materials/MeshPhongMaterial.html
  2. 21 30
      docs/api/zh/materials/MeshPhysicalMaterial.html

+ 1 - 1
docs/api/zh/materials/MeshPhongMaterial.html

@@ -134,7 +134,7 @@
 		<p>定义材质是否使用morphTargets。默认值为false。</p>
 
 		<h3>[property:Texture normalMap]</h3>
-		<p> 用于创建法线贴图的纹理。RGB值会影响每个像素片段的曲面法线,并更改颜色的照明方式。法线贴图不会改变曲面的实际形状,只会改变光照。
+		<p> 用于创建法线贴图的纹理。RGB值会影响每个像素片段的曲面法线,并更改颜色照亮的方式。法线贴图不会改变曲面的实际形状,只会改变光照。
 		</p>
 
 		<h3>[property:Integer normalMapType]</h3>

+ 21 - 30
docs/api/zh/materials/MeshPhysicalMaterial.html

@@ -10,12 +10,10 @@
 	<body>
 		[page:Material] &rarr; [page:MeshStandardMaterial] &rarr;
 
-		<h1>[name]</h1>
+		<h1>物理网格材质([name])</h1>
 
-		<p class="desc">
-			An extension of the [page:MeshStandardMaterial] that allows for greater control over reflectivity.<br /><br />
-
-			Note that for best results you should always specify an [page:.envMap environment map] when using this material.
+		<p class="desc"> [page:MeshStandardMaterial]的扩展,能够更好地控制反射率。<br /><br />
+			请注意,为了获得最佳效果,您在使用此材质时应始终指定环境贴图。
 		</p>
 
 		<iframe id="scene" src="scenes/material-browser.html#MeshPhysicalMaterial"></iframe>
@@ -36,61 +34,54 @@
 
 		</script>
 
-		<h2>Examples</h2>
+		<h2>例子(Examples)</h2>
 		[example:webgl_materials_variations_physical materials / variations / physical]<br />
 		[example:webgl_materials_reflectivity materials / reflectivity]
 
-		<h2>Constructor</h2>
+		<h2>构造函数(Constructor)</h2>
 
 		<h3>[name]( [param:Object parameters] )</h3>
-		<p>
-		[page:Object parameters] - (optional) an object with one or more properties defining the material's appearance.
-		Any property of the material (including any property inherited from [page:Material] and [page:MeshStandardMaterial]) can be passed in here.<br /><br />
-
-		The exception is the property [page:Hexadecimal color], which can be passed in as a hexadecimal
-		string and is *0xffffff* (white) by default. [page:Color.set]( color ) is called internally.
+		<p> [page:Object parameters] - (可选)用于定义材质外观的对象,具有一个或多个属性。
+			材质的任何属性都可以从此处传入(包括从[page:Material]继承的任何属性)<br /><br />
+			属性[page:Hexadecimal color]例外,其可以作为十六进制字符串传递,默认情况下为 *0xffffff*(白色),内部调用[page:Color.set](color)。
 		</p>
 
 
-		<h2>Properties</h2>
-		<p>See the base [page:Material] and [page:MeshStandardMaterial] classes for common properties.</p>
+		<h2>属性(Properties)</h2>
+		<p>常用属性请参见基类[page:Material]。</p>
 
 		<h3>[property:Float clearCoat]</h3>
 		<p>
-		ClearCoat level, from *0.0* to *1.0*. Default is *0.0*.
+			ClearCoat级别,从*0.0*到*1.0*。默认值为*0.0*。
 		</p>
 
 		<h3>[property:Float clearCoatRoughness]</h3>
-		<p>How rough the clearCoat appears, from *0.0* to *1.0*. Default is *0.0*.</p>
+		<p> clearCoat出现的粗糙程度,从*0.0*到*1.0*。默认值为*0.0*。</p>
 
 		<h3>[property:Boolean isMeshPhysicalMaterial]</h3>
-		<p>
-			Used to check whether this or derived classes are mesh physical materials. Default is *true*.<br /><br />
+		<p> 用于检查此类或派生类是否为Lambert网格材质。默认值为 *true*。<br /><br />
 
-			You should not change this, as it used internally for optimisation.
+			因为其通常用在内部优化,所以不应该更改该属性值。
 		</p>
 
 		<h3>[property:Object defines]</h3>
-		<p>An object of the form:
+		<p> 如下形式的对象:
 			<code>
 				{ 'PHYSICAL': '' };
 			</code>
-
-			This is used by the [page:WebGLRenderer] for selecting shaders.
+			[page:WebGLRenderer]使用它来选择shaders。
 		</p>
 
 		<h3>[property:Float reflectivity]</h3>
-		<p>
-		Degree of reflectivity, from *0.0* to *1.0*. Default is *0.5*.<br />
-
-		This models the reflectivity of non-metallic materials. It has no effect when [page:MeshStandardMaterial.metalness metalness] is *1.0*
+		<p> 反射度,从*0.0*到*1.0*。默认值为*0.5*。<br />
+			这模拟了非金属材料的反射率。当[page:MeshStandardMaterial为*1.0*时,此属性无效。
 		</p>
 
-		<h2>Methods</h2>
-		<p>See the base [page:Material] and [page:MeshStandardMaterial] classes for common methods.</p>
+		<h2>方法(Methods)</h2>
+		<p>常用方法请参见基类[page:Material] 和[page:MeshStandardMaterial]。</p>
 
 
-		<h2>Source</h2>
+		<h2>源码(Source)</h2>
 
 		[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
 	</body>