* 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
* 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.
* 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.
* 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.
* 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.
* 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.
- 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
- 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
- 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
- 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
- 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"
- 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
- 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.