API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classPhysicsOccluder
Shadows from physics colliders. ```ts lighting.occludeFrom(new PhysicsOccluder(world)); ``` Static colliders only by default, and never sensors. The world is queried per frame for the region the lights reach, so a body that moves casts a shadow that moves with it, at the cost of rebuilding the field. Circles and capsules are approximated by their outline; polygons, segments and chains are exact.
import { PhysicsOccluder } from '@codexo/exojs-lighting'Shadows from physics colliders.
```ts lighting.occludeFrom(new PhysicsOccluder(world)); ```
Static colliders only by default, and never sensors. The world is queried per frame for the region the lights reach, so a body that moves casts a shadow that moves with it, at the cost of rebuilding the field.
Circles and capsules are approximated by their outline; polygons, segments and chains are exact.
collect(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