* 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.
16 lines
536 B
C#
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)
|
|
{
|
|
|
|
}
|
|
}
|