Reference metalness()

metalness()

Sets the amount of "metalness" of a specularMaterial().

metalness() can make materials appear more metallic. It affects the way materials reflect light sources including affects the way materials reflect light sources including directionalLight(), pointLight(), spotLight(), and imageLight().

The parameter, metallic, is a number that sets the amount of metalness. metallic must be greater than 1, which is its default value. Higher values, such as metalness(100), make specular materials appear more metallic.

Examples

Syntax

metalness(metallic)

Parameters

metallic
Number:

amount of metalness.

This page is generated from the comments in src/webgl/material.js . Please feel free to edit it and submit a pull request!

Related References