JOGL setPerspective wrong?
问题 I've decided to use JOGL for my project. But here is the problem with setting perspective. Simple code: System.out.println("BEFORE:"); projectionMatrix.identity(); projectionMatrix.setPerspective(fovy, aspect, zNear, zFar); System.out.println(projectionMatrix); System.out.println("AFTER:"); projectionMatrix.identity(); projectionMatrix.m00 = (float)(1.0 / (aspect*Math.tan(viewAngle))); projectionMatrix.m11 = (float)(1.0 / Math.tan(viewAngle)); projectionMatrix.m22 = (float)((-zNear-zFar) /