quakeforge/libs/video/renderer/gl
Bill Currie aafd5c3d81 [gl] Make perspective matrix setup consistent
Now GL perspective matrix setup matches that of GLSL and Vulkan, and
GL's z_up matrix matches GLSL's (as it should, since they're really
going through the same API). GL also needs the depth adjustmet matrix
now. Other than having to google the docs for glFrustum, there's nothing
wrong with the function itself, but it's nice to have direct control
over the matrices.

In the process, I discovered how horribly confused I've been at times
with respect to the handedness of GL and Quake: GL is right-handed
(y-up, z-out, x-right), as is Quake itself (but z-up, y-left, x-in), but
as the perspective matrix used in the three renderers expects z-in,
having x-right and y-up makes the matrix effectively left-handed (not
for Vulkan though, because there it's y-down, x-right, z-up, so
right-handed again).
2022-03-27 13:23:44 +09:00
..
gl_draw.c [renderer] Clean up r_bsp a little 2022-03-17 13:09:20 +09:00
gl_dyn_lights.c [renderer] Remove namehack.h 2022-03-14 14:31:23 +09:00
gl_dyn_part.c [glsl] Update particle arrays when maximum changes 2022-03-25 14:48:01 +09:00
gl_dyn_textures.c [gl] Use glGenTextures to allocate texture numbers 2022-03-15 13:29:05 +09:00
gl_fisheye.c [gl] Get fisheye working with frame buffers 2022-03-26 12:51:31 +09:00
gl_fog.c [renderer] Merge the fog support code 2022-03-08 02:28:19 +09:00
gl_graph.c [gl] Use glGenTextures to allocate texture numbers 2022-03-15 13:29:05 +09:00
gl_lightmap.c [gl] Remove unnecessary light map update code 2022-03-17 17:46:25 +09:00
gl_mod_alias.c [mathlib] Remove frustum global 2022-03-19 12:33:12 +09:00
gl_mod_iqm.c [renderer] Remove namehack.h 2022-03-14 14:31:23 +09:00
gl_mod_sprite.c [renderer] Remove namehack.h 2022-03-14 14:31:23 +09:00
gl_rmain.c [gl] Make perspective matrix setup consistent 2022-03-27 13:23:44 +09:00
gl_rmisc.c [gl] Get fisheye working with frame buffers 2022-03-26 12:51:31 +09:00
gl_rsurf.c [mathlib] Remove frustum global 2022-03-19 12:33:12 +09:00
gl_screen.c [renderer] Move frame rendering out a layer. 2022-03-08 01:04:40 +09:00
gl_sky.c [gl] Use glGenTextures to allocate texture numbers 2022-03-15 13:29:05 +09:00
gl_sky_clip.c [renderer] Remove namehack.h 2022-03-14 14:31:23 +09:00
gl_textures.c [gl] Use glGenTextures to allocate texture numbers 2022-03-15 13:29:05 +09:00
gl_warp.c [gl] Implement screen warping for liquids 2022-03-26 18:13:37 +09:00
qfgl_ext.c Separate render and presentation initialization 2019-07-09 01:00:47 +09:00
vid_common_gl.c [gl] Use glGenTextures to allocate texture numbers 2022-03-15 13:29:05 +09:00
vtxarray.c Fix a bunch of dead increments. 2018-09-09 11:12:04 +09:00