areaLightStudio

A photo studio a glossy or transparent surface reflects: crisp coloured light panels in a room.

areaLightStudio(opts: {panels: StudioPanel[]; room: StudioRoom; behind: Expr; hint?: string}): AreaLightStudio

Import materials from shaders/std and use materials.areaLightStudio.

Panels are plain data: a direction, a size, a colour, a gain. Their edges stay crisp, so a dispersive material splits them into spectra, and light(dir, blur) widens every edge by blur while keeping the panel's total light the same: pass the angle one pixel covers (fwidth of the reflected direction) and curved glass reflects smooth, alias-free panels. The room fades to behind (what lies past the subject, usually the layers beneath) for directions that look into the scene. Build it once, outside any loop, and pass deps to the loop.

Parameters

NameTypeNotes
opts{panels: StudioPanel[]; room: StudioRoom; behind: Expr; hint?: string}

Example

const studio = areaLightStudio({panels: [{toward: K, size: [0.55, 0.3], rounding: 0.08, color: key, gain: 2.6, hotspot: 1.4}], room, behind: backdrop})
const env = studio.light(reflect(view, n), envBlur)

Tip. Two to four panels read as a real studio: a big key, a strip on each side, one overhead.

See also

  • studioSoftboxes — The brightness of a five-light studio seen in a reflected direction.
  • reflect — The direction i bounced off a surface with unit normal n.
  • fwidth — How much a value changes across one pixel, in any direction: |dpdx| + |dpdy|.

Used by

PrismaticGlass