Renderer · type

ShadowCasters

A caller-supplied enumeration of everything that casts.

Explained in Hello world.

type ShadowCasters = (sink: ShadowCasterSink) => void
import type { ShadowCasters } from '@driftengine/core';

In depth

Called once per directional layer and once per cubemap face, so it must be allocation-free — close over the meshes and read them, never build a list.