Commit graph

373 commits

Author SHA1 Message Date
biwa
bdc6a23934 Fixed some more cases where UniValues were set to floats. Added throwing exceptions to the UniValue constructor (gasp!) 2020-05-23 10:01:52 +02:00
biwa
9338d1221f Removed lots of unnecessary casts to float of the Math methods. Also removed some other minor implicit casts 2020-05-22 22:30:32 +02:00
biwa
91cbcde1eb It's compiling! 2020-05-21 14:20:02 +02:00
biwa
fb3c9e7168 Started conversion from float to double 2020-05-18 18:14:54 +02:00
biwa
a3ce81dc2b Merge branch 'master' into visual-slope2 2020-04-04 13:12:20 +02:00
biwa
1fc503fa24 Update things before adding their geometry in visual mode so things don't go awry when realtime editing them. Fixes #393. 2020-03-29 17:31:20 +02:00
biwa
7b0adadbfb Merge branch 'master' into visual-slope2 2020-03-17 22:10:04 +01:00
biwa
afef349220 - Slope handles are not shown anymore when showing selection is disabled
- Smart pivot handles are now shown for the highlighted slope handle
2020-02-24 12:54:59 +01:00
biwa
915d83c92a - If geometry is selected and the geometry the modified slope handle belongs to is not selected it will now also be modified
- Made the slope handles hover closer to the geometry
2020-02-23 11:17:14 +01:00
biwa
f606f3bd7c Drawing slope handles works correctly now 2020-02-22 19:45:12 +01:00
biwa
7154dec8c7 Code cleanup, added some comments 2020-02-16 22:07:20 +01:00
biwa
ff1ea95d86 Drawing visual slope handles is (mostly) working now
Also fixed some cases where slopes were applied incorrectly
2020-02-16 20:51:16 +01:00
biwa
d9cfc04e2e More trying to get it to work... 2020-01-18 21:10:21 +01:00
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
ZZYZX
42aa6c8832 Fixed: there was no highlight shader for internal sprites for ZDoom effects disabled; Fixed: highlighting of transparent walls/floors was broken 2020-01-14 11:09:33 +02:00
Magnus Norddahl
fc7093b959 Load images when they accessed
Load previews when they are accessed
2020-01-12 23:10:57 +01:00
biwa
247d3e7a97 Merge branch 'master' of https://github.com/jewalky/UltimateDoomBuilder into visual-slope2 2020-01-09 20:05:34 +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
biwa
2c9235e4ea Trying to figure out matrix black magic 2020-01-07 21:27:37 +01:00
biwa
8aee7fc550 Merge branch 'master' of https://github.com/jewalky/UltimateDoomBuilder into visual-slope2 2020-01-04 22:15:13 +01:00
ZZYZX
0e7875e0ad Fixed: light clipping on back faces was gone 2020-01-03 03:55:34 +02:00
ZZYZX
044dbbcfd0 Rewrote dynamic light support. Resolves #319. Resolves #318. Resolves #233. 2020-01-03 03:22:33 +02:00
biwa
7e84883125 Some cleanups 2020-01-02 20:32:37 +01:00
ZZYZX
7b5d4a03e9 Write uniform data into separate structures 2020-01-02 21:32:08 +02:00
Magnus Norddahl
6450bdcc67 Improve error message if OpenGL context creation fails 2020-01-02 19:45:45 +01:00
ZZYZX
0fbebbe759 Allow functions block in a shader, error out on duplicate functions 2020-01-02 02:56:27 +02:00
ZZYZX
e015cc6fb1 Fixed token position for named tokens 2020-01-02 01:51:54 +02:00
biwa
55135f2982 - Handles on floor are shown
- Fixed a problem where the wrong plane was assigned to ceiling surfaces
2020-01-01 21:47:33 +01:00
ZZYZX
6374b498ab Added GLSL shader preprocessor 2020-01-01 22:41:04 +02:00
Magnus Norddahl
73364a130e Remove UTF-8 BOM if found 2020-01-01 09:21:41 +01:00
biwa
4bfbe567c1 Merge branch 'master' of https://github.com/jewalky/UltimateDoomBuilder into visual-slope2 2019-12-31 23:46:56 +01:00
biwa
d7e259bc7e Compute the length of the line in Plotter.DrawLine3DFloor with a method that actually works on big numbers 2019-12-31 10:57:29 +01:00
biwa
ba713f7a25 Ported visual sloping to UDB 2019-12-31 00:08:17 +01: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
biwa
30819b3b0c Merge branch 'master' of https://github.com/jewalky/UltimateDoomBuilder 2019-12-29 13:01:25 +01:00
biwa
1786ab525e Changed checkdistance in ThingTypeInfo from int to double so that doesn't overflow 2019-12-29 13:00:10 +01:00
ZZYZX
62cddff505 Use nearest filtering if nearest is specified 2019-12-29 13:02:03 +02:00
Magnus Norddahl
5082d7c308 Alter the nearest filter to not have noise in it 2019-12-29 06:52:39 +01:00
ZZYZX
f41c5bdd6f Used slightly better approach for executing stuff in the main thread 2019-12-28 22:01:57 +02:00
ZZYZX
866facf80b Fixed: not all cases of static FontFamily were addressed 2019-12-28 10:22:32 +02: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
3491bdccea Fixed: lines in 2D mode had random gray pixels with high quality enabled (resolves #331) 2019-12-26 08:16:38 +02:00
ZZYZX
1cbfddd367 Oops. 2019-12-26 07:10:01 +02:00
ZZYZX
607ac7751e Fixed: use application default font family for rendered labels if user-selected font is not available 2019-12-26 07:09:28 +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