LensShift

data class LensShift(val x: Float, val y: Float)

Lens shift — moves the projection off-axis without rotating the camera, as a fraction of the viewport (1 shifts the image by its full width/height; for pixels, divide by the viewport size). Used for tilt-shift looks, and for keeping verticals parallel in architectural shots.

Distinct from LensScaling for the same reason Position is distinct from Direction: both are float pairs on the projection and trivially swapped by accident.

Constructors

Link copied to clipboard
constructor(x: Float, y: Float)
constructor(v: Float2)

From a filament-utils Float2.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val x: Float
Link copied to clipboard
val y: Float

Functions

Link copied to clipboard