Ivan 'provod' Avdeev
09112bedef
vk: slightly refactor s/2d/overlay/
2022-07-09 10:41:59 -07:00
NightFox
0b1b181f26
remove workaround for classic render
2021-12-28 00:50:39 +03:00
NightFox
ab4d1c12c7
new flashlight
2021-12-25 00:30:02 +03:00
350ab21209
engine: add a method to retrieve all available GPUs (only for Vulkan), add r_refdll_loaded cvar to indicate current loaded renderer
2021-12-11 13:14:54 -08:00
Ivan Avdeev
dc3e75bd44
add skybox from which we only render UP plane kek #140
2021-11-19 11:46:44 -08:00
2450803428
ref_vk: update RefAPI, make use of WorldToScreen rather than a stub
2021-10-31 17:31:03 -07:00
Ivan Avdeev
280e6109c6
add screenshots
...
now vulkan can do screenshots too. however, it depends on blits being
available between swapchain and rgba8 formats, so if it's not the case
for some reason, the resulting image will have mixed components.
2021-08-31 11:19:44 -07:00
Ivan Avdeev
90e5500e83
add per-vertex studio model lighting
...
it doesn't correctly sample lightmaps for env lighting yet. we'll figure this out some time later ....
2021-08-07 19:56:38 -07:00
Ivan 'provod' Avdeev
656c00d0b8
fix building and running on linux
2021-06-06 14:17:35 -07:00
Ivan 'provod' Avdeev
af5e20269d
add persistent model api and use it for brushes
...
this needed for better rtx blas management
2021-04-07 12:11:20 -07:00
Ivan Avdeev
3f70b76208
engage scene rendering in VK_RenderFrame and not in EndFrame
...
Rework a bit how matrices are computed. More global state dependencies
;_;
Buffer-up draw commands, and only schedule them for drawing at EndFrame.
2021-02-20 14:54:57 -08:00
Ivan Avdeev
3b1e7be112
add beams rendering
...
not all beam types are supported yet
also changes studio api init sequence, fixes missing cvars
vertex type struct is no longer names as brush-specific
uniform buffer allocation is now in vk_render
blending issues still remain
2021-02-17 13:26:09 -08:00
Ivan Avdeev
778cc60453
add broken studio models drawing
...
there are several issues with it:
- there are holes in models
- movement is jerky
- no lighting applied
2021-02-13 17:19:59 -08:00
Ivan Avdeev
ad5d515200
move entity enumeration from vk_brush to vk_scene
2021-02-08 10:57:27 -08:00
Ivan Avdeev
45ad261129
make unimplemented message less verbose
2021-02-06 13:38:38 -08:00
Ivan Avdeev
14db07f985
draw HUD sprites
2021-02-06 13:13:08 -08:00
Ivan Avdeev
fc9eedbd9d
apply proper lightstyles on map load
...
Lightstyles remain fixed for the entire map duration. Need to implement either texture reupload in VK, or devise some other scheme of updating ligtmaps w/o texture reupload (lightstylevalues uniform buffers?).
2021-02-03 10:06:21 -08:00
Ivan Avdeev
8870650466
split vk_map into vk_scene and vk_brush
...
Scene controls entity list for scenes
Brush is only responsible for drawing brush models
2021-02-01 11:05:04 -08:00
Ivan Avdeev
fc6cb27723
clear list of entites to render on clear scene
...
We were missing this, and as a result entities list got filled up within
a few frames, which resulted in:
- too many draw calls per frame, same entities were drawn many times
over
- missing entities: if an entity didn't get to that list within a few
first frames, then it wouldn't be rendered ever
2021-01-31 16:53:24 -08:00
Ivan Avdeev
0fc79bf90d
Draw some of the brush models
...
Load all brush models in R_NewMap
Only opaque models are drawn.
This makes WAGONCHIK (and other doors) visible and animated. yay.
2021-01-27 12:00:11 -08:00
Ivan Avdeev
5a2ad5965d
add depth buffer and map geometry loading
...
it's not being drawn yet though
2021-01-23 10:54:44 -08:00
Ivan Avdeev
014d2d272d
massage stubs
2021-01-20 11:16:06 -08:00
Ivan Avdeev
e49591652f
add 2d pipelines with blending; menu is drawn almost ok
...
also switch to non-srgb framebuffer
and remove a bunch of verbose log messages
2021-01-18 13:33:22 -08:00
Ivan Avdeev
48e6765222
draw uv menu
2021-01-16 13:22:31 -08:00
Ivan Avdeev
5600cf45ef
create pipeline for 2d rendering
2021-01-13 11:54:34 -08:00
Ivan Avdeev
3e800fa989
start splitting into functional blocks; add vk funcs
2021-01-09 13:21:58 -08:00
Ivan Avdeev
ae6ec2e61d
add texture loading stubs; messages for other stubs
...
now it gets to actually trying to paint a menu without crashing
2021-01-04 12:39:09 -08:00
Ivan Avdeev
5c99bb0979
ref_vk: add initial vulkan render stub
...
It does not work at all, but serves as an exercise to help me figure out
how to make renderers for HL/xash3d.
2021-01-02 17:52:53 -08:00