Skip to the content

Wakusei Planets惑星

The Sun, the planets and their moons as a clean line drawing, a shaded realistic drawing or a painted surface map, with real sizes, tilt and rotation, and the moons where they are at any date and time.

Wakusei is the Japanese word 惑星 for a planet. About the name

Contents

Reference

How a body is drawn with three.js

import { … } from "@johnmorrisdotca/wakusei-planets/look";

Exports

NameKindWhat it is
AtmospheretypeA rim of air: the colour it scatters (0 to 1 each), how strong it is and how thin the rim is.
BodyLooktypeWhat a body looks like in three.js: the shader code of its surface, how it glows, its atmosphere and its painted map.
lookOffunctionThe look registered for a body, or undefined when its entry point has not been imported.
PaintedMaptypeThe painted look of a body: a surface map in the package's textures folder, as widths from the smallest up.
registerLookfunctionTeach the package how to draw a body in three.js.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/wakusei-planets 0.24.0.