79666395

Date: 2025-06-15 07:57:31
Score: 1
Natty:
Report link

There was nothing wrong with perspective projection matrix. There was small issue in clipping algorithm. z-near should be zero because I was using vulkan's canonical view volume. An other issue was that P2.x > P2.w & P2.x < -P2.w wasn't impossible because viewing frustum is inverted when z < 0. So I just needed to clip from near plane first and the from other planes.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Shail