Commit graph

503 commits

Author SHA1 Message Date
Christoph Oelckers
03537e90ff - linked new properties with the renderer.
Support for the softpoly renderer still missing.
2019-12-20 18:56:03 +01:00
Christoph Oelckers
3a249cb06f - added high level interface to the new properties, i.e. UDMF and ZScript. 2019-12-20 18:02:42 +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
Christoph Oelckers
41a9496bef - the texture precaching message is supposed to be debug only 2019-12-20 14:38:22 +01:00
alexey.lysiuk
a0670f5c5b - added minimal time profiling of texture precaching 2019-12-20 11:06:00 +02:00
Rachael Alexanderson
33483115cd - amend last commit: use VID_MIN_HEIGHT and VID_MIN_WIDTH macros in place of hardcoded values 2019-12-20 03:31:44 -05:00
Rachael Alexanderson
a53652f36e - implement vid_scalemode = 6 - sets absolute minimum scaling to fill entire screen - useful for speeding up software rendering 2019-12-20 03:05:44 -05:00
Magnus Norddahl
c5717d98db Implement the other light modes and fix dynamic lights being calculated twice(!) 2019-12-15 20:05:13 +01:00
Magnus Norddahl
b44c40a63d Implement EFF_FOGBOUNDARY 2019-12-15 17:33:49 +01:00
Magnus Norddahl
5632c80ab2 Split softpoly into more files 2019-12-15 17:14:23 +01:00
David Carlier
e0fb9a45e2 Marking final class to suppress build warning with clang. 2019-12-12 23:26:32 +01:00
Magnus Norddahl
49af4a4b35 - fix line backside textures mirrored 2019-12-10 00:44:40 +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
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
Magnus Norddahl
75248cffd0 - fix decal color bug 2019-12-06 23:26:38 +01: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
Magnus Norddahl
8075510289 Merge remote-tracking branch 'origin/master' into polybackend 2019-12-06 00:20:25 +01:00
Magnus Norddahl
a7a899ca14 Fix null pointer crash 2019-12-06 00:19:51 +01:00
Magnus Norddahl
9b7db26a37 Fix the compile error on Windows 2019-12-05 21:18:11 +01:00
Magnus Norddahl
e4bd2483e5 Implement SDL present functions 2019-12-05 21:26:01 +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
Magnus Norddahl
44c2223c2f Draw 8-bit software renderer with polybackend (well, sort of!) 2019-12-02 01:07:28 +01:00
Magnus Norddahl
4a2b763aaa Support 8-bit textures 2019-12-02 00:35:15 +01:00
Magnus Norddahl
74c6b9fe6d Remove PolyDrawArgs 2019-12-02 00:21:42 +01:00
Magnus Norddahl
d2f4570337 Remove old polyargs 2019-12-02 00:01:04 +01:00
Magnus Norddahl
4a4b79194d Remove/disable old swrenderer model rendering code 2019-12-01 23:37:43 +01:00
Magnus Norddahl
3059b8f5c8 Remove old softpoly drawer implementation 2019-12-01 23:23:25 +01:00
Rachael Alexanderson
f1e136487d Merge branch 'polybackend' of https://github.com/coelckers/gzdoom into polybackend 2019-12-01 16:06:54 -05:00
Rachael Alexanderson
bdc7329d32 - replace vid_enablevulkan with vid_preferbackend - disabled startup window selector for this (will replace when the startup screen changes are done) 2019-12-01 16:06:36 -05:00
Magnus Norddahl
8ca05fe30a Implement crossfade 2019-12-01 22:05:10 +01:00