Commit Graph
14 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
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
Flowaria a428a3056e PrimitiveRenderer as ModSystem 2024-09-30 03:37:06 -04: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
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