Skip to main content

Roughness

Roughness controls the spread of microfacet reflections, from sharp polished highlights to broad matte reflections.

GitHub
0.0s
Highlights spread across rough spheres and stay sharp on polished spheres.

Configuration​

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

material.setProps({
pbrMaterial: {
metallicRoughnessValues: [0, 0.6]
}
});

Parameters​

ParameterDefaultDescription
metallicRoughnessValues[1, 1]Second component sets roughness from 0 to 1.
pbr_metallicRoughnessSamplerUnboundOptional linear texture. Its green channel multiplies the factor.

Remarks​

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