Commit Graph
72 Commits
Author SHA1 Message Date
Stephen Thiebaud fda6dca5af feat: remove basically every direct call to setrendertarget 2025-12-28 12:56:33 -05:00
Stephen Thiebaud 690bd2b72c feat: deprecate swapto and reimplement basic api surface of managedrendertarget with target pools 2025-12-28 12:56:33 -05:00
Dreitone fc9c66f760 fix cal primitives 2025-12-22 01:40:33 -06:00
Flowaria c0da0d5ce2 Replace Reflection call to direct call if possible 2025-12-06 07:01:44 +09:00
Flowaria 2e48b0d544 BlendMerge - Draw code rewrite 2025-11-24 22:01:59 -05:00
doze-zoze fd58ab04da shaderregion utils now allow matrix parameter 2025-11-17 13:13:22 -06:00
doze-zoze d7b8629949 ported BaseWhipProjectile from summoner branch 2025-10-23 18:04:45 -04:00
Cameron Ewell 383713a5a0 Merge branch '1.4.4' into wing-toggle 2025-09-26 20:37:26 -04:00
Doze-Zoze 3ae6ac38c2 Added rotation to DrawInventoryCustomScale & applies it to Exaltation 2025-09-26 20:21:39 -04:00
Doze-Zoze 6ac520bd81 Exalt and Virid can be shift-right-clicked to change rotation direction 2025-09-26 20:21:39 -04:00
Doze-Zoze b9fd917fc8 merges 2025-09-25 17:29:28 -05:00
Doze-Zoze 82078fa821 Deific uses Sweetheart Necklace. Toggles for Deific+ and Talisman 2025-09-25 16:47:02 -05:00
Doze-Zoze 0951a50d5e util for requesting textures more efficiently 2025-09-24 13:47:32 -05:00
fryzahh 6629b49e95 Some fixes + new noise textures
- 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
2025-05-18 10:26:14 -04:00
mochi-angel 057a0cb187 Removed pointless line 2025-05-14 02:06:18 -07:00
mochi-angel f6c1c465c9 Fixed the super bright glowmasks (thank you fry) 2025-05-14 01:56:36 -07:00
Doze-Zoze 7c9dcc871e Switched to using code coloring for disabled wings until we get sprites made 2025-04-15 00:26:07 -05:00
Cameron Ewell 30a704bf02 Fix typo in inlined alpha channel check 2024-11-13 14:41:47 -05:00
Flowaria 3731c18232 Implemented Sliced Lighting for TileBlendMerge 2024-11-13 14:41:47 -05:00
Xyk b15b332d91 Updated glow effect on custom swords 2024-11-07 14:55:41 -08:00
Altixal 2cdd89ff2c Localization resumes (part 1) 2024-10-26 03:58:10 +07:00
Flowaria a8729bd4e4 Rewrite Rendering Code for ProfanedShield 2024-09-13 19:46:34 -04:00
Flowaria 7df520126e Fixed Dye issue on various Minion Projectiles 2024-09-13 18:18:26 -04:00
Flowaria fa3e840959 Fixed: Critical Networking Issue while equipping Shield/Barrier Item (#59) 2024-08-25 12:50:15 -04:00
GinYuH ba50bb246f split client and server configs
rebased by Ozzatron 15AUG2024 to fix conflicts
2024-08-15 16:54:43 -04:00
Xyk 8bb09fe4b1 Merge branch '1.4.4' into Judgement-And-Order-Reworks 2024-06-05 13:53:17 -07:00
Altixal 4b59ed34d4 pointless util terminated 2024-04-08 06:55:08 +07:00
Xyk 182f37f51f Progress + Shrinking Afterimages
Added a function for shrinking afterimages on CalamityUtils.DrawAfterimagesCentered
2024-03-27 11:18:30 -07:00
mountaindrew10 58110c1ac3 Necroplasmic Beacon holdout glowmask and Grand Guardian in-world item rainbow glowmask. 2024-03-22 19:26:04 -05:00
mountaindrew10 cc15ef2485 1 - Fixed stupid glowmask offset issue.
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.
2024-03-22 18:51:43 -05:00
tomat 67bceff6e7 Initial dotnet format pass.
This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
2024-02-28 21:49:50 -08:00
Toastyandtomat 0869a528dc Renderer fixes (#12)
* - 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>
2023-12-07 23:56:48 -05:00
Toasty a88be3282f Added a new drawer system, and fixed some miracle blight visual issues. (#3)
* - 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.
2023-11-02 12:34:11 -04:00
mountaindrew10 66bb66fbf0 More optimizations. Skies are next. 2023-08-07 12:11:21 -05:00
mountaindrew10 7519a41842 A few more changes. 2023-08-05 10:54:26 -05:00
Altixal 9a47bb07aa the bull dash (or half of it) 2023-07-23 09:43:11 +07:00
NalydddNobel d703ba66dd Fix many off-center inventory item sprites 2023-05-24 21:27:53 -07:00
NalydddNobel 36bac33b19 Summary for DrawingUtils.DrawInventoryCustomScale 2023-03-16 20:10:47 -04:00
NalydddNobel 7671dbf7e6 (read desc) Better sprite scales on Bars, misc item draw helpers
-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...
2023-03-16 20:10:47 -04:00
NalydddNobel a974abef45 Fixed tiles having unsturdy bottoms, and misc
-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
2023-03-02 20:39:40 -08:00
Dominic 9a081011b4 Inquiry buttons + EnforceCutoffRegion utility 2022-10-13 12:32:06 -05:00
Dominic ec25881fcd Cleaned out more UI, along with the chains folder 2022-10-06 10:14:50 -04:00
Dominic 97590f1d16 Reworked Virid Vanguard 2022-10-03 11:49:08 -04:00
Dominic 10169858fc Start of bonk effect for Exoblade 2022-07-13 02:23:06 -05:00
IbanPlay 3253ca4e89 More fixes 2022-07-11 19:05:37 -04:00
IbanPlay 0bc7a82d44 Drainnn ganggg & sounds 2022-07-11 19:05:37 -04:00
IbanPlay 5ad6c9ce1b Prothesis 2022-07-11 19:05:37 -04:00
Dominic f03b7547dc Documentation and fixed zoom stuff 2022-05-20 15:26:55 -04:00
DominicKarma 063870af23 Created a fluid system 2022-05-20 15:26:55 -04:00
DominicKarma de17d3c7eb In-world draw effects for boss bags 2022-04-13 14:27:18 -05:00