Roughness
Roughness controls the spread of microfacet reflections, from sharp polished highlights to broad matte reflections.
Configuration​
The following fields update an existing PBR material; see Materials guide.
material.setProps({
pbrMaterial: {
metallicRoughnessValues: [0, 0.6]
}
});
Parameters​
| Parameter | Default | Description |
|---|---|---|
metallicRoughnessValues | [1, 1] | Second component sets roughness from 0 to 1. |
pbr_metallicRoughnessSampler | Unbound | Optional linear texture. Its green channel multiplies the factor. |
Remarks​
- Core glTF supplies
roughnessFactorand the optionalmetallicRoughnessTexturethroughpbrMetallicRoughness.