PBR-материалы

Металл, медь, хром, керамика и мягкие покрытия.

3D / WebGLPBRmetalметаллwrenchroughness

Когда использовать

Author physically based material presets and an interactive comparison workflow.

Решения для реализации

  1. Use metalness near 1 for a pure metal and near 0 for a dielectric; an intermediate value is a deliberate composite approximation.
  2. Metal color affects reflected light, so environment lighting is essential.
  3. Keep roughness independent from base color. Brushed metal needs directional surface detail, not only a silver tint.
  4. 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-сцену…

Файлы

SKILL.mdlib/objects.ts
WEBCRAFT © 2026Оригинальные исходники и интерактивные примерыMIT License