リファレンス
自分の three.js シーンに置く天体
import { … } from "@johnmorrisdotca/wakusei-planets/painter";
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
createPainter | 関数 | Make a painter that takes its pictures from the given folders (jsDelivr's copy of this version by default). |
LOOKS | 定数 | The looks the painter draws: realistic (shaded from the body's real colours and features) and painted (a public-domain surface map, with the shaded look until it arrives). |
moonOffset | 関数 | Where a moon is from its planet's centre, in planet radii, in the scene's axes (x to the vernal equinox, y north). |
MoonSite | 型 | One moon of a planet at a time: where it is from the planet's centre and how big it is, both in radii of the planet, in the scene's axes. |
orientation | 関数 | The north pole and the prime meridian of a body at a time, as unit vectors in the scene's axes (x to the vernal equinox, y north). |
PaintContext | 型 | What the caller gives the painter when it makes a body. |
painter | 定数 | The painter with its default pictures: pass it to chikyu-earth's setBodyPainter. |
PainterLook | 型 | One of the looks in LOOKS: realistic or painted. |
PainterOptions | 型 | Where the pictures are, if not on jsDelivr: a folder address that ends in a slash. |
PaintInfo | 型 | What the caller tells a painted body at each draw: the direction to the Sun (a unit vector in the scene's axes), the time, and how many CSS pixels across its radius the body is on the screen. |
Painting | 型 | One body made by the painter: an object of radius 1 at the origin for the caller to move and scale. |
WakuseiPainter | 型 | A painter: makes the bodies as three.js objects (make) and tells where a planet's moons are (moons). |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。