Reference
How a body is drawn with three.js
import { … } from "@johnmorrisdotca/wakusei-planets/look";
Exports
| Name | Kind | What it is |
|---|---|---|
Atmosphere | type | A rim of air: the colour it scatters (0 to 1 each), how strong it is and how thin the rim is. |
BodyLook | type | What a body looks like in three.js: the shader code of its surface, how it glows, its atmosphere and its painted map. |
lookOf | function | The look registered for a body, or undefined when its entry point has not been imported. |
PaintedMap | type | The painted look of a body: a surface map in the package's textures folder, as widths from the smallest up. |
registerLook | function | Teach the package how to draw a body in three.js. |