Renderer · const

DEFAULT_GLOBAL_MEDIUM

What a renderer starts with: off, and everything else at a value that means "ordinary air".

Explained in Hello world.

const DEFAULT_GLOBAL_MEDIUM: GlobalMediumOptions
import { DEFAULT_GLOBAL_MEDIUM } from '@driftengine/core';

In depth

The three settings beside density are never consulted while it is zero, so they are chosen to make setGlobalMedium(0.02)-shaped calls — one number, the rest defaulted — land somewhere recognisable rather than on a black isotropic soup.