Oversights + Recompiling shaders for 1.4
This commit is contained in:
1 parent
6c9fa647c0
commit
cda4cbace4
60 files changed
+110
-116
No files matched your search
@@ -14,6 +14,7 @@ float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
matrix uWorldViewProjection;
|
||||
float shouldFlip;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -12,8 +12,7 @@ float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
|
||||
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
float4 Recolor(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -13,6 +13,7 @@ float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
matrix uWorldViewProjection;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
|
||||
Binary file not shown.
+28
-28
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Skies;
|
||||
using CalamityMod.Skies;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Effects;
|
||||
using Terraria.Graphics.Shaders;
|
||||
@@ -43,33 +44,33 @@ namespace CalamityMod.Effects
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
AstralFogShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/CustomShader").Value;
|
||||
LightShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/LightBurstShader").Value;
|
||||
TentacleShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/TentacleShader").Value;
|
||||
TeleportDisplacementShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/TeleportDisplacementShader").Value;
|
||||
SCalMouseShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/SCalMouseShader").Value;
|
||||
LightDistortionShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/DistortionShader").Value;
|
||||
PhaseslayerRipShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/PhaseslayerRipShader").Value;
|
||||
ScarletDevilShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/ScarletDevilStreak").Value;
|
||||
BordernadoFireShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/BordernadoFire").Value;
|
||||
PrismCrystalShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/PrismCrystalStreak").Value;
|
||||
FadedUVMapStreakShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/FadedUVMapStreak").Value;
|
||||
FlameStreakShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/Flame").Value;
|
||||
FadingSolidTrailShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/FadingSolidTrail").Value;
|
||||
ImpFlameTrailShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/ImpFlameTrail").Value;
|
||||
SCalShieldShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/SupremeShieldShader").Value;
|
||||
RancorMagicCircleShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/RancorMagicCircle").Value;
|
||||
BasicTintShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/BasicTint").Value;
|
||||
CircularBarShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/CircularBarShader").Value;
|
||||
CircularBarSpriteShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/CircularBarSpriteShader").Value;
|
||||
DoGDisintegrationShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/DoGDisintegration").Value;
|
||||
ArtAttackTrailShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/ArtAttackTrail").Value;
|
||||
CircularAoETelegraph = CalamityMod.Instance.Assets.Request<Effect>("Effects/CircularAoETelegraph").Value;
|
||||
IntersectionClipShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/IntersectionClipShader").Value;
|
||||
LocalLinearTransformationShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/LocalLinearTransformationShader").Value;
|
||||
AstralFogShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/CustomShader", AssetRequestMode.ImmediateLoad).Value;
|
||||
LightShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/LightBurstShader", AssetRequestMode.ImmediateLoad).Value;
|
||||
TentacleShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/TentacleShader", AssetRequestMode.ImmediateLoad).Value;
|
||||
TeleportDisplacementShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/TeleportDisplacementShader", AssetRequestMode.ImmediateLoad).Value;
|
||||
SCalMouseShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/SCalMouseShader", AssetRequestMode.ImmediateLoad).Value;
|
||||
LightDistortionShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/DistortionShader", AssetRequestMode.ImmediateLoad).Value;
|
||||
PhaseslayerRipShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/PhaseslayerRipShader", AssetRequestMode.ImmediateLoad).Value;
|
||||
ScarletDevilShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/ScarletDevilStreak", AssetRequestMode.ImmediateLoad).Value;
|
||||
BordernadoFireShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/BordernadoFire", AssetRequestMode.ImmediateLoad).Value;
|
||||
PrismCrystalShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/PrismCrystalStreak", AssetRequestMode.ImmediateLoad).Value;
|
||||
FadedUVMapStreakShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/FadedUVMapStreak", AssetRequestMode.ImmediateLoad).Value;
|
||||
FlameStreakShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/Flame", AssetRequestMode.ImmediateLoad).Value;
|
||||
FadingSolidTrailShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/FadingSolidTrail", AssetRequestMode.ImmediateLoad).Value;
|
||||
ImpFlameTrailShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/ImpFlameTrail", AssetRequestMode.ImmediateLoad).Value;
|
||||
SCalShieldShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/SupremeShieldShader", AssetRequestMode.ImmediateLoad).Value;
|
||||
RancorMagicCircleShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/RancorMagicCircle", AssetRequestMode.ImmediateLoad).Value;
|
||||
BasicTintShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/BasicTint", AssetRequestMode.ImmediateLoad).Value;
|
||||
CircularBarShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/CircularBarShader", AssetRequestMode.ImmediateLoad).Value;
|
||||
CircularBarSpriteShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/CircularBarSpriteShader", AssetRequestMode.ImmediateLoad).Value;
|
||||
DoGDisintegrationShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/DoGDisintegration", AssetRequestMode.ImmediateLoad).Value;
|
||||
ArtAttackTrailShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/ArtAttackTrail", AssetRequestMode.ImmediateLoad).Value;
|
||||
CircularAoETelegraph = CalamityMod.Instance.Assets.Request<Effect>("Effects/CircularAoETelegraph", AssetRequestMode.ImmediateLoad).Value;
|
||||
IntersectionClipShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/IntersectionClipShader", AssetRequestMode.ImmediateLoad).Value;
|
||||
LocalLinearTransformationShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/LocalLinearTransformationShader", AssetRequestMode.ImmediateLoad).Value;
|
||||
|
||||
BaseFusableParticleEdgeShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/ParticleFusion/BaseFusableParticleEdgeShader").Value;
|
||||
AdditiveFusableParticleEdgeShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/ParticleFusion/AdditiveFusableParticleEdgeShader").Value;
|
||||
BaseFusableParticleEdgeShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/ParticleFusion/BaseFusableParticleEdgeShader", AssetRequestMode.ImmediateLoad).Value;
|
||||
AdditiveFusableParticleEdgeShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/ParticleFusion/AdditiveFusableParticleEdgeShader", AssetRequestMode.ImmediateLoad).Value;
|
||||
|
||||
DoGPortalShader = CalamityMod.Instance.Assets.Request<Effect>("Effects/ScreenShaders/DoGPortalShader").Value;
|
||||
|
||||
@@ -81,7 +82,6 @@ namespace CalamityMod.Effects
|
||||
GameShaders.Misc["CalamityMod:FireMouse"] = new MiscShaderData(new Ref<Effect>(SCalMouseShader), "DyePass");
|
||||
GameShaders.Misc["CalamityMod:SubsumingTentacle"] = new MiscShaderData(new Ref<Effect>(TentacleShader), "BurstPass");
|
||||
GameShaders.Misc["CalamityMod:TeleportDisplacement"] = new MiscShaderData(new Ref<Effect>(TeleportDisplacementShader), "GlitchPass");
|
||||
GameShaders.Misc["CalamityMod:LightDistortion"] = new MiscShaderData(new Ref<Effect>(LightDistortionShader), "DistortionPass");
|
||||
GameShaders.Misc["CalamityMod:PhaseslayerRipEffect"] = new MiscShaderData(new Ref<Effect>(PhaseslayerRipShader), "TrailPass");
|
||||
GameShaders.Misc["CalamityMod:TrailStreak"] = new MiscShaderData(new Ref<Effect>(FadedUVMapStreakShader), "TrailPass");
|
||||
GameShaders.Misc["CalamityMod:Flame"] = new MiscShaderData(new Ref<Effect>(FlameStreakShader), "TrailPass");
|
||||
|
||||
@@ -12,7 +12,7 @@ float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
float4 Recolor(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -12,6 +12,7 @@ float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
float4 MainPS(float2 coords : TEXCOORD0) : COLOR
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -12,6 +12,7 @@ float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
float4 MainPS(float2 coords : TEXCOORD0) : COLOR
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -12,6 +12,7 @@ float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
// This shader is largely based on code used for ExampleMod's cool death animation thing; it is suprisingly useful for this use case.
|
||||
float4 PixelShaderFunction(float2 coords : TEXCOORD0) : COLOR0
|
||||
|
||||
Binary file not shown.
@@ -1,72 +0,0 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
matrix uWorldViewProjection;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
float4 Position : POSITION0;
|
||||
float4 Color : COLOR0;
|
||||
float2 TextureCoordinates : TEXCOORD0;
|
||||
};
|
||||
|
||||
struct VertexShaderOutput
|
||||
{
|
||||
float4 Position : SV_POSITION;
|
||||
float4 Color : COLOR0;
|
||||
float2 TextureCoordinates : TEXCOORD0;
|
||||
};
|
||||
|
||||
VertexShaderOutput VertexShaderFunction(in VertexShaderInput input)
|
||||
{
|
||||
VertexShaderOutput output = (VertexShaderOutput)0;
|
||||
float4 pos = mul(input.Position, uWorldViewProjection);
|
||||
output.Position = pos;
|
||||
|
||||
output.Color = input.Color;
|
||||
output.TextureCoordinates = input.TextureCoordinates;
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
// The X coordinate is the trail completion, the Y coordinate is the same as any other.
|
||||
// This is simply how the primitive TextCoord is layed out in the C# code.
|
||||
float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0
|
||||
{
|
||||
float4 color = input.Color;
|
||||
float2 coords = input.TextureCoordinates;
|
||||
|
||||
// Read the fade map as a streak.
|
||||
float4 fadeMapColor = tex2D(uImage1, float2(frac(coords.x - uTime * 2.5), coords.y));
|
||||
float opacity = fadeMapColor.r;
|
||||
|
||||
// Fade out at the edges of the trail to give a blur effect.
|
||||
// This is very important.
|
||||
float power = lerp(3, 10, coords.x);
|
||||
opacity = lerp(pow(sin(coords.y * 3.141), power), opacity, coords.x);
|
||||
|
||||
// Fade out at the end of the streak.
|
||||
if (coords.x > 0.7)
|
||||
opacity *= pow(1 - (coords.x - 0.7) / 0.3, 6);
|
||||
return color * opacity * 1.5;
|
||||
}
|
||||
|
||||
technique Technique1
|
||||
{
|
||||
pass TrailPass
|
||||
{
|
||||
VertexShader = compile vs_2_0 VertexShaderFunction();
|
||||
PixelShader = compile ps_2_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -13,6 +13,7 @@ float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
matrix uWorldViewProjection;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -14,6 +14,7 @@ float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
matrix uWorldViewProjection;
|
||||
float shouldFlip;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -13,6 +13,7 @@ float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
matrix uWorldViewProjection;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -13,6 +13,7 @@ float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
matrix uWorldViewProjection;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -16,6 +16,7 @@ float uIntersectionCutoffDirection;
|
||||
float2 uIntersectionPosition;
|
||||
float2 uIntersectionNormal;
|
||||
float2 uSize;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
float2 RotatedBy(float2 xy, float theta)
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -16,6 +16,7 @@ float2 uImageSize1;
|
||||
float2 overallImageSize;
|
||||
matrix uWorldViewProjection;
|
||||
float2x2 localMatrix;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -21,6 +21,7 @@ float2 screenMoveOffset;
|
||||
float2 generalBackgroundOffset;
|
||||
bool invertedScreen;
|
||||
float2 upscaleFactor;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -21,6 +21,7 @@ float2 screenMoveOffset;
|
||||
float2 generalBackgroundOffset;
|
||||
bool invertedScreen;
|
||||
float2 upscaleFactor;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -13,6 +13,7 @@ float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
matrix uWorldViewProjection;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -13,6 +13,7 @@ float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
matrix uWorldViewProjection;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -15,6 +15,7 @@ float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 overallImageSize;
|
||||
matrix uWorldViewProjection;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -12,6 +12,7 @@ float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -13,6 +13,7 @@ float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
matrix uWorldViewProjection;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -12,6 +12,7 @@ float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
float4 PixelShaderFunction(float4 position : SV_POSITION, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -12,6 +12,7 @@ float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
float inverseLerp(float x, float min, float max)
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -13,6 +13,7 @@ float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 frameCount;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,45 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float4 uShaderSpecificData;
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : TEXCOORD, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
float trailLengthRatio = uSaturation + (coords.x + coords.y) / 2 * uOpacity;
|
||||
|
||||
float r = (sin(uTime + trailLengthRatio * 12.566) + 1) * 0.5;
|
||||
float g = (-cos(uTime + trailLengthRatio * 12.566) + 1) * 0.5;
|
||||
float b = (-sin(uTime + trailLengthRatio * 12.566) + 1) * 0.5;
|
||||
|
||||
float a = (trailLengthRatio * 0.5 + 0.5) * (abs(coords.x - 0.5)) / 0.5;
|
||||
a *= tex2D(uImage1, coords).r;
|
||||
|
||||
float4 returnColor = float4(r, g, b, a);
|
||||
|
||||
float whiteness = 0;
|
||||
|
||||
if (trailLengthRatio > 0.7)
|
||||
whiteness = (trailLengthRatio - 0.7) / 0.3;
|
||||
|
||||
returnColor.rgb = lerp(returnColor.rgb, float3(1, 1, 1), whiteness) * trailLengthRatio * 0.6;
|
||||
|
||||
return returnColor * tex2D(uImage0, coords);
|
||||
}
|
||||
technique Technique1
|
||||
{
|
||||
pass BurstPass
|
||||
{
|
||||
PixelShader = compile ps_2_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Armor
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.godSlayer = true;
|
||||
modPlayer.godSlayerDamage = true;
|
||||
string hotkey = CalamityMod.GodSlayerDashHotKey.TooltipHotkeyString();
|
||||
string hotkey = CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString();
|
||||
player.setBonus = "Allows you to dash for an immense distance in 8 directions\n" +
|
||||
"Press " + hotkey + " while holding down the movement keys in the direction you want to dash\n" +
|
||||
"Enemies you dash through take massive damage\n" +
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Armor
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.godSlayer = true;
|
||||
modPlayer.godSlayerRanged = true;
|
||||
string hotkey = CalamityMod.GodSlayerDashHotKey.TooltipHotkeyString();
|
||||
string hotkey = CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString();
|
||||
player.setBonus = "Allows you to dash for an immense distance in 8 directions\n" +
|
||||
"Press " + hotkey + " while holding down the movement keys in the direction you want to dash\n" +
|
||||
"Enemies you dash through take massive damage\n" +
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
|
||||
@@ -179,7 +179,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
if (Projectile.spriteDirection == -1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, frameHeight, texture.Width, height)), lightColor, Projectile.rotation, new Vector2(texture.Width / 2f, height / 2f), Projectile.scale, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition + new Vector2(0f, Projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, frameHeight, texture.Width, height)), lightColor, Projectile.rotation, new Vector2(texture.Width / 2f, height / 2f), Projectile.scale, spriteEffects, 0);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Effects;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -44,14 +45,14 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Texture2D bladeTexture = ModContent.Request<Texture2D>(Texture).Value ;
|
||||
MiscShaderData distortationShader = GameShaders.Misc["CalamityMod:LightDistortion"];
|
||||
|
||||
Main.spriteBatch.End();
|
||||
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, Main.DefaultSamplerState, DepthStencilState.None, Main.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix);
|
||||
|
||||
Rectangle frame = bladeTexture.Frame(1, 5, 0, Projectile.frameCounter / 4 % 5);
|
||||
var drawData2 = new DrawData(bladeTexture, Projectile.Center - Main.screenPosition, frame, Color.White, Projectile.rotation, bladeTexture.Size() / new Vector2(1f, 5f) * 0.5f, Projectile.scale * 1.2f, SpriteEffects.None, 0);
|
||||
distortationShader.Apply(drawData2);
|
||||
|
||||
CalamityShaders.LightDistortionShader.CurrentTechnique.Passes[0].Apply();
|
||||
drawData2.Draw(Main.spriteBatch);
|
||||
|
||||
return false;
|
||||
|
||||
@@ -163,7 +163,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
if (Projectile.spriteDirection == -1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
Main.EntitySpriteDraw(ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/DaemonsFlameBowGlow").Value, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, y6, texture2D13.Width, num214)), Color.White, Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/DaemonsFlameBowGlow").Value, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, y6, texture2D13.Width, num214)), Color.White, Projectile.rotation, origin, Projectile.scale, spriteEffects, 0);
|
||||
}
|
||||
|
||||
public override bool? CanDamage() => false;
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
//Changes the texture of the projectile
|
||||
if (Projectile.ai[1] == 1f)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/DrizzlefishFire2");
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Ranged/DrizzlefishFire2").Value;
|
||||
Main.spriteBatch.Draw(texture, Projectile.Center - Main.screenPosition, new Rectangle?(new Rectangle(0, 0, 16, 16)), Projectile.GetAlpha(lightColor), Projectile.rotation, new Vector2(texture.Width / 2f, 20 / 2f), Projectile.scale, SpriteEffects.None, 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>(Texture).Value;
|
||||
Texture2D lightTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/PhotovisceratorLight");
|
||||
Texture2D lightTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/PhotovisceratorLight").Value;
|
||||
Rectangle frame = texture.Frame(1, Main.projFrames[Projectile.type], 0, Projectile.frame);
|
||||
Vector2 drawPosition = Projectile.Center - Main.screenPosition;
|
||||
Vector2 origin = frame.Size() * 0.5f;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using Terraria;
|
||||
@@ -98,9 +98,9 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
Texture2D sprite;
|
||||
if (Projectile.ai[0] == 0f)
|
||||
sprite = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Rogue/ShockGrenadeBolt");
|
||||
sprite = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Rogue/ShockGrenadeBolt").Value;
|
||||
else
|
||||
sprite = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Rogue/ShockGrenadeBolt2");
|
||||
sprite = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Rogue/ShockGrenadeBolt2").Value;
|
||||
Color drawColour = Color.White;
|
||||
|
||||
Vector2 origin = new Vector2(frameWidth / 2, frameHeight / 2);
|
||||
|
||||
Reference in new issue
Block a user