Alibek Omarov
26404315cb
engine: filesystem: avoid unnecessary padding in private structs
2021-03-11 21:46:00 +03:00
Alibek Omarov
be1958473b
engine: filesystem: fix liblistgam converting to gameinfo when rodir was enabled
2021-03-11 21:42:35 +03:00
Alibek Omarov
8b59875e93
mainui: update
2021-03-11 20:23:03 +03:00
Alibek Omarov
accacd54f5
waifulib: set debug builds to be built with -O0, gcc -Od is broken
2021-03-11 20:17:39 +03:00
Ivan 'provod' Avdeev
e235c97be9
rtx: make soft shadows by random sampling dlight surface
...
it includes bad random function, bad sampling strategy, bad performance,
etc
but it works somewhat
2021-03-10 13:04:11 -08:00
Alibek Omarov
331a2046c8
engine: net: fix delta incorrect casts when field is signed
2021-03-10 21:51:21 +03:00
Alibek Omarov
c9f176f802
common: remove double defines
2021-03-10 21:49:09 +03:00
Ivan 'provod' Avdeev
44b93dd30b
rtx: add hard shadows
2021-03-10 10:15:09 -08:00
Ivan 'provod' Avdeev
6d1dac453e
rtx: add dynamic lights
...
no shadows and such stuff yet
2021-03-10 09:38:06 -08:00
Alibek Omarov
523798857b
engine: platform: fix opensles audio
2021-03-10 13:45:02 +03:00
Alibek Omarov
2edc8b16ae
engine: platform: fix sdl audio
2021-03-10 13:44:25 +03:00
Alibek Omarov
29902f48d5
public: oops, fix broken crtlib
2021-03-10 13:38:36 +03:00
Alibek Omarov
d25a661701
public: moar int to size_t for string length
2021-03-10 13:18:23 +03:00
Alibek Omarov
a93d9ac71c
engine: platform: simplify sound code
...
Remove SNDDMA_GetSoundtime, because it was mostly copypasted from one
platform code to another.
SNDDMA_GetDMAPos gets removed too, as we have dma.samplepos for that.
2021-03-10 00:16:13 +03:00
Alibek Omarov
c68af64fe5
engine: platform: fix access to uninitialized audio subsystem when -nosound was passed
2021-03-10 00:03:12 +03:00
Alibek Omarov
3d9a4560d5
client: make sound cvars statically allocated, to avoid access to invalid pointers in the future
2021-03-09 23:59:29 +03:00
Alibek Omarov
9120d40ce5
engine: redefine CVAR_DEFINE_AUTO through CVAR_DEFINE macro
2021-03-09 23:58:21 +03:00
Alibek Omarov
4db2aaffc4
client: port fix of spk/speak commands from old engine
2021-03-09 23:34:12 +03:00
Ivan 'provod' Avdeev
77288a205b
rtx: read vertex normals according to isec indexes
...
Had to align vec3 fields of vk_vertex_t.
2021-03-08 12:09:11 -08:00
Ivan 'provod' Avdeev
ea9b880865
add studio models normals for dynamic lighting
2021-03-08 09:54:26 -08:00
Ivan 'provod' Avdeev
47c3c4fa75
fix dlight attenuation
2021-03-06 19:59:18 -08:00
Ivan 'provod' Avdeev
cbed97948c
add preliminary support for dlights
...
Move descriptors away from vk_core
Add UBO for dlights
Add test lighting in brush shader
Add brush normals
2021-03-06 16:40:35 -08:00
Alibek Omarov
155eb1ba58
engine: fix various warnings
2021-03-07 03:40:01 +03:00
Alibek Omarov
efaf7ac622
engine: fix UB on MSG_BigShort
2021-03-07 03:39:16 +03:00
Alibek Omarov
6cc2205321
public: strlen must return size_t, not int
2021-03-07 03:38:54 +03:00
Alibek Omarov
0a818f3f3f
client: add waveplaylen console command like in GoldSrc
2021-03-07 02:51:03 +03:00
Alibek Omarov
fe2c4af8c2
engine: soundlib: make Sound_GetApproxWavePlayLen behave like in GoldSrc
2021-03-07 02:49:40 +03:00
Alibek Omarov
3e7dd30fd7
engine: soundlib: use stdint definitions for WAV headers
2021-03-07 02:48:56 +03:00
Alibek Omarov
42f47f51b5
server: implement GetFileSize and GetApproxWavePlayLen from HLSDK 2.4
2021-03-07 02:46:38 +03:00
Alibek Omarov
aea9e8efa2
server: sv_validate_changelevel is deprecated now and disabled by default
...
If anyone wants this feature back, use +sv_validate_changelevel 1 in command line.
2021-03-07 02:20:30 +03:00
Alibek Omarov
a6cd67cc65
mainui: update submodule, fix #332
2021-03-07 02:01:36 +03:00
Alibek Omarov
585ae28dd2
server: fix some int <> unsigned int conversions
2021-03-07 02:00:46 +03:00
Alibek Omarov
4abac92891
wscript: try to fix tgmath detection on freebsd
2021-03-07 00:28:57 +03:00
Ivan 'provod' Avdeev
78d9a87344
fix projection matrix vulkan fixup
...
we were mixing up row vs column major matrices
now RTX ray generation is fixes, and traditional rasterizer rendering
should also be projecting similar to gl render
2021-03-06 13:26:38 -08:00
Alibek Omarov
a813be7d54
client: add cl_showpos
2021-03-07 00:03:19 +03:00
Alibek Omarov
e77957bc81
client: decrease visibility of some cvars
2021-03-06 23:40:04 +03:00
Alibek Omarov
9b6f26c191
mdldec: build with CONSOLE subsystem on Win32
2021-03-05 17:59:54 +03:00
Alibek Omarov
385cc3f497
public: remote obsolete header
2021-03-05 16:09:59 +03:00
Alibek Omarov
c0db39594b
scripts: enable building utils for PC platforms
2021-03-05 16:04:20 +03:00
Alibek Omarov
add4cf4232
mdldec: add wscript, disabled by default
2021-03-05 16:00:26 +03:00
Ivan 'provod' Avdeev
28cdeaeb1d
propagate proj/view matrices to rtx shader
...
And get RTX picture we deserve (i.e. glitchy and incorrect).
Will fix later.
2021-03-03 11:58:40 -08:00
Alibek Omarov
586d613a27
ref_soft: uncomment texture API functions implementations, they must be working now
...
Fixes #326 and probably some ref_soft crashes
2021-03-02 17:49:37 +03:00
Ivan Avdeev
9b8af6d28b
shaders: add compute shaders; fix shaders install dir
2021-03-01 23:34:20 -08:00
Ivan Avdeev
dc71afd08a
Merge remote-tracking branch 'upstream/vulkan' into vulkan-glslc
2021-03-01 23:22:40 -08:00
Ivan Avdeev
74bcb56abf
Merge pull request #5 from FWGS/vulkan-upstream-move-cvars
...
upstream sync: move cvars that are expected from render to engine
2021-03-01 22:59:40 -08:00
Ivan 'provod' Avdeev
e0ee4b756b
rtx: make it draw yellow screen
...
this basically checks that acceleration structurs are building without
any vulkan errors (we still don't know whether they are bulding with
correct geometry though).
we also have compute shader pipeline ready for ray tracing (yay)
but it doesn't do any raytracing yet
2021-03-01 11:22:58 -08:00
Alibek Omarov
45334064b6
ref_gl: remove detail textures list generation leftovers
2021-03-01 21:53:43 +03:00
Ivan Avdeev
5e3010489b
rtx: blindly add tlas and compute rendering
...
it's unknown whether it works at all
no real ray tracing yet
2021-03-01 10:52:08 -08:00
Alibek Omarov
ca84a1a10e
engine: fix building with SDL older than 2.0.4
2021-03-01 21:48:31 +03:00
Alibek Omarov
14008703f6
wscript: fix tgmath check for old toolchails like GCW0
2021-03-01 21:46:58 +03:00