fix the build.
parent
f9c6fed190
commit
a25a1f0772
|
@ -706,10 +706,10 @@ void glTF2Importer::ImportCameras(glTF2::Asset& r)
|
||||||
aicam->mClipPlaneFar = cam.cameraProperties.perspective.zfar;
|
aicam->mClipPlaneFar = cam.cameraProperties.perspective.zfar;
|
||||||
aicam->mClipPlaneNear = cam.cameraProperties.perspective.znear;
|
aicam->mClipPlaneNear = cam.cameraProperties.perspective.znear;
|
||||||
} else {
|
} else {
|
||||||
aicam->mClipPlaneFar = cam.ortographic.zfar;
|
aicam->mClipPlaneFar = cam.cameraProperties.ortographic.zfar;
|
||||||
aicam->mClipPlaneNear = cam.ortographic.znear;
|
aicam->mClipPlaneNear = cam.cameraProperties.ortographic.znear;
|
||||||
aicam->mHorizontalFOV = 0.0;
|
aicam->mHorizontalFOV = 0.0;
|
||||||
aicam->mAspect = cam.ortographic.xmag / cam.ortographic.ymag;
|
aicam->mAspect = cam.cameraProperties.ortographic.xmag / cam.cameraProperties.ortographic.ymag;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue