Commit Graph

2098 Commits

Author SHA1 Message Date
Alibek Omarov a99e1ca509 Merge master into vulkan 2021-12-10 01:12:04 +03:00
Alibek Omarov 3a8a7f290d ref_vk: wscript: split rtx shaders into new build target for specific glslc flags 2021-12-10 01:01:28 +03:00
Alibek Omarov ffd618b382 rtx: print all unsupported extensions 2021-12-10 01:00:38 +03:00
Ivan Avdeev 2bd964b16f
Merge pull request #260 from w23/E177
Many lighting improvements
2021-12-08 12:46:58 -08:00
Ivan Avdeev f59fadec51 rtx: improve barycentric triangle sampling
, #265
2021-12-08 12:35:49 -08:00
Ivan 'provod' Avdeev 6e9b54869c rtx: fix shadows for surfaces with alpha mask 2021-12-08 12:08:26 -08:00
Ivan Avdeev e831a9c9dd rtx: fixup point/spot light attenuation after sampling fixes 2021-12-08 11:27:04 -08:00
Ivan Avdeev 8d041d3fb0 rtx: fixup emissive color, #145 2021-12-08 11:26:26 -08:00
Ivan Avdeev f9fc8fd2f2 rtx: read _xvk_radius instead of radius in patch files to disambiguate, fix #259 2021-12-08 11:25:39 -08:00
Ivan Avdeev 4becafc02c Merge branch 'sample-emissive-lights-textures' into E177
Also do not multiply emissive textures by emissive color. similar to how
original lighting works.
qrad lighting treats emissive surfaces as constant color w/o paying
attention to texture contents. And then the rederer just draws textures
w/o lightmaps.

We need to figure out what to do with pbr path tracer.
2021-12-08 10:43:11 -08:00
Alibek Omarov 37aa5b1e99 engine: gamma: use FBitSet 2021-12-08 20:28:30 +03:00
SNMetamorph aa07dab8ab engine: added feature flag ENGINE_LINEAR_GAMMA_SPACE 2021-12-08 20:27:02 +03:00
Alibek Omarov ac213c22ed ref: change some FCVAR_ARCHIVE to FCVAR_GLCONFIG to save in separate config 2021-12-08 17:58:16 +03:00
Alibek Omarov e0efe0aa23 engine: remove emboss filter. There seems no real use for it. 2021-12-07 09:09:45 +03:00
Alibek Omarov 29bc0392ee scripts: compiler_optimizations: disable clang thread-safe statics 2021-12-07 09:03:51 +03:00
Alibek Omarov 054765232e waifulib: xcompile: add NDK 23 support 2021-12-07 09:03:20 +03:00
Alibek Omarov 89425e4bf2 mainui: update 2021-12-07 05:16:47 +03:00
Alibek Omarov a777e7c80d engine, ref: add sprite and studio cvars to shared cvars list 2021-12-06 05:17:25 +03:00
Alibek Omarov 1350fd0b52 engine: ref: use right Cvar_Get function :) 2021-12-06 05:02:30 +03:00
Alibek Omarov d7db48ce4b engine, ref: create shared cvars list, register them at engine side, make a generic macro to declare, define and get all pointers at ref side 2021-12-06 04:57:32 +03:00
Alibek Omarov 293482fbd5 engine: FCVAR_GLCONFIG are not readonly anymore. To make truly readonly cvar for renderer, one must apply FCVAR_READ_ONLY flag 2021-12-06 03:56:18 +03:00
Ivan Avdeev e3e8693b13 rtx: attenuate lights based on solid angle, not distance and area, #145
breaks previous tuning
2021-12-05 13:38:16 -08:00
NightFox de2a52dd71 Update ref_vk/vk_cvar.c
Co-authored-by: Ivan Avdeev <me@w23.ru>
2021-12-04 22:02:34 -08:00
NightFox fb79c1937f Update text for disabled rtx 2021-12-04 22:02:34 -08:00
NightFox 8e0be3c372 add vk_rtx_extension cvar for rtx options, more smart vk_rtx cvar 2021-12-04 22:02:34 -08:00
NightFox e3cbb785e2 Add FCVAR_READ_ONLY and unlock FCVAR_GLCONFIG (temporary solution for some commands) 2021-12-04 22:02:34 -08:00
NightFox c6f92b0664 Add ClearBits for FBitSet
Because otherwise the condition will be called all the time.
2021-12-04 22:02:34 -08:00
Ivan Avdeev 3de2a98db4 rtx: fix skipping the last leaf when clustering lights, fix #97
apparently model_t->leafs goes from 1 to model_t->numleafs, not from 0
to model_t->numleafs-1
2021-12-03 11:37:10 -08:00
Valery Klachkov 3b6898f701 force rtx if supported card found, remove flag 2021-12-03 11:29:06 -08:00
NightFox b81c5a4c4d switch submodule mainui to zgdump/mainui_cpp fork 2021-12-03 11:27:32 -08:00
NightFox 152748b657 fix error: implicit declaration of function 2021-12-03 11:26:50 -08:00
NightFox f501f8255d add reload 2d pipeline 2021-12-03 11:26:50 -08:00
Ivan Avdeev 1dabdc67d6 sample emissive lights textures 2021-12-03 09:57:24 -08:00
Alibek Omarov 3771a1d6c5 public: replace our Q_strlen with standard strlen with nullptr check in macro 2021-12-03 09:44:51 +03:00
Alibek Omarov 07f1f7ded1 engine: launcher: use our Q_strncpy instead of standard strncpy 2021-12-03 09:41:58 +03:00
Alibek Omarov 1cac321c00 engine: enable filtered command buffer for dedicated to pass the tests 2021-12-03 09:41:23 +03:00
Alibek Omarov aa7bfb4819 engine: check for non-standard alloca header 2021-12-03 09:22:40 +03:00
Alibek Omarov 0c18a06946 engine: sequence: use Q_strncpy instead of standard strcpy 2021-12-03 09:22:40 +03:00
Valery Klachkov 99f382429e Vulkan is the best of the renders!
Co-authored-by: Ivan Avdeev <me@w23.ru>
2021-12-01 22:19:45 -08:00
Valery Klachkov 4c14dfbd9f Add vk render to video modes 2021-12-01 22:19:45 -08:00
NightFox fcb56ccb45 Update vk_materials.c 2021-12-01 19:14:40 -08:00
NightFox b517205269 Add new locations for materials.mat
pbr/sprites/materials.mat
pbr/gfx/env/materials.mat
2021-12-01 19:14:40 -08:00
Ivan Avdeev f70f5bfe82 rtx: add scalar parameters for material overrides, fix #238 2021-12-01 13:19:01 -08:00
Ivan Avdeev 0e0f1913a1 rtx: add scalar parameters for material overrides, fix #238 2021-12-01 10:32:32 -08:00
NightFox 5917fff727 Update ref_vk/vk_framectl.c
Okay

Co-authored-by: Ivan Avdeev <marflon@gmail.com>
2021-11-30 19:53:06 -08:00
NightFox 1bf72f6a1a Add vk_rtx command
For enable or disable ray tracing mode
2021-11-30 19:53:06 -08:00
NightFox 564359ffe2 Remove requirement -vkdebug for some console cmds
vk_rtx_reload
vk_rtx_reload_rad
vk_rtx_freeze
2021-11-30 19:53:06 -08:00
Ivan Avdeev 431cd79072 clear studio model vertex memory; #241 2021-11-29 21:32:52 -08:00
Ivan Avdeev c833d0e320 rtx: make default light radius smaller, fix #242 2021-11-29 21:17:22 -08:00
Ivan Avdeev 93fba1018c fix incorrect surface indexing when patching
fix #239
2021-11-29 10:06:07 -08:00