Commit graph

17632 commits

Author SHA1 Message Date
Magnus Norddahl
b34658d4d8 - fix out of bounds crash 2019-08-06 06:21:37 +02:00
Magnus Norddahl
eb127d0dac - implement more shaders 2019-08-06 04:51:37 +02:00
Magnus Norddahl
4e24fdacf0 - implement more of the default shader 2019-08-05 23:31:56 +02:00
Magnus Norddahl
82a17572ef - implement getTexel part of main.fp 2019-08-05 19:32:54 +02:00
Magnus Norddahl
b17351cda4 - implement blend functions 2019-08-05 08:37:22 +02:00
Magnus Norddahl
f73470dcf4 - rewrite screen triangle drawer to be more modular and better support the hwrenderer shaders 2019-08-05 03:23:04 +02:00
Magnus Norddahl
ebe377e5de - remove TriDrawTriangleArgs::uniforms as it is redundant 2019-08-04 02:57:08 +02:00
Magnus Norddahl
7940d5fe01 Merge remote-tracking branch 'origin/master' into polybackend 2019-08-04 02:22:55 +02:00
Christoph Oelckers
3c0ff178fd
Merge pull request #900 from Blue-Shadow/armorfactor_fix
- fixed buggy ArmorFactor behavior when set to a value other than 1.0
2019-08-03 21:42:11 +02:00
alexey.lysiuk
c05ef39718 - do not set use type on font texture if it is used as a sprite
Setting texture use type in this case would break actors that use the corresponding sprite

https://forum.zdoom.org/viewtopic.php?t=65509
2019-08-03 15:42:06 +03:00
alexey.lysiuk
ff4bc8bab9 - use EXT_metal_surface extension for Vulkan surface creation
Prefer EXT_metal_surface over deprecated MVK_macos_surface extension, and use it only when modern one is not available
2019-08-03 13:16:12 +03:00
Blue Shadow
5abffabb56 - moved GetSaveAmount() from the base armor class 2019-08-03 11:14:03 +03:00
alexey.lysiuk
cf81ab465e - updated Vulkan headers to version 1.1.114
This is the latest version released with Vulkan SDK
New headers are needed for EXT_metal_surface
2019-08-03 10:52:04 +03:00
Blue Shadow
479a992a3e - fixed buggy ArmorFactor behavior when set to a value other than 1.0 2019-08-02 15:10:06 +03:00
alexey.lysiuk
5870cb7ea1 - recreate Vulkan swapchain in case of surface lost error
Do not abort with fatal error when VK_ERROR_SURFACE_LOST_KHR was returned from vkAcquireNextImageKHR() or vkQueuePresentKHR()
So far, only gfx-portability implementation is reporting this error from time to time, usually on startup, entering the game, or task switching
2019-08-02 10:21:06 +03:00
Christoph Oelckers
154af34cd9 - added an option to always display the log and the subtitles with the generic font.
If this is on it will disable the status bar's pop screen for the log and always use the HUD overlay instead.
2019-07-31 17:02:39 +02:00
Christoph Oelckers
045025f4cf - text update. 2019-07-31 10:08:47 +02:00
Christoph Oelckers
c36dc137ba - made adjustments to the text placement on the summary screen.
With extended fonts much of the old code did not work anymore, this needed more precise checks for the sources of the printed texts.
2019-07-30 10:53:02 +02:00
alexey.lysiuk
370f5ef234 - fixed writing of texture matrices in Vulkan render backend
https://forum.zdoom.org/viewtopic.php?t=65479
2019-07-30 11:46:14 +03:00
Christoph Oelckers
afbd7f7a24 - increased StreamBuffer size because I got it to crash with comatose.wad once due to an overflow here. 2019-07-28 19:05:39 +02:00
Magnus Norddahl
ad8c5bb96e - add VkRenderPassManager::GetVertexFormat so that all VkRenderState access is done through functions that can then be made thread safe 2019-07-28 17:20:49 +02:00
Magnus Norddahl
76675a4d61 - add VkMatrixBufferWriter so that both buffers are used same way in VkRenderState 2019-07-28 17:04:56 +02:00
Magnus Norddahl
4adac3fe59 - move streaming uniform buffers out of VkRenderState 2019-07-28 16:28:43 +02:00
alexey.lysiuk
05cae50612 - updated bzip2 to version 1.0.8
https://www.sourceware.org/bzip2/
https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
2019-07-28 11:53:32 +03:00
Christoph Oelckers
c577f1d743
Merge pull request #899 from khutchins/master
Adds option to use a quicksave rotation
2019-07-28 08:44:21 +02:00
Kevin Hutchins
5cb59018e0 Adds option to use a rotation of quicksaves instead of having one quicksave slot that needs to be manually created. 2019-07-27 12:09:55 -07:00
alexey.lysiuk
a308becb48 - pass NSView instance when creating macOS Vulkan surface
MoltenVK allows passing a layer, although Vulkan specs prohibit this
https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VkMacOSSurfaceCreateInfoMVK.html

This helps with testing of renderer using Vulkan Portability Implementation
2019-07-27 12:55:05 +03:00
Christoph Oelckers
8219c3fd07 - corrected character offsets. 2019-07-27 11:29:18 +02:00
Christoph Oelckers
1dd98a5c89 - when using the VGA font, confine the speaker's text in Strife dialogues to the backdrop picture.
This looks a lot better. Unfortunately for the regular SmallFont this would severely reduce the available space for the text so it isn't done here, even though for shorter texts the formatting would look better as well.
2019-07-27 09:35:45 +02:00
Christoph Oelckers
b768c6877c - text update 2019-07-27 09:00:49 +02:00
Christoph Oelckers
d222bee7f9 - Serbian characters for Strife's BigFont. 2019-07-26 22:11:08 +02:00
Christoph Oelckers
c1a620dce6 - Serbian characters for Strife's log font. 2019-07-26 21:53:02 +02:00
Christoph Oelckers
69cc2cb527 - Serbian characters for Chex's BigFont. 2019-07-26 21:24:33 +02:00
Christoph Oelckers
86d2742798 - allow switching the Strife conversation screen to the VGA font for all languages by a CVAR.
This is for readability purposes because the styled SmallFont may be problematic for some players.
2019-07-26 20:23:46 +02:00
Christoph Oelckers
495f2d9c82 - changed subtitle duration to last at least 7 seconds, even for shorter sounds so that there is sufficient time to read them. 2019-07-26 20:18:01 +02:00
alexey.lysiuk
222dfd17b7 - added ability to specify display duration of subtitles
Duration of sound playback and subtitles display will be synchronized if sound id is specified
For existing Strife messages this works out of the box

https://forum.zdoom.org/viewtopic.php?t=65379
2019-07-26 20:11:42 +02:00
Christoph Oelckers
4964c840e5 - fixed: Harmony did not declare its status bar class. 2019-07-26 20:11:00 +02:00
Christoph Oelckers
933244123f - Serbian characters for Hacx SmallFont 2019-07-26 19:52:46 +02:00
Christoph Oelckers
9ceef609f5 - Serbian characters for Hacx's BigFont. 2019-07-26 19:38:42 +02:00
Christoph Oelckers
b4b314790f - added the Serbian characters to the Harmony SmallFont. 2019-07-26 19:19:58 +02:00
Christoph Oelckers
b4aacb7be5 - fixed: The numcommands value in A_KoraxCommand needs to be decremented by one because the max parameter of the random function is inclusive. 2019-07-25 20:42:41 +02:00
Magnus Norddahl
97a4f25771 - hook up dynamic lights 2019-07-25 04:19:05 +02:00
Magnus Norddahl
a55412fcf6 - fix crash when rendering models 2019-07-24 23:25:48 +02:00
Magnus Norddahl
ec82f994f7 - hook up software renderer 2019-07-24 22:13:00 +02:00
Magnus Norddahl
9da46d0e0a - force this branch to always use the poly backend 2019-07-24 21:45:37 +02:00
Christoph Oelckers
4cfc650f5b - fixed line breaking on non-spaces for multi-byte UTF-8 characters.
This needs to backtrack the entire code point, not just one byte.
2019-07-24 21:40:17 +02:00
Magnus Norddahl
e6f6f10e81 Merge remote-tracking branch 'origin/master' into polybackend 2019-07-24 21:39:07 +02:00
Major Cooke
15eabfd055 Added A_SoundPitch and an optional pitch parameter to A_PlaySound and S_Sound.
- Note: Because sound channels are not in zscript, there's no way to modify a sound made by S_Sound.
2019-07-24 20:15:24 +02:00
Christoph Oelckers
9d66a5105a - text update.
This also activates Serbian and Japanese in the menu.
Note that Serbian is still missing a few characters in Hacx and Harmony!
2019-07-23 21:30:12 +02:00
alexey.lysiuk
435f0bb0b0 - fixed crash on player unmorph after falling death
Rearranged conditions to avoid accessing player from obsolete morphed pawn
Unmorphing upon death resets player in morphed actor, so player alive state should be tested first
Removed duplicate health check as well

https://forum.zdoom.org/viewtopic.php?t=65429
2019-07-23 12:10:16 +03:00