Commit graph

18266 commits

Author SHA1 Message Date
Magnus Norddahl
61036dfdca Fix include error 2019-12-09 03:10:37 +01:00
Christoph Oelckers
298e29ffcc Merge branch 'soundsource_refactor' 2019-12-08 22:19:51 +01:00
Christoph Oelckers
6725cfcca5 - cleaned the includes of the sound backend code of unwanted content.
Also simplified the sound init decision making. With FMod gone there is no reason to be pedantic here. Even the check of snd_backend for the Null device could be omitted here, its only realistic use is '-nosound'.
2019-12-08 22:17:19 +01:00
Christoph Oelckers
83349bee1b - separated reverb data and reverb editor.
Again, isolating the part that is game independent from parts that are specific to GZDoom.
2019-12-08 21:45:45 +01:00
Christoph Oelckers
b9582cc98e - continued refactoring on sound code.
The game independent part of the code has been mostly isolated.
2019-12-08 21:22:53 +01:00
Magnus Norddahl
2052a6db53 Simplify code slightly 2019-12-08 18:27:26 +01:00
Magnus Norddahl
1e239ba4bb SSE for the blend functions 2019-12-08 18:20:50 +01:00
Magnus Norddahl
819c675c3d Fix typo 2019-12-08 16:40:14 +01:00
Magnus Norddahl
0b9e4e1f3d Oops, shifting using a SSE register apparently requires AVX2 2019-12-08 16:29:14 +01:00
Magnus Norddahl
6c65c25303 Create specific blend functions for the common legacy render styles 2019-12-08 16:06:42 +01:00
Magnus Norddahl
42720f87cc Select fragment shader once per triangle 2019-12-08 14:52:12 +01:00
Magnus Norddahl
f7ae955e6a Select blend function once per triangle 2019-12-08 14:42:20 +01:00
Magnus Norddahl
73c62c5404 Minor code simplification 2019-12-08 13:57:40 +01:00
Magnus Norddahl
aa44fa7c77 Create SSE2 version of BlendColor 2019-12-08 13:55:28 +01:00
Christoph Oelckers
fd181f469d - reduced the dependency of the sound system on game state.
Many of the simple wrappers have been moved to a separate file and the sound source handling has been abstracted.
This is only the first phase, the work is not complete yet.
Also changed the license of the sound code to BSD after verifying that this code bears no similarity to id's original sound code anymore, save for a few function names (which are due to be refactored out anyway.)
2019-12-08 13:28:52 +01:00
Christoph Oelckers
22e692e21c - started separating the sound engine code from game dependent parts.
First step: Split the header. Todo: Abstract listener and sound source specifics out of the sound engine.
2019-12-08 10:07:26 +01:00
Magnus Norddahl
844b203971 Split the various stages of the fragment shader into functions 2019-12-08 03:18:05 +01:00
Magnus Norddahl
c97d02ae51 Alpha test must be performed before vcolor is applied 2019-12-08 02:39:42 +01:00
Magnus Norddahl
fdb93309fe Fix render to texture 2019-12-08 01:39:17 +01:00
Magnus Norddahl
cef3fd53ab Clamp vColor 2019-12-08 00:41:24 +01:00
Magnus Norddahl
f365f6f433 Fix depth test staying active when it shouldn't 2019-12-08 00:41:02 +01:00
Magnus Norddahl
310ef73aa8 Rename PolyTriangleDrawer to PolyCommandBuffer and make its interface look like one 2019-12-07 23:15:12 +01:00
Magnus Norddahl
bb64b178e1 Fix sky transition 2019-12-07 21:17:11 +01:00
Magnus Norddahl
90f5eee6c6 Add dynamic lights 2019-12-07 15:09:58 +01:00
alexey.lysiuk
372733da8c - handle mirroring in MNTR sprite renaming
https://forum.zdoom.org/viewtopic.php?t=66583
2019-12-07 14:58:23 +02:00
alexey.lysiuk
e4587138bb - added support for softpoly backend on macOS
Grabbed most of code from old Cocoa backend with separate code path for software rendering
2019-12-07 13:25:12 +02:00
Magnus Norddahl
75248cffd0 - fix decal color bug 2019-12-06 23:26:38 +01:00
Madame Rachelle
f3897e26f0 - allow to change acceleration type in SDL backend for softpoly 2019-12-06 14:38:25 -05:00
Magnus Norddahl
fd4fc45040 Move blend operator and alpha test flag out of the inner blend loop 2019-12-06 20:35:19 +01:00
Magnus Norddahl
aede0633bc - fix bug where SSE wasn't actually really used at all
- improve precision of the SSE version of WriteW
- use SSE to calculate the texture wrapping
2019-12-06 18:51:41 +01:00
Rachael Alexanderson
a477dbb542 - move backend selector from display menu to video mode menu 2019-12-06 12:36:16 -05:00
Rachael Alexanderson
edd7fe1e16 - migrate vid_enablevulkan to vid_preferbackend in config file 2019-12-06 12:05:52 -05:00
Rachael Alexanderson
eaab122076 Merge remote-tracking branch 'origin/polybackend' 2019-12-06 09:30:55 -05:00
alexey.lysiuk
ffe8aaa091 - updated xBRZ scaler to 1.8
Removed all C++17 features: std::clamp(), attribute [[likely]], terse static asserts, ...

https://sourceforge.net/projects/xbrz/files/xBRZ/xBRZ_1.8.zip/download
2019-12-06 13:18:43 +02:00
Magnus Norddahl
8075510289 Merge remote-tracking branch 'origin/master' into polybackend 2019-12-06 00:20:25 +01:00
Madame Rachelle
c646478aa0 - allow SDL to use OpenGL acceleration for polybackend 2019-12-05 18:27:46 -05:00
Magnus Norddahl
a7a899ca14 Fix null pointer crash 2019-12-06 00:19:51 +01:00
Magnus Norddahl
dd87619cc4 Merge remote-tracking branch 'origin/master' into polybackend 2019-12-05 21:19:20 +01:00
Magnus Norddahl
9b7db26a37 Fix the compile error on Windows 2019-12-05 21:18:11 +01:00
Magnus Norddahl
ab4f3ee0b1 Fix black border clears 2019-12-05 22:04:28 +01:00
Magnus Norddahl
e4bd2483e5 Implement SDL present functions 2019-12-05 21:26:01 +01:00
Christoph Oelckers
bbdd146243 - removed dead menu options 2019-12-05 00:00:54 +01:00
Chronos Ouroboros
b9367caa6f Fixed the JIT's OP_VTBL check not checking if it's already at the start of the code. 2019-12-04 17:37:20 -03:00
Rachael Alexanderson
a07d7856c2 - language update 2019-12-03 13:07:14 -05:00
Magnus Norddahl
0f6aec5e99 Some vid_preferbackend compile fixes 2019-12-02 20:12:27 +01:00
Magnus Norddahl
a9e6592feb Switch to the D3DSWAPEFFECT_FLIPEX swap model 2019-12-02 20:05:13 +01:00
Magnus Norddahl
43139276d1 SSE2 version of wrap 2019-12-02 18:44:15 +01:00
Rachael Alexanderson
3269b61ffc - change menu option for 'vid_preferbackend' 2019-12-02 09:43:06 -05:00
Magnus Norddahl
f501e1bb49 Fix texture binding bug 2019-12-02 01:48:59 +01:00
Magnus Norddahl
865b7a1a2c Implement func_paletted shader 2019-12-02 01:28:35 +01:00