[page:Material] →
[name]
A material for drawing geometry by depth. Depth is based off of the camera near and far plane. White is nearest, black is farthest.
Constructor
[name]( [page:Object 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.
wireframe -- Render geometry as wireframe. Default is false (i.e. render as smooth shaded).
wireframeLinewidth -- Controls wireframe thickness. Default is 1.
Properties
See the base [page:Material] class for common properties.
[property:boolean morphTargets]
Define whether the material uses morphTargets. Default is false.
[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.
Methods
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]