API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceTilemapOccluderOptions
@codexo/exojs-lighting / lighting / stable
Tuning for TilemapOccluder.
3
props
0
methods
0
events
Import
import { TilemapOccluderOptions } from '@codexo/exojs-lighting'Tuning for TilemapOccluder.
Properties3
blockSize?: numberSide, in tiles, of the square block an outline is cached in. Larger blocks rebuild less often as the view moves and cost more per rebuild. Defaults to 16.
Node whose world transform places the layer. Without one, layer pixel space is world space.
solid?: (tile: Tile, tx: number, ty: number) => booleanWhether an occupied cell blocks light. Defaults to "every tile in this layer does", which is what a layer dedicated to walls wants; pass a predicate to read a tile property instead.
Source