Ivan 'provod' Avdeev
0b9ec7ee42
rtx: sample previous frame to get a naive blurry denoiser
2021-03-20 13:42:15 -07:00
Ivan 'provod' Avdeev
1b73a509e6
rtx: sample emissive surfaces as lights
...
this is done incorrectly, and also needs lots of culling and optimization
2021-03-20 12:34:34 -07:00
Ivan 'provod' Avdeev
3045c6ea1f
rtx: render into fixed 720p framebuffer then upscale
...
help with perf stability
2021-03-20 11:15:57 -07:00
Ivan 'provod' Avdeev
d6c56d4e1b
rtx: add emissive surfaces/textures
...
This is a massive hack, because we hardcoded some valve/lights.rad file
right into vk_rtx.c, and this is most certainly is not correct data. We
expect maps to have more custom rad file entries.
TODO: consult https://github.com/MaestroFenix/Half-Life-Resized-Maps
Also, emissive surfaces are no importance sampled, so it's noise fest.
2021-03-17 09:15:33 -07:00
Ivan 'provod' Avdeev
b81a36a850
rtx: make beams emissive
2021-03-15 10:49:45 -07:00
Ivan 'provod' Avdeev
aab15ff366
rtx: fix AS allocation memory corruption; dev-localize buffers
2021-03-15 10:23:26 -07:00
Ivan 'provod' Avdeev
581f1eed0d
rtx: add vk_rtx_bounces cvar to control ray bounces count
2021-03-15 09:44:15 -07:00
Ivan 'provod' Avdeev
a04b367a32
rtx: use model matrices to open doors and move wagonchik
2021-03-13 14:31:48 -08:00
Ivan 'provod' Avdeev
a039e7e5ae
rtx: add vk_rtx_reload command to reload rtx.comp.psv shader
...
This allows faster shader iterations. Do `bind z vk_rtx_reload`.
Still need to recompile the shader outside xash process manually.
2021-03-13 12:29:17 -08: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
Ivan 'provod' Avdeev
6d1dac453e
rtx: add dynamic lights
...
no shadows and such stuff yet
2021-03-10 09:38:06 -08: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
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
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
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
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
Ivan 'provod' Avdeev
c77f39e353
rtx: fix blas creation validation/memory errors
2021-02-27 15:40:57 -08:00
Ivan Avdeev
9954288450
rtx: add blas building skeleton
2021-02-27 13:43:49 -08:00