Commit graph

325 commits

Author SHA1 Message Date
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
ZZYZX
842d4a6668 Fixed: full sector highlight would not show in 2D mode 2019-12-24 23:06:13 +02:00
Magnus Norddahl
28406cf1a7 Declare the uniform variables in C# 2019-12-21 02:14:42 +01:00
Magnus Norddahl
a21edf78da Misc adjustments to make the cherry-picked 'C# shader resources' commit work 2019-12-21 01:47:27 +01:00
Magnus Norddahl
7f6ff8929d Move the shaders to C# resources 2019-12-21 01:26:58 +01:00
ZZYZX
da57945db7 Merge branch 'master' into slimgl_merge 2019-12-20 16:41:38 +02:00
ZZYZX
e187872553 Add fps counter in visual mode 2019-12-20 16:39:01 +02:00
ZZYZX
5d3e78ad8f Add FPS counter for visual mode 2019-12-20 16:17:32 +02: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
Magnus Norddahl
4274ee2893 Use C++ and SSE code to do matrix math
Avoid copying by passing matrices by reference to RenderDevice
Use fasttrig from GZDoom for faster cos/sin
Don't set matrices unless they changed. Even though the memcmp prevents it from being pushed to OpenGL it is still a waste.
2019-12-19 03:12:44 +01:00
ZZYZX
4de0d96d13 Only set uniform for world matrix if it was the only one that changed 2019-12-18 15:24:54 +02:00
Magnus Norddahl
de2e336cb1 Use OpenGL sampler objects 2019-12-18 03:24:09 +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
502b641967 Improved error reporting 2019-12-15 23:53:33 +02:00
ZZYZX
7f09dd2aec Reenabled point filtering in visual mode 2019-12-15 22:47:06 +02:00
ZZYZX
6f122d28c3 Fixed: alpha in the plotter was applied twice 2019-12-15 08:09:41 +02:00
ZZYZX
d1ff6bcc36 Fixed: line can be either dotted or smoothed 2019-12-15 07:20:54 +02:00
ZZYZX
ca75897bc5 Make grid dotted again 2019-12-15 03:45:21 +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
ZZYZX
f0aee1e174 Merge branch 'master' into slimgl_merge 2019-12-14 23:50:40 +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
6e4298660f Fix crash when adding a new sector with the same number of vertices as another
I think it happened because set.buffers[bufferindex] was null.

Fixes #2
2019-09-10 00:17:53 -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
03e9da365e Misc fixes for mono P/Invoke of BuilderNative 2019-08-30 10:30:28 +02:00
Magnus Norddahl
3cd96fc788 Fix linux compile errors and build the BuilderNative.so library 2019-08-30 08:45:14 +02:00
biwa
64c04f4246 - Fixed a bug where lights defined in GLDEFS wouldn't show up in visual mode. Fixes #294. 2019-08-24 12:45:55 +02:00
Magnus Norddahl
c2157ee24e - fix field of view 2019-08-22 23:28:26 +02: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
e5500f7190 - don't update the texture unless something was drawn 2019-08-18 08:14:14 +02:00
Magnus Norddahl
9b0b6d2687 - clear command list once drawn 2019-08-18 08:11:09 +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
5ccc225fa8 - fix light pass 2019-08-17 05:21:28 +02:00
Magnus Norddahl
6c9f9b9247 - remove unused code 2019-08-17 03:58:07 +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
cea032e025 - remove unused code 2019-08-16 14:06:03 +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