PixelPerfectCameraOptions
Defined in: packages/three-flatland/src/cameras/PixelPerfectCamera.ts:7
Options for PixelPerfectCamera.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”
optionalfar?:number
Defined in: packages/three-flatland/src/cameras/PixelPerfectCamera.ts:29
Far clipping plane. Default: 1000.
optionalnear?:number
Defined in: packages/three-flatland/src/cameras/PixelPerfectCamera.ts:27
Near clipping plane. Default: 0.1.
pixelScale?
Section titled “pixelScale?”
optionalpixelScale?:PixelScale
Defined in: packages/three-flatland/src/cameras/PixelPerfectCamera.ts:25
Physical framebuffer pixels per world unit. 'auto' selects the largest
fitting integer scale, with a minimum of 1. When the framebuffer is
smaller than the requested design extent, the camera crops instead of
introducing fractional downsampling. Default: 'auto'.
viewSize?
Section titled “viewSize?”
optionalviewSize?:number
Defined in: packages/three-flatland/src/cameras/PixelPerfectCamera.ts:12
Minimum vertical world span kept visible when pixelScale is
'auto'. One world unit represents one source pixel. Default: 400.
viewWidth?
Section titled “viewWidth?”
optionalviewWidth?:number
Defined in: packages/three-flatland/src/cameras/PixelPerfectCamera.ts:18
Optional exact horizontal design extent used together with viewSize for
automatic scale-to-fit. Omit it to reveal additional world space and fill
the available output at an integer scale.