PDA

View Full Version : Where can I find frustum code?



qwerty5683
10-26-2017, 07:51 PM
I am looking for the implementation of frustum. My google search hasn't helped so direct code or a link would be great!


mat4 frustum(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top,
GLfloat near, GLfloat far);

Dark Photon
10-27-2017, 06:38 AM
OpenGL Spec, Version 2.1 (https://www.khronos.org/registry/OpenGL/specs/gl/glspec21.pdf)
OpenGL Projection Matrix (http://www.songho.ca/opengl/gl_projectionmatrix.html) (Ahn)
GLM - OpenGL Mathematics Library (https://glm.g-truc.net/) (Riccio)