MaterialMeshStandardMaterial

MeshPhysicalMaterial

An extension of the MeshStandardMaterial that allows for greater control over reflectivity.

Note that for best results you should always specify an environment map when using this material.

Examples

materials / variations / physical
materials / reflectivity

Constructor

MeshPhysicalMaterial(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 and MeshStandardMaterial) can be passed in here.

The exception is the property color, which can be passed in as a hexadecimal string and is 0xffffff (white) by default. Color.set(color) is called internally.

Properties

See the base Material and MeshStandardMaterial classes for common properties.

.clearCoat : Float

ClearCoat level, from 0.0 to 1.0. Default is 0.0.

.clearCoatRoughness : Float

How rough the clearCoat appears, from 0.0 to 1.0. Default is 0.0.

.isMeshPhysicalMaterial : Boolean

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

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

.defines : Object

An object of the form: { 'PHYSICAL': '' }; This is used by the WebGLRenderer for selecting shaders.

.reflectivity : Float

Degree of reflectivity, from 0.0 to 1.0. Default is 0.5.
This models the reflectivity of non-metallic materials. It has no effect when metalness is 1.0

Methods

See the base Material and MeshStandardMaterial classes for common methods.

Source

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