Commit Graph
38 Commits
Author SHA1 Message Date
Flowaria 812a698a3d Fixed Lava Rendering OOB when other mod adds ModWaterStyle 2025-11-27 17:09:41 +09:00
Flowaria ceb5b4b1d1 Added ILFailure Util Extension 2025-11-26 14:21:11 -05:00
Flowaria 827687ba5a Replacing Manual ResizeArrays Hook into tModLoader Provided one 2025-11-26 03:48:34 +09: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 9c11d520d6 General cleanup and fixes
* Fixed an out of bounds error caused by TempParticleManager's update loop iterating through the maximum amount of particles that can exist at once rather than the maximum amount of particles that are currently active.
* Removed particleTypesByNames from GeneralParticleHandler.
* Renamed "Depth" to "ParallaxStrength" in TempParticle and other associated areas.
* Added Main.dedServ checks where necessary in TempParticleManager. Other general cleanup besides that.
* Added the "ReturnAll" method to TempParticleManager to allow users to forcibly return all active particles in the manager to the particle pool.
2025-11-15 21:30:02 -04:00
fryzahh 4c5ca67c3c Merge branch '1.4.4' into graphical-system-additions 2025-11-15 16:45:19 -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
Stephen ThiebaudandLion8cake 4a427eb3f1 fix: adjust lighting logic for lava waterfalls to color properly
Co-authored-by: Lion8cake <Lion8cake@hotmail.com>
2025-11-12 00:00:15 -06:00
Stephen Thiebaud bb58efd571 fix: don't draw liquid behind tiles when edge renderer is active 2025-11-11 21:50:07 -06:00
Stephen Thiebaud 454ef0ce50 feat: simplify effect value access where applicable 2025-11-11 18:11:03 -06:00
Stephen Thiebaud 311e17931f feat: use Asset<Effect> over Effect 2025-11-11 18:06:48 -06:00
fryzahh d16a9a3899 Merge branch '1.4.4' into graphical-system-additions 2025-11-09 22:46:00 -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
doze-zoze d1d4735c3a finishing up clone 2025-10-31 15:55:04 -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
CongratsIsTrash b50c3821a3 Fixed a ton of compiler warnings 2025-10-17 12:36:26 -04:00
Doze-Zoze 664e017426 merge 1.4.4 2025-09-18 17:15:50 -05:00
CongratsIsTrash 8d8b49aa36 First half of post-ML 2025-08-18 23:07:16 -04:00
fryzahh 1fd6441d06 Fancy backgrounds are now toggleable
- Added a new client config option, "Toggle Fancy Background Visuals," which allows players to enable/disable all fancy background visuals in the mod. Disabling the config should display a simplified version of the main visual, or nothing at all if applicable
- DoG will now use the shimmer monolith effect if fancy background visuals are disabled
2025-08-01 12:51:11 -04:00
fryzahh c3ee433cd1 DoGSky touchups + misc fixes and changes
- Made some visual improvements to DoG's CustomSky, involving the creation of two new shaders, DoGRealityCrackShader and DoGRiftAuraShader
- - Descriptions for each can be found in CalamityShaders
- Ambient sky entities are now disabled while DoG's CustomSky is active
- The code for the distortion rift's lightning effect should now no longer run at all times and only when DoG's CustomSky is active
- DoG no longer has its death animation shader applied to all segments individually. Instead, all segments are now drawn to a render target, which is what the shader is then applied to via a new BaseRenderer class, DoGDeathAnimationRenderer. This was done to prevent all of DoG's sprites from suddenly rendering in full brightness during his death animation
- - Additionally, DoGDisintegration's code has been cleaned up
- Fixed DoG not spawning out of the correct teleport rift projectile on GFB due to not properly accommodating for fake rifts when searching for the correct teleport location
- Improved the visuals of DoGTeleportRift and decreased the visual intensity of fake rifts
- DoG's teleport rift indicator icon will no longer appear on GFB due to the inclusion of fake rifts as a mechanic on that seed. There are many differences between the real rift and fake rifts which should make up for this
2025-07-31 00:46:56 -04:00
fryzahh 7ceb35a5f2 Distortion background lighting adjustments
- Adjusted the brightness and timing of the lightning effect which occurs in the background of the Distortion Rift during DoG's fight
- Small code cleanup in DoGSky
2025-07-09 08:50:45 -04:00
fryzahh 0ffbb6afa9 DoGSky and DoGVisualsManager adjustments + cleanup
- Cleaned up a lot of the code in DoGSky
- Changed the color that is applied to the background during laser walls. Additionally made it so the background never goes black during DoG's rift dashes or phase transition and uses the aforementioned new color instead
- Added a lightning effect that illuminates the clouds seen in the distortion rift in DoGSky
2025-07-07 00:00:26 -04:00
fryzahh eb2811ea9e DoGTeleportRift visual redo
- Redid the visuals of DoGTeleportRift entirely
- Moved all visual management for DoG's fight from DoGWorldVisualChangesManager to DoGVisualsManager. Additionally, also made the class its own file rather than being attached to DoGSky's file.
- Created a new foreground Distortion target for DoGDistortionMetaball and DoGRiftCrack
- Adjusted CircularOpacityShader
- Changed the display name of DoGTeleportRift from "Rift" to "DoG Distortion Rift"
2025-07-06 12:02:05 -04:00
fryzahh 21aca5be61 DoGSky tweaks and fixes
- Fixed DoG's brightness being slightly different during the day and night instead of consistently one color
- Adjusted the brightness of the background and foreground during DoG's fight to make darker than previously (Mainly done to allow DoG's glow mask to pop more during the fight)
- Adjusted how reality cracks spawn to make them more visually appealing
- Adjusted DoG's screen filter to be much more subtle
- Started using a new cyan-like color for all background visuals
- Small code cleanup in other areas
2025-07-01 15:55:14 -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
Altixal ddf41a2eb8 Early HM wings 2025-05-09 10:54:45 +07:00
Memes 7e63e31c97 Perhaps fixed new tMod-provoked Delegate error. 2025-05-02 03:34:12 +02:00
Ozzatron f2bc3bd6bf Fix Y offset calculation for multi-variant mod walls being overwritten due to IL code injection mistake. 2025-02-17 21:29:17 -05:00
Flowaria 10f91e6339 Added MultiVariantModWall 2025-02-05 22:50:31 -05:00
CongratsIsTrash 7688107901 Buff to Bat, nerfs to Solar and Stardust 2024-10-27 12:54:58 -04:00
CongratsIsTrash 6f3c3ad2df Dancing on Boss Rush screen shader's grave
This thing has been nothing but a major detriment to Boss Rush's enjoyability, rest in piss bozo
2024-10-15 02:15:01 -04:00
Flowaria d1aef76476 Added GetCalamityWaterStyle util methods 2024-10-09 12:55:05 +09:00
Dominic Karma f289c249e8 Use safe pattern matching for liquid style access (#69) 2024-10-08 15:08:20 -04:00
Flowaria 27ac430a57 Loading WaterStyleMaxCount later 2024-09-30 03:37:06 -04:00
Flowaria c9f5c78f6c LavaRendering as Standalone System 2024-09-30 03:37:06 -04:00
Flowaria a70a7081f1 Added SkyEffectLoaderSystem 2024-09-30 03:37:06 -04:00
Flowaria 57aff17ac5 Organized Systems in Subfolders 2024-09-30 03:37:06 -04:00