기술 자료

Unity Engine

Unity Engine

CalculateProjectionMatrixFromPhysicalProperties(out Matrix4x4, float, Vector2, Vector2, float, float, GateFitParameters)

Calculates the projection matrix from focal length, sensor size, lens shift, near plane distance, far plane distance, and Gate fit parameters. To calculate the projection matrix without taking Gate fit into account, use Camera.GateFitMode.None. Additional Resources: Camera.GateFitParameters
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

CalculateProjectionMatrixFromPhysicalProperties(Matrix4x4, float, Vector2, Vector2, float, float, GateFitParameters)

public static void CalculateProjectionMatrixFromPhysicalProperties(out Matrix4x4 output, float focalLength, Vector2 sensorSize, Vector2 lensShift, float nearClip, float farClip, Camera.GateFitParameters gateFitParameters = default)

Parameters

output

The calculated matrix.

focalLength

Focal length in millimeters.

sensorSize

Sensor dimensions in Millimeters.

lensShift

Lens offset relative to the sensor size.

nearClip

Near plane distance.

farClip

Far plane distance.

gateFitParameters

Gate fit parameters to use. See Camera.GateFitParameters.