Commit graph

950 commits

Author SHA1 Message Date
Robert Beckebans
2f8ae72431 Fixed Linux build issues. Tested with Clang 2021-04-10 09:53:52 +02:00
Robert Beckebans
5d26aaddb3 Added parallax correction for local cubemaps 2021-04-09 22:28:09 +02:00
Robert Beckebans
c40ab1e7e8 Fixed irradiance fireflies using spherical harmonics 2021-04-08 18:36:23 +02:00
Robert Beckebans
4a3ba04317 Simplified R_MakeAmbientMap 2021-04-08 12:41:40 +02:00
Robert Beckebans
ee4085b388 Added spherical harmonics math 2021-04-08 12:06:14 +02:00
Robert Beckebans
36105c277c Added missing shaders from last commit 2021-04-07 10:04:39 +02:00
Robert Beckebans
5854242d7b Moved D3 gloss -> roughness hack to function 2021-04-06 14:27:46 +02:00
Robert Beckebans
7c3ff6466b Minor cleanup 2021-04-01 14:23:47 +02:00
Robert Beckebans
8f82bb0fb9 Added invertGreen( normalmap.png ) material keyword 2021-03-27 22:17:05 +01:00
Robert Beckebans
9ce36e420a Support angles keyword again for TrenchBroom 2021-03-27 18:36:50 +01:00
Robert Beckebans
97656fb9cf Defaulted r_forceAmbient to 0.4 2021-03-26 18:40:02 +01:00
Robert Beckebans
39facaa1ac Vulkan can handle FMT_R11G11B10F textures 2021-03-26 17:39:04 +01:00
Robert Beckebans
9fae3ccdb2 Vulkan backend compiles again 2021-03-26 13:35:05 +01:00
Robert Beckebans
d9112cd381 Merge branch '497-envprobe-rendertarget' 2021-03-26 11:20:53 +01:00
Robert Beckebans
1f796a1f08 Embedded default HDR light probe data 2021-03-26 10:49:16 +01:00
Robert Beckebans
d5a4dda542 Added console command makeImageHeader 2021-03-26 10:13:42 +01:00
Robert Beckebans
5bbca6f98c Use id Tech 5 multithreading for generateEnvironmentProbes 2021-03-23 21:53:21 +01:00
Robert Beckebans
81905fb735 Delete temporary scene captures after processing 2021-03-23 10:00:38 +01:00
Robert Beckebans
8c397e9463 Bugfixed and flipped environment probe glReadPixels output 2021-03-23 09:36:39 +01:00
Robert Beckebans
2391ba1b43 Implemented GGX Split Sum approximation using a 2D atlas trick 2021-03-22 20:45:25 +01:00
Robert Beckebans
779534626f Added LoadEXR using tinyexr, LoadHDR using stb_image 2021-03-17 21:01:43 +01:00
Robert Beckebans
afae2740bf Fixed unnessary warnings with VS2017 2021-03-15 21:21:56 +01:00
Robert Beckebans
30b88cc197 Ran Astyle 2021-03-15 21:16:11 +01:00
Robert Beckebans
4f55ec094d
Merge pull request #538 from r-a-sattarov/master
tiny improvements and fixes
2021-03-15 21:14:42 +01:00
Robert Beckebans
381424f47b
Merge pull request #527 from infapi00/limit-staging-commands
Staging: add a limit of how many commands to stage
2021-03-15 21:14:04 +01:00
Robert Beckebans
2b28723751 Render environment probes to HDRA16F target 2021-03-14 15:59:02 +01:00
Robert Beckebans
71e2ea9aa3 Added extra rendertarget for environment probes 2021-03-14 13:22:17 +01:00
r-a-sattarov
3e08e14b9e Exclude e2k/arm64/mips64 from the polygonBlock and brushBlock assertions 2021-03-12 22:13:14 +03:00
Robert Beckebans
bb2a5e523c Fixed Valve 220 projections, allow ingame light editor to save it 2021-03-12 18:13:33 +01:00
r-a-sattarov
0f6b6f53b3 sys_defines.h: added various PC architectures
risc-v, sparc
2021-03-11 22:16:24 +03:00
Robert Beckebans
48c2468327 Fixed crash with lightstyles code 2021-03-01 08:10:52 +01:00
Robert Beckebans
05029ab6e4 Use env/UAC2_[amb/spec] probe data as fallback 2021-02-28 19:58:40 +01:00
Robert Beckebans
c47e3057d3 Don't blend AO with IBL in Vulkan for now 2021-02-26 23:17:29 +01:00
Robert Beckebans
a12a4b8352
Merge pull request #521 from infapi00/depthBounds-optional
Make depthBounds optional for the Vulkan renderer
2021-02-26 19:29:25 +01:00
Robert Beckebans
d42762e5ac Merge branch 'master' of github.com:RobertBeckebans/RBDOOM-3-BFG 2021-02-26 19:26:57 +01:00
Robert Beckebans
fb432d6f22 Fixed binary pacifier progress bar with native resolution 2021-02-26 19:26:52 +01:00
Robert Beckebans
c45cee1a70
Merge pull request #530 from runlevel5/patch-2
Exclude PPC64 from the polygonBlock and brushBlock assertions
2021-02-26 19:06:20 +01:00
Robert Beckebans
1c5a1640be
Merge pull request #529 from runlevel5/patch-1
Handle native flag for ppc64 architecture
2021-02-26 19:06:06 +01:00
Robert Beckebans
8a4253a643 Skip r_useVirtualScreenResolution 2021-02-25 19:36:59 +01:00
Robert Beckebans
d394ae186f Replaced DOOM 3 BFG icon 2021-02-25 19:30:07 +01:00
Trung Lê
5762db9b6c
Exclude PPC64 from the polygonBlock and brushBlock assertions
Fixes #528
2021-02-24 11:32:19 +11:00
Trung Lê
5ee6578df0
Handle native flag for ppc64 architecture
PowerPC64 LE and BE or MIPS64 does not regconise `-march` flag, instead the `-mcpu` is used instead
2021-02-24 00:06:59 +11:00
Alejandro Piñeiro
23f27816ad Staging: add a limit of how many commands to stage
Although staging commands can be a good idea from performance pov, it
also means that we are increasing the size of the command buffer,
until the queue submission is set (in most drivers).

For example, when computing the Interactions, staged command buffers
can be easily greater that 15k. This could be a problem with
low-memory devices, like rpi4.

This patch adds a new variable to configure the maximum size of staged
commands. When that limit is reached a Flush is done (similar to the
existing limit on the UploadBufferSize).
2021-02-22 14:04:46 +01:00
Robert Beckebans
6736b288e5 Bugfixed probe indices when changing maps 2021-02-21 11:04:19 +01:00
Robert Beckebans
288359067b Let ingame light editor handle anonymous lights 2021-02-20 19:07:08 +01:00
Robert Beckebans
1f2f6896e1 Merged Quake 1 lightstyle support from Iced-Hellfire 2021-02-20 16:24:45 +01:00
Robert Beckebans
b85db1e865 Merged stuff from Iced-Hellfire-Dev branch, no specular fix 2021-02-20 12:56:24 +01:00
Robert Beckebans
c0376eacaf Merged some smaller bugfixes from Stephen's branch 2021-02-20 12:03:11 +01:00
Robert Beckebans
58607c2cca Changed r_useOpenGL45 default to 1 on Win and updated docs 2021-02-17 20:52:36 +01:00
Robert Beckebans
dd9234cb1b Fixed collision manager to load OBJ files 2021-02-17 17:56:10 +01:00
Robert Beckebans
e85415f0ce Removed Vulkan from default VS2019 Win10 config 2021-02-17 10:09:45 +01:00
Robert Beckebans
a6bf995acc Fixed exportFGD to make func_static dynamic for model loading 2021-02-16 18:36:24 +01:00
Robert Beckebans
7b65cb4959 Added exportFGD models parameter 2021-02-15 23:06:58 +01:00
Robert Beckebans
ac84ab968d Allow dmap to have lights with no names 2021-02-15 19:28:39 +01:00
Robert Beckebans
0c5a6bf301 Added OBJ model support based on IcedTech 1 2021-02-14 16:42:01 +01:00
Robert Beckebans
742624d3ac Added support for the Valve 220 .map format in dmap 2021-02-13 18:46:34 +01:00
Robert Beckebans
99bd1bffb0 Sync with D3 branch from last weekend 2021-02-10 17:42:51 +01:00
Robert Beckebans
19e207b893 Exporting to OBJ also supports .md5mesh now 2021-02-10 17:42:51 +01:00
Robert Beckebans
1867452c40 Export OBJ files along with exportFGD command 2021-02-10 17:42:51 +01:00
Robert Beckebans
4d7468e812 Improved exportFGD command 2021-02-10 17:42:50 +01:00
Robert Beckebans
f35840914c Added cmd to export entity defs to TrenchBroom FGD 2021-02-10 17:42:50 +01:00
Robert Beckebans
96c83075aa Updated RenderProgs_embedded.h 2021-02-10 17:27:28 +01:00
Robert Beckebans
17631b2ab7 Merge branch '497-light-probe-interpolation' 2021-02-10 16:55:21 +01:00
Robert Beckebans
cc44001456 Replaced Motion Blur system option with Filmic VFX 2021-02-10 16:50:29 +01:00
Robert Beckebans
f560ee861b Renamed r_useFilmicPostProcessEffects to r_useFilmicPostProcessing 2021-02-10 16:35:08 +01:00
Robert Beckebans
6cff363845 Defaulted off r_showViewEnvprobes 2021-02-10 16:28:16 +01:00
Robert Beckebans
a0eb203aaf Reorganized HLSL shaders 2021-02-10 16:27:03 +01:00
Robert Beckebans
290caeab79 CMake cleanup 2021-02-10 13:08:22 +01:00
Alejandro Piñeiro
8d9c71763d Don't ask for depthClamp device feature
It is not used at all (VkPipelineRasterizationStateCreateInfo at
RenderProgs_VK.cpp sets it to false), so not asking for it would make
possible to support more drivers (for example, v3dv for the rpi4
doesn't support it).
2021-02-09 12:58:00 +01:00
Alejandro Piñeiro
a0f107ec4a Make depthBounds optional for the Vulkan renderer
This is already the case for the OpenGL renderer. This feature is not
supported by all the Vulkan drivers. For example Mesa ANV with
Coffe-lake (that is relatively recent) or Mesa v3dv (Broadcom) used on
the rpi4.
2021-02-09 12:55:29 +01:00
Robert Beckebans
3b9c2ebd66 Fixed compile issues with Clang 2021-02-04 10:39:52 +01:00
Robert Beckebans
0c21076116 Reverted WriteSwfImageAtlas to write TGA again 2021-01-05 12:40:30 +01:00
Robert Beckebans
62c68d82b9 Precompiled header fix for Linux #511 2020-12-23 21:16:19 +01:00
Robert Beckebans
f1cc837fc4 Corrected call of Sys_CPUCount() in ParallelJobManager 2020-12-23 21:14:10 +01:00
Robert Beckebans
72cf7cef86 Smaller potential crashfixes from SS2 engine 2020-12-23 21:02:38 +01:00
Robert Beckebans
7f168d6415 Merge branch 'mikktspace' 2020-12-21 17:31:11 +01:00
Robert Beckebans
e7e2786b76 Only enable MikkTSpace for new assets 2020-12-21 17:30:47 +01:00
Robert Beckebans
4be8e85fe0 Add octahedron shader to Lua embed manifest 2020-12-21 15:47:41 +01:00
Stephen Pridham
e77801678f Add support for mikktspace 2020-12-19 16:43:45 -05:00
Robert Beckebans
7eeb4d413f
Merge pull request #504 from danieleftodi/487-vulkan-crashfix-macos
Added build scripts for macos
2020-12-09 20:03:53 +01:00
Robert Beckebans
d1fc86ec3c
Merge pull request #501 from r-a-sattarov/master
Support MIPS64 architecture
2020-12-09 20:03:07 +01:00
DEft
b120a8edfb
Add build scripts for macos 2020-12-01 23:28:01 +01:00
Robert Beckebans
2498a17149 Autospawn env probes in the center of BSP areas 2020-11-30 18:27:06 +01:00
Robert Beckebans
05a3e049c5 Hack by BFA to avoid problem with decl load in game thread 2020-11-26 20:40:03 +01:00
r-a-sattarov
a0a8a8670f Support MIPS64 architecture 2020-11-21 21:45:05 +03:00
Robert Beckebans
86ff6cea87 Fixed a problem with octahedron irradiance sampling 2020-11-15 14:01:14 +01:00
Robert Beckebans
b8907b9754 Octahedron mapping hello world in IBL shader 2020-11-14 18:02:07 +01:00
Robert Beckebans
2e580b38ad Some experiments with octahedron probes 2020-11-14 16:04:03 +01:00
Robert Beckebans
a3aeca213d Fixed bugs and missing non-x86 code paths in the DXTEncoder 2020-11-14 12:32:47 +01:00
Robert Beckebans
16631ad1c9 Fixed Vulkan validation layer query 2020-11-12 20:22:11 +01:00
Robert Beckebans
1115feefa7 Vulkan works again with newest SDK 1.2.154.1 on Windows 2020-11-12 10:16:56 +01:00
Robert Beckebans
6eb7925c77 Quadrupled static vertex cache limits for mods 2020-11-10 18:09:04 +01:00
Robert Beckebans
c8af9c3b0e Fixed savegame size problem with some user maps 2020-11-06 17:46:29 +01:00
Robert Beckebans
9349b280cc Applied astyle formatting 2020-11-05 01:32:50 +01:00
Robert Beckebans
57e4c66153
Merge pull request #492 from LWSS/clock-fix
Fix cpu clock-hz inaccuracy on linux
2020-11-05 01:11:11 +01:00
Robert Beckebans
a41c9b2f92
Merge pull request #480 from runlevel5/ppc64le
Support PPC64LE architecture
2020-11-05 01:04:34 +01:00
r-a-sattarov
1a3dfc89c2 E2K: fixed build by MCST lcc compiler when using USE_INTRINSICS=ON
fixed "no suitable conversion function from __m128c to float" error
2020-10-22 21:14:37 +03:00
LWSS
4cd232ca20 GetClockTicks() - keep other arch in mind 2020-10-01 14:59:11 -07:00
LWSS
65f7a305c1 Fix cpu clock-hz inaccuracy on linux 2020-10-01 02:28:58 -07:00
Tobias Frost
c24d1fd4a4 Fix relative include paths, breaking build if systems' libimgui is to be used. 2020-08-25 15:12:27 +02:00