Commit graph

375 commits

Author SHA1 Message Date
smallmodel
ecdbe3d959
Don't check lightmap for RB_StageIteratorVertexLitTextureUnfogged to be used 2024-09-16 22:01:04 +02:00
smallmodel
96d10fb8b0
Mark r_light_nolight as cheat 2024-09-16 20:50:02 +02:00
smallmodel
a72da9b73e
Fix incorrect terrain height for poly
This caused decals to float in the air when they were placed on the terrain
2024-09-15 23:49:42 +02:00
smallmodel
df53d35967
Fix real dynamic lighting algorithm for both terrain and patch
This fixes #356 where real dynamic lighting would look completely wrong, making it look like there are graphical artifacts on surfaces
2024-09-15 21:23:17 +02:00
smallmodel
e5e7421d3c
Fix terrain lightmap when there is a dynamic light map
This fixes terrain having a completely wrong lightmap texture coordinates for dynamic lighting
2024-09-15 21:21:38 +02:00
smallmodel
6ff25d00fc
Use lightmap offset for grid surface when a dlightmap is specified 2024-09-15 21:15:01 +02:00
smallmodel
4a5b0b3105
Fix y lightmap position when allocating a new lightmap block
See the issue with dynamic lights: #356
2024-09-15 19:39:22 +02:00
smallmodel
d05d964432
Fix NaN lmapStep for terrain patches 2024-09-15 19:34:25 +02:00
smallmodel
daa4a67b49
Reuse dlightmap in R_CheckDlightSurface and R_CheckDlightTerrain 2024-09-15 19:34:06 +02:00
smallmodel
9c0224911c
Reset the number of dynamic lights when calculating the real terrain lighting
This fixes a crash that can occur when there is only the terrain that can be lit with dlights
2024-09-15 12:02:05 +02:00
smallmodel
6fb9ab078e
Implement RE_DrawBackground_DrawPixels 2024-09-15 01:12:00 +02:00
smallmodel
d04a32920a
Fix an incorrect parameter value passed to FS_Read when reading the DCL file 2024-09-13 21:49:45 +02:00
smallmodel
792b676c11
Set the number of brush models
The level marks system depends on the number of brush models and leafs, having a number that doesn't match what was saved would cause a crash
2024-09-13 21:47:57 +02:00
smallmodel
b510452260
Remove useless comment 2024-09-12 23:48:46 +02:00
smallmodel
89b8d5a67b
Use source files in renderercommon 2024-09-12 23:46:13 +02:00
smallmodel
500e3a3b2c
Add support for JPEG screenshots 2024-09-12 23:33:39 +02:00
smallmodel
47e575ed9a
define USE_INTERNAL_JPEG for compatible JPEG struct size 2024-09-12 23:33:21 +02:00
smallmodel
eb899be95e
Implement RE_GetGraphicsInfo 2024-09-12 21:40:07 +02:00
smallmodel
6d993af419
Fix compiler warning 2024-09-12 21:09:07 +02:00
smallmodel
a136cccbe1
Implement R_CraterTerrain 2024-09-12 21:02:04 +02:00
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