black hole visual changes
This commit is contained in:
1 parent
ada61e3783
commit
198b79ed37
4 files changed
+23
-3
No files matched your search
@@ -59,7 +59,7 @@ CosmicTentacle.DisplayName: Dark Tentacle
|
||||
CryoBlast.DisplayName: Cryo Blast
|
||||
DarkSparkBeam.DisplayName: Dark Spark Beam
|
||||
DarkSparkPrism.DisplayName: Dark Crystal
|
||||
HyperdeathRiftScepterBeam.DisplayName: Hypderdeath Rift Ripper
|
||||
HyperdeathRiftScepterBeam.DisplayName: Hyperdeath Rift Scepter Beam
|
||||
DeathValleyDusterProjectile.DisplayName: Death Valley Duster
|
||||
DeathhailBeam.DisplayName: Deathhail Beam
|
||||
EelDrop.DisplayName: Acid Eel Drop
|
||||
@@ -101,7 +101,6 @@ HellfireExplosionFriendly.DisplayName: Explosion
|
||||
HellwingBat.DisplayName: Ashen Hellwing
|
||||
HolyFlame.DisplayName: Holy Flame
|
||||
HolyLaser.DisplayName: Holy Laser
|
||||
HyperdeathRiftScepterBeam.DisplayName: Hyperdeath Rift Scepter Beam
|
||||
IceBarrageMain.DisplayName: Ice Barrage
|
||||
IceBlock.DisplayName: Ice Barrage Block
|
||||
IceBlockIcicle.DisplayName: Ice Barrage Icicle
|
||||
|
||||
@@ -172,3 +172,4 @@ YellowLabSeeker.DisplayName: Seeking Mechanism
|
||||
VoidofExtinctionCrit.DisplayName: Void of Extinction Crit
|
||||
XykDeathAnim.DisplayName: Xyk Death Animation
|
||||
XykWings.DisplayName: Xyk Wings
|
||||
StratusBlackHole.DisplayName: Stratus Black Hole
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 77 KiB |
@@ -92,13 +92,30 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
{
|
||||
Vector2 drawPosition = Projectile.Center - Main.screenPosition;
|
||||
|
||||
PixelationManager.AddPixelatedDrawer((matrix) => DrawAura(this, matrix), Enums.GeneralDrawLayer.BeforeNPCs);
|
||||
PixelationManager.AddPixelatedDrawer((matrix) => DrawAura(this, matrix), Enums.GeneralDrawLayer.BeforeAllTiles);
|
||||
PixelationManager.AddPixelatedDrawer((matrix) => DrawSingularity(this, matrix), Enums.GeneralDrawLayer.AfterProjectiles);
|
||||
PixelationManager.AddPixelatedDrawer((matrix) => DrawAuraOutside(this, matrix), Enums.GeneralDrawLayer.AfterEverything);
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
private static void DrawAuraOutside(StratusBlackHole mproj, Matrix matrix)
|
||||
{
|
||||
|
||||
Vector2 drawPosition = mproj.Projectile.Center - Main.screenPosition;
|
||||
|
||||
//Draw the outer particles
|
||||
Main.spriteBatch.EnterShaderRegion(matrix: matrix);
|
||||
GameShaders.Misc["CalamityMod:OtherworldBarrierDistortion"].UseOpacity(0.1f);
|
||||
GameShaders.Misc["CalamityMod:OtherworldBarrierDistortion"].UseSaturation(0.1f);
|
||||
GameShaders.Misc["CalamityMod:OtherworldBarrierDistortion"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/Neurons"), 1);
|
||||
GameShaders.Misc["CalamityMod:OtherworldBarrierDistortion"].Apply();
|
||||
Texture2D telegraphBase = ModContent.Request<Texture2D>("CalamityMod/Particles/HigResThinCircle").Value;
|
||||
Main.EntitySpriteDraw(telegraphBase, drawPosition, null, Color.SkyBlue * mproj.Projectile.Opacity * 0.75f, 0, telegraphBase.Size() / 2f, 1200f * mproj.Projectile.Opacity / telegraphBase.Width, 0, 0);
|
||||
Main.spriteBatch.ExitShaderRegion(matrix: matrix);
|
||||
}
|
||||
private static void DrawAura(StratusBlackHole mproj, Matrix matrix)
|
||||
{
|
||||
|
||||
@@ -118,6 +135,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
telegraphBase = ModContent.Request<Texture2D>("CalamityMod/Particles/BloomCircle").Value;
|
||||
Main.EntitySpriteDraw(telegraphBase, drawPosition, null, Color.SkyBlue * 0.5f * mproj.Projectile.Opacity, 0, telegraphBase.Size() / 2f, 1200f * mproj.Projectile.Opacity / telegraphBase.Width, 0, 0);
|
||||
|
||||
|
||||
//Draw the outer particles
|
||||
Main.spriteBatch.EnterShaderRegion(matrix: matrix);
|
||||
GameShaders.Misc["CalamityMod:OtherworldBarrierDistortion"].UseOpacity(0.1f);
|
||||
@@ -128,6 +146,8 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
Main.EntitySpriteDraw(telegraphBase, drawPosition, null, Color.SkyBlue * mproj.Projectile.Opacity * 0.75f, 0, telegraphBase.Size() / 2f, 1200f * mproj.Projectile.Opacity / telegraphBase.Width, 0, 0);
|
||||
Main.spriteBatch.ExitShaderRegion(matrix: matrix);
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
|
||||
private static void DrawSingularity(StratusBlackHole mproj, Matrix matrix)
|
||||
|
||||
Reference in new issue
Block a user