Commit Graph
2 Commits
Author SHA1 Message Date
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 6bfe9987e3 Improved RenderTarget2D handling. (#1)
* - 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.
2023-11-01 15:47:58 -04:00