Skip to main content

Metallic

Metallic controls the transition between a dielectric surface, such as plastic, and a conductor, such as bare metal.

GitHub
0.0s
Compare the color of the reflections on the metallic and dielectric spheres.

Configuration​

The following fields update an existing PBR material; see Materials guide.

material.setProps({
pbrMaterial: {
metallicRoughnessValues: [1, 0.3]
}
});

Parameters​

ParameterDefaultDescription
metallicRoughnessValues[1, 1]First component sets metallic from 0 to 1.
pbr_metallicRoughnessSamplerUnboundOptional linear texture. Its blue channel multiplies the factor.

Remarks​

  • Core glTF supplies metallicFactor and the optional metallicRoughnessTexture through pbrMetallicRoughness.