fix: fix various issues.
- fix convertion loss in CKCamera. - bump up version to 0.3.0 - use CMake to generate version info header. - fix annotation about Dassault ComputeCRC error. - change member field initialization value in CKLight.
This commit is contained in:
@ -128,7 +128,7 @@ SetObjectFlags(obj_flags); \
|
||||
}
|
||||
|
||||
void CKCamera::ComputeProjectionMatrix(VxMath::VxMatrix& mat) const {
|
||||
CKFLOAT aspect = m_Width / m_Height;
|
||||
CKFLOAT aspect = static_cast<CKFLOAT>(m_Width) / m_Height;
|
||||
if (m_ProjectType == CK_CAMERA_PROJECTION::CK_PERSPECTIVEPROJECTION) {
|
||||
mat.Perspective(m_Fov, aspect, m_FrontPlane, m_BackPlane);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user