Modify the depth buffer value in TinyRenderer to be consistent as in OpenGL.

This commit is contained in:
yunfeibai
2017-02-08 11:34:38 -08:00
parent 8034a6f7fc
commit ce69f27f32
4 changed files with 27 additions and 2 deletions

View File

@@ -383,3 +383,13 @@ float SimpleCamera::getAspectRatio() const
{
return m_data->m_aspect;
}
float SimpleCamera::getCameraFrustumFar() const
{
return m_data->m_frustumZFar;
}
float SimpleCamera::getCameraFrustumNear() const
{
return m_data->m_frustumZNear;
}