Когда использовать
Author physically based material presets and an interactive comparison workflow.
Решения для реализации
- Use metalness near 1 for a pure metal and near 0 for a dielectric; an intermediate value is a deliberate composite approximation.
- Metal color affects reflected light, so environment lighting is essential.
- Keep roughness independent from base color. Brushed metal needs directional surface detail, not only a silver tint.
- Let the chosen preset initialize settings, then expose bounded overrides for the user. Preserve lighting while comparing materials.
Как проверить результат
- Switching material updates all meshes of the selected object.
- Chrome and rough steel visibly differ under the same light.
- Export retains material properties supported by glTF.
Работающий пример
Подготавливаем 3D-сцену…