API

Interface ScreenProjectionOptions

Dimensions and active backing-pixel viewport used by world-to-screen projection.

interface ScreenProjectionOptions {
    backingHeight: number;
    backingWidth: number;
    cssHeight?: number;
    cssWidth?: number;
    viewport: PixelViewport;
    worldOrigin?: Vec3;
}
Index
backingHeight: number

Full canvas backing-store height in device pixels.

backingWidth: number

Full canvas backing-store width in device pixels.

cssHeight?: number

Canvas-relative CSS height. Must be supplied together with cssWidth.

cssWidth?: number

Canvas-relative CSS width. Must be supplied together with cssHeight.

viewport: PixelViewport

Active viewport in canvas backing pixels, with its origin at the top left.

worldOrigin?: Vec3

World-space position represented by zero in the supplied matrices. Omit for absolute-world matrices.