ProjectionType

View source

Identifies the built-in projection variant stored in a projection’s type field.

Compare a projection’s type field with these values when code needs to distinguish PerspectiveProjection from OrthographicProjection.

Examples

import { PerspectiveProjection, ProjectionType } from '@wimaengine/render-core'

const projection = new PerspectiveProjection()
const isPerspective = projection.type === ProjectionType.Perspective

Variants