- Small fixes and code cleanup, most notably moving the ManagedRenderTarget to queue on the main thread
- Moved the background matrix code to its own utility property in DrawingUtils
- Added some new noise textures while testing different ones for a better look. Will leave the unused ones there in case anyone else finds them useful in the future
2 - Edited Grand Guardian's handle to make it longer so the ridiculous-looking offset can be reduced.
3 - Added glowmasks for Majestic Guard and Grand Guardian.
* - Pull #3 requests.
- Safety check for globals in miracle blight renderer to prevent MP crashes.
* - Fixed load crash.
- Fixed miracle blight effect getting very grainy when using the worldposition.
- RealCos -> cos, as cos is now fixed in mojoshader.
- Method rename for consistency.
* Discard changes to Properties/launchSettings.json
* Discard changes to NPCs/CalamityGlobalNPC.cs
* Discard changes to NPCs/CalamityGlobalNPC.cs
* Update CalamityGlobalNPC.cs
* Update RendererManager.cs
* - Rename for consistency.
- Cached renderers are cleared when unloading.
---------
Co-authored-by: tomat <xxlennygamerxx@gmail.com>
* - Added ManagedRenderTarget to better handle RenderTarget2Ds.
- Added a Graphics folder that contains the above.
- Made all existing RenderTarget2Ds use the above instead.
- Removed some old/reduntant loading code for metaballs.
- Moved PrimitiveTrail to the new Graphics folder.
* - Manually unload the event, as afaik TMod will not do this.
* - Added a drawer system, for making doing more advanced visual effects easier.
- Moved miracle blight's shader effect to use this instead of the old method.
- Ares Body is now vulnerable to miracle blight again, as the visual effect is disabled seperately.
-Updated internal code of bars to look nicer
-Removed usage of funky item animation system on bars
-Animated bars now rotate properly when draw in-world
-Added helper method for drawing basic custom scaled items
-Added helper methods for drawing
TODO:
-Check if animated items look correct when dropped in-world
-Adjust sprite scales on more items
-Get more sleep...
-Astral Beacon, Draedon Turrets, Codebreaker, and SCaL's Altar should no longer let sand destroy them, and the naturally generated ones prevent block swap
-Cleaned up GiantPlanteraBulb.cs
--Glowmask now animates
--Should be much more sturdy, like the previous mentioned tiles
--No longer allows for tiles to be sloped below it
--No longer can break from Lava
--No longer is considered a tree trunk
-Added TileDrawOffset as a property in CalamityUtils. Can replace all times "Vector2 zero = ..." is pasted
-Added a few notes in code comments