Skip to main content

BASELINE_SIZE

Constant BASELINE_SIZE 

Source
pub const BASELINE_SIZE: (u32, u32);
Expand description

The aspect the windowed example keeps its 3D content to, as a reference resolution.

Whatever the window’s shape, a scene that declares this baseline is drawn through the largest rectangle of this aspect that fits the target, so a wide screen and a narrow one show the same picture — the wide one larger — rather than the wide one showing more and the narrow one cropping it.

The resolution itself is only the reference the aspect comes from; the content is scaled to whatever the target allows. It matches the default window’s size and the 4:3 ratio every scene’s snapshots were captured at.