mittorn
ae7ed03376
ref_soft: fix crash when y < -height
8 months ago
mittorn
b0bbcab6b4
ref_soft,ref_gl: fix unaligned read in sprite code
8 months ago
Alibek Omarov
bfcaba54dc
wscript: move werror flags into uselib
9 months ago
Alibek Omarov
02c5890c2f
ref: soft: cleanup after RefAPI changes, remove unused functions
9 months ago
Alibek Omarov
7152393089
ref: soft: fix -Wmissing-prototypes
9 months ago
Alibek Omarov
901b35d4b1
ref: soft: rework @SNMetamorph's fix for avoiding crash when no world is set (like Customize menu with enabled 3D view)
9 months ago
Alibek Omarov
963d9b8f2a
ref: soft: remove useless R_CountDynamicLights function
9 months ago
Alibek Omarov
482aa840e7
ref: soft: add PARM_TEX_FILTERING handler (stub)
9 months ago
Alibek Omarov
55dfa1bf44
ref: soft: reorder applying light gamma
10 months ago
Alibek Omarov
519c8a032a
ref: soft: adapt studio renderer to new gamma implementation
10 months ago
Alibek Omarov
c15822f375
ref: soft: don't depend on light gamma in recursive light point
10 months ago
Alibek Omarov
0e91deec19
ref: soft: remove unused scale (remnants of r_lightmap_modulate), use integer values for non-interpolated lightstyles
10 months ago
Alibek Omarov
caefa0b7b9
engine: remove cvar r_lighting_modulate, it's some unindentifiable legacy
10 months ago
Alibek Omarov
64f92003fa
ref: gl: adapt studio lightning to new gamma
...
* more accurate SHADE_LAMBERT value (extracted from v_lambert1 global variable)
10 months ago
Alibek Omarov
a0c31120d9
ref: add R_GammaChanged function that engine calls on every gamma change
10 months ago
Alibek Omarov
9fa32a9cf4
ref: soft: remove vid_gamma/vid_brightness changed cvar value check
10 months ago
Alibek Omarov
5ac8f63741
ref: soft: replace skin texture num bound by a proper check, fixes wrong skin on flags in Adrenaline Gamer
10 months ago
Alibek Omarov
6862b14e59
ref: soft: only draw MOVETYPE_FOLLOW studio model if it's parent is visible
10 months ago
Alibek Omarov
fba3a2b67f
ref: soft: return NULL in GetEntityByIndex and ModelHandle
10 months ago
Alibek Omarov
f12df54226
ref: soft: remove unused tr.fCustomSkybox
10 months ago
Alibek Omarov
d971055927
engine: move PARM_SKY_SPHERE handling out of engine to renderer, after all renderers might or might not support sky spheres
10 months ago
Alibek Omarov
6059538d77
ref: gl: use direct host.features instead of PARM_FEATURES
10 months ago
Alibek Omarov
59ddfb787f
ref: soft: remove GetPredictedOrigin() call
10 months ago
Alibek Omarov
acdf1da995
ref: soft: remove GetMoveVars() call
10 months ago
Alibek Omarov
f1cdab91eb
ref: soft: remove usage of PARM_VIEWENT_INDEX and PARM_PLAYER_INDEX
10 months ago
Alibek Omarov
05d5abe4db
ref: soft: remove usage of PARM_MAX_CLIENTS
10 months ago
Alibek Omarov
44e017a410
ref: soft: convert to usage of ref_host_t to get real engine time
10 months ago
Alibek Omarov
64f3884f23
ref: soft: convert to usage of ref_client_t to get client time
10 months ago
Alibek Omarov
6386782674
ref: soft: acquire engine pointers
10 months ago
mittorn
c800b34cd4
ref_api: add R_Flush method
11 months ago
Alibek Omarov
26d229c8ca
engine, ref: RefAPI 5. Simplify remap calls
11 months ago
Alibek Omarov
9c66e86be1
engine, ref: RefAPI 5. Remove unused calls
11 months ago
Alibek Omarov
7e9f87de2d
engine, ref: eliminate calls to global arrays, instead store array pointers at renderer side
11 months ago
Alibek Omarov
ea55e78855
ref: _inline -> static
1 year ago
Alibek Omarov
30d1492b93
engine: remove Set/GetCurrentLoadingModel from RefAPI
1 year ago
Alibek Omarov
b0a79df86f
ref: change r_traceglow to 0, as GoldSrc does
1 year ago
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
1 year ago
Alibek Omarov
de19d78571
ref: fix late registration of studio cvars (thanks, @mittorn )
1 year ago
Alibek Omarov
a738b2a50b
ref: restore missing PARM_TEX_MEMORY RenderAPI parameter
1 year ago
Alibek Omarov
95f87e24ee
ref: soft: do not register cl_righthand cvar
1 year ago
Alibek Omarov
d994c6df9a
ref: a bit more verbosity if UserTracer color exceed limit
1 year ago
Alibek Omarov
8680757844
ref: soft: move ref_soft cvars to static allocation, remove dead cvars
1 year ago
Alibek Omarov
95a8d2f51f
ref: soft: attempt to fix freeze in decals on software renderer
1 year ago
Alibek Omarov
5d7d5319fd
engine: move ref cvars to static allocation
1 year ago
Alibek Omarov
7333ddc1d9
engine: client: move some RenderAPI GetParm queries to engine
1 year ago
Alibek Omarov
277bead9b7
ref: remove SetCullState function from StudioAPI. It does nothing on GoldSrc.
1 year ago
Alibek Omarov
8b96e7ca87
ref: add size argument to COM_FileBase calls
2 years ago
Alibek Omarov
f55ef63e26
ref: optimize R_LightLambert function
...
* Quick exit if no local lights
* Try to minimize Q_min() checks by apply it on temp variables
* Cap final light values only once, after all local lights are calculated
2 years ago
Alibek Omarov
fd795d5612
ref: soft: cleanup unused functions
2 years ago
Alibek Omarov
67903b55cc
ref: soft: adapt to RefAPI 4 changes
2 years ago