本文へ移動

Wakusei Planets惑星

太陽・惑星・衛星を、線画、陰影つきの絵、表面の地図で描きます。実際の大きさ・傾き・自転つきで、任意の日時の衛星の位置も分かります。

「惑星」(わくせい) は、太陽のまわりを回る大きな星のことです。 名前について(英語)

目次

リファレンス

three.js での描き方

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

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
Atmosphere型A rim of air: the colour it scatters (0 to 1 each), how strong it is and how thin the rim is.
BodyLook型What a body looks like in three.js: the shader code of its surface, how it glows, its atmosphere and its painted map.
lookOf関数The look registered for a body, or undefined when its entry point has not been imported.
PaintedMap型The painted look of a body: a surface map in the package's textures folder, as widths from the smallest up.
registerLook関数Teach the package how to draw a body in three.js.

ソースを見るGitHub で編集@johnmorrisdotca/wakusei-planets 0.24.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。