Log inGet started
World

Deadlight

Branchmain
Branchesmain
Commit3e9d3ad4e7

README.md

deadlight.cut.look

The grade of DEADLIGHT. Lens, meter, colour and grain, all as functions of Film.t.

The chain

  • DepthOfField — focalLength is derived from the shot's own field of view against a 24 mm sensor (84 deg becomes 13 mm, 24 deg becomes 56 mm) and focusDistance is the distance from the eye to the point the shot is aimed at, both read off cutscene.path. A lens is never authored twice. Shots 7, 10, 12 and 13 run between f/1.8 and f/2.8.
  • MotionBlur — a 180 degree shutter for the whole film, which at 24 frames is a 1/48 s exposure.
  • AutoExposure — a meter, but integrated on the fixed 1/24 s step rather than adapted from the frame, so its travel repeats bit for bit. It runs from -8.1 stops under the sunlit surface to +6.8 in the last shot: fifteen stops, opening at 0.95 stops per second and closing at 3.2, which is what makes the travel visible in shots 2 to 4 rather than instant.
  • dl_lut — one of three 32-entry tables, cut at the movement boundaries. Both cuts land on shot boundaries (t = 24 and t = 70), so the swap happens on an edit and is invisible.
  • dl_vignette — opens from 0.16 to 0.44 across the film.
  • LensFx — the flare, huge on the sunball in movement I and small on a lamp afterwards, and the grain, which grows with Film.depthAt(t) from 0.010 at the surface to 0.055 on the bottom.

The three tables

tablemovementwhat it does
dl_lut_descentIcobalt and rich — the last colour in the film
dl_lut_shipIIcrushed black, warm mids, so lamplit rust reads ochre
dl_lut_leavingIIIthe same darkness, desaturated: emptier

Reading it

require("deadlight.cut.look").report()

returns the shot, the field of view, the derived focal length, the focus distance, the aperture, the meter's current stop, the grain, and which table is bound.

Where it lives

Four render-feature components on one entity, CutGrade, spawned lazily and marked temporary. The tables are .texture assets under /source/deadlight/cut/luts, authored once and resolved by literal name afterwards.