Commit Graph
196 Commits
Author SHA1 Message Date
Pieter-Jan Briers 5dc15b90c6 Optimize some allocations. 2020-11-11 01:30:09 +01:00
Pieter-Jan Briers 362b7804d9 Fix issues with .NET 5. 2020-11-11 00:46:35 +01:00
bb2867ad74 Fix occluder tree crash (#1397)
* Fix occluder tree crash

* TryGet

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
2020-11-10 20:06:34 +11:00
ab4be1a3c3 (Attempt to) draw world overlays inbetween entities (#1335)
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
2020-11-01 23:25:50 +01:00
deeda5cfa5 Grid-tree occluders (#1362)
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
2020-10-30 00:59:52 +01:00
20kdcandGitHub 4f6a4c8a28 Lighting: Polar Coordinates fix: Sparkle-Be-Gone (#1345) 2020-10-24 15:51:17 +02:00
6bbc4b01e9 Change cvar usages to use CVarDef and define them in CVars (#1330)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
2020-10-24 15:40:06 +02:00
20kdcandGitHub d2949ac474 Polar coordinate lighting implementation (#1324) 2020-10-19 22:39:07 +02:00
Víctor Aguilera Puerto 8b3348d4c1 Eye zoom is 0.5 by default.
Let's be honest, this is what most mobs' eyes will default to.
2020-10-17 13:10:09 +02:00
Pieter-Jan Briers 0eb9cbfffb Fix incorrect alpha blend funcs.
This caused showbb to allow you to see stars.
2020-10-15 20:06:02 +02:00
DrSmugleafandGitHub da76788751 Replace MapIndices to Vector2i (#1318) 2020-10-11 14:33:09 +02:00
Pieter-Jan Briers e2b97d3eac Fix viewports getting cleared to #fff0 instead of #0000. 2020-10-09 15:06:24 +02:00
Pieter-Jan BriersandGitHub aa64528a03 Auth (#1289)
* Some stuff for auth

* Holy crap auth works

* Enable encryption even if no auth token is provided.

It's still possible that the public key was retrieved over HTTPS via the status API, in which case it will be secure.

* Fix integration test compile.

* Secure CVar API.

* Literally rewrite the auth protocol to be minecraft's.

* Better exception tolerance in server handshake.

* Auth works from launcher.

* Fix some usages of UserID instead of UserName

* Fix auth.server CVar

* Kick existing connection if same account connects twice.

* Username assignment, guest session distinguishing.

* Necessary work to make bans work.

* Expose LoginType to OnConnecting.

* Fixing tests and warnings.
2020-09-29 14:18:12 +02:00
Pieter-Jan Briers e87520bea5 Occluder tree for server. 2020-09-24 18:14:24 +02:00
Pieter-Jan Briers d134f31d66 Re-implement DynamicTree<T> on top of B2DynamicTree<T>. 2020-09-24 11:51:50 +02:00
Pieter-Jan Briers f926698db0 Fix texture swizzle on GLES3.
ES doesn't support the combined swizzle parameter so we have to  set them separately.
2020-09-16 00:54:11 +02:00
Pieter-Jan Briers 874995225b I blame rider for all my faults. 2020-09-10 11:55:25 +02:00
Pieter-Jan Briers a8c4270834 Fix mixup of KHR suffix debug functions. 2020-09-10 11:40:21 +02:00
ExpandGitHub 31e9554cd7 Makes more fields VV (#1282)
* Sprite & Appearance VV

* Added Client SpriteComp & RSI
2020-09-08 18:44:53 +02:00
Pieter-Jan Briers a19e12e693 display.uiScale 0 (the new default) pulls UI scale from OS. 2020-09-07 12:58:44 +02:00
20kdcandGitHub 5146bf8ac2 More configurable lighting (also, "Rounded" mode for Range) (#1274)
* Add support for 'Rounded' mode to Range (and thus Slider)

* Make lighting resolution more configurable

* Use a lighting presets dropper because RemieRichards said so

* Make ConfigLightingQuality not a property and instead two separate methods

* More configurable lighting: cleanup to use a switch rather than an if-chain
2020-09-07 10:57:44 +02:00
0a67cecfa5 Replace every usage of GridCoordinates with EntityCoordinates (#1280)
* Added struct skeleton for EntityCoordinates.

* Polish EntityCoordinates, add tests, add EntityCoordinates to Transforms

* Doc cleanup

* Remove useless code

* Return offset 0 when you don't have a parent

* Test for making sure EntityCoordinates for entities without parents have offset 0

* Use parent transform's GridId for GetGridId.

* Adds various methods, checks and tests

* Replace GridCoordinates with EntityCoordinates

* EyeManager.WorldToScreen fix

* Address reviews

* Fix za buildo

* Fix one transform test

* Fix the remaining tests

* Remove duplicate

* Remove another merge duplicate

* Fix property

* Rename most usages of GridCoordinates to EntityCoordinates.

* Add WithEntityId method to EntityCoordinates.

* Fix EntityCoordinates usage in GetEntitiesInRange

* Remove cursed IMapGrid method, change naming.

* Makes GridTileLookupSystem use EntityCoordinates

Co-authored-by: Acruid <shatter66@gmail.com>
Co-authored-by: Víctor Aguilera Puerto <zddm@outlook.es>
2020-09-06 16:09:19 +02:00
20kdcandGitHub 49242f8a0a Auto-replace texture2D with texture to fix issues with deprecated function names (#1278) 2020-09-03 19:15:09 +02:00
20kdcandGitHub 7736882da2 GLES2: Support for GL_OES_standard_derivatives (fixes wall brightening when available) (#1276) 2020-09-03 09:38:17 +02:00
Pieter-Jan Briers b4fac5256c More Clyde GL version things.
Correctly use KHR and OES suffixed functions for debug output and VAOs, if necessary.

Allow overriding the detected GL version for feature detection (nvidia gives me an ES 3.2 context even when ES 2.0 is requested, so...)
2020-09-02 22:10:50 +02:00
Pieter-Jan Briers 3ea73e9d2a Various OpenGL fixes.
1. Fixes screenshots on ES by providing a fallback path for when encessary features (PBO, fence sync, mapbuffer) are not available.
2. Correctly detect fence sync as not always being available for 3.1
3. Remove the "bad OpenGL version" box. We have MessageBoxW now.
4. Separated feature detection for ES and Desktop, added more feature detections on various sides.
5. Moved GL feature detection to its own file.
2020-09-02 01:47:12 +02:00
20kdcandGitHub 4f5d2664b8 Prevent gl_FragColor deprecation issues on GL3.3 (hopefully finally ending the saga of hotfixes) (#1270) 2020-09-01 20:40:55 +02:00
20kdcandGitHub 880be34b8d GLES2: hotfix: Use in/out to prevent core profile complaints (#1269) 2020-09-01 17:25:06 +02:00
20kdcandGitHub 4777a0adbf GLES2 users, assemble! (#1266) 2020-09-01 15:27:14 +02:00
Víctor Aguilera Puerto 59a003cda0 Add path to RSI class 2020-08-31 20:45:45 +02:00
Pieter-Jan Briers 0682dcf98c Sprinkle glGetError everywhere. 2020-08-27 02:11:46 +02:00
Pieter-Jan Briers cd5115fa85 The comment was right there, man. 2020-08-26 01:01:18 +02:00
Pieter-Jan BriersandGitHub 0b67c00057 Make a Windows message box if the game window can't be opened (#1260) 2020-08-25 23:23:55 +02:00
Pieter-Jan Briers 381cdb5fbb Add OpenGL 3.1 support.
h
2020-08-25 21:44:01 +02:00
Pieter-Jan Briers 7890c1b39c Fix bogus nullability errors from Rider.
None of these are actual nullability warnings but they make Rider shut up so.
2020-08-25 17:48:23 +02:00
Víctor Aguilera PuertoandGitHub afc5aa1075 Dispose of MIDI renderers on the MIDI thread (#1248) 2020-08-21 20:39:36 +02:00
9d1bec9bb2 Merge FloatMath and MathHelper (#1234)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
2020-08-20 19:21:07 +02:00
Pieter-Jan Briers c72ea7194e Add RequestWindowAttention API. 2020-08-16 23:21:07 +02:00
Acruid 7d74c02c8d Fixed a bug with overlay drawing arguments.
Added mouse hover info about collision bodies in the collision overlay.
2020-08-08 16:56:14 -07:00
Pieter-Jan Briers a25861461e Small GLES compat fix.
Makes glTexImage2D call in render target creation pass legal arguments for GLES.
2020-08-06 13:31:55 +02:00
44bcbfa8e5 Misc changed needed for atmos (#1186)
* Add needed changes for atmos

* Get delays for RSI state

* Placement hijack can handle deletion on gridcoordinates

* Array serialization

* MapIndices to GridCoordinates

* CollidableComponent creates VirtualControllers using IDynamicTypeFactory

* Probability assert now prints chance

* Remove unused stuff, fix build

* Update documentation for map indices

* readability

* Removed unused using statements

* Remove ToAngle

* Fix messed up merge

* Fix MapIndices/GridCoordinates conversion

* Add "invalid" direction.

* Update Robust.Shared/Serialization/YamlObjectSerializer.cs

* Nullable fix

Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
2020-08-02 18:39:23 +02:00
Acruid 8e2914d520 Enums are hard :(
This fixes screenspace overlays not showing up, like flash and net graph.
2020-07-31 23:38:41 -07:00
Acruid a5125a0561 Allows Overlays to draw to multiple spaces on the screen.
Removed Overlay.Shader property, you need to manage the field yourself and apply the shader before you draw.
Made all overlays compatible with the new changes.
2020-07-31 14:00:12 -07:00
Acruid 3fd1a2f3fb Fill out cases for the shape switch.
Circle-Box collisions!

Circle Collisions!

PhysShapeCircle!
2020-07-31 12:02:41 -07:00
DrSmugleafandGitHub 011a06a7d8 Fix za buildo (#1202) 2020-07-30 13:46:17 +02:00
Acruid 3f5321853a Removed obsolete ScreenToWorld methods from EyeManager. 2020-07-29 16:54:01 -07:00
Acruid 0bf451d5d4 Turns out TransformComponent already has the matrix available to use. 2020-07-29 14:27:20 -07:00
Acruid b8e9e3634b Grid rendering can now render rotated grids. 2020-07-29 12:05:09 -07:00
Pieter-Jan Briers e5ddc4f654 Move light intersection check earlier, slight optimization.
Not sure why it wasn't like this in the first place.
2020-07-29 02:10:04 +02:00
Pieter-Jan Briers c482253b9d Clyde debug stats for light count. 2020-07-29 02:06:39 +02:00