Skip to content

PixelPerfectCameraOptions

Defined in: packages/three-flatland/src/cameras/PixelPerfectCamera.ts:7

Options for PixelPerfectCamera.

optional far?: number

Defined in: packages/three-flatland/src/cameras/PixelPerfectCamera.ts:29

Far clipping plane. Default: 1000.


optional near?: number

Defined in: packages/three-flatland/src/cameras/PixelPerfectCamera.ts:27

Near clipping plane. Default: 0.1.


optional pixelScale?: 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'.


optional viewSize?: 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.


optional viewWidth?: 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.