CameraComponent constructor

CameraComponent({
  1. CameraProjection? projection,
})

Creates a camera component with the given projection (a PerspectiveProjection by default).

Implementation

CameraComponent({CameraProjection? projection})
  : projection = projection ?? PerspectiveProjection();