Christoph Oelckers
7f66df2625
- fixed compiler warnings
2021-11-06 23:55:16 +01:00
alexey.lysiuk
8db550d251
- fixed compilation of POSIX Debug targets
...
src/rendering/2d/f_wipe.cpp:291: undefined reference to `Wiper_Melt::HEIGHT'
2021-10-30 15:58:07 +03:00
Christoph Oelckers
77d74a11d1
- removed most templates.h includes.
2021-10-30 10:49:12 +02:00
Christoph Oelckers
07a181090b
- missed some MAX's.
2021-10-30 10:45:58 +02:00
Christoph Oelckers
1d0aed219e
- replaced MIN/MAX in all non-common code.
2021-10-30 10:16:52 +02:00
Christoph Oelckers
226666ce7f
- replaced MIN/MAX with min/max from the C++ standard library in the software renderer
2021-10-30 10:08:11 +02:00
Magnus Norddahl
d853961a83
Fix vulkan buffers not using the stream usage for the 2d drawer
...
Add BufferUsageType enum to clarify what kind of usage is expected by the buffer allocated by SetData
2021-10-26 22:43:38 -04:00
nashmuhandes
1c3e0f1a75
Added 'NoPerPixelLighting' flag to models to force it to not use per-pixel lighting. Main use case is for voxels that have been converted to models.
2021-10-22 07:57:11 +02:00
Christoph Oelckers
8d9d56c339
- push sprite shadows a little back for distance sorting
...
They always need to be behind sprites with the same distance.
2021-10-05 13:57:31 +02:00
Christoph Oelckers
a0043ec09d
- better handling of texture clamp state.
...
Free combination of clamping with all texture modes still missing in GLES and Softpoly renderers!
2021-09-19 14:54:34 +02:00
Christoph Oelckers
fb107f80e6
- fixed vertex generation when splitting walls by planes on old hardware.
2021-09-18 13:09:05 +02:00
Christoph Oelckers
31de21e6aa
- GLES fixed: The weapon sprite must be rendered with the fullscreen colormap on.
2021-09-18 10:27:41 +02:00
Christoph Oelckers
67958833b7
Merge branch 'gles2_merge'
2021-09-17 21:22:41 +02:00
Christoph Oelckers
918e9e9b0d
- fixed texture clamping for elements that are partially behind a slope.
...
This is mainly mid textures on linedefs and decals.
2021-09-17 00:25:28 +02:00
Christoph Oelckers
b0382599f6
- removed the SSBO block for desktop OS’s when gl_pipeline_depth is enabled
2021-09-14 00:13:08 +02:00
Christoph Oelckers
b550f57ce3
- fixed: Brightmap application for horizons was undefined..
...
This depended on the state of the previously rendered portal which could have switched it off.
2021-09-12 08:37:19 +02:00
Rachael Alexanderson
2096fefcee
Merge remote-tracking branch 'origin/master' into gles2_merge
2021-08-18 12:31:47 -04:00
13bdd324e1
hud models: add nullptr check for psprites without caller.
2021-08-15 08:47:04 +02:00
Christoph Oelckers
109069f718
- removed the unused palette parameter from the V_GetColor family of functions.
2021-08-14 09:57:23 +02:00
Rachael Alexanderson
92a3731f20
Merge remote-tracking branch 'origin/master' into gles2_merge
2021-08-13 08:11:58 -04:00
888eab3063
HUD model tweaks:
...
- Look up HUD models by referencing the psprite's caller, rather than player's ReadyWeapon.
- Allow Strife hands psprite to be a model.
2021-08-11 20:09:25 +02:00
Christoph Oelckers
1097bd6c73
- fixed: instead of checking gl_lights, better check Level->HasDynamicLights.
...
Especially in the thinker code this is needed for software rendering.
Strictly speaking, the software renderer should do the same, but it checks r_dynlight in so many places deep in the logic where the level is not available.
2021-08-11 14:09:00 +02:00
Christoph Oelckers
f662c629e3
- ensure that shadowmap indices only get set when shadowmaps are enabled.
...
Having valid indices set when shadowmaps are off would cause the shader to run the full checks for all lights.
2021-08-11 10:06:22 +02:00
Christoph Oelckers
c24f644a61
- do not perform shadowmap updates when dynamic lights are disabled.
2021-08-11 08:08:29 +02:00
Christoph Oelckers
441cd0796f
- merged gzdoom-gles2 and fixed some issues with pipeline size validation.
2021-08-03 20:12:19 +02:00
Jeroen de Baat
8ac8e31a61
Fix typo in sw renderer comment
2021-07-21 20:58:41 +02:00
Christoph Oelckers
0cffeef2c6
- added map option to disable shadowmaps.
...
Prompted by 'Hurt' which has > 4000 lights and runs into both performance issues and unpredictable light selection for the limited amount of shadowmap slots.
2021-07-13 11:54:25 +02:00
Christoph Oelckers
e82fd43313
- tweaked shadow code a bit.
...
* let CASTSPRITESHADOW act as an override for render style checks. If this is set we can assume that a shadow is desired regardless of style.
* reordered code to do the more costly checks only when needed.
2021-07-02 09:12:26 +02:00
Christoph Oelckers
5273ef360e
- fixed: shadow alpha for translucent objects was not correct in the hardware renderer.
2021-07-02 08:54:15 +02:00
Christoph Oelckers
8547a55677
- better sprite shadow control
...
* exclude sprites which are not either opaque or use regular blended translucency from casting shadows.
* exclude wall and flat sprites from casting shadows.
In both of these cases the shadow math is unable to produce anything useful that doesn't look off.
2021-07-02 08:47:58 +02:00
emily
4f034950be
Make sprite shadows ignore float bob
2021-06-06 13:40:17 +02:00
drfrag
d9db8984af
- Fixed crash calling ChangeSky() with an invalid texture.
2021-05-29 15:07:45 -04:00
Christoph Oelckers
f0d8bd0a74
- tweaked Hexen's weapon pieces so they do not floatbob into the floor with the hardware renderer.
2021-05-19 18:30:19 +02:00
Rachael Alexanderson
cfc080e37f
- never run the shader timer on the 0th frame. fixes this bug: https://forum.zdoom.org/viewtopic.php?f=2&t=62693
2021-05-18 14:37:05 -04:00
nashmuhandes
e2d3f26a35
Fixed wrong alpha value being applied on sprite shadows in the hardware renderer.
2021-05-12 10:48:51 -04:00
Christoph Oelckers
c51af868de
Revert "- restricted the portal rendering shortcut only to real skies in the primary layer."
...
This reverts commit b193e582ce .
This made the one thing I hoped it would fix even worse so it's useless.
2021-05-07 09:05:56 +02:00
Christoph Oelckers
52554dc32c
- Backend update fron Raze, mainly new script exports and extensions.
2021-05-03 14:13:03 +02:00
Christoph Oelckers
b193e582ce
- restricted the portal rendering shortcut only to real skies in the primary layer.
...
This won't work properly with sector portals that contain other portals because those setups require a proper stencil to work as expected.
2021-05-03 13:58:46 +02:00
nashmuhandes
15159a3c19
Add sprite shadows for the hardware renderer
2021-04-24 22:40:54 -04:00
nashmuhandes
5446a1a355
Add sprite shadows for the software renderer
2021-04-24 22:40:54 -04:00
Christoph Oelckers
ba146ed5e5
- Backend update from Raze
2021-04-19 12:58:35 +02:00
drfrag
25ab8e20ba
- Fix crash with fog and software light modes.
2021-03-29 09:38:51 -04:00
Magnus Norddahl
61d49a2007
Fix texture loading race condition and improve performance by only locking the load mutex if data hasn't already been updated for this frame
2021-03-26 07:09:33 -04:00
Magnus Norddahl
d1f47afd96
Add debug code for showing the render slices
2021-03-26 07:09:33 -04:00
Magnus Norddahl
272ca6cd92
Fix truecolor drawer crash
2021-03-26 07:09:33 -04:00
Magnus Norddahl
e7476e5dac
Fix fullbright shade bug
2021-03-26 07:09:33 -04:00
Magnus Norddahl
bdb35e5e86
Fix some r_scene_multithreaded crashes
2021-03-26 07:09:33 -04:00
Magnus Norddahl
fb87f90d86
Fix some r_scene_multithreaded related bugs
2021-03-26 07:09:33 -04:00
Magnus Norddahl
4cd994c027
Remove threading from the drawers
2021-03-26 07:09:33 -04:00
Rachael Alexanderson
6e5dbbc8ec
Revert "Merge dpJudas's renderslices branch ( #1356 )"
...
This reverts commit a5cba1aba5 .
2021-03-26 07:08:31 -04:00