Added viewer-relative directions
Former-commit-id: 9d80744bd227689426b76df7e3c273de13424041
This commit is contained in:
@@ -80,6 +80,21 @@ const NzFrustumf& NzView::GetFrustum() const
|
||||
return m_frustum;
|
||||
}
|
||||
|
||||
NzVector3f NzView::GetGlobalForward() const
|
||||
{
|
||||
return NzVector3f::UnitZ();
|
||||
}
|
||||
|
||||
NzVector3f NzView::GetGlobalRight() const
|
||||
{
|
||||
return NzVector3f::UnitX();
|
||||
}
|
||||
|
||||
NzVector3f NzView::GetGlobalUp() const
|
||||
{
|
||||
return -NzVector3f::UnitY();
|
||||
}
|
||||
|
||||
const NzMatrix4f& NzView::GetProjectionMatrix() const
|
||||
{
|
||||
if (!m_projectionMatrixUpdated)
|
||||
|
||||
Reference in New Issue
Block a user