Options
All
  • Public
  • Public/Protected
  • All
Menu

Lighting computation, based on a traditional FOV for multiple light sources and multiple passes.

Hierarchy

  • default

Index

Constructors

constructor

  • new default(reflectivityCallback: ReflectivityCallback, options?: Partial<Options>): default
  • Parameters

    • reflectivityCallback: ReflectivityCallback
    • options: Partial<Options> = {}

    Returns default

Methods

clearLights

  • clearLights(): void

compute

  • compute(lightingCallback: LightingCallback): default

reset

  • Reset the pre-computed topology values. Call whenever the underlying map changes its light-passability.

    Returns default

setFOV

setLight

  • setLight(x: number, y: number, color: null | string | LightColor): default
  • Set (or remove) a light source

    Parameters

    • x: number
    • y: number
    • color: null | string | LightColor

    Returns default

setOptions

  • setOptions(options: Partial<Options>): default

Generated using TypeDoc