Fixed perspective with zNear == 0 (#71)

This commit is contained in:
Christophe Riccio
2013-05-12 15:36:29 +02:00
parent 1c68cee29b
commit 01a98e97c1
4 changed files with 9 additions and 14 deletions

View File

@@ -14,6 +14,7 @@ int main()
{
int Error = 0;
glm::mat4 Projection = glm::perspective(45.0f, 4.0f / 3.0f, 0.1f, 100.0f);
glm::mat4 Pick = glm::pickMatrix(glm::vec2(1, 2), glm::vec2(3, 4), glm::ivec4(0, 0, 320, 240));
return Error;