API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceNormalSource

@codexo/exojs-lighting / lighting / stable

Where a LitMaterial takes its surface normals from. An object rather than a name, so a source carries its own parameters and a user can add one: anything that produces a tangent-space normal texture - derived from a height map, from two photographs, from a generator - is a valid source without this package knowing about it.

2
props
0
methods
0
events
Import
import { NormalSource } from '@codexo/exojs-lighting'

Where a LitMaterial takes its surface normals from.

An object rather than a name, so a source carries its own parameters and a user can add one: anything that produces a tangent-space normal texture - derived from a height map, from two photographs, from a generator - is a valid source without this package knowing about it.

Properties2
Which way up the map's green channel is authored. Defaults to opengl where a source leaves it out, which is what every generator in this package writes.
Source