OpenGL-Refpages
OpenGL-Refpages copied to clipboard
gluProject() formula missing perspective divide
Hi,
I'm pretty sure gluProject() is missing the perspective divide in its description formulas. The current docs on khronos.org say:
But if you look at e.g. https://salsa.debian.org/xorg-team/lib/libglu/-/blob/debian-unstable/src/libutil/project.c#L234 then v'' is definitely divided by w (i.e. v''_3) before converting to window coordinates.
Thanks,
Vegard