API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classAlphaNormals
Normals derived from a texture's own alpha channel, computed once. ```ts crate.material = new LitMaterial({ lighting, normals: new AlphaNormals(crateTexture) }); ``` The silhouette read as a height field, which gives edges that turn away from the light without anyone authoring a map. It knows nothing about the interior of a shape, so it is a floor rather than a replacement - but it is the difference between art that reacts to light and art that does not. The source must be drawable at construction: a texture that is still loading yields a flat map rather than waiting.
import { AlphaNormals } from '@codexo/exojs-lighting'Normals derived from a texture's own alpha channel, computed once.
```ts crate.material = new LitMaterial({ lighting, normals: new AlphaNormals(crateTexture) }); ```
The silhouette read as a height field, which gives edges that turn away from the light without anyone authoring a map. It knows nothing about the interior of a shape, so it is a floor rather than a replacement - but it is the difference between art that reacts to light and art that does not.
The source must be drawable at construction: a texture that is still loading yields a flat map rather than waiting.