Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

LookDepthOfField

A depth of field focused on the camera’s target, with a floor on the blur above and below a band across the screen, so the frame reads as a photograph of a model. It draws at a quality level whose depthOfField is not off.

Property Type Description
bokeh false | LookBokeh Bright specks drawn as discs of their blur’s size, or false for the blur alone.
farScale number The far side’s circle against radius, 0 to 3. Luminati 1.15.
focus number | "camera-focus" | CameraFocus What stays sharp: the camera’s focus, or metres of view depth along the camera’s forward axis. With CameraFocus and no focus named, as under a free camera, the band alone blurs.
focusDampingSeconds number Seconds the focus takes to close most of the way to a new depth, as Camera2D’s dampingSeconds, so a step never pumps the frame; 0 follows at once, and a jump of twice focusRange, such as a teleport, snaps. Luminati eases at a rate of 4 a second, 0.75.
focusRange number Metres of view depth about the focus that stay sharp: sharp across half of it either side, then blurring to the full circle over 1.5 times it. PlayCanvas’s focusRange; Roblox’s InFocusRadius is half of it.
nearScale number The near side’s circle against radius, 0 to 3. Luminati 1.5.
radius number The circle of confusion’s radius at full blur, before nearScale and farScale, as a share of the screen’s short side, its height on a landscape screen, so a portrait phone blurs a sprite as much as a landscape one: 0.012 is about 13 pixels at 1080p. The largest circle, times the larger scale or the band’s strength, is at most 0.03.
tiltShift false | LookTiltShift The band across the screen, or false for the depth alone.