Commit Graph

2155 Commits

Author SHA1 Message Date
Ivan Avdeev cf09305f79 prettify modern flashlight addition to cl_tent 2021-12-30 13:28:56 +03:00
NightFox 1501f7fea4 more correct flashlight position in first person by @MaxG2D 2021-12-29 12:21:33 +03:00
NightFox 09493cbcba fix multiplayer angles 2021-12-28 18:25:14 +03:00
NightFox 2d6de8b149 fix error: implicit declaration of function 2021-12-28 15:16:46 +03:00
NightFox 9420fc3e39 general fix flashlight for other players in multiplayer mode 2021-12-28 15:09:29 +03:00
NightFox 13914830b7 add workaround for multiplayer 2021-12-28 02:16:55 +03:00
NightFox 8848502572 cleanup again 2021-12-28 00:58:26 +03:00
NightFox 0b1b181f26 remove workaround for classic render 2021-12-28 00:50:39 +03:00
NightFox 2395469d0c cleanup 2021-12-28 00:34:39 +03:00
NightFox 5f7127bd00 replace parseAngles function code by AngleVectors and tune thirdperson_offset 2021-12-27 19:27:31 +03:00
NightFox d413b7dc77
Merge branch 'vulkan' into fonarik 2021-12-27 15:42:22 +03:00
Ivan Avdeev b67668430b rtx: fix missing flashlight in c1a4i
Just increase point lights limit per light cell.

Also:
- update infotool to show point lights info
- move light cluster finalization to vk_scene to make sure infotool has
  the recentmost data
2021-12-26 23:56:21 -08:00
Ivan Avdeev f86da445b7 rtx: fix moving emissive surfaces light clusters
Do not skip 0th leaf when iterating through R_FatPVS results.

Also:
- move infotool from camera.c to infotool.c
- add hit coords to infotool
- add limited light clusters info into infotool
- add a bit more debug info to light clusters

fixes #279
2021-12-26 00:37:07 -08:00
NightFox cf0c88bc08 flashlight tuning for classic render 2021-12-26 04:19:39 +03:00
NightFox 6dbaf76b6c add flashlight for classic render (workaround) 2021-12-26 04:06:19 +03:00
NightFox 74a9809b08 formatting 2021-12-26 03:17:22 +03:00
NightFox e68546cd8b refactoring 2021-12-26 01:54:32 +03:00
NightFox 0aba565ab8 more correct flashlight
more correct work in the first person
add third person support
add multiplayer support (need testing)
2021-12-26 01:00:06 +03:00
NightFox 8c12479447 fix error: implicit declaration of function 2021-12-25 01:16:19 +03:00
NightFox ab4d1c12c7 new flashlight 2021-12-25 00:30:02 +03:00
Ivan Avdeev c39e0c6031 rtx: add include support for materials
use it like this:
```materials.mat
{
	"include" "other.mat"
	"include" "another.mat"
	// ...
}

// continue with regular material definitions
```

```other.mat
{
	// can also nest includes (up to 4)
	"include" "yetanother.mat"
}

// continue with definitions as usual

{
	// may also have includes later too
	"include" "whatever.mat"
}

// ...
```

etc

fixes #312
2021-12-23 22:25:31 -08:00
Ivan Avdeev 2ae510ee7f respect animated textures in ui_infotool
1. include correct current texture
2. print animation chain info

relevant for #301
2021-12-23 00:01:39 -08:00
Ivan Avdeev 7e90b07288 rtx: create new pbr materials using "new" key
fixes #291
2021-12-22 12:33:33 -08:00
Ivan Avdeev 86b13716bf rtx: create new materials referenceable by "for" key, #291 2021-12-22 12:33:33 -08:00
Ivan Avdeev f02e0a8b3a rtx: enable referencing by short tex name in patch, #291 2021-12-22 12:33:33 -08:00
Ivan Avdeev a94674b11a rtx: allow creating new pbr materials 2021-12-22 12:33:33 -08:00
Ivan Avdeev 9970d4e31a rtx: remove stale lbsp light code 2021-12-21 22:56:34 -08:00
Ivan Avdeev ccab9e6ea6 make ray_interop.h a bit more self-sufficient 2021-12-21 22:56:34 -08:00
Ivan Avdeev 8d552b5d94 update todo 2021-12-21 22:56:34 -08:00
Ivan Avdeev fa63aedce9 rtx: fix too verbose logs for emissive patch 2021-12-21 18:50:41 -08:00
Ivan Avdeev b593be9695 rtx: delete patched surfaces with zero emission
fix #286
2021-12-21 18:37:04 -08:00
Ivan Avdeev 659402cb2a patch: enable live reloading
Does not yet reload emissive patches ("_light" argument for surfaces).
Does not reload deleted surfaces.
2021-12-21 18:37:04 -08:00
Ivan Avdeev 8b1971e0d1 fix mass patching and removing, fix #283 2021-12-20 14:34:55 -08:00
Ivan 'provod' Avdeev 0a05adaabc rtx: add reinhard tonemapping 2021-12-20 13:48:49 -08:00
Ivan 'provod' Avdeev 985ea278f8 rtx: fix uninitialized texture memory in base_color and normal channels 2021-12-20 13:16:27 -08:00
Ivan 'provod' Avdeev 2ac0413a28 rtx: remove second gamma correction
On stream E180 after working on it for almost a year we found out that we're doing double gamma correction. Our swapchain colorspace is already SRGB, so no need to sqrt() in shaders.

Also, comment on the fact that we need to HDRize skyboxes, and leave the curren hack intact.
2021-12-20 13:16:27 -08:00
NightFox 4d5dbd7f1e fix #60 and tune refract 2021-12-19 19:07:51 -08:00
NightFox 50ac0c3efa remove obsolete vk_device_list 2021-12-11 13:14:54 -08:00
Alibek Omarov 329690f444 engine: menu_int: forgot to add new field in menu api 2021-12-11 13:14:54 -08:00
Alibek Omarov 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
NightFox 84b358b096 Revert "fix C90"
This reverts commit 4e761ee485.
2021-12-11 13:14:54 -08:00
NightFox a55b260905 fix C90 2021-12-11 13:14:54 -08:00
NightFox 2502c212d4 change default value for vk_device_target_id 2021-12-11 13:14:54 -08:00
NightFox e03e738d26 fix vk_core.rtx init 2021-12-11 13:14:54 -08:00
NightFox 907b3f40b3 add GPU selector logic and...
rename VK_LoadCvarsRTX to VK_LoadCvarsAfterInit
2021-12-11 13:14:54 -08:00
NightFox ea1767f2c2 cvar improvements №2
added vk_only for old -rtx behavior (full disable rtx pipeline)
remove -vkskipdev and skip_first_device as unused and obsolete
remove obsolete check ("missing ray tracing extensions")
addedv VK_LoadCvarsRTX for rtx commands
remove vk_rtx_prev_frame_blend_factor as an outdated command
added vk_deviceid as a stub for video device selection
vk_rtx_reload_materials no longer shown when vk_core.rtx = 0
2021-12-11 13:14:54 -08:00
Ivan Avdeev b0e3ebfc32 rtx: add mass-patching, fix #275 2021-12-11 12:52:29 -08:00
Ivan Avdeev 803889e54f
Merge pull request #272 from a1batross/vulkan
Various patches, sync with upstream
2021-12-10 17:50:18 -08:00
Alibek Omarov 622dc6a2f7 github: disable Android at this moment 2021-12-10 15:00:49 +03:00
Alibek Omarov 045951a216 common: forgot to add ref_device.h 2021-12-10 14:53:26 +03:00