提交 9d72d80f 编写于 作者: M Mr.doob

MeshNormalMaterial: Removed shading property.

上级 09de063f
......@@ -12,7 +12,7 @@
<h1>[name]</h1>
<div class="desc">A material that maps the normal vectors to RGB colors.</div>
<iframe src='../../scenes/material-browser.html#MeshNormalMaterial'></iframe>
......@@ -21,10 +21,9 @@
<h3>[name]([page:Object parameters])</h3>
<div>
parameters is an object with one or more properties defining the material's appearance.
parameters is an object with one or more properties defining the material's appearance.
</div>
<div>
shading -- How the triangles of a curved surface are rendered. Default is [page:Materials THREE.FlatShading].<br/>
wireframe -- Render geometry as wireframe. Default is false (i.e. render as smooth shaded).<br/>
wireframeLinewidth -- Controls wireframe thickness. Default is 1.<br/>
morphTargets -- Define whether the material uses morphTargets. Default is false.<br/>
......@@ -34,25 +33,19 @@
<h2>Properties</h2>
<h3>[property:number shading]</h3>
<h3>[property:boolean wireframe]</h3>
<div>
How the triangles of a curved surface are rendered: as a smooth surface, as flat separate facets, or no shading at all.<br/><br/>
Options are [page:Materials THREE.SmoothShading], [page:Materials THREE.FlatShading](default)
Render geometry as wireframe. Default is false (i.e. render as smooth shaded).
</div>
<h3>[property:boolean wireframe]</h3>
<div>
Render geometry as wireframe. Default is false (i.e. render as smooth shaded).
</div>
<h3>[property:number wireframeLinewidth]</h3>
<div>
Controls wireframe thickness. Default is 1.<br/><br/>
Due to limitations in the ANGLE layer, on Windows platforms linewidth will always be 1 regardless of the set value.
</div>
</div>
<h3>[property:boolean morphTargets]</h3>
<div>Define whether the material uses morphTargets. Default is false.</div>
<div>Define whether the material uses morphTargets. Default is false.</div>
<h2>Methods</h2>
......
......@@ -20,8 +20,6 @@ THREE.MeshNormalMaterial = function ( parameters ) {
this.type = 'MeshNormalMaterial';
this.shading = THREE.FlatShading;
this.wireframe = false;
this.wireframeLinewidth = 1;
......@@ -40,8 +38,6 @@ THREE.MeshNormalMaterial.prototype.clone = function () {
THREE.Material.prototype.clone.call( this, material );
material.shading = this.shading;
material.wireframe = this.wireframe;
material.wireframeLinewidth = this.wireframeLinewidth;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册