Material

MeshNormalMaterial

A material that maps the normal vectors to RGB colors.

Constructor

MeshNormalMaterial(parameters : Object)

parameters - (optional) an object with one or more properties defining the material's appearance. Any property of the material (including any property inherited from Material) can be passed in here.

Properties

See the base Material class for common properties.

.fog : Boolean

Whether the material is affected by fog. Default is false.

.isMeshNormalMaterial : Boolean

Used to check whether this or derived classes are mesh normal materials. Default is true.

You should not change this, as it used internally for optimisation.

.lights : Boolean

Whether the material is affected by lights. Default is false.

.morphTargets : boolean

Define whether the material uses morphTargets. Default is false.

.wireframe : boolean

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

.wireframeLinewidth : Float

Controls wireframe thickness. Default is 1.

Due to limitations of the OpenGL Core Profile with the WebGL renderer on most platforms linewidth will always be 1 regardless of the set value.

Methods

See the base Material class for common methods.

Source

For more info on how to obtain the source code of this module see this page.