Commit Graph
25 Commits
Author SHA1 Message Date
Dreitone 7af86d63bc cherry-pick: fix unloading 2025-12-19 19:12:20 -06:00
Flowaria 900e9c7632 Wrap Effect Unload with MainThreadAction 2025-12-19 18:36:43 +09:00
Flowaria 104ced20da Added GeneralDrawLayerSystem 2025-12-16 17:48:41 -05:00
Dreitone 39702c32ae prims remake 2025-12-09 08:43:14 -06:00
Dreitone eb621140f2 opts + debugging view 2025-12-09 07:13:21 -06:00
Dreitone 2478f6d17a in minecraft i mean - Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into tentative-primitive-improvements 2025-12-09 04:38:18 -06:00
Dreitone d21e634012 i will strangle imogen 2025-12-09 04:29:10 -06:00
doze-zoze fb868fc173 prim system now also passes vertex positions to the functions 2025-12-08 13:20:38 -05:00
fryzahh b33a70fd08 GeneralDrawLayer generalization + TempParticle start
* Split up GeneralDrawLayer.BeforeTiles into BeforeAllTiles and BeforeSolidTiles.
* Moved screen renderers, metaballs and pixelated primitive drawing to use GeneralDrawLayer and subsequentially removed their own draw layer enums.
* Moved screen renderers, metaballs, particles, pixelated primitive drawing and pixelated drawers draw calls to MechanicalILChanges.
* Added TempParticle and TempParticleManager, used for defining temporary particle handlers in any file for short-term, fully-modifiable particle effects
* Removed ParticleAutoDrawingOverride and added a "CustomShader" property and "PrepareCustomShader" method to Particle.cs. These should be used in conjunction when wanting to apply shader effects to particles. If anything more precise is needed, use the new TempParticleManager class.
2025-11-15 16:41:52 -04:00
fryzahh 10fcee19a0 DoGSky full revamp
- Entirely revamped DoGSky and cleaned up some of its older code
- - Moved DoGSky and DoGShaderData from CalamityMod/NPCs/DevourerofGods to CalamityMod/Skies
- - Added three new shaders which are used in the new sky, DoGDistortionWindsShader, DoGBackgroundFogShader and CircularOpacityShader
- - Removed MonolithDistortionScene and adjusted DoGBackgroundScene to account for both monoliths when activating background visuals
- - Added a new field to PrimitiveSettings which allows primitives to render with the same unscaled perspective matrices used for pixelating them. This was a necessary addition as the new DoGSky utilizes the primitive drawing system for a special visual effect and wasn't scaling correctly with the rest of the background due to the normal perspective matrices for primitives using the game's zoom setting to scale them accordingly. Backgrounds and any associated effects do not scale with zoom, for further context.
2025-06-30 18:17:39 -04:00
GinYuH 275fccfede Sylvestaff 2025-05-28 18:48:13 -07:00
Flowaria a428a3056e PrimitiveRenderer as ModSystem 2024-09-30 03:37:06 -04:00
Ozzatron 60688c4259 Merge of BasicallyIAmFox's Entity Iterators PR with 2.0.4.001
- Some entity iterators were intentionally excluded due to complex merge conflicts with fully reworked weapons.
- NOTABLE: ProjectileUtils generic homing code had its iterator excluded due to a behavioral change which was not easily resolved.
2024-05-13 21:42:17 -04:00
BasicallyIAmFox e2c261e69e Some of the projectile iterators 2024-05-08 18:07:24 +05:00
BasicallyIAmFox 12ea0ed131 More progress 2024-05-03 15:46:30 +05:00
Dominic Karma 820898bd0c Fixing Primitive Width Function Distortions (#25)
* Change width storage definitions

* Update primitive shaders
2024-03-03 20:40:04 -05:00
Dominic Karma a0e10c0493 Fixing Primitive Width Function Distortions (#25)
* Change width storage definitions

* Update primitive shaders
2024-03-03 20:33:44 -05:00
Ozzatron 18958ee9e9 fix first-frame prim exception by fixing loading 2024-02-29 15:54:00 -05:00
Ozzatron b9b4b438d8 Fix offset function not being applied on unsmoothed primitive point sets. 2024-02-29 15:46:44 -05:00
Toasty e92c21a411 Follow up to #23, Primitive System performance increase. (#24)
- Increase performance via pooling, buffers, int -> short, and most linq removal.
2024-02-29 15:04:28 -05:00
Toasty 63649365d0 Follow up to #23, Primitive System performance increase. (#24)
- Increase performance via pooling, buffers, int -> short, and most linq removal.
2024-02-29 15:04:05 -05:00
Toasty ff45607ee2 Primitive System Remake (#23)
* - Primitive system rewrite, start of converting old code to use the newer system.

* - Tweaks to the primitive manager to match the old one.
- Finished porting old uses of the primitives to the new ones.
- Improved XML documentation on the newer ones.

* Delete en-US.hjson

* Remove cosmic shiv auto-entry

* - Indentation fixes.

* - Remove interface access modifiers
2024-02-29 01:19:26 -05:00
Toasty ca86f74737 Primitive System Remake (#23)
* - Primitive system rewrite, start of converting old code to use the newer system.

* - Tweaks to the primitive manager to match the old one.
- Finished porting old uses of the primitives to the new ones.
- Improved XML documentation on the newer ones.

* Delete en-US.hjson

* Remove cosmic shiv auto-entry

* - Indentation fixes.

* - Remove interface access modifiers
2024-02-29 01:17:19 -05:00
DominicKarma 8f4e8087b9 Replace BasicEffect with StandardPrimitiveShader (#8)
This is a knowing violation of branch protection rules for a high priority fix
2023-11-24 21:23:15 -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