galaxyDustModulation

function galaxyDustModulation
universe/src/galaxy/dust.ts:95
galaxyDustModulation(seed: Seed, x: number, y: number, z: number, footprintParsecs: number) → number

Positive log-density texture; the seed is already owned by the dust label.

footprintParsecs is the width of the pixel asking, at this point, and zero is the exact field. An octave the footprint cannot resolve is replaced by its mean rather than evaluated: the four octaves are 87% of a live volume draw, and from outside the disk a texel spans over a hundred parsecs, so every one of them is sub-pixel there. Blended in log space with the weight squared on the mean term, so that the mean of the blend equals the octave's mean at every weight, not only at the ends.

seedSeed
Undocumented
xnumber
Undocumented
ynumber
Undocumented
znumber
Undocumented
footprintParsecsnumber
Undocumented
Returnsnumber