threejs-worldgen
    Preparing search index...

    Interface SolarSystemOptions

    Options for the SolarSystem constructor.

    interface SolarSystemOptions {
        ambient?: number;
        apsides?: boolean;
        apsisColors?: [string, string];
        apsisSize?: number;
        exaggerateSizes?: number;
        exaggerateStar?: number;
        hidden?: string[];
        materials?: Record<string, Material<MaterialEventMap>>;
        maxDistance?: number;
        model?: StarSystem;
        orbitColor?: string;
        orbitLines?: boolean;
        orbitOpacity?: number;
        origin?: string;
        originOffset?: [number, number, number];
        scale?: number;
        segments?: number;
        starGlow?: number;
        starLight?: number;
        system?: SystemInput;
    }

    Hierarchy (View Summary)

    Index
    ambient?: number

    Light on the night sides of bodies, 0..1.

    apsides?: boolean

    Mark each orbit's periapsis and apoapsis (perigee/apogee, perihelion/aphelion).

    apsisColors?: [string, string]

    Marker colours for [periapsis, apoapsis] (#rrggbb).

    apsisSize?: number

    Marker size, as a fraction of the distance to the camera.

    exaggerateSizes?: number

    Radius multiplier for planets and moons, so they're visible at system scale. Moon orbits widen by its square root.

    exaggerateStar?: number

    Radius multiplier for the star.

    hidden?: string[]

    Names of bodies not to draw (e.g. 'home' when a planet World draws it).

    materials?: Record<string, Material<MaterialEventMap>>

    Your own materials per body name (instead of the procedural ones; these bodies get their own mesh).

    maxDistance?: number

    Beyond this distance from the camera (render units), bodies are pulled in, keeping their apparent size.

    model?: StarSystem

    Share a star system model (e.g. sky.system) instead of building one from system.

    orbitColor?: string

    Orbit line colour (#rrggbb).

    orbitLines?: boolean

    Draw orbit lines.

    orbitOpacity?: number

    Orbit line opacity.

    origin?: string

    Body at the floating origin (render-space 0,0,0).

    originOffset?: [number, number, number]

    Extra offset of the origin from that body, metres (e.g. a spacecraft's position).

    scale?: number

    Render units per metre (1e-6 = one unit per 1000 km).

    segments?: number

    Sphere segments for bodies.

    starGlow?: number

    Star glow strength.

    starLight?: number

    Starlight intensity on bodies (and on your own materials, through light).

    system?: SystemInput

    The star system (ignored when a StarSystem instance is passed in).