Magnus Norddahl
cfa3f8ecc4
Remove the old shaders
2023-09-25 21:18:59 +02:00
Magnus Norddahl
11ca6bb067
Fix the clear screen shader bug
...
Fix texture set layout not matching the c++ code's version (vulkan validation error)
2023-09-25 21:18:58 +02:00
Magnus Norddahl
f11318ff99
Fix misc shader related issues
2023-09-25 21:18:58 +02:00
Magnus Norddahl
e34ee1e462
Fix shader build errors and remove support for old deprecated shader types
2023-09-25 21:18:57 +02:00
Magnus Norddahl
a267cf737e
Add support for using #include in glsl files and improve glsl compile errors
2023-09-25 21:18:57 +02:00
Magnus Norddahl
8682361194
Move static layout code back to wadsrc
2023-09-25 21:18:57 +02:00
dpjudas
15ff88d7a4
Begin refactor the shaders
2023-09-25 21:18:57 +02:00
Magnus Norddahl
35df964d61
Update ZVulkan, rename vk_raytrace to gl_light_raytrace and support turning it on and off without a restart
2023-09-25 21:18:56 +02:00
Christoph Oelckers
5b7826f68b
- set lightblendmode to 0 when setting up a 2D viewpoint.
...
2D never uses dynamic lights so this should always be 0 - and eliminates another place in the backend referencing game data.
2023-01-15 09:21:01 +01:00
Christoph Oelckers
34e2e77f9e
- tab cleanup in shader code.
2023-01-15 08:54:54 +01:00
Ricardo Luís Vaz Silva
8e7897233e
Add Alternate Light Blending Options
2023-01-14 11:29:12 -05:00
Magnus Norddahl
8bcdbc230d
Adds soft shadows to vk_raytrace
2022-12-31 03:51:33 -05:00
Magnus Norddahl
6a005e3a2a
Switch vulkan backend to use the zvulkan library
2022-12-05 07:49:43 +01:00
Shiny Metagross
cd4345373d
Fixed improper casting
...
- Made a mistake on the casting in the shader that only worked for Intel
2022-10-19 22:48:57 +02:00
Shiny Metagross
a8bab6a21d
Intel fix
...
- GZDoom can launch for Intel users - IQMs work for Intel too
2022-10-19 22:48:57 +02:00
Shiny Metagross
08f520f1c6
IQM Support Implemented
...
More info to come
2022-10-19 22:48:57 +02:00
Magnus Norddahl
37039721bd
Fix washed out colors in Vulkan HDR mode
2022-10-11 00:10:02 +02:00
Magnus Norddahl
0f08a0f511
Re-enable ray query in the shader
2022-06-22 07:55:19 +02:00
Magnus Norddahl
5cc21c5a4a
Upgrade glslang to 11.10.0
2022-06-22 07:55:19 +02:00
Magnus Norddahl
821bd3b460
Adjust some init/deinit code and rename some things
2022-06-22 07:55:19 +02:00
Magnus Norddahl
0c1aab074c
Hook up the acceleration structure to the shader and start shooting some rays!
2022-06-22 07:55:19 +02:00
Rachael Alexanderson
7652fd7ee0
Revert "- model normals fix"
...
This worked in some instances but it also broke attenuated lights in other instances, and also caused the shaders to fail to compile on Mac.
This reverts commit 679518f8e5
.
2022-05-08 07:07:54 -04:00
Rachael Alexanderson
679518f8e5
- model normals fix
2022-05-03 23:39:40 -04:00
Rachael Alexanderson
6cc03aba16
- add gl_satformula == 2 - an optional 'more accurate' desaturation
2022-03-16 13:33:29 -04:00
Magnus Norddahl
604c4ff8e0
Fix vertex layout locations and add lightmap to vulkan shader
2021-09-24 16:21:23 +02: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
0db7a6206b
- fixed shader compilation.
2021-09-21 21:07:46 +02:00
Christoph Oelckers
da806b354d
- cleanup of the revised y-clamping feature.
...
This integrates better with the existing features.
2021-09-21 20:31:42 +02:00
Christoph Oelckers
fc2818b195
- menu system update from Raze for better control of animated menus.
2021-09-18 12:19:35 +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
c7db3875e1
- fixed: colors from brightmaps and glowmaps need to be desaturated.
2021-09-14 19:49:41 +02:00
Christoph Oelckers
e1a5f61f8c
- fixed: shaders with NO_LAYERS defined may not apply brightmap and glowmap.
...
These are undefined for such fragments.
2021-09-14 19:49:41 +02:00
Christoph Oelckers
39513cf7ae
Revert "- eliminate an unexpected slow path in the fragment shader."
...
This reverts commit cd5aa65fda
.
This does not work as expected, needs more investigation.
2021-08-09 20:31:21 +02:00
Christoph Oelckers
cd5aa65fda
- eliminate an unexpected slow path in the fragment shader.
...
Apparently with checking uLightLevel the shader cannot discard the slow software lighting path entirely adding a significant amount of processing time.
Changed to check the actual lightmode value, which re-enables the fast path again.
2021-08-09 19:50:45 +02:00
Marisa Kirisame
fd07183585
Fix model normals being distorted by MODELDEF scaling.
2020-12-12 00:21:33 +01:00
Rachael Alexanderson
2312fb0322
- fix HDR shader, again
2020-10-27 11:52:17 -04:00
Rachael Alexanderson
9afffba515
- fix HDR shader
2020-10-27 09:58:38 -04:00
Christoph Oelckers
b20de184a0
- made the new Build light mode operational
2020-06-11 08:48:33 +02:00
Christoph Oelckers
5896f24eba
- added a new light mode that emulates Build's depth fading.
...
Not active yet, this needs some testing and finetuning.
2020-06-08 23:37:20 +02:00
Christoph Oelckers
9e51a2f63c
- added Build's NPOT emulation to the backend.
...
For GZDoom this is completely disabled, of course, because the Doom engine does not need it, but in order to have the same backend code in both engines it needs to be present.
2020-06-08 23:37:20 +02:00
Christoph Oelckers
b06af634e2
- added a flash component to the colormap shader.
...
Its main purpose is for RR's lightning flash in Raze but this looks very useful for manipulating fullscreen colormaps. Currently not exposed, though.
2020-06-07 09:16:56 +02:00
Christoph Oelckers
f8dcb09ff0
- moved postprocessing shaders to their own folder.
2020-04-26 21:22:57 +02:00
Christoph Oelckers
7c46dace03
- this still doesn't work on Vulkan. :(
2020-04-19 10:57:44 +02:00
Christoph Oelckers
8381092cce
- major shader rework
...
* handle brightmaps in the main shader instead of keeping separate instances around.
* added detail and glow layers from Raze.
* fixed material setup which could not guarantee that everything was initialized correctly.
* for warped textures, warp all layers. With this brightmaps finally work on warped textures.
Note: Vulkan reports a "device lost" error with this which still needs to be investigated.
2020-04-19 10:57:43 +02:00
Christoph Oelckers
738b9ceb08
- fixed incompletely changed shader.
...
It was still using a variable from the first revision that no longer exists.
2019-12-21 21:07:00 +01:00
Christoph Oelckers
bb8db9422f
- scaled down the texture colorization feature for easier usability.
...
It makes little sense exposing every minute detail of this through UDMF.
Setting it up that way is far too complicated. Using virtual textures that map to a real texture plus a colorization record should be far easier to use by mappers.
This also doesn't piggyback on the Doom64 color feature anymore and is completely separate, despite some redundancies.
This is still missing the texture definition part, though.
2019-12-20 22:25:10 +01:00
Christoph Oelckers
3209d4ed23
- added a few more texture coloring options to the shader.
...
Aside from adding an additive component it can now also do:
- desaturation (not limited to the range of 0..1 so it can also be used for oversaturation by applying a negative number or negative saturation by going above 1.0.
- invert the texture
- apply a blend, including 3 special mode taken from EDuke32.
Currently only the implementation is done, it is not exposed to UDMF yet.
2019-12-20 16:05:00 +01:00
alexey.lysiuk
b6ada166fc
- fixed compilation of FXAA shader by macOS OpenGL
...
Compile Shader 'shaders/glsl/fxaa.fp':
ERROR: 0:250: '' : syntax error: incorrect preprocessor directive
ERROR: 0:250: '' : syntax error: unexpected tokens following #if preprocessor directive - expected a newline
ERROR: 0:265: '' : syntax error: incorrect preprocessor directive
ERROR: 0:265: '' : syntax error: unexpected tokens following #if preprocessor directive - expected a newline
ERROR: 0:266: '' : Macro Redefined lumaM
ERROR: 0:301: '' : syntax error: incorrect preprocessor directive
ERROR: 0:301: '' : syntax error: unexpected tokens following #if preprocessor directive - expected a newline
ERROR: 0:599: '' : syntax error: incorrect preprocessor directive
ERROR: 0:599: '' : syntax error: unexpected tokens following #if preprocessor directive - expected a newline
https://forum.zdoom.org/viewtopic.php?t=65003
2019-06-11 08:20:24 +03:00
alexey.lysiuk
addcad8ac0
- disabled discard in FXAA shader with Vulkan backend
...
Discard caused graphical corruptions on AMD hardware with Vulkan backend enabled
https://forum.zdoom.org/viewtopic.php?t=64230
2019-06-04 11:32:00 +03:00
alexey.lysiuk
da2d0e47e6
- removed array length() function from shadowmap shader
...
Array's length() function is not yet supported by SPIRV-cross and MoltenVK
Its usage was replaced by explicit nodes count value passed as uniform
2019-05-24 14:29:37 +03:00