Files
CalamityModPublic/Systems/Graphic/PixelationSystem/PixelatedDrawer.cs
T
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

16 lines
536 B
C#

using System;
using CalamityMod.Enums;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace CalamityMod.Systems.Graphic.PixelationSystem
{
/// <summary>
/// Contains a singular Action function which is used to draw any relevant asset(s) automatically with a pixelated effect based on the specified <see cref="GeneralDrawLayer"/>.
/// </summary>
public record class PixelatedDrawer(Action<Matrix> DrawAction, GeneralDrawLayer DrawLayer, BlendState DefaultBlendState)
{
}
}