nashmuhandes
934b5af975
Add lightmaps to 3D floors
2021-09-24 17:42:34 +08:00
nashmuhandes
3f3769afdb
- implement drawing sides with lightmaps
...
- misc bug fixes in lump loading and format
2021-09-24 17:27:23 +08:00
nashmuhandes
2f8cff90b6
- Add lightmaps to the main shader (currently only OpenGL)
...
- Create a version of CreateIndexedSectorVertices that works with lightmap sectors
2021-09-24 16:56:15 +08: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
Marisa Kirisame
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
Marisa Kirisame
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
Xaser Acheron
a5cba1aba5
Merge dpJudas's renderslices branch ( #1356 )
...
* Remove threading from the drawers
* Fix some r_scene_multithreaded related bugs
* Fix some r_scene_multithreaded crashes
* Fix fullbright shade bug
* Fix truecolor drawer crash
* Add debug code for showing the render slices
* Fix texture loading race condition and improve performance by only locking the load mutex if data hasn't already been updated for this frame
Co-authored-by: Magnus Norddahl <dpjudas@users.noreply.github.com>
2021-03-25 20:58:08 -04:00
James Le Cuirot
8ef02544a7
Fix camera texture aspect ratio in hardware renderer
...
It wasn't respecting the map's pixel ratio setting. This wouldn't have
been very noticeable with the default pixel ratio of 1.2 but it was
very obvious with 1.8.
2021-03-19 00:04:46 +01:00
Christoph Oelckers
d18b74b537
Merge branch 'master' of https://github.com/Chernoskill/gzdoom
2021-03-06 11:32:31 +01:00
Christoph Oelckers
8feba7dff9
- fixed: line portal rendering PR was missing handling for portals with z offset.
...
Since it used the back sector's height directly the needed offsetting was not applied to the upper and lower texture.
2021-03-05 17:19:02 +01:00
Christoph Oelckers
0c0ef4f938
- reinstated rendering of mid textures over two-sided wall portals.
...
This was removed in the last PR due to z-fighting problems which now have also been addressed
2021-03-05 12:25:41 +01:00
Timothy Quinn
a15216c90f
- fixed rendering of one-sided line portals in the hardware renderer
...
# draw upper and lower textures when the back sector does not properly match
# do not draw middle textures on portal lines
# minor optimization to 'is***Portal' functions to avoid memory access in the most common case of no portal being present.
2021-03-05 12:02:31 +01:00