Commit graph

3899 commits

Author SHA1 Message Date
Denis Pauk
7f74db318b Temporary build xatrix as separate library 2023-10-20 22:54:02 +03:00
Denis Pauk
dd51307b34 Update rogue and xatrix
Without code mentionaed in:
* https://github.com/yquake2/xatrix/issues/96
* https://github.com/yquake2/rogue/issues/122

Based on:
c299a53a45
8123986f86
2023-10-20 22:54:01 +03:00
Denis Pauk
96b4037ac7 Merge remote-tracking branch 'yquake2/master' 2023-10-20 22:53:04 +03:00
Yamagi
994a753bd0
Merge pull request #1067 from protocultor/gl1_overbrightbits
Fixed gl1_overbrightbits limiter
2023-10-20 12:01:42 +02:00
Jaime Moreira
36bf9de5a8 Typos 2023-10-18 20:37:49 -03:00
Jaime Moreira
fa218c9f4c Fixed gl1_overbrightbits limiter
Allows values between 0 and 4. Updated documentation.
2023-10-18 20:35:51 -03:00
Denis Pauk
7b50b2d89f game: Sync game/header/game.h, game/header/local.h 2023-10-18 19:40:55 +03:00
Denis Pauk
748cc322b3 client: Add ReRelease music files 2023-10-17 23:04:59 +03:00
Denis Pauk
cfe2f27fae Simplify SURF_ALPHATEST code
Fix for https://github.com/yquake2/yquake2/issues/956
2023-10-17 18:55:55 +03:00
Denis Pauk
d9f2cea1e7 Use updated ctf, xatrix, rogue codes with clean GPL rights
Update to:
* https://github.com/yquake2/xatrix/releases/tag/XATRIX_2_10
* https://github.com/yquake2/rogue/releases/tag/ROGUE_2_09
* https://github.com/yquake2/ctf/releases/tag/CTF_1_09

Full sync required:
* https://github.com/yquake2/rogue/issues/122
* https://github.com/yquake2/xatrix/issues/96
2023-10-17 18:47:50 +03:00
Denis Pauk
5b2c1b0255 Add GPL published addons for quake2
Based on origin folder of
https://github.com/id-Software/quake2-rerelease-dll/ code release.
2023-10-17 00:45:56 +03:00
Denis Pauk
586d62d4de server: badlands hack 2023-10-17 00:16:05 +03:00
Denis Pauk
858aa85c6a Merge remote-tracking branch 'yquake2/master' 2023-10-17 00:10:04 +03:00
Denis Pauk
83a31973c2 Add transparent with alpha test surface support
Based on surface flag from kmquake2 and rerelease documatation

https://github.com/id-Software/quake2-rerelease-dll#surf_alphatest-bit-25
2023-10-16 00:35:40 +03:00
Denis Pauk
b4e78d0fa3 vk,gl1: Fix mgu2m3 2023-10-15 23:09:05 +03:00
Denis Pauk
c3c80593c8 gl1,vk: reuse initial shared lightmap buffer 2023-10-15 21:29:10 +03:00
Denis Pauk
0506b02c60 gl1: Fix mgu3m2 2023-10-15 19:58:33 +03:00
Yamagi
5c642b6a5b
Merge pull request #1061 from DanielGibson/curl-uaf-fix
Fix use-after-free bugs in htttp download code
2023-10-15 18:09:25 +02:00
Denis Pauk
fd7cb11f92 files/light: add output buffer size check and desync LM sizes
Partial revert 660f5728.

After sync lightmaps generation is broken for gl1, revert sync
for now.
2023-10-15 19:00:49 +03:00
Yamagi
88736f347f Update CHANGELOG for 8.30. 2023-10-15 17:25:11 +02:00
Denis Pauk
e17db97176 gl1: Temporary revert back Lightmap size to fix lights
Fix 1ab6214f, 660f5728
2023-10-15 16:41:52 +03:00
Denis Pauk
660f5728c1 gl1,gl3,gl4,vk: Sync LM size
Need to search way to dynamically change prefered lightmap texture
size and sync LM caching structures and code.

internal_format is always GL_LIGHTMAP_FORMAT so just directly use
constant instead set to variable.
2023-10-15 14:47:54 +03:00
Denis Pauk
1ab6214ff0 gl1,vk: move s_blocklights reallocation to files/light 2023-10-15 13:51:15 +03:00
Denis Pauk
2790b0de92 Fix lightmap temporary buffer size calculation
Introduced in a1249534, fixed load of mgu3m2 in vk render.
2023-10-15 12:49:15 +03:00
Denis Pauk
9346b08e74 Add maps notes 2023-10-14 17:59:59 +03:00
Denis Pauk
b54dc5559d Fix LoadMarksurfaces loads 2023-10-14 17:17:03 +03:00
Denis Pauk
c91dc0b9b2 Share R_PushDlights between all renders 2023-10-14 02:08:30 +03:00
Denis Pauk
4dbb6eb4bc Share R_MarkSurfaceLights between all renders 2023-10-14 01:32:19 +03:00
Denis Pauk
a124953432 gl1,vk: share R_BuildLightMap 2023-10-14 00:42:06 +03:00
Denis Pauk
0dde2cc731 gl1,vk: share R_AddDynamicLights 2023-10-13 23:33:35 +03:00
Denis Pauk
85c18a8090 gl1,vk: Share SetCacheState and fix q64/outpost 2023-10-13 18:30:52 +03:00
Denis Pauk
9874f1a6c0 vk:Reuse internal vertex format in poligon and skybox shaders 2023-10-13 00:26:21 +03:00
Denis Pauk
8694aebb20 vk:Reuse internal vertex format in lightmap shaders 2023-10-13 00:25:40 +03:00
Denis Pauk
7084e8d7cd Change code version to 'ReRelease 8.21.1' 2023-10-12 18:46:04 +03:00
Denis Pauk
19b29c648f gl3,gl4,vk: Share R_MakeSkyVec 2023-10-12 01:07:13 +03:00
Denis Pauk
03bfc581e2 gl1,gl3,gl4,vk: Parial share of warp code 2023-10-12 00:29:47 +03:00
Denis Pauk
d47d27ca00 Remove surface check
Soft render has issues with q64/outpost
2023-10-11 20:39:14 +03:00
Denis Pauk
0a250f5cd2 Add maps testing state 2023-10-11 20:22:56 +03:00
Denis Pauk
8fb649709e Sync code style in sky warp functions 2023-10-11 20:14:07 +03:00
Denis Pauk
3e7b568ec9 Sync allocation sizes between renders 2023-10-11 00:19:52 +03:00
Denis Pauk
bd19960ddf Fix Hunk size calculation introdused in 371fb99c
Used LUMP_LEAFS instead LUMP_TEXINFO.
2023-10-10 01:27:10 +03:00
Denis Pauk
d26c9275f9 Fix leafbrushes allocation from e276ac80 2023-10-10 01:00:54 +03:00
Denis Pauk
3e1a3c6328 Revert back all limits
Code has issues with calculation of hunk size and mguhub load.
2023-10-10 00:43:19 +03:00
Denis Pauk
371fb99c50 Use hunk allocation for CMod_LoadSurfaces 2023-10-10 00:00:27 +03:00
Denis Pauk
9c55d2fe0f Use hunk allocation for CMod_LoadQLeafs 2023-10-09 23:58:42 +03:00
Denis Pauk
e276ac80a7 Use hunk allocation for CMod_LoadLeafBrushes 2023-10-09 23:56:12 +03:00
Denis Pauk
c5ed6f6ad8 Reuse Mod_LoadPlanes in renders and collision 2023-10-09 23:53:45 +03:00
Denis Pauk
6f0bf02ece Use hunk allocation for CMod_LoadBrushes 2023-10-09 23:49:43 +03:00
Denis Pauk
222244839d Use hunk allocation for CMod_LoadBrushSides 2023-10-09 00:59:29 +03:00
Denis Pauk
31c09bca3c Left CMod_LoadSubmodels with static allocation
Subcmodel is still statically allocated as big
ammount of code expect to access it after model cleanup
2023-10-09 00:00:02 +03:00