Skip to content

GLKMatrix4MakeOrtho invalid farZ #4

Description

@marksands

According to Apple, GLKMatrix4MakeOrtho's nearZ param must be positive and the farZ param must be positive and greater than the near distance.

Unfortunately, in your EEScene.m file you have:

-(GLKMatrix4)projectionMatrix {
  return GLKMatrix4MakeOrtho(left, right, bottom, top, 1, -1);
}

Consider replacing it with Apple's example:

-(GLKMatrix4)projectionMatrix {
  return GLKMatrix4MakeOrtho(left, right, bottom, top, 0.1, 100.0);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions