Commit graph

162 commits

Author SHA1 Message Date
Magnus Norddahl
6e4a02fb2b Add texture format to the Texture class so that render target textures do not have to be in the bgra8 format 2020-01-15 23:28:17 +01:00
biwa
a14fc7cafd Fixed an issue where grid background images were drawn upside down and moved in the wrong direction on the Y axis when scrolling 2020-01-07 22:26:21 +01:00
ZZYZX
044dbbcfd0 Rewrote dynamic light support. Resolves #319. Resolves #318. Resolves #233. 2020-01-03 03:22:33 +02:00
Magnus Norddahl
03e50615f6 Remove explicit image unloading and fix previews 2019-12-29 22:59:57 +01:00
Magnus Norddahl
f97f2d36b1 Remove preview manager and remove CreateTexture 2019-12-29 20:48:11 +01:00
biwa
a024ac9f47 Merge branch 'master' of https://github.com/jewalky/UltimateDoomBuilder 2019-12-29 19:05:26 +01:00
biwa
c46e548a73 - Fixed vertical grid lines being 1 pixel off in their horizontal position
- Fixed a bug where lines with 3D floor indicators were 1 pixel off in their horizontal position
2019-12-29 19:04:33 +01:00
Magnus Norddahl
ca3fa76e32 Rename the sampler filters so that they use the same naming convention as modern graphics APIs 2019-12-29 18:54:22 +01:00
ZZYZX
624c5ea1d3 Fixed: don't use full Renderer2D pipeline while updating the grid after resize (fixes debug build) 2019-12-26 14:33:23 +02:00
ZZYZX
60d836dc85 Fixed: redraw grid after window size changes 2019-12-25 17:26:30 +02:00
biwa
33b888e5d2 Renderer2D.PlotLine now transforms the y coordinate so that linedefs in nodes viewer, automap/sound environment/sound propagation mode are not flipped upside down anymore. Fixes #325. 2019-12-25 01:54:05 +01:00
Magnus Norddahl
80f815cad9 Fix the error handling: only create one call unless there's an error and only check for errors in functions that can fail 2019-12-20 03:39:06 +01:00
ZZYZX
bd967138f2 Return old code for grid drawing on the renderer side 2019-12-16 08:32:01 +02:00
ZZYZX
4cb6d68c45 Use PBO to stream texture data for software rendering 2019-12-16 06:54:44 +02:00
ZZYZX
5fbedaf8fc Fixed: don't reduce alpha twice in 2D render layers 2019-12-16 04:52:42 +02:00
ZZYZX
8ac7e40754 Returned CodeImp's software renderer for line plotting 2019-12-16 04:15:53 +02:00
ZZYZX
554ccc442f Fixed plotting from plugins, fixed transformed grid 2019-12-15 01:58:11 +02:00
ZZYZX
24c28e921f Fixed untransformed grid being Y-inverted 2019-12-15 01:16:04 +02:00
Kevin Caccamo
b5bd90c0ce Attempt to fix grid being vertically inverted
I don't know exactly where the root cause of the problem lies, but this solution works for me, even if it is a bit of a hack.

Fixes #1
2019-09-10 19:28:43 -04:00
Kevin Caccamo
7d3379c6ce Fix textures in 2D mode being clamped
I have no idea why the textures in 2D more ended up being clamped to begin with, but this should fix that.
2019-09-03 22:55:54 -04:00
Magnus Norddahl
64cc7d2bc2 - implement the fixed function fog 2019-08-22 18:43:54 +02:00
Magnus Norddahl
7abcb2a328 - remove unsafe keyword from functions no longer needing it 2019-08-22 15:52:17 +02:00
Magnus Norddahl
0562dac685 - fix screenverts math and some line drawing bugs 2019-08-20 12:45:23 +02:00
Magnus Norddahl
4c0e6e8fcc - implement plotter as a shader 2019-08-20 11:00:24 +02:00
Magnus Norddahl
b51270fdfa - Delay plotter drawing until DrawContents is called 2019-08-18 08:07:28 +02:00
Magnus Norddahl
3142437444 - move plotter texture into plotter 2019-08-18 07:43:46 +02:00
Magnus Norddahl
c914aadcaa - simplify texture binding 2019-08-17 03:21:11 +02:00
Magnus Norddahl
c88b94e1c9 - render to texture bug fixes 2019-08-17 03:08:34 +02:00
Magnus Norddahl
0542bd25ec - convert texturefactor to uniform 2019-08-16 14:01:27 +02:00
Magnus Norddahl
3968206199 - Sending data to Direct3D 9 just to retrieve it is stupid 2019-08-16 13:38:53 +02:00
Magnus Norddahl
149012e8b3 - simplify buffer indexing 2019-08-16 13:23:25 +02:00
Magnus Norddahl
9b53939f0c - simplify vertex buffer and vertex format 2019-08-16 13:07:57 +02:00
Magnus Norddahl
d701987fb4 - don't pass sizes into VertexBuffer and IndexBuffer constructors
- CopyTexture bug fixes
2019-08-16 11:24:22 +02:00
Magnus Norddahl
edecd3f7aa - rename draw functions 2019-08-16 07:12:26 +02:00
Magnus Norddahl
e035ff8113 - fix alpha ending up in red channel 2019-08-16 05:37:03 +02:00
Magnus Norddahl
a542385cd7 - force texture and buffer updating to go through RenderDevice 2019-08-15 02:52:21 +02:00
Magnus Norddahl
b41cb07eaa - Hook up texture creation and binding 2019-08-14 13:51:05 +02:00
Magnus Norddahl
1d09a0f86a - implement ApplyUniforms 2019-08-14 12:36:33 +02:00
Magnus Norddahl
14fd3c96e1 - remove Things2DShader, World3DShader, Effect and EffectShader 2019-08-13 04:12:04 +02:00
Magnus Norddahl
0b3725e2fa - remove Display2DShader class 2019-08-13 02:43:01 +02:00
Magnus Norddahl
3fae1e9ef3 - add RenderDevice bindings 2019-08-10 00:46:51 +02:00
Magnus Norddahl
e3740033fc - rename classes with D3D in them 2019-08-09 23:22:16 +02:00
Magnus Norddahl
407cc703b8 - implement enough of BuilderNative for GZDB to successfully run without crashing 2019-08-09 23:15:48 +02:00
Magnus Norddahl
690a4d2e83 - remove DataStream class 2019-08-08 20:06:35 +02:00
Magnus Norddahl
c665bfca86 - remove SlimDX namespace 2019-08-08 18:24:33 +02:00
Magnus Norddahl
8f15e8d5e7 - Simplify code 2019-08-08 07:10:35 +02:00
Magnus Norddahl
3cff90d716 - remove SlimDX.Direct3D9 namespace 2019-08-08 03:51:21 +02:00
Magnus Norddahl
1be047d316 - Simplify D3DDevice 2019-08-08 03:19:11 +02:00
volte
821016760b Fix for rotated grid algorithm causing a freeze in some circumstances (PR#255 by Volte) 2019-01-28 01:27:14 +02:00
ZZYZX
5c42035731 Fixed unused variable warnings; fixed compilation error in Renderer2D 2019-01-19 10:02:54 +02:00