w23 / xash3d-fwgs

Vulkan Ray Tracing fork of Xash3D FWGS engine. Intended to be merged into master at some point in the future.
161 stars 16 forks source link

Support for kRenderScreenFadeModulate #524

Open a1batross opened 1 year ago

a1batross commented 1 year ago

ScreenFade in GoldSource uses a special blending type, that works like a color tint for the whole screen.

This is not really that important, but since you were working on blending stuff, there is a new render mode I added specifically to support this kind of blending. It will never appear on 3D objects, used only in 2D mode.

Map: https://twhl.info/vault/view/6681

https://github.com/FWGS/xash3d-fwgs/issues/1134

Relevant commits: https://github.com/FWGS/xash3d-fwgs/commit/a4865fd2fcaab9671fe5c94d101a17daec2e50de

https://github.com/FWGS/xash3d-fwgs/commit/4bbd0cc40408c59d48e615b7cc3276e1069b77b8

a1batross commented 1 year ago

ray tracing label is probably invalid? This is just 2D effect, it probably can be shared with rasterizing renderer.

0x4E69676874466F78 commented 1 year ago

Пока что мы вообще валимся на этой карте fadetint стоит пересечь границу: image

a1batross commented 1 year ago

https://github.com/w23/xash3d-fwgs/blob/vulkan/ref/vk/vk_overlay.c#L271

Вот эта строчка похоже