API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classPolygonOccluder
Shadows from an outline of your own, in world space or local to a node. ```ts lighting.occludeFrom(new PolygonOccluder(trunk, { node: tree })); ``` The escape hatch, and the right answer whenever the shadow silhouette is not the drawn one. The points are read once. The node places them, so moving or rotating it moves the shadow with it.
import { PolygonOccluder } from '@codexo/exojs-lighting'Shadows from an outline of your own, in world space or local to a node.
```ts lighting.occludeFrom(new PolygonOccluder(trunk, { node: tree })); ```
The escape hatch, and the right answer whenever the shadow silhouette is not the drawn one.
The points are read once. The node places them, so moving or rotating it moves the shadow with it.
new(points: readonly Readonly<PointLikeStructural type for any object with a 2D `x`/`y` position.>[], options: PolygonOccluderOptionsTuning for PolygonOccluder.): PolygonOccludercollect(bounds: ReadonlyRectangleRead-only view of a Rectangle: every accessor and non-mutating query a rectangle offers, with none of its writers. Returned by APIs that hand out a LIVE intern…, out: OccluderSinkWhere an OccluderSource writes what blocks light. The main channel is line segments in world space: an occluder has no thickness, no interior and no material,…): void