Builds the viewport that covers the whole target surface — the single-view
case, which is most applications.
Normalized (0, 0, 1, 1), so it needs no update when the canvas resizes; the
camera's own aspect still does (see PerspectiveCamera). No clearColor
is set: choose one explicitly, since a full-surface view that never clears is
usually a bug and a default colour would hide it.
id defaults to "main"; pass one when an application has several
full-surface views (a render-to-texture pass and the on-screen pass, say) and
needs to tell them apart.
Builds the viewport that covers the whole target surface — the single-view case, which is most applications.
Normalized (
0, 0, 1, 1), so it needs no update when the canvas resizes; the camera's ownaspectstill does (seePerspectiveCamera). NoclearColoris set: choose one explicitly, since a full-surface view that never clears is usually a bug and a default colour would hide it.iddefaults to"main"; pass one when an application has several full-surface views (a render-to-texture pass and the on-screen pass, say) and needs to tell them apart.