Commit graph

355 commits

Author SHA1 Message Date
smallmodel
2b43ebfca4
Add ter_crater command 2024-09-12 20:43:24 +02:00
smallmodel
06f4980ee1
Implement ghost textures with particles 2024-09-12 20:09:05 +02:00
smallmodel
6cdf5b7b7e
Process .gst files 2024-09-12 19:44:36 +02:00
smallmodel
117b9a5579
Add declarations for GHOST functions 2024-09-12 19:42:41 +02:00
smallmodel
9475be8f6f
Remove entityNumIndexes/staticModelNumIndexes from declaration as it causes compilation issue on some compilers 2024-09-11 23:41:47 +02:00
smallmodel
41ca1797f9
Implement basic GHOST methods and functions 2024-09-11 23:21:50 +02:00
smallmodel
735ffaf80b
Implement swipe 2024-09-11 19:57:45 +02:00
smallmodel
ed52d1c648
Implement R_FastDlightTerrain 2024-09-11 19:19:38 +02:00
smallmodel
78fa90c59b
Move RB_StaticMesh to tr_model.cpp for info world tris 2024-09-11 19:03:41 +02:00
smallmodel
548a3efe5a
Implement R_InfoWorldTris_f and R_PrintInfoWorldtris 2024-09-11 18:57:50 +02:00
smallmodel
18a12eeba3
Fix loop breaking instead of continuing 2024-09-11 18:51:05 +02:00
smallmodel
83d486ceeb
Add missing declarations 2024-09-11 18:48:47 +02:00
smallmodel
d898c0f995
Implement R_PrintInfoStaticModels 2024-09-11 18:45:17 +02:00
smallmodel
02faf6f8c1
Implement R_Sky_ChangeFrustum 2024-09-11 18:27:19 +02:00
smallmodel
3478bbddf2
Implement RB_ComputeShadowVolume 2024-09-11 18:02:39 +02:00
smallmodel
fd1ee31e1e
Remove useless comment 2024-09-11 17:56:26 +02:00
smallmodel
4a565f0985
Declare R_GetLightingGridValueFast 2024-09-11 00:23:43 +02:00
smallmodel
e386eb00ef
Implement all lighting functions 2024-09-11 00:12:13 +02:00
smallmodel
662d048bf4
Implement R_AddLightGridSurfacesToScene 2024-09-10 20:42:05 +02:00
smallmodel
d9e3cc2188
Add a way to draw the skeleton for debugging purposes 2024-09-10 20:16:56 +02:00
smallmodel
b84fbf452e
Pass a vec4_t to GL_SetFogColor() rather than a vec3_t 2024-09-08 23:49:48 +02:00
smallmodel
4460466cb3
Implement RE_SetRenderTime 2024-09-08 19:43:37 +02:00
smallmodel
eea19d733d
Add R_UpdateGhostTextures (unimplemented) 2024-09-08 19:43:29 +02:00
smallmodel
abc97dcab3
Implement R_AddTerrainMarkSurfaces and RE_AddTerrainMarkToScene 2024-09-08 19:40:00 +02:00
smallmodel
77ecc73631
Implement lens flare / sun flares
Some maps like mohdm1 have a sun flares, now when you look up the sky towards the sun direction, you will see the flare of the sun
2024-09-08 15:31:18 +02:00
smallmodel
86ddec3f76
Clear the world to prevent crashes 2024-09-08 14:59:10 +02:00
smallmodel
4d12bcb184
Export s_sun 2024-09-08 00:52:03 +02:00
smallmodel
8e1a52bbb7
Implement VIS debugging 2024-09-07 23:58:50 +02:00
smallmodel
b7f0f32878
Fix DCL signature on big-endian architectures 2024-09-05 01:14:42 +02:00
smallmodel
71a1df661a
Fix current mark's alpha component not updating properly 2024-09-04 21:54:49 +02:00
smallmodel
e42b6fe0a9
Fix current mark not updating if it has a rotation 2024-09-04 21:51:16 +02:00
smallmodel
2fc091fdf7
Skip loading if the file length is less than the dcl header length 2024-09-04 20:56:41 +02:00
smallmodel
47ba241e7d
Fix file being closed but still used afterwards 2024-09-04 20:50:22 +02:00
smallmodel
c0d37c504a
Fix infinite loop in R_TerrainHeightForPoly 2024-09-04 20:46:10 +02:00
smallmodel
e806c1ddf1
Move MAX_MARK values to tr_types_new.h 2024-09-04 20:23:20 +02:00
smallmodel
4123bef60d
Implement R_ApplyLevelDecal 2024-09-04 20:05:48 +02:00
smallmodel
c6464efa07
Implement level mark loading and updating 2024-09-04 00:02:07 +02:00
smallmodel
25c2904d66
Implement RE_MapVersion and RE_PrintBSPFileSizes 2024-09-02 19:52:30 +02:00
smallmodel
8b5074b6ac
Fix Dot/Texcoords calc
This caused some shaders such as headlights beam on the opeltruck being weirdly rendered
2024-08-27 01:07:51 +02:00
smallmodel
7023184892
Fix subdivisions endianness
See #332
2024-08-26 00:45:21 +02:00
smallmodel
5134aed352
Mark the functions as inline to optimize function calls 2024-08-24 17:35:02 +02:00
smallmodel
6506577787
Add shader flags with tcMod rotate
This fixes vehicle wheels rotating forever. Wheels now rotate consistently depending on the vehicle speed
2024-08-24 00:35:39 +02:00
smallmodel
679bfb90ea
Fix accessing 8th leaves element before finishing the loop
This caused the 8th element to be taken into account when enabling optimizations with GCC (invalid pointer to the leaf)
2024-08-13 20:41:53 +02:00
smallmodel
9150d1cc44
Fix lighting grid being incorrect
It fixes #321 where impacts like bullets would have an incorrect color (like red, green...)
2024-08-08 20:31:19 +02:00
smallmodel
e19b72647e
Use qglGenTextures to guarantee the uniqueness of the texture number 2024-08-08 19:07:09 +02:00
smallmodel
d809975882
Use Q_snprintf because itoa is non-standard 2024-08-07 22:27:02 +02:00
smallmodel
b463c905cf
Free up unused images
This fixes #93 where the game would hit `MAX_DRAWIMAGES` after loading a few maps
2024-08-07 21:11:16 +02:00
smallmodel
7f8a0c9931
Fix the image texture number not properly matching the image
It caused issues with textures being messed up sometimes, after multiple maps were loaded
2024-08-07 21:10:04 +02:00
smallmodel
7b59f07181
Allow precaching image manually with r_precacheimages 2024-08-07 20:01:38 +02:00
smallmodel
d22dea5e8e
Count renderer memory 2024-08-07 19:57:09 +02:00