Commit Graph
15 Commits
Author SHA1 Message Date
Stephen Thiebaud 8e2b48a7d9 fix: remove previously-unverified setrendertarget calls and restore code to a compilable state 2025-12-28 12:56:33 -05:00
Stephen Thiebaud f84d82fc01 fix: clear scoped targets to match swapto behavior 2025-12-28 12:56:33 -05:00
Stephen Thiebaud 955756808d feat: replace every usage of swapto 2025-12-28 12:56:33 -05:00
Stephen Thiebaud 2af9c2209f fix: repair every immediately-obviously-safe rt reference 2025-12-28 12:56:33 -05:00
Stephen Thiebaud 8c05732838 feat: initial removal of every reference to managedrendertarget 2025-12-28 12:56:33 -05:00
Flowaria 104ced20da Added GeneralDrawLayerSystem 2025-12-16 17:48:41 -05:00
Dreitone 825c4bdf1a get past loading 2025-12-08 02:06:02 -06:00
Dreitone 20d083a704 directly 2025-12-08 01:34:30 -06:00
Dreitone e8779556ee finally obliterate safeaction 2025-12-06 00:28:05 -05:00
Dreitone 83fccfdbf8 morre crash prevention 2025-12-06 00:28:05 -05:00
fryzahh 570da6961b Fixed pixelated assets being offset by camera movements
* Pixelated assets are now drawn to render targets during Main.CheckMonoliths instead of Main.PreDraw. The latter drew them to early and caused them to be offset incorrectly whenever the camera moved
2025-11-17 21:31:58 -04: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 4b962167cf Pixelated dust variants
* Added the following pixelated variants for their respective ModDust types:
 * DiamondDustPixelated
 * SquareDustPixelated
 * SquashDustPixelated
 * SquashDustHollowPixelated
 * SquashDustTileTouchPixelated
 * UnstableDustPixelated
 * VoidDustPixelated
 * VoidDustInvertedPixelated

* Added missing documentation comment for the new "pixelate" parameter in GeneralParticleHandler.SpawnParticle.
2025-11-09 16:36:38 -04:00
fryzahh d95113418e ParticleAutoDrawingOverride + code cleanup, credits and bugfix
* Added ParticleAutoDrawingOverride, which allows one to override the automatic drawing of a particular particle type and manually and efficiently control how each instance is drawn in the world.
 * Subsequently added the OverrideAutomaticDrawing property to Particle.

* Multiple changes to GeneralParticleHander.cs:
 * Removed the noteToEveryone field, but moved the text to a comment at the top of the class.
  * Additionally, added credits to Luminance and their license notice since the new particle drawing logic was inspired by its system.
 * Reorganized fields based on their protection level.
* Renamed "particles," "particleTypes" and "particleTextures" to "activeParticles," "particleIDsByTypes" and "particleTexturesByIDs" respectively.
 * Added documentation for all internal fields
 * Moved the GetTexture and FreeSpaceAvailable methods up with the rest of the public static methods for consistency.

* The "ActivePixelatedDrawer_" fields in  are now cleared upon unloading the world instead of being set to null to prevent a null reference exception when leaving and reentering worlds.
2025-11-05 11:48:22 -04:00
fryzahh 42947a3100 Pixelation system + Particle system updates
* Added a global pixelated drawing system.
 * Added LightDustPixelated.
* Added the GeneralDrawLayer enum, which is now used for layered drawing in both the pixelation and particle systems.
* Updated the particle system:
 * Now supports drawing on multiple different layers now instead of just after everything else in the world has been drawn.
 * Collapsed the three draw lists in favor of two dictionaries, which store lists of non-pixelated and pixelated particles respectively based on their BlendState.
 * particlesToSpawnNextFrame is now a dictionary which stores Queues based on their draw layer.
2025-10-24 11:58:00 -04:00