For perspective cameras: the camera position is derived from
distance × orientation elsewhere, so we just return the new
distance value (caller assigns it).
For orthographic cameras: zoom is mutated in place (clamped against
the supplied limits) and the projection matrix is refreshed. The
returned distance is unchanged.
Apply a zoom scale.
For perspective cameras: the camera position is derived from
distance × orientationelsewhere, so we just return the newdistancevalue (caller assigns it).For orthographic cameras:
zoomis mutated in place (clamped against the supplied limits) and the projection matrix is refreshed. The returned distance is unchanged.