Interface ScreenProjectionOptions
interface ScreenProjectionOptions {
backingHeight: number;
backingWidth: number;
cssHeight?: number;
cssWidth?: number;
viewport: PixelViewport;
worldOrigin?: Vec3;
}
backingHeight: number;
backingWidth: number;
cssHeight?: number;
cssWidth?: number;
viewport: PixelViewport;
worldOrigin?: Vec3;
}
Properties
backing Height
backingHeight: number
Full canvas backing-store height in device pixels.
backing Width
backingWidth: number
Full canvas backing-store width in device pixels.
Optionalcss Height
cssHeight?: number
Canvas-relative CSS height. Must be supplied together with cssWidth.
Optionalcss Width
cssWidth?: number
Canvas-relative CSS width. Must be supplied together with cssHeight.
viewport
Active viewport in canvas backing pixels, with its origin at the top left.
Optionalworld Origin
World-space position represented by zero in the supplied matrices. Omit for absolute-world matrices.
Dimensions and active backing-pixel viewport used by world-to-screen projection.