API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classLightmapLighting
Lighting accumulated into a target of its own and multiplied onto the frame. ```ts const lighting = new LightmapLighting(app, { lightResolution: 0.5, shadowResolution: 256 }); scene.systems.add(lighting); lighting.occludeFrom(new PhysicsOccluder(world)); ``` Light no longer costs a loop iteration per fragment per light, so there is no cap on how many there may be, and the accumulated field is a texture a shadow term folds into: each light gets one polar row built from the registered occluder sources. Normals come from a prepass over the surfaces registered with Lighting.normalsFrom rather than from a material. The host is required and is the first argument: this renderer lights the frame that host drew, installs its passes in that host's frame slot, and follows its surface when it resizes. It is read, never owned.
import { LightmapLighting } from '@codexo/exojs-lighting'Lighting accumulated into a target of its own and multiplied onto the frame.
```ts const lighting = new LightmapLighting(app, { lightResolution: 0.5, shadowResolution: 256 });
scene.systems.add(lighting); lighting.occludeFrom(new PhysicsOccluder(world)); ```
Light no longer costs a loop iteration per fragment per light, so there is no cap on how many there may be, and the accumulated field is a texture a shadow term folds into: each light gets one polar row built from the registered occluder sources. Normals come from a prepass over the surfaces registered with Lighting.normalsFrom rather than from a material.
The host is required and is the first argument: this renderer lights the frame that host drew, installs its passes in that host's frame slot, and follows its surface when it resizes. It is read, never owned.
add(light: T): Tclear(): thisclearOccluders(): thisclearSurfaces(): thisdestroy(): voidoccludeFrom(source: T): Tupdate(): voidactiveLightCount: numberactiveSurfaceCount: numberdebugExposure: numberhdr: booleansurfaces: readonly NormalSurfaceA registered drawable and the normals it contributes.[]