LensShift

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

Lens shift — moves the projection off-axis without rotating the camera, in units of half the viewport (1 shifts by a full half-width/height). 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