Skip to content

Lighting and environment

Model Lab separates image-based environment lighting from explicit scene lights.

Environment

Available presets include studio, city, sunset, dawn, night, warehouse, forest, apartment, park, and lobby. Set environmentAsBackground to render the environment behind the model.

tsx
<ModelLabViewer
  src="/models/watch.glb"
  config={{
    scene: {
      environment: 'studio',
      environmentIntensity: 1.2,
      environmentAsBackground: false,
      exposure: 1.05,
      toneMapping: 'ACES',
    },
  }}
/>

Direct lights

The default rig contains ambient, key directional, and fill directional lights. Sequence snapshots animate the three intensities; positions remain part of static configuration.

Tone mapping

Supported names:

  • ACES
  • Neutral
  • Linear
  • None

Tone mapping and exposure can significantly change perceived material values. Author them with the final environment rather than in isolation.

Shadows and floor

Enable shadows and floor for grounded product presentations. Set floorY after inspecting the model bounds or use a pivot-centered workflow.

Released under the MIT License.