diff --git a/docs/api/materials/MeshNormalMaterial.html b/docs/api/materials/MeshNormalMaterial.html index 37ca144e1b2e17fcdeea5f686db7bda97940d430..80b32009d5fad7a5b34b8ff4f5883b1ca9696c89 100644 --- a/docs/api/materials/MeshNormalMaterial.html +++ b/docs/api/materials/MeshNormalMaterial.html @@ -12,7 +12,7 @@

[name]

A material that maps the normal vectors to RGB colors.
- + @@ -21,10 +21,9 @@

[name]([page:Object parameters])

- 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.
- shading -- How the triangles of a curved surface are rendered. Default is [page:Materials THREE.FlatShading].
wireframe -- Render geometry as wireframe. Default is false (i.e. render as smooth shaded).
wireframeLinewidth -- Controls wireframe thickness. Default is 1.
morphTargets -- Define whether the material uses morphTargets. Default is false.
@@ -34,25 +33,19 @@

Properties

-

[property:number shading]

+

[property:boolean wireframe]

- How the triangles of a curved surface are rendered: as a smooth surface, as flat separate facets, or no shading at all.

- Options are [page:Materials THREE.SmoothShading], [page:Materials THREE.FlatShading](default) + Render geometry as wireframe. Default is false (i.e. render as smooth shaded).
-

[property:boolean wireframe]

-
- Render geometry as wireframe. Default is false (i.e. render as smooth shaded). -
-

[property:number wireframeLinewidth]

Controls wireframe thickness. Default is 1.

Due to limitations in the ANGLE layer, on Windows platforms linewidth will always be 1 regardless of the set value. -
+

[property:boolean morphTargets]

-
Define whether the material uses morphTargets. Default is false.
+
Define whether the material uses morphTargets. Default is false.

Methods

diff --git a/src/materials/MeshNormalMaterial.js b/src/materials/MeshNormalMaterial.js index 1839fc7039487705432e8bb65b9c95ac4ce5e50c..1895f002b59f5b92b554ef833102c604b1a82f73 100644 --- a/src/materials/MeshNormalMaterial.js +++ b/src/materials/MeshNormalMaterial.js @@ -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;