Commit graph

29 commits

Author SHA1 Message Date
smallmodel
d9e3cc2188
Add a way to draw the skeleton for debugging purposes 2024-09-10 20:16:56 +02:00
smallmodel
abc97dcab3
Implement R_AddTerrainMarkSurfaces and RE_AddTerrainMarkToScene 2024-09-08 19:40:00 +02:00
smallmodel
d709dda87a
Use shader's distance range instead of the portal range 2024-06-30 23:57:32 +02:00
smallmodel
64626a767c
Fixes entities not being rendered after number 1023
This fixes #310 where some static models would not be rendered, making it look like there are invisible walls.
2024-06-21 21:48:55 +02:00
smallmodel
42c20ac008
Portal sky mustn't cause entity surface to be r-eadded
This fixes an issue where an entity would get re-added with a really lower LOD. Fixes #307
2024-06-11 23:35:18 +02:00
smallmodel
74ccb03e54
Reduced compilation warnings 2024-06-07 20:34:13 +02:00
smallmodel
c753dcafd8
SurfIsOffscreen: use raw surface values rather than tess values 2024-06-03 21:36:35 +02:00
smallmodel
faf351a496
SurfIsOffScreen must only process faces + removed assertion 2023-10-01 11:36:54 +02:00
smallmodel
7ad18a68f8
Rendering fog fixes
Fixed wrong fog flag being used (must be GLS_FOG) in RB_SetupFog().
R_SetupFrustum():
- Use skybox farplane and farplane bias
- RB_SetupFog() is now the only function who handle fog activation

RE_RenderScene():
- Set renderTerrain, skybox_farplane and farplane_bias parameters
- Set color overrides
- Use farclip when necessary

RB_StageIteratorLightmappedMultitextureUnfogged(): Fixed issue with fog being reset
2023-08-28 20:50:32 +02:00
smallmodel
463ea7d34b
Using viewParms.isPortalSky 2023-08-28 17:36:34 +02:00
smallmodel
6faded773c
Removed (int) useless cast 2023-07-19 00:39:54 +02:00
pryon
6891d297d2
Implement R_CountTikiLodTris (#48)
* Implement R_CountTikiLodTris

* Fix several bugs in R_DrawDebugNumber and a buffer overrun in R_DebugLine
2023-07-17 00:24:56 +02:00
smallmodel
dc2b99fb58
Fixed fog extrafrustums above 1 (caused issues with culling) 2023-07-09 15:37:24 +02:00
smallmodel
e943b95025
Implemented R_DrawDebugLines and R_DrawDebugStrings 2023-07-09 14:38:22 +02:00
OM
3acda727d2 Added full sprite support 2023-05-29 14:27:36 +02:00
OM
7536301d2e Using qgl functions 2023-05-28 22:55:29 +02:00
OM
f3be59f64d update 2023-05-26 23:32:27 +02:00
OM
4dc60b9aa4 Added lighting-grid / sphere light basic implementation 2023-05-20 17:02:01 +02:00
OM
e5a4574f92 Added *R_DistanceCullPointAndRadius* 2023-05-19 13:39:31 +02:00
OM
b72eb8c6cc Using PLANE_NON_AXIAL instead of 3 2023-05-19 03:13:37 +02:00
OM
4ecf3195a5 Added *R_CullLocalBoxOffset* 2023-05-19 02:11:45 +02:00
OM
ee030f27e2 Early implementation of fog and sky portal 2023-05-19 00:29:13 +02:00
OM
bba11beb39 Reset static models rendering properly 2023-05-16 23:34:50 +02:00
OM
2b6bd8c8d2 Fixed dynamic light issues 2023-05-15 14:21:16 +02:00
OM
8ec2359d26 Fixed x64 crash 2023-05-12 00:10:27 +02:00
OM
7228a07e50 Fixed Linux compilation errors 2023-05-11 22:48:13 +02:00
OM
849e213d95 Dlight tweak 2023-05-10 20:29:49 +02:00
L
8908890d72 Quick compilation fixes (still linker errors) 2023-05-08 14:59:08 +02:00
L
53c1c94dac Using Quake 3 renderer 2023-05-08 14:33:37 +02:00