* 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.
22 lines
670 B
C#
22 lines
670 B
C#
using CalamityMod.Enums;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
namespace CalamityMod.Graphics.Primitives
|
|
{
|
|
/// <summary>
|
|
/// Use to sucessfully render primitives with pixelation with an NPC or Projectile.
|
|
/// </summary>
|
|
public interface IPixelatedPrimitiveRenderer
|
|
{
|
|
/// <summary>
|
|
/// The layer to render the primitive(s) to.
|
|
/// </summary>
|
|
GeneralDrawLayer LayerToRenderTo => GeneralDrawLayer.BeforeProjectiles;
|
|
|
|
/// <summary>
|
|
/// Render primitives that use pixelation here.
|
|
/// </summary>
|
|
void RenderPixelatedPrimitives(SpriteBatch spriteBatch, GeneralDrawLayer layer);
|
|
}
|
|
}
|