Reference · How a body is drawn with three.js
detailOffunction
The strength and stretch of a body's generic fine detail: its own detail, else the table's for a body that is smooth (the gas giants, Venus, Titan) or the rocky default.
Import it
import { detailOf } from "@johnmorrisdotca/wakusei-planets/look";
Definition
function detailOf(look: BodyLook): { amount: number; stretch: number; }
Parameters
| Name | Type | Description |
|---|---|---|
look | BodyLook | The body's look. |
Returns
{ amount: number; stretch: number; }
How strong it is (0 to 1) and how much it is stretched along the lines of latitude.
Examples
import { detailOf, lookOf } from "@johnmorrisdotca/wakusei-planets/look";
const look = lookOf("mars");
console.log(look === undefined ? "no look" : detailOf(look).amount);no lookWhat it prints (run when this page was built)