Closed pwaller closed 10 years ago
Oh... I remember that test. I just couldn't find any external examples. Therefore the comment. :unamused:
@der-antikeks I totally missed the comment. Easily done. It now appears to work correctly and gives the same results as gl.Frustum
in all cases I tried, fwiw.
What comment are you talking about?
@shurcooL the // TODO: more tests
This made for an interesting debugging session whilst I tried to figure out why I couldn't get anything to render :)
Unfortunately the test code had Far = 0, so didn't spot the error, since the test itself was buggy (It should be the case that 0 < Near < Far).
This fix makes it match the opengl implementation
gl.Frustum
.I hope this doesn't break too much stuff in the wild!