RenderBody

interface RenderBody
scene.ts:46

Members

addressreadonly

address: string

appearancereadonly

appearance: BodyAppearance

atmosphereScalereadonly

atmosphereScale: number

figurereadonly

figure: { irregularity: number; model: string | null; semiAxes: readonly [number, number, number] } | null

The measured figure, for a body that is not a spheroid, or null.

Half-extents in meters rather than as ratios, because the shape field the renderer builds from them is in meters and the mesh is then normalized by trueRadius — which is a. flattening is not applied to a body that has one of these: the figure already carries the polar squash, and applying both squashes it twice.

flatteningreadonly

flattening: number

Polar radius over equatorial. 1 for a sphere, 0.902 for Saturn.

A ratio rather than a length because the renderer scales a unit sphere and the placement has already compressed the equatorial radius; anything else would have to undo that first.

hasAtmospherereadonly

hasAtmosphere: boolean

kindreadonly

kind: string

namereadonly

name: string

orientationreadonly

orientation: Quat

placementreadonly

placement: RenderPlacement

ringsreadonly

rings: { innerScale: number; opticalDepth: number; outerScale: number; texture: string | null } | null

Rings in units of the placed radius, or null.

rotationPeriodreadonly

rotationPeriod: number

Sidereal rotation period, seconds, negative for retrograde. A cloud deck's drift is measured against the surface's own turn rate, so the renderer cannot substitute any fixed day length here.

sunlightreadonly

sunlight: number

Incident stellar light relative to terrestrial sunlight, before albedo.

terminatorreadonly

terminator: number

Half-width of this body's terminator, in cosine of the incidence angle.

Derived here so the disk and the terrain streamed in front of it read one number: they are the same body, a descent crosses between them at the eight-pixel relief gate, and a terminator each derived for itself is a step at the switch. terminatorFor is the producer; this carries it to the material, which has a RenderBody and not a Body.

trueRadiusreadonly

trueRadius: number