Object TProjection

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TProjection = object(TObject)

Description

Projection parameters. This is calculated when calling TCastleAbstractViewport.Projection.

Hierarchy

  • TObject
  • TProjection

Overview

Fields

Public ProjectionType: TProjectionType;
Public PerspectiveAngles: TVector2Single;
Public OrthoDimensions: TVector4Single;
Public ProjectionNear: Single;
Public ProjectionFar: Single;
Public ProjectionFarFinite: Single;

Description

Fields

Public ProjectionType: TProjectionType;

Perspective / orthogonal projection properties.

When ProjectionType = ptPerspective, then PerspectiveAngles specify angles of view (horizontal and vertical), in degrees. When ProjectionType = ptOrthographic, then OrthoDimensions specify dimensions of ortho window (in the order: -X, -Y, +X, +Y, just like X3D OrthoViewpoint.fieldOfView).

Public PerspectiveAngles: TVector2Single;
 
Public OrthoDimensions: TVector4Single;
 
Public ProjectionNear: Single;

Projection near/far values.

Note that ProjectionFar may be ZFarInfinity, which means that no far clipping plane is used. For example, shadow volumes require this.

If you really need to know "what would be projection far, if it could not be infinite" look at ProjectionFarFinite. ProjectionFarFinite is calculated just like ProjectionFar (looking at scene size, NavigationInfo.visibilityLimit and such), except it's never changed to be ZFarInfinity.

Public ProjectionFar: Single;
 
Public ProjectionFarFinite: Single;
 

Generated by PasDoc 0.14.0.