[page:Material] →

[name]

A material that maps the normal vectors to RGB colors.

Constructor

[name]([page:todo parameters])

parameters is an object with one or more properties defining the material's appearance.
morphTargets -- Define whether the material uses morphTargets. Default is false.
shading -- How the triangles of a curved surface are rendered. Default is [page:Materials THREE.SmoothShading].
wireframe -- Render geometry as wireframe. Default is false (i.e. render as smooth shaded).
wireframeLinewidth -- Controls wireframe thickness. Default is 1.

Properties

.[page:boolean morphTargets]

Define whether the material uses morphTargets. Default is false.

.[page:number shading]

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] (default), [page:Materials THREE.FlatShading]

.[page:boolean wireframe]

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

.[page: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.

Methods

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]