mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-18 13:41:06 +03:00
fix(ui): use FOV getter in CSimpleCamera::SetGxProjectionAndView
This commit is contained in:
parent
4628b7d831
commit
6bcaec1fe7
@ -114,7 +114,7 @@ void CSimpleCamera::SetGxProjectionAndView(const CRect& projRect) {
|
|||||||
this->m_aspect = (projRect.maxX - projRect.minX) / (projRect.maxY - projRect.minY);
|
this->m_aspect = (projRect.maxX - projRect.minX) / (projRect.maxY - projRect.minY);
|
||||||
|
|
||||||
C44Matrix projMat;
|
C44Matrix projMat;
|
||||||
GxuXformCreateProjection_Exact(this->m_fov * 0.6f, this->m_aspect, this->m_nearZ, this->m_farZ, projMat);
|
GxuXformCreateProjection_Exact(this->FOV() * 0.6f, this->m_aspect, this->m_nearZ, this->m_farZ, projMat);
|
||||||
|
|
||||||
GxXformSetProjection(projMat);
|
GxXformSetProjection(projMat);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user