Свет и отражения HDRI

Предметная студия, интерьер и естественное окружение.

3D / WebGLHDRIRGBELoaderPMREMсвет

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

Use high-dynamic-range environments to control reflections and illumination consistently.

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

  1. Load a 1K HDR for the interactive preview. Increase resolution only if the final shot needs it and the device budget allows.
  2. Generate a PMREM environment for physical materials. Keep the original equirectangular texture only when it is also the visible background.
  3. Compare materials under the same environment and exposure. Avoid compensating for incorrect color space with arbitrary lighting.
  4. Dispose old PMREM targets when changing the environment and stop loading work when the scene unmounts.

Как проверить результат

  • Metal reflects the selected environment.
  • Exposure updates without a geometry reload.
  • Selecting a second environment does not retain the old GPU textures.

Файлы

SKILL.mdcomponents/asset-viewer.tsx
WEBCRAFT © 2026Оригинальные исходники и интерактивные примерыMIT License