4e2708c1ac
engine: bring back texture replacement
2024-06-11 06:16:26 +03:00
d57d8e0d5d
ref: soft: fix R_DrawStretchPic and Draw_Fill with OpenMP enabled
2024-06-11 02:07:49 +03:00
9577a6af21
ref: moved VGUI support API implementation to the engine
2024-06-11 02:07:49 +03:00
107a6aed01
ref: move PARM_SURF_SAMPLESIZE handling to the engine
2024-06-11 02:07:49 +03:00
30fe471d2b
ref: move loading skybox into the engine
2024-06-11 02:07:44 +03:00
5ab6979633
ref: move common quake sky cloud loading to the engine
2024-06-10 22:47:39 +03:00
bd60c88c7d
ref: soft: fix build with OpenMP under Visual Studio
2024-06-02 11:39:54 +03:00
1545a49b4c
engine: client: only allocate debug hulls polygons when they're requested
...
* Make the appropriate changes in ref_gl
2024-05-29 05:41:47 +03:00
b8417fa46d
ref: soft: search parent in both entity lists when drawing MOVETYPE_FOLLOW entities
...
Fixes the issue in Brutal Half-Life beta 2 with invisible scientist skin.
Fixes: 6862b14e59
("ref: soft: only draw MOVETYPE_FOLLOW studio model if it's parent is visible")
2024-05-19 06:31:46 +03:00
37083c8aef
ref: soft: mark sw_drawflat and sw_draworder as cheats
2024-05-01 00:52:45 +03:00
36a0c1fb17
ref: if the entity is opaque, check the renderfx too, it might become translucent
2024-04-26 04:15:21 +03:00
5568eccc8a
ref/r_sprite: move dframetype to inner block
2024-02-27 04:17:21 +03:00
15798aaf52
ref/r_sprite: move dframetype to inner block
2024-02-27 04:04:54 +03:00
ae7ed03376
ref_soft: fix crash when y < -height
2024-02-27 04:04:54 +03:00
b0bbcab6b4
ref_soft,ref_gl: fix unaligned read in sprite code
2024-02-27 04:04:54 +03:00
bfcaba54dc
wscript: move werror flags into uselib
2024-01-30 17:24:17 +03:00
02c5890c2f
ref: soft: cleanup after RefAPI changes, remove unused functions
2024-01-28 10:00:51 +03:00
7152393089
ref: soft: fix -Wmissing-prototypes
2024-01-28 09:55:18 +03:00
901b35d4b1
ref: soft: rework @SNMetamorph 's fix for avoiding crash when no world is set (like Customize menu with enabled 3D view)
2024-01-27 17:31:34 +03:00
963d9b8f2a
ref: soft: remove useless R_CountDynamicLights function
2024-01-27 17:16:01 +03:00
482aa840e7
ref: soft: add PARM_TEX_FILTERING handler (stub)
2024-01-25 05:47:12 +03:00
55dfa1bf44
ref: soft: reorder applying light gamma
2024-01-09 03:55:07 +03:00
519c8a032a
ref: soft: adapt studio renderer to new gamma implementation
2024-01-09 03:55:07 +03:00
c15822f375
ref: soft: don't depend on light gamma in recursive light point
2024-01-09 03:55:07 +03:00
0e91deec19
ref: soft: remove unused scale (remnants of r_lightmap_modulate), use integer values for non-interpolated lightstyles
2024-01-09 03:55:07 +03:00
caefa0b7b9
engine: remove cvar r_lighting_modulate, it's some unindentifiable legacy
2024-01-09 03:55:07 +03:00
64f92003fa
ref: gl: adapt studio lightning to new gamma
...
* more accurate SHADE_LAMBERT value (extracted from v_lambert1 global variable)
2024-01-09 03:33:39 +03:00
a0c31120d9
ref: add R_GammaChanged function that engine calls on every gamma change
2024-01-07 03:35:23 +03:00
9fa32a9cf4
ref: soft: remove vid_gamma/vid_brightness changed cvar value check
2024-01-07 03:35:23 +03:00
5ac8f63741
ref: soft: replace skin texture num bound by a proper check, fixes wrong skin on flags in Adrenaline Gamer
2024-01-05 02:25:18 +03:00
6862b14e59
ref: soft: only draw MOVETYPE_FOLLOW studio model if it's parent is visible
2024-01-04 22:02:14 +03:00
fba3a2b67f
ref: soft: return NULL in GetEntityByIndex and ModelHandle
2024-01-04 21:47:03 +03:00
f12df54226
ref: soft: remove unused tr.fCustomSkybox
2023-12-30 16:54:56 +03:00
d971055927
engine: move PARM_SKY_SPHERE handling out of engine to renderer, after all renderers might or might not support sky spheres
2023-12-30 16:54:37 +03:00
6059538d77
ref: gl: use direct host.features instead of PARM_FEATURES
2023-12-30 16:41:51 +03:00
59ddfb787f
ref: soft: remove GetPredictedOrigin() call
2023-12-30 16:36:13 +03:00
acdf1da995
ref: soft: remove GetMoveVars() call
2023-12-30 16:36:13 +03:00
f1cdab91eb
ref: soft: remove usage of PARM_VIEWENT_INDEX and PARM_PLAYER_INDEX
2023-12-30 16:36:13 +03:00
05d5abe4db
ref: soft: remove usage of PARM_MAX_CLIENTS
2023-12-30 16:36:13 +03:00
44e017a410
ref: soft: convert to usage of ref_host_t to get real engine time
2023-12-30 16:36:13 +03:00
64f3884f23
ref: soft: convert to usage of ref_client_t to get client time
2023-12-30 16:36:13 +03:00
6386782674
ref: soft: acquire engine pointers
2023-12-30 16:36:13 +03:00
mittorn
c800b34cd4
ref_api: add R_Flush method
2023-12-06 04:13:27 +03:00
26d229c8ca
engine, ref: RefAPI 5. Simplify remap calls
2023-12-06 04:13:03 +03:00
9c66e86be1
engine, ref: RefAPI 5. Remove unused calls
2023-12-06 04:13:03 +03:00
7e9f87de2d
engine, ref: eliminate calls to global arrays, instead store array pointers at renderer side
2023-12-06 04:13:03 +03:00
ea55e78855
ref: _inline -> static
2023-10-29 23:38:43 +03:00
30d1492b93
engine: remove Set/GetCurrentLoadingModel from RefAPI
2023-10-28 15:22:21 +03:00
b0a79df86f
ref: change r_traceglow to 0, as GoldSrc does
2023-10-26 04:59:01 +03:00
Ivan Avdeev
a251600c8a
engine: common: imagelib: add KTX2 support ( #1455 )
...
* engine: common: imagelib: add KTX2 support
Adds basic KTX2 support for a few compressed formats. KTX2 essentially
is a Vulkan-centric texture format that supports literally hundreds of
pixel formats.
For now only support for these is added:
- `VK_FORMAT_BC4_UNORM_BLOCK`
- `VK_FORMAT_BC4_SNORM_BLOCK`
- `VK_FORMAT_BC5_UNORM_BLOCK`
- `VK_FORMAT_BC5_SNORM_BLOCK`
- `VK_FORMAT_BC6H_UFLOAT_BLOCK`
- `VK_FORMAT_BC6H_SFLOAT_BLOCK`
- `VK_FORMAT_BC7_UNORM_BLOCK`
- `VK_FORMAT_BC7_SRGB_BLOCK`
Adding more formats is relatively straightforward:
- Copy format definition from `VkFormat` enum in `vulkan_core.h`
- Add a new definition into `pixformat_t` enum.
- Add format size calculation into `Image_ComputeSize()`
While we're at it, also adds a few new formats to DDS:
- BC4_UNORM -- PF_BC4_UNSIGNED
- BC4_SNORM -- PF_BC4_SIGNED
- BC5_UNORM -- PF_BC5_UNSIGNED
- BC5_SNORM -- PF_BC5_SIGNED
- BC7 is expanded into BC7_UNORM and BC7_SRGB
ref_gl and ref_soft code is updated where it made sense. But not tested
really. Support for these formats has been tested with ref_vk.
* address spaces-vs-parentheses formatting where noticed
* parenthesize sizeofs
* move ktx2.h to imagelib as img_ktx2.h; massage it a bit
* use SetBits() instead of |=
* remove stale TODO comments
2023-10-18 10:31:40 +03:00