pub fn content_size(baseline: (u32, u32), target: (u32, u32)) -> (u32, u32)Expand description
The size a scene’s camera should be built for when its content is drawn into
the baseline-aspect part of a target-pixel render target.
This is the letterboxed region’s own size, in whole pixels, so a camera taking its aspect from it matches what the viewport scales into place: the two agree exactly rather than approximately, which is what keeps a cube cubic. A camera built for the target’s own size would shear the picture back out to the target’s aspect.