Commit Graph
6 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 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
Ozzatron b9814444fa Added the intended flickering to Miracle Blight. Works around a vanilla bug with a corrupted cosine function. 2023-02-20 17:47:48 -05:00
Ozzatron 636617284f note about the currently commented out threshold flicker, which is ideal but can be left for later 2023-02-20 16:27:43 -05:00
Ozzatron 0a7405dd0f 1 - Finished Miracle Blight visuals. Players just produce dust because shadering players is absurdly hard.
2 - Made Ares immune to Miracle Blight to sidestep visual issue where he vanishes.
2023-02-20 16:27:43 -05:00
Ozzatron 7c342c87d4 miracle blight first attempt with noise mapping 2023-02-20 16:27:43 -05:00