Commit Graph
299 Commits
Author SHA1 Message Date
Leon FriedrichandGitHub 1de8731465 Reduce uses of IComponentFactory.GetIndex(Type) (#5242)
* Update `RaiseComponentEvent` & component lifestatge methods

* Fix ComponentNetworkGenerator

* a

* A
2024-06-17 01:46:51 +10:00
eoineoineoinandGitHub 56c30edf04 Replace Matrix3 with System.Numerics.Matrix3x2 (#5078)
* Delete Matrix3. Replace with System.Numerics.Matrix3x2

* Feedback

* release notes
2024-06-02 14:08:47 +10:00
Pieter-Jan Briers 0f97f366a6 Copy CopyToShaderParameters in SpriteComponent.CopyFrom.
Fixes dragging displacement-mapped mobs in SS14 making the displacement map visible.
2024-05-01 23:45:58 +02:00
Pieter-Jan BriersandGitHub 4033d96327 Engine changes for displacement maps. (#5023)
* Add load parameter support to RSIs.

Currently only supports turning sRGB off. RSIs with custom load parameters are not thrown into the meta-atlas.

As part of this, TextureLoadParameters and TextureSampleParameters has been made to support equality.

* Add UV2 channel to vertices.

This is a bad hack to make displacement maps work in Robust. The UV2 channel goes from 0 -> 1 across the draw and can therefore be used by displacement maps to map a separate displacement map layer on top of the regular meta-atlas RSI texture.

This creates float inaccuracy issues but they weren't bad enough to completely void the feature. I'm thinking I learn from this experience and completely re-do how UVs work with the renderer rewrite, so that hopefully won't happen anymore.

This required dumping the optimized PadVerticesV2 because the changed struct size made it impractical. RIP.

I don't like this approach at all but the renderer is slated for a rewrite anyways, and all shaders will need to be rewritten regardless.

* Add CopyToShaderParameters for sprite layers.

This effectively allows copying the parameters of a sprite layer into another layer's shader parameters. The use case is to copy texture coordinates for displacement maps, as the exact map used changes depending on orientation. It also enables animations to be used though I didn't use that personally.
2024-04-27 16:03:35 +10:00
DrSmugleafandGitHub 8c25a83066 Expose worldPosition in SpriteComponent.Render (#5043)
* Expose worldPosition in SpriteComponent.Render

* Set default value to zero
2024-04-17 16:17:12 +10:00
Leon FriedrichandGitHub 7cd78f3f4e Fix sprite animation bug (#4774)
* Fix sprite animation bug

* CL
2023-12-28 11:13:25 +11:00
metalgearslothandGitHub 495671576e Add cycling for auto-animated states (#4763)
* Add cycling for auto-animated states

* Non-nullable and AdvanceFrameAnimation() tweak
2023-12-28 08:51:00 +11:00
metalgearslothandGitHub 170d192791 Revert audio rework (#4554) 2023-11-07 09:34:09 +11:00
metalgearslothandGitHub d75dbc901f Audio rework (#4421) 2023-10-29 14:58:19 +11:00
DrSmugleafandGitHub b737ecf9b3 Add generic EntityUid, remove some usages of .Owner (#4498) 2023-10-19 12:23:48 -07:00
metalgearslothandGitHub 268eb862ea Refactor UI a bit more to shared (#4343) 2023-09-11 20:21:23 +10:00
metalgearslothandGitHub 25007a743f Remove lights component reference (#4316) 2023-09-11 19:17:28 +10:00
metalgearslothandGitHub c4d6690a71 Remove SharedEyeComponent (#4309) 2023-09-11 16:15:08 +10:00
metalgearslothandGitHub 2b8d8d6636 Remove UI comprefs (#4320) 2023-08-28 03:49:57 +10:00
DrSmugleafandGitHub 66239d23ea Refactor serialization copying to use source generators (#4286) 2023-08-22 17:37:13 -07:00
Leon FriedrichandGitHub c825c1e413 Remove IoCManager.Resolve calls in Resource.Load (#4243) 2023-08-07 11:24:15 +10:00
metalgearslothandGitHub 8b4925863e Cull Component.Initialize (#4191) 2023-07-26 22:37:45 +10:00
metalgearslothandGitHub b69b4fd8fe Kill comp getstate / handlestate (#4183) 2023-07-13 20:19:58 +10:00
TemporalOroborosandGitHub 75f0cf9dd7 Ecs's UserInterfaceComponent. (#4079) 2023-07-09 02:02:28 +10:00
metalgearslothandGitHub 7d1ad527d9 Replace Robust Vector2 with System.Numerics (#4092) 2023-07-08 14:08:26 +10:00
metalgearslothandGitHub 23a40e58e4 Pause animations on ent pause (#4117) 2023-07-01 22:02:33 +10:00
Leon FriedrichandGitHub 9d4105abc7 Add support for client-side replays (#4122) 2023-06-19 03:23:46 +10:00
cf86c7a8b5 Fixed some coding mistakes (#4105)
Co-authored-by: Canvas123 <lunarfury6@gmail.com>
Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
2023-06-02 20:12:11 +02:00
Leon FriedrichandGitHub 0e7863650b IconComponent cleanup & linter inheritance (#4070) 2023-05-19 17:12:36 +10:00
TemporalOroborosandGitHub 435b252c86 Removes AppearanceVisualizers (#4069) 2023-05-19 07:15:06 +10:00
Leon FriedrichandGitHub eb7886bff4 Fix sprite debug assert (#4033) 2023-05-15 00:52:46 +10:00
MenshinandGitHub ff35b921aa Add option for norot/snapping sprite layers (#3808) 2023-05-13 08:14:03 +10:00
Leon FriedrichandGitHub c5ecc426d0 Remove server and shared sprite component (#3981) 2023-04-30 16:09:07 +10:00
Tom LeysandGitHub 2618bc7a36 Check for Sprite layer's existance (#3984) 2023-04-30 09:08:42 +10:00
Leon FriedrichandGitHub 69cdf6f727 Generalize sprite view (#3978) 2023-04-29 16:06:30 +10:00
metalgearslothandGitHub 8a6cadd38f Revert "Revert "Replace ResourcePath with ResPath (#3926)" (#3949)" (#3950) 2023-04-20 20:15:57 +10:00
metalgearslothandGitHub d646403068 Revert "Replace ResourcePath with ResPath (#3926)" (#3949) 2023-04-20 11:43:51 +10:00
Ygg01andGitHub d6a3e1e286 Replace ResourcePath with ResPath (#3926) 2023-04-19 23:37:46 +10:00
Leon FriedrichandGitHub 2705e2a56a Allow PrototypeLayerData to clear shaders (#3934) 2023-04-15 11:56:38 +10:00
Leon FriedrichandGitHub 69bb4f9237 Fix sprite error log. (#3892) 2023-03-31 12:05:35 +11:00
Leon FriedrichandGitHub 466f565e44 Fix sprites sometimes not updating IsInert when changing state. (#3842) 2023-03-11 13:42:12 +11:00
Leon FriedrichandGitHub d52cbca984 Fix multi viewport sprite update (#3773) 2023-02-14 00:21:52 +11:00
Leon FriedrichandGitHub d79ad9717b Alternative SpriteComponent.CopyFrom() fix (#3705) 2023-01-16 17:34:38 +11:00
metalgearslothandGitHub 9528d6dc8f Remove ISpriteComponent (#3692) 2023-01-15 13:38:46 +11:00
Pieter-Jan Briers 2a957f1423 Fix prototype hot reloading. 2023-01-14 21:08:27 +01:00
metalgearslothandGitHub 59d40eb56c Remove manual comp registrations from client / server (#3626) 2023-01-10 22:32:07 +11:00
Leon FriedrichandGitHub 054a908efd Generalize component trees (#3598) 2022-12-27 13:33:46 +11:00
27e0c22fe2 Somewhat improve sprite processing (#3587)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
2022-12-26 10:48:08 +11:00
AJCM-gitandGitHub 67381c369c Obsolete AnimationPlayerComponent E/C methods (#3581) 2022-12-17 02:13:57 +11:00
Leon FriedrichandGitHub 0c5b43d5af Fix sprite inert update (#3574) 2022-12-13 15:24:29 +11:00
MoonyandGitHub 2b03a2c550 Commits an unholy sin (PJB approved) (#3566) 2022-12-12 22:13:24 +01:00
Paul b39f92f1fa Revert "removes a serializationhook"
This reverts commit 9a844ae413.
2022-12-12 00:24:33 +01:00
Paul 9a844ae413 removes a serializationhook 2022-12-11 22:58:35 +01:00
DrSmugleafandGitHub 96938ca85a Remove redundant read-only VV from datafields (#3494) 2022-11-16 21:02:39 +01:00
Leon FriedrichandGitHub 698d65c5af Fix sprite animations not updating (#3446) 2022-11-07 07:20:40 +11:00