Version: 2020.2

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

切换到手册

参数

output 计算出的矩阵。
focalLength 焦距(以毫米表示)。
sensorSize 传感器尺寸(以毫米表示)。
lensShift 镜头偏移与传感器大小有关。
nearClip 近平面距离。
farClip 远平面距离。
gateFitParameters 要使用的门适应参数。请参阅 GateFitParameters

描述

根据焦距、传感器大小、镜头平移、近平面距离、远平面距离和门适应 (Gate fit) 参数来计算投影矩阵。 若要计算投影矩阵而不考虑门适应,请使用 Camera.GateFitMode.None 。另请参阅:GateFitParameters