API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceForwardLightingOptions
@codexo/exojs-lighting / lighting / stable
What ForwardLighting takes whether or not it was given a host.
3
props
0
methods
0
events
Import
import { ForwardLightingOptions } from '@codexo/exojs-lighting'What ForwardLighting takes whether or not it was given a host.
Properties3
Baseline colour every lit fragment receives regardless of any light, as a multiplier on the albedo - 255 per channel means "unlit areas keep their full albedo". Stored by reference and re-read every frame.
maxLights?: numberLights the renderer's texture is sized for; lights beyond it are skipped. Defaults to 64.
Filters applied to the shaded frame, in order. They run as one pass in the host's frame slot and read the frame the sprite shader shaded, so they need the host: see the host-taking overload. Caller-owned, and fixed for the system's lifetime.
Source