KhronosGroup / OpenGL-Refpages

OpenGL and OpenGL ES reference page sources, and generated HTML used as backing store for khronos.org
427 stars 134 forks source link

gluProject() formula missing perspective divide #80

Open vegard opened 4 years ago

vegard commented 4 years ago

Hi,

I'm pretty sure gluProject() is missing the perspective divide in its description formulas. The current docs on khronos.org say: image 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