[page:Material] →
[name]
A material that maps the normal vectors to RGB colors.
Constructor
[name]([page:Object parameters])
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.
Properties
[property: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], [page:Materials THREE.FlatShading](default)
[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.
Methods
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]