diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
new file mode 100644
index 000000000..37238d940
--- /dev/null
+++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -0,0 +1,1392 @@
+
+#include "Engine_Shader_Defines.hlsli"
+
+matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
+Texture2D g_DepthTexture;
+
+int g_iImageCountX;
+int g_iImageCountY;
+
+uint g_iIndexU;
+uint g_iIndexV;
+uint g_iQuestType;
+int g_iSpellType;
+
+float g_fPI;
+float g_fFar;
+float g_fBlinkTime;
+float g_fTime;
+float g_fFrame;
+float g_fDeltaU;
+float g_fDeltaV;
+float g_fAlpha;
+float g_fOwnerAlpha;
+float g_fCanvasAlpha;
+float g_fAngle;
+float g_fCoolTime;
+float g_fHp;
+
+float2 g_fOrigin_Size;
+float2 g_fCurrent_Size;
+float2 g_fHpBG;
+float2 g_Pos;
+float2 g_fImageSize;
+
+float4 g_fNine_Slice;
+float4 g_fImageUV;
+float4 g_fImageUV1;
+
+uint g_iArrayCount;
+float2 g_fItemPosition1;
+float2 g_fItemImageSizes1;
+float2 g_fItemPosition2;
+float2 g_fItemImageSizes2;
+float2 g_fPosition[4];
+float2 g_fImageSizes[4];
+float4 g_fImagesUV[4];
+
+float4 g_fImageSipos1;
+float4 g_fImageSipos2;
+float4 g_fImageSipos3;
+
+Texture2D g_Texture;
+Texture2D g_Texture1;
+Texture2D g_Texture2;
+Texture2D g_Texture3;
+Texture2D g_Texture4;
+Texture2D g_Texture5;
+Texture2D g_DiffuseTexture;
+Texture2D g_MaskingTexture;
+
+
+struct VS_IN
+{
+ float3 vPosition : POSITION;
+ float2 vTexcoord : TEXCOORD0;
+};
+
+struct VS_OUT
+{
+ float4 vPosition : SV_Position;
+ float2 vTexcoord : TEXCOORD0;
+};
+
+VS_OUT VS_MAIN(VS_IN In)
+{
+ VS_OUT Out;
+
+
+ matrix matWV, matWVP;
+ matWV = mul(g_WorldMatrix, g_ViewMatrix);
+ matWVP = mul(matWV, g_ProjMatrix);
+
+ Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
+ Out.vTexcoord = In.vTexcoord;
+
+ return Out;
+}
+
+struct PS_IN
+{
+ float4 vPosition : SV_Position;
+ float2 vTexcoord : TEXCOORD0;
+};
+
+struct PS_OUT
+{
+ float4 vColor : SV_Target0;
+};
+
+PS_OUT PS_MAIN(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ if (Color.a <= 0.1f)
+ discard;
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_AlphaBlend(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ Color.rgb *= 1.5f;
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_Clamp(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_Cursor(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 Color = float4(0.f, 0.f, 0.f, 0.f);
+ float4 White = float4(1.f, 1.f, 1.f, 1.f);
+
+ float2 UV = In.vTexcoord;
+ float2 Center = float2(0.5f, 0.5f);
+
+ float CW = -g_fTime;
+ float CCW = g_fTime;
+
+ float2 RedCircle = UV;
+ float2 RedUV = UV - Center;
+
+ RedCircle.x = RedUV.x * cos(CCW) - RedUV.y * sin(CCW);
+ RedCircle.y = RedUV.x * sin(CCW) + RedUV.y * cos(CCW);
+ RedCircle = RedCircle + Center;
+
+ float2 BlueCircle = UV;
+ float2 BlueUV = UV - Center;
+
+ BlueCircle.x = BlueUV.x * cos(CW) - BlueUV.y * sin(CW);
+ BlueCircle.y = BlueUV.x * sin(CW) + BlueUV.y * cos(CW);
+ BlueCircle = BlueCircle + Center;
+
+
+ float4 Texture1 = g_Texture.Sample(ClampSampler, RedCircle);
+ float4 Texture2 = g_Texture2.Sample(ClampSampler, BlueCircle);
+
+ if (Texture1.r >= 0.7f)
+ Color = Texture1;
+
+ if (Texture2.b >= 0.7f)
+ Color = Texture2;
+
+ if (all(Color.rgb <= 0.5f))
+ discard;
+
+ Color = White;
+
+ Color.a *= Alpha;
+
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_Key_Hold_Rotation(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+ Color = tex1;
+
+ float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+ float4 tex2 = g_Texture1.Sample(ClampSampler, Imagelocal);
+ if (inside1)
+ {
+ float2 center = float2(0.5f, 0.5f);
+ float2 dir = Imagelocal - center;
+
+ float angle = atan2(dir.x, -dir.y);
+ if (angle < 0)
+ angle += g_fPI;
+
+ float rotation = saturate(g_fTime) * g_fPI;
+
+ tex2.rgb = (angle <= rotation) ? 1.0 : tex2.rgb;
+
+
+ Color = lerp(Color, tex2, tex2.a);
+ }
+
+
+
+ float2 Imagetexpos2 = g_fImageSipos2.xy / g_fCurrent_Size;
+ float2 Imagetexsize2 = g_fImageSipos2.zw / g_fCurrent_Size;
+ float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2;
+ bool inside2 = all(Imagelocal2 >= 0.0f && Imagelocal2 <= 1.0f);
+ if (inside2)
+ {
+ float2 atlasUV = g_fImageUV.xy + Imagelocal2 * (g_fImageUV.zw - g_fImageUV.xy);
+ float2 safeUV = saturate(atlasUV);
+ float4 tex3 = g_Texture2.Sample(ClampSampler, safeUV);
+ Color = lerp(Color, tex3, tex3.a);
+ }
+
+ float2 Imagetexpos3 = g_fImageSipos3.xy / g_fCurrent_Size;
+ float2 Imagetexsize3 = g_fImageSipos3.zw / g_fCurrent_Size;
+ float2 Imagelocal3 = (In.vTexcoord - Imagetexpos3) / Imagetexsize3;
+ bool inside3 = all(Imagelocal3 >= 0.0f && Imagelocal3 <= 1.0f);
+ if (inside3)
+ {
+ float3 QuestColor = float3(253.f, 207.f, 11.f) / 255.f;
+
+ float4 tex4 = g_Texture3.Sample(ClampSampler, Imagelocal3);
+
+ if (g_iQuestType == 0)
+ {
+
+ tex4.rgb *= QuestColor;
+
+ }
+
+ Color = lerp(Color, tex4, tex4.a);
+ }
+
+ Color.a *= Alpha;
+
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_Mission(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 Color = float4(0.f, 0.f, 0.f, 0.f);
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
+
+ tex1.a *= 0.5f;
+
+ if (tex1.a >= 0.f)
+ Color = tex1;
+
+ Color = lerp(Color, tex2, tex2.a);
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_Sptire_Sheet(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(0.f, 0.f, 0.f, 0.f);
+ float2 UV = In.vTexcoord;
+
+ int iTotalFrame = g_iImageCountX * g_iImageCountY;
+
+ uint iCurrentFrame = uint(floor(g_fTime / g_fFrame)) % iTotalFrame;
+
+ int iFrameX = iCurrentFrame % g_iImageCountX;
+ int iFrameY = iCurrentFrame / g_iImageCountX;
+
+ float fFreamWidth = 1.0 / g_iImageCountX;
+ float fFreamHeight = 1.0 / g_iImageCountY;
+
+ UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth;
+ UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight;
+
+ float4 Texture = g_Texture.Sample(DefaultSampler, UV);
+
+ Color = Texture;
+
+ if (Color.r <= 0.4f)
+ discard;
+
+
+ Color.a *= Alpha;
+
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_QuestType(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float3 Color = float3(253.f, 207.f, 11.f) / 255.f;
+ float4 Texture1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ if (g_iQuestType == 0)
+ {
+ if (Texture1.r >= 0.3f)
+ {
+ Texture1.rgb = Color;
+ }
+ }
+
+ Texture1.a *= Alpha;
+ Out.vColor = Texture1;
+
+ return Out;
+}
+
+PS_OUT PS_Spell_Anim(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f,1.f,1.f,1.f);
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ Color = tex1;
+
+ float2 texpos = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 texsize = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 texlocal = (In.vTexcoord - texpos) / texsize;
+ bool inside = all(texlocal >= 0.0f && texlocal <= 1.0f);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
+
+ if (inside)
+ Color = lerp(Color, tex2, tex2.a);
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_NineSlice(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+ float2 uv = In.vTexcoord;
+ float2 CurrentPixelPosition = uv * g_fCurrent_Size;
+ float OriginLeft = g_fNine_Slice.x;
+ float OriginRight = g_fNine_Slice.y;
+ float OriginTop = g_fNine_Slice.z;
+ float OriginBottom = g_fNine_Slice.w;
+
+ float CurrentLeft = OriginLeft;
+ float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
+ float CurrentTop = OriginTop;
+ float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
+
+ float2 Finaluv = In.vTexcoord;
+
+ if (CurrentPixelPosition.x < CurrentLeft)
+ {
+ Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
+ }
+ else if (CurrentPixelPosition.x > CurrentRight)
+ {
+ float dist = CurrentPixelPosition.x - CurrentRight;
+ Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
+ Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
+ }
+
+ if (CurrentPixelPosition.y < CurrentTop)
+ {
+ Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
+ }
+ else if (CurrentPixelPosition.y > CurrentBottom)
+ {
+ float dist = CurrentPixelPosition.y - CurrentBottom;
+ Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
+ Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
+ }
+
+ float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv);
+ float4 tex2 = g_Texture1.Sample(ClampSampler, Finaluv);
+
+ tex1.a *= 0.5f;
+
+ if (tex1.a >= 0.f)
+ Color = tex1;
+
+ Color = lerp(Color, tex2, tex2.a);
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_Rotation(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 color = float4(0.f, 0.f, 0.f, 0.f);
+
+ float2 center = float2(0.5f, 0.5f);
+ float2 uv = In.vTexcoord - center;
+ uv *= sqrt(2.0f);
+ float2 Rotation = In.vTexcoord;
+ Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
+ Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
+ Rotation += center;
+
+ float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
+
+ tex1.rgb *= 0.4f;
+ color = tex1;
+ tex2.rgb *= 0.3f;
+
+ if (tex2.a >= 0.9f)
+ color = tex2;
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+ return Out;
+
+}
+
+PS_OUT PS_Slot(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float2 center = float2(0.5f, 0.5f);
+ float2 uv = In.vTexcoord - center;
+ uv *= sqrt(2.0f);
+ float2 Rotation = In.vTexcoord;
+ Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
+ Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
+ Rotation += center;
+
+ float4 color = g_Texture.Sample(ClampSampler, Rotation);
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+
+ return Out;
+}
+
+PS_OUT PS_SpellAnim(PS_IN In)
+{
+ PS_OUT Out;
+
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 color = float4(0.f, 0.f, 0.f, 0.f);
+
+ float2 center = float2(0.5f, 0.5f);
+ float2 uv = In.vTexcoord - center;
+ uv *= sqrt(2.0f);
+ float2 Rotation = In.vTexcoord;
+ Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
+ Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
+ Rotation += center;
+
+ float2 startUV = g_fImageUV.xy;
+ float2 endUV = g_fImageUV.zw;
+
+ float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
+
+ float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
+ float4 tex2 = g_Texture2.Sample(DefaultSampler, atlasUV);
+
+ tex1.rgb *= 0.4f;
+ color = tex1;
+ tex2.rgb *= 0.3f;
+
+ if (tex2.a >= 0.9f)
+ color = tex2;
+ float3 BGColor = float3(1.f, 1.f, 1.f);
+
+ switch (g_iSpellType)
+ {
+ case 0:
+ BGColor = float3(255.f, 255.f, 0.f) / 255.f;
+ break;
+ case 1:
+ BGColor = float3(150.f, 120.f, 240.f) / 255.f;
+ break;
+ case 2:
+ BGColor = float3(190.f, 46., 34.f) / 255.f;
+ break;
+ case 3:
+ BGColor = float3(24.f, 190.f, 255.f) / 255.f;
+ break;
+ case 4:
+ BGColor = float3(200.f, 220.f, 150.f) / 255.f;
+ break;
+ case 5:
+ BGColor = float3(50.f, 150.f, 110.f) / 255.f;
+ break;
+ case 6:
+ BGColor = float3(0.f, 0.f, 0.f);
+ break;
+ }
+ float4 color1 = float4(1.f, 1.f, 1.f, 1.f);
+
+ float2 OverrayUV = In.vTexcoord;
+ float CoolTime = 1.f - g_fDeltaV;
+ float CoolTime2 = 1.f - g_fDeltaV + 0.1f;
+ atlasUV = startUV + In.vTexcoord * (endUV - startUV);
+ float4 tex3 = g_Texture1.Sample(ClampSampler, OverrayUV);
+ tex3.rgb *= BGColor;
+ float4 tex4 = g_Texture2.Sample(DefaultSampler, atlasUV);
+
+ if (tex4.a >= 0.9f)
+ tex3 = tex4;
+
+ color1 = tex3;
+
+ float wave1 = sin(OverrayUV.x * 10.f + g_fTime) * 0.01f;
+ float wave2 = sin(OverrayUV.x * 10.f + g_fTime) * 0.01f;
+ float waveThreshold1 = CoolTime + wave1;
+ float waveThreshold2 = CoolTime2 + wave2;
+ float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f, waveUV.y = (OverrayUV.y - waveThreshold1) / (waveThreshold2 - waveThreshold1));
+ waveUV = saturate(waveUV);
+ float tex5 = g_Texture3.Sample(DefaultSampler, waveUV).r;
+
+ if (g_fDeltaV <= 1.f)
+ {
+ if (OverrayUV.y >= waveThreshold1 && OverrayUV.y <= waveThreshold2)
+ {
+ color1.rgb += float3(1.f, 1.f, 1.f) * tex5 * g_fDeltaU;
+ }
+ }
+
+ float waveThreshold = CoolTime + wave1;
+
+ if (OverrayUV.y <= waveThreshold)
+ {
+ color1.a = 0.f;
+ }
+
+ color = lerp(color, color1, color1.a);
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+ return Out;
+}
+
+PS_OUT PS_HpBar(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+ float4 Color1 = float4(1.f, 1.f, 1.f, 1.f);
+ float2 uv = In.vTexcoord;
+ float2 CurrentPixelPosition = uv * g_fCurrent_Size;
+ float OriginLeft = g_fNine_Slice.x;
+ float OriginRight = g_fNine_Slice.y;
+ float OriginTop = g_fNine_Slice.z;
+ float OriginBottom = g_fNine_Slice.w;
+
+ float CurrentLeft = OriginLeft;
+ float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
+ float CurrentTop = OriginTop;
+ float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
+
+ float2 Finaluv = In.vTexcoord;
+
+ if (CurrentPixelPosition.x < CurrentLeft)
+ {
+ Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
+ }
+ else if (CurrentPixelPosition.x > CurrentRight)
+ {
+ float dist = CurrentPixelPosition.x - CurrentRight;
+ Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
+ Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
+ }
+
+ if (CurrentPixelPosition.y < CurrentTop)
+ {
+ Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
+ }
+ else if (CurrentPixelPosition.y > CurrentBottom)
+ {
+ float dist = CurrentPixelPosition.y - CurrentBottom;
+ Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
+ Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
+ }
+
+ float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv);
+ tex1.rgb = float3(255.f, 0.f, 0.f) / 255.f;
+ if (g_fHp <= 0.3f)
+ {
+ tex1.a *= (sin(g_fBlinkTime) * 0.25f + 0.75f) * 1.5f;
+ }
+ else
+ {
+ tex1.a = 0.f;
+ }
+ Color = tex1;
+
+ float2 BGPos = g_Pos;
+ float2 BGSize = g_fImageSize;
+ float2 BGPixel = Finaluv * g_fOrigin_Size;
+ float2 localUV = (BGPixel - BGPos) / BGSize;
+ bool inside = all(localUV >= 0.0f && localUV <= 1.0f);
+
+ float4 tex2 = g_Texture1.Sample(ClampSampler, localUV);
+
+ if (inside)
+ Color = lerp(Color, tex2, tex2.a);
+
+ float2 reversuv = In.vTexcoord;
+
+ reversuv.x = 1.0f - localUV.x;
+
+ float4 tex3 = g_Texture2.Sample(ClampSampler, localUV);
+
+ if (reversuv.x >= g_fHp)
+ {
+ tex3.rgb = float3(0.f, 0.f, 0.f);
+ }
+
+ float3 Green = (float3(112.f, 241.f, 31.f) / 255.f) * 1.2f;
+ float3 Red = (float3(255.f, 0.f, 0.f) / 255.f) * 1.2f;
+
+ tex3.rgb *= lerp(Green, Red, g_fTime);
+
+ if (all(Color.rgb >= float3(55.f / 255.f, 0.f / 255.f, 55.f / 255.f)))
+ Color = lerp(Color, tex3, tex3.a);
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_Magic_Meter(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float3 Blue = float3(41.f, 165.f, 255.f) / 255.f;
+
+ float4 color = float4(1.f, 1.f, 1.f, 1.f);
+ float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
+ float4 tex2 = g_Texture1.Sample(ClampSampler, In.vTexcoord);
+
+ float2 reverseuv = 1.f - In.vTexcoord;
+
+ color = tex1;
+ tex2.rgb *= Blue * 1.5f;
+
+ if (reverseuv.x >= g_fHp)
+ {
+ tex2.rgb = float3(0.f, 0.f, 0.f);
+ }
+
+ if (all(color.rgb >= float3(65.f / 255.f, 65.f / 255.f, 65.f / 255.f)))
+ color = tex2;
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+
+ return Out;
+}
+
+
+PS_OUT PS_Magic_Icon(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+
+ float2 center = float2(0.5f, 0.5f);
+ float2 BGuv = In.vTexcoord - center;
+ BGuv *= sqrt(2.0f);
+ float2 Rotation = In.vTexcoord;
+ Rotation.x = BGuv.x * cos(g_fAngle) - BGuv.y * sin(g_fAngle);
+ Rotation.y = BGuv.x * sin(g_fAngle) + BGuv.y * cos(g_fAngle);
+ Rotation += center;
+
+ float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
+ float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation);
+
+ Color = tex1;
+ Color = lerp(tex1, tex2, tex2.a);
+
+ float2 uv = In.vTexcoord;
+ float scale = 1.2;
+
+ uv = (uv - center) * scale + center;
+ float4 tex3 = g_Texture2.Sample(ClampSampler, uv);
+
+
+ Color = Color * (1 - tex3.a) + tex3;
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_RemapUV(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+
+
+ float2 startUV = g_fImageUV.xy;
+ float2 endUV = g_fImageUV.zw;
+
+ float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, atlasUV);
+
+ Color = tex1;
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_Revelio(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+ float2 UV = In.vTexcoord;
+
+ //float2 Position[4];
+ //float2 startUV[4];
+ //float2 endUV[4];
+
+ //float2 Atlases[4];
+
+ //for (int i = 0; i < 4; ++i)
+ //{
+ // Position[i] = g_fPosition[i];
+ // startUV[i] = g_fImagesUV[i].xy;
+ // endUV[i] = g_fImagesUV[i].zw;
+
+ // Atlases[i] = startUV[i] + UV * (endUV[i] - startUV[i]);
+ //}
+
+ //float4 tex1 = g_Texture.Sample(DefaultSampler, UV);
+ //float4 tex2 = g_Texture1.Sample(DefaultSampler, Atlases[0]);
+ //float4 tex3 = g_Texture1.Sample(DefaultSampler, Atlases[1]);
+ //float4 tex4 = g_Texture2.Sample(DefaultSampler, Atlases[2]);
+ //float4 tex5 = g_Texture2.Sample(DefaultSampler, Atlases[3]);
+
+
+
+ ////float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_Potion(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(214.f / 255.f, 225 / 255.f, 36 / 255.f, 1.f);
+
+ float2 center = float2(0.5f, 0.5f);
+ float2 uv = In.vTexcoord - center;
+ uv *= sqrt(2.0f);
+ float2 Rotation = In.vTexcoord;
+ Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
+ Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
+ Rotation += center;
+
+ float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
+ Color = tex1;
+
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
+ //Color += tex2;
+ float4 tex3 = g_Texture2.Sample(ClampSampler, Rotation);
+ Color = lerp(Color, tex3, tex3.a);
+
+ float2 Potionuv = In.vTexcoord;
+ float scale = 1.2;
+
+ Potionuv = (Potionuv - center) * scale + center;
+ float4 tex4 = g_Texture3.Sample(ClampSampler, Potionuv);
+ Color = lerp(Color, tex4, tex4.a);
+
+ float2 tex5pos = g_Pos / g_fCurrent_Size;
+ float2 tex5size = g_fOrigin_Size / g_fCurrent_Size;
+ float2 tex5local = (In.vTexcoord - tex5pos) / tex5size;
+ bool inside = all(tex5local >= 0.0f && tex5local <= 1.0f);
+ float4 tex5 = g_Texture4.Sample(ClampSampler, tex5local);
+ if (inside)
+ Color = lerp(Color, tex5, tex5.a);
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_Magic_Item(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 color = float4(1.f, 1.f, 1.f, 1.f);
+
+ float2 center = float2(0.5f, 0.5f);
+ float2 uv = In.vTexcoord - center;
+ uv *= sqrt(2.0f);
+ float2 Rotation = In.vTexcoord;
+ Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle);
+ Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle);
+ Rotation += center;
+
+ float2 startUV = g_fImageUV.xy;
+ float2 endUV = g_fImageUV.zw;
+
+ float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV);
+
+ float4 tex1 = g_Texture.Sample(ClampSampler, Rotation);
+ float4 tex2 = g_Texture3.Sample(ClampSampler, atlasUV);
+
+ tex1.rgb *= 0.4f;
+ color = tex1;
+ tex2.rgb *= 0.3f;
+
+ if (tex2.a >= 0.9f)
+ color = tex2;
+ float3 BGColor = float3(1.f, 1.f, 1.f);
+
+ switch (g_iSpellType)
+ {
+ case 0:
+ BGColor = float3(50.f, 50.f, 50.f) / 255.f;
+ break;
+ case 1:
+ BGColor = float3(89.f, 32.f, 215.f) / 255.f;
+ break;
+ case 2:
+ BGColor = float3(190.f, 46., 34.f) / 255.f;
+ break;
+ case 3:
+ BGColor = float3(37.f, 129.f, 162.f) / 255.f;
+ break;
+ case 4:
+ BGColor = float3(134.f, 171.f, 78.f) / 255.f;
+ break;
+ }
+
+ float4 color1 = float4(1.f, 1.f, 1.f, 1.f);
+
+ float2 OverrayUV = In.vTexcoord;
+ float CoolTime = 0.f + g_fDeltaV;
+ float CoolTime2 = 0.f + g_fDeltaV + 0.1f;
+ atlasUV = startUV + In.vTexcoord * (endUV - startUV);
+ float4 tex3 = g_Texture1.Sample(ClampSampler, OverrayUV);
+ tex3.rgb *= BGColor;
+ float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV);
+
+ if (g_fDeltaV <= 1.f)
+ {
+ if (tex4.a >= 0.9f)
+ tex3 = tex4;
+
+ color1 = tex3;
+
+ float wave1 = sin(OverrayUV.x * 10.f + g_fTime * 2.f) * 0.01f;
+ float wave2 = sin(OverrayUV.x * 10.f + g_fTime * 2.f) * 0.01f;
+
+ float waveThreshold1 = CoolTime + wave1;
+ float waveThreshold2 = CoolTime2 + wave2;
+ float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f, waveUV.y = (OverrayUV.y - waveThreshold1) / (waveThreshold2 - waveThreshold1));
+ waveUV = saturate(waveUV);
+ float Mask = g_MaskingTexture.Sample(DefaultSampler, waveUV).r;
+ if (g_fDeltaV <= 1.f)
+ {
+ if (OverrayUV.y >= waveThreshold1 && OverrayUV.y <= waveThreshold2)
+ {
+ color1.rgb += float3(1.f, 1.f, 1.f) * Mask * 1.f;
+ }
+ }
+
+ float waveThreshold = CoolTime + wave1;
+
+ if (OverrayUV.y <= waveThreshold)
+ {
+ color1.a = 0.f;
+ }
+
+ color = lerp(color, color1, color1.a);
+ }
+ else if (g_fDeltaV >= 1.f)
+ color = lerp(color, tex4, tex4.a);
+
+ float4 tex5 = g_Texture2.Sample(ClampSampler, Rotation);
+ color = lerp(color, tex5, tex5.a);
+
+ float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size;
+ float2 texpos2 = g_fItemPosition2 / g_fCurrent_Size;
+ float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size;
+ float2 texsize2 = g_fItemImageSizes2 / g_fCurrent_Size;
+ float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
+ float2 texlocal2 = (In.vTexcoord - texpos2) / texsize2;
+
+
+ bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
+ float4 tex6 = g_Texture4.Sample(DefaultSampler, texlocal1);
+
+ if (inside1)
+ color = lerp(color, tex6, tex6.a);
+
+ bool inside2 = all(texlocal2 >= 0.0f && texlocal2 <= 1.0f);
+
+ float4 tex7 = g_Texture5.Sample(DefaultSampler, texlocal2);
+ if (inside2)
+ color = lerp(color, tex7, tex7.a);
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+ return Out;
+}
+
+PS_OUT PS_Spell_Preview(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+ float2 uv = In.vTexcoord;
+ float2 CurrentPixelPosition = uv * g_fCurrent_Size;
+ float OriginLeft = g_fNine_Slice.x;
+ float OriginRight = g_fNine_Slice.y;
+ float OriginTop = g_fNine_Slice.z;
+ float OriginBottom = g_fNine_Slice.w;
+
+ float CurrentLeft = OriginLeft;
+ float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
+ float CurrentTop = OriginTop;
+ float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
+
+ float2 Finaluv = In.vTexcoord;
+
+ if (CurrentPixelPosition.x < CurrentLeft)
+ {
+ Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
+ }
+ else if (CurrentPixelPosition.x > CurrentRight)
+ {
+ float dist = CurrentPixelPosition.x - CurrentRight;
+ Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
+ Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
+ }
+
+ if (CurrentPixelPosition.y < CurrentTop)
+ {
+ Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
+ }
+ else if (CurrentPixelPosition.y > CurrentBottom)
+ {
+ float dist = CurrentPixelPosition.y - CurrentBottom;
+ Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
+ Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
+ }
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
+ float4 tex3 = g_Texture2.Sample(DefaultSampler, Finaluv);
+ Color = tex1;
+
+ tex3.rgb = tex2.rgb;
+
+ Color = lerp(Color, tex3, tex3.a);
+
+ float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+ float4 tex4 = g_Texture3.Sample(DefaultSampler, Finaluv);
+ if (inside1)
+ {
+ Color = lerp(Color, tex4, tex4.a);
+ }
+
+ Color.a *= Alpha;
+
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_Spell_Header(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+
+ float3 BGColor= float3(1.f, 1.f, 1.f);
+
+ switch (g_iSpellType)
+ {
+ case 0:
+ BGColor = float3(255.f, 255.f, 0.f) / 255.f;
+ break;
+ case 1:
+ BGColor = float3(150.f, 120.f, 240.f) / 255.f;
+ break;
+ case 2:
+ BGColor = float3(190.f, 46., 34.f) / 255.f;
+ break;
+ case 3:
+ BGColor = float3(24.f, 190.f, 255.f) / 255.f;
+ break;
+ case 4:
+ BGColor = float3(200.f, 220.f, 150.f) / 255.f;
+ break;
+ case 5:
+ BGColor = float3(50.f, 150.f, 110.f) / 255.f;
+ break;
+ case 6:
+ BGColor = float3(0.f, 0.f, 0.f);
+ break;
+ }
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+ Color = tex1;
+
+ Color.rgb *= BGColor;
+
+ Color.a *= Alpha;
+
+ Out.vColor = Color;
+
+ return Out;
+}
+PS_OUT PS_Spell_Header_Line(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+ float2 uv = In.vTexcoord;
+ float2 CurrentPixelPosition = uv * g_fCurrent_Size;
+ float OriginLeft = g_fNine_Slice.x;
+ float OriginRight = g_fNine_Slice.y;
+ float OriginTop = g_fNine_Slice.z;
+ float OriginBottom = g_fNine_Slice.w;
+
+ float CurrentLeft = OriginLeft;
+ float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
+ float CurrentTop = OriginTop;
+ float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
+
+ float2 Finaluv = In.vTexcoord;
+
+ if (CurrentPixelPosition.x < CurrentLeft)
+ {
+ Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
+ }
+ else if (CurrentPixelPosition.x > CurrentRight)
+ {
+ float dist = CurrentPixelPosition.x - CurrentRight;
+ Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
+ Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
+ }
+
+ if (CurrentPixelPosition.y < CurrentTop)
+ {
+ Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
+ }
+ else if (CurrentPixelPosition.y > CurrentBottom)
+ {
+ float dist = CurrentPixelPosition.y - CurrentBottom;
+ Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
+ Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
+ }
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
+ Color = tex1;
+
+ //Color.rgb = tex2.rgb;
+
+ Color.a *= Alpha;
+
+ Out.vColor = Color;
+
+ return Out;
+}
+
+technique11 PosTexTechnique11
+{
+ pass Default
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_MAIN();
+ }
+
+ pass AlphaBlend
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_AlphaBlend();
+ }
+
+ pass TextureClamp
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Clamp();
+ }
+
+ pass Mouse_Cursor
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Cursor();
+ }
+
+ pass Sptire_Sheet
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Sptire_Sheet();
+ }
+
+ pass Key_Hold_Rotation
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Key_Hold_Rotation();
+ }
+
+ pass Mission
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Mission();
+ }
+
+ pass QuestType
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_QuestType();
+ }
+
+ pass Spell_Anim
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Spell_Anim();
+ }
+
+ pass NineSlice
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_NineSlice();
+ }
+
+ pass Rotation
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Rotation();
+ }
+
+ pass Slot
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Slot();
+ }
+
+ pass SpellAnim
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_SpellAnim();
+ }
+ pass HpBar
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_HpBar();
+ }
+ pass Magic_Meter
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Magic_Meter();
+ }
+
+ pass Magic_Icon
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Magic_Icon();
+ }
+
+ pass RemapUV
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_RemapUV();
+ }
+
+ pass Revelio
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Revelio();
+ }
+
+ pass Potion
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Potion();
+ }
+
+ pass Magic_Item
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Magic_Item();
+ }
+
+ pass Spell_Preview
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Spell_Preview();
+ }
+
+ pass Spell_Header
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Spell_Header();
+ }
+
+ pass Spell_Header_Line
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Spell_Header_Line();
+ }
+
+}
diff --git a/Jusin154_Team3D/Client/Default/Broom_States.cpp b/Jusin154_Team3D/Client/Default/Broom_States.cpp
index df3d7351c..670e5a58c 100644
--- a/Jusin154_Team3D/Client/Default/Broom_States.cpp
+++ b/Jusin154_Team3D/Client/Default/Broom_States.cpp
@@ -5,12 +5,7 @@
#pragma region STATE
#include "State_Idle.h"
-#include "State_Dodge.h"
-#include "State_Jump.h"
-#include "State_Land.h"
#include "State_Move.h"
-#include "State_Combat.h"
-#include "State_Broom_Ride.h"
#pragma endregion
#pragma region States
@@ -18,18 +13,17 @@
HRESULT CBroom::InputAction()
{
if (
- m_pGameInstance->Key_Down(DIK_SPACE)
- || m_pGameInstance->Key_Down(DIK_LCONTROL)
- || m_pGameInstance->Key_Down(DIK_E)
- || m_pGameInstance->Key_Down(DIK_R)
- || m_pGameInstance->Key_Down(DIK_Q)
- || m_pGameInstance->Mouse_Up(DIM_LBUTTON)
- || m_pGameInstance->Key_Down(DIK_LSHIFT)
- || m_pGameInstance->Key_Down(DIK_C)
- || m_pGameInstance->Key_Down(DIK_V)
- || m_pGameInstance->Key_Down(DIK_Z)
- || m_pGameInstance->Key_Down(DIK_G)
- || m_pGameInstance->Key_Down(DIK_B)
+ m_pGameInstance->Key_Pressing(DIK_SPACE)
+ || m_pGameInstance->Key_Pressing(DIK_LCONTROL)
+ || m_pGameInstance->Key_Pressing(DIK_E)
+ || m_pGameInstance->Key_Pressing(DIK_R)
+ || m_pGameInstance->Key_Pressing(DIK_Q)
+ || m_pGameInstance->Key_Pressing(DIK_LSHIFT)
+ || m_pGameInstance->Key_Pressing(DIK_C)
+ || m_pGameInstance->Key_Pressing(DIK_V)
+ || m_pGameInstance->Key_Pressing(DIK_Z)
+ || m_pGameInstance->Key_Pressing(DIK_G)
+ || m_pGameInstance->Key_Pressing(DIK_B)
)
{
return S_OK;
@@ -67,10 +61,10 @@ HRESULT CBroom::InputSpell()
m_pGameInstance->Key_Down(DIK_1)
|| m_pGameInstance->Key_Down(DIK_2)
|| m_pGameInstance->Key_Down(DIK_3)
- || m_pGameInstance->Key_Down(DIK_4)
- )
- {
- return S_OK;
+ || m_pGameInstance->Key_Down(DIK_4)
+ )
+ {
+ return S_OK;
}
return E_FAIL;
}
@@ -102,79 +96,110 @@ HRESULT CBroom::Behavior_IdleExitCheck(_float fTimeDelta)
if (m_pGameInstance->Key_Down(DIK_B)) {
pairAnimInfo = m_Animation[STATEANIM::BROOM_MOUNT_B];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ m_pFSM->Enable_State(FSMSTATE::MOUNT_B);
}
}
- if (SUCCEEDED(InputMove()))
+ if (SUCCEEDED(InputMove()) && m_pFSM->IsEnable(FSMSTATE::MOUNT_B))
{
m_pFSM->Change_State(FSMSTATE::MOVE);
return E_FAIL;
}
+ if (SUCCEEDED(InputMove()))
+ {
+ if (m_pFSM->IsEnable_Previous(FSMSTATE::MOVE))
+ {
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+ }
+ }
return E_FAIL;
}
void CBroom::Behavior_IdleExit()
{
- m_pFSM->Disable_State(FSMSTATE::IDLE);
+ m_pFSM->Disable_State(FSMSTATE::IDLE | FSMSTATE::MOUNT_B);
}
void CBroom::Behavior_MoveEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
- _bool bFoward = m_pGameInstance->Key_Pressing(DIK_W);
- _bool bLeft = m_pGameInstance->Key_Pressing(DIK_A);
- _bool bRight = m_pGameInstance->Key_Pressing(DIK_D);
- _bool bBackward = m_pGameInstance->Key_Pressing(DIK_S);
m_pFSM->Enable_State(FSMSTATE::MOVE);
if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE)) {
m_pFSM->Enable_State(FSMSTATE::JOG);
- if (SUCCEEDED(InputMove()))
+
+ if (SUCCEEDED(InputMove()) || SUCCEEDED(InputAction()))
{
- if (bFoward)
+ if (m_pGameInstance->Key_Pressing(DIK_W))
{
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
}
- else if (bLeft)
+ else if (m_pGameInstance->Key_Pressing(DIK_A))
{
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_LEFT_B];
}
- else if (bRight)
+ else if (m_pGameInstance->Key_Pressing(DIK_D))
{
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_RIGHT_B];
}
+ else if (m_pGameInstance->Key_Pressing(DIK_LCONTROL))
+ {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_DOWN_B];
+ }
+ else if (m_pGameInstance->Key_Pressing(DIK_SPACE))
+ {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_UP_B];
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f, true);
}
}
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+
}
HRESULT CBroom::Behavior_MoveExitCheck(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo = {};
- _bool bFoward = m_pGameInstance->Key_Pressing(DIK_W);
- _bool bLeft = m_pGameInstance->Key_Pressing(DIK_A);
- _bool bRight = m_pGameInstance->Key_Pressing(DIK_D);
- _bool bBackward = m_pGameInstance->Key_Pressing(DIK_S);
+ _uint iCurrentAnimIndex = m_pModelCom->Get_AnimIndex();
- if (SUCCEEDED(InputMove()))
+ if (SUCCEEDED(InputMove()) || SUCCEEDED(InputAction()))
{
- if (bFoward)
+ if (m_pGameInstance->Key_Pressing(DIK_W))
{
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
m_pTransformCom->Go_Straight(fTimeDelta);
}
- else if (bLeft)
+ else if (m_pGameInstance->Key_Pressing(DIK_A))
{
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_LEFT_B];
}
- else if (bRight)
+ else if (m_pGameInstance->Key_Pressing(DIK_D))
{
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_RIGHT_B];
}
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ else if (m_pGameInstance->Key_Pressing(DIK_LCONTROL))
+ {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_DOWN_B];
+ }
+ else if (m_pGameInstance->Key_Pressing(DIK_SPACE))
+ {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_UP_B];
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f, true);
return S_OK;
}
+ else
+ {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_STOP_B];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ if (m_pModelCom->IsFinishedAnim() && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first)
+ {
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ return E_FAIL;
+ }
+ return S_OK;
+ }
+
return E_FAIL;
}
@@ -196,21 +221,23 @@ void CBroom::Add_FSM()
Desc.funcPriorityUpdate = nullptr;
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc));
- }
- {
- CState_Move::STATE_MOVE_DESC Desc{};
- Desc.pOwner = this;
- Desc.funcEnterEvent = [this]() { Behavior_MoveEnter(); };
- Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(fTimedelta); };
- Desc.funcExitEvent = [this]() { Behavior_MoveExit(); };
- Desc.funcPriorityUpdate = nullptr;
- Desc.funcLateUpdate = nullptr;
- m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc));
- }
-#pragma endregion
+ }
+ {
+ CState_Move::STATE_MOVE_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_MoveEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_MoveExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc));
+ }
+#pragma endregion
}
+
+
void CBroom::Set_Anim()
{
m_Animation[STATEANIM::BROOM_MOUNT_B] = { 29,false };
diff --git a/Jusin154_Team3D/Client/Default/Client.cpp b/Jusin154_Team3D/Client/Default/Client.cpp
index 803e283b6..774dc7394 100644
--- a/Jusin154_Team3D/Client/Default/Client.cpp
+++ b/Jusin154_Team3D/Client/Default/Client.cpp
@@ -53,8 +53,9 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
MSG msg;
pMainApp = CMainApp::Create();
- if (nullptr == pMainApp)
+ if (nullptr == pMainApp){
return FALSE;
+ }
CGameInstance* pGameInstance = CGameInstance::GetInstance();
SAFE_ADDREF(pGameInstance);
@@ -94,8 +95,9 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
{
if (PeekMessage(&msg, nullptr, 0, 0, PM_REMOVE))
{
- if (WM_QUIT == msg.message)
+ if (WM_QUIT == msg.message){
break;
+ }
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
{
TranslateMessage(&msg);
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 6583abfe3..5044bc5f1 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -210,6 +210,7 @@ call Update_Resources.bat
+
@@ -225,6 +226,7 @@ call Update_Resources.bat
+
@@ -295,6 +297,7 @@ call Update_Resources.bat
+
@@ -314,6 +317,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 34f679a98..4f90ccdaf 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -256,6 +256,12 @@
04.Mechanic\State\Broom
+
+ 04.Mechanic\Skill\Skill_Data
+
+
+ 02.GameObjects\Effect\Revelio
+
@@ -323,9 +329,6 @@
{1bfec6dc-f008-4d18-87d6-be38824b1272}
-
- {c5b61cb3-bc5f-4429-8715-b309dcf054b2}
-
{2b209526-b728-4fba-a184-b9224d72903a}
@@ -560,6 +563,15 @@
{e12a4228-0754-4217-b65d-7f962409f85c}
+
+ {19a2325e-1184-4ee0-92e1-657bf184418c}
+
+
+ {c5b61cb3-bc5f-4429-8715-b309dcf054b2}
+
+
+ {2bc5b43e-0e24-49d4-95b0-549ad4428201}
+
@@ -808,6 +820,12 @@
02.GameObjects\Environment\00.MapContainer\StreetContainer
+
+ 02.GameObjects\Effect\Revelio
+
+
+ 04.Mechanic\Skill\Skill_Data
+
diff --git a/Jusin154_Team3D/Client/Private/Action_Panel.cpp b/Jusin154_Team3D/Client/Private/Action_Panel.cpp
index 397ed394d..ccc5aea7d 100644
--- a/Jusin154_Team3D/Client/Private/Action_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/Action_Panel.cpp
@@ -126,10 +126,12 @@ void CAction_Panel::Magic_Meter_Visible(_uint iIndex, _bool bVisible)
default:
return;
}
- if (bVisible)
+ if (bVisible){
m_iMagic_Meter_Count++;
- else
+ }
+ else{
m_iMagic_Meter_Count--;
+ }
}
void CAction_Panel::Magic_Meter_UV()
diff --git a/Jusin154_Team3D/Client/Private/Bombard.cpp b/Jusin154_Team3D/Client/Private/Bombard.cpp
index 0d6897a7b..8fb9d462b 100644
--- a/Jusin154_Team3D/Client/Private/Bombard.cpp
+++ b/Jusin154_Team3D/Client/Private/Bombard.cpp
@@ -25,18 +25,15 @@ HRESULT CBombard::Initialize_Prototype()
HRESULT CBombard::Initialize(void* pArg)
{
- if (FAILED(__super::Initialize(pArg))){
+ if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
- }
- if (FAILED(Ready_Components(pArg))) {
+ if (FAILED(Ready_Components(pArg)))
return E_FAIL;
- }
- if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Bombard"))) {
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Bombard")))
return E_FAIL;
- }
m_wstrEffectName = L"Bombard";
@@ -76,20 +73,17 @@ void CBombard::Late_Update(_float fTimeDelta)
__super::Late_Update(fTimeDelta);
-
}
HRESULT CBombard::Pre_Setting(CGameObject* pObject)
{
- if (pObject == nullptr) {
+ if (pObject == nullptr)
return E_FAIL;
- }
m_pOwner = pObject;
- if (FAILED(Ready_Child())) {
+ if (FAILED(Ready_Child()))
return E_FAIL;
- }
Reset_EffectParts();
@@ -146,7 +140,7 @@ HRESULT CBombard::Ready_Child()
XMStoreFloat3(&vDir, vOwnerLook * 2.f);
Desc.vRotRPY = { 0.f, 0.f, 0.f };
- Desc.iSubKind = ENUM_CLASS(PXOBJECT::SKILL_BOMBARD_STRIKE);
+ Desc.iSubKind = 70;
Desc.vDeltaPos = vDir;
Desc.vLifeTime = { 0.f, 2.f };
@@ -156,7 +150,6 @@ HRESULT CBombard::Ready_Child()
}
SAFE_ADDREF(m_pPhysHitBox);
-
return S_OK;
}
@@ -207,6 +200,7 @@ void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
Get_PartObject("Bombard_Circle0")->Set_Visible(false);
+
m_pPhysHitBox->Set_Dead();
SAFE_RELEASE(m_pPhysHitBox);
}
@@ -222,13 +216,11 @@ void CBombard::Free()
}
#ifdef _DEBUG
-
void CBombard::Describe_Entity()
{
}
-
-#endif // _DEBUG
+#endif
HRESULT CBombard::Bind_ShaderResources()
{
diff --git a/Jusin154_Team3D/Client/Private/Broom.cpp b/Jusin154_Team3D/Client/Private/Broom.cpp
index f6cb448d4..8e0b1d44d 100644
--- a/Jusin154_Team3D/Client/Private/Broom.cpp
+++ b/Jusin154_Team3D/Client/Private/Broom.cpp
@@ -43,11 +43,14 @@ HRESULT CBroom::Initialize(void* pArg)
}
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 10.f, 0.f, 1.f));
+
return S_OK;
}
void CBroom::Priority_Update(_float fTimeDelta)
{
+
}
void CBroom::Update(_float fTimeDelta)
@@ -64,8 +67,9 @@ void CBroom::Late_Update(_float fTimeDelta)
HRESULT CBroom::Render()
{
- if (!m_pModelCom)
+ if (!m_pModelCom){
return S_OK;
+ }
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_HitReport.cpp b/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_HitReport.cpp
index f4d5a5677..403dc9311 100644
--- a/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_HitReport.cpp
+++ b/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_HitReport.cpp
@@ -41,18 +41,26 @@ void CCallBack_EffectHitBox_HitReport::onShapeHit(const PSX::PxControllerShapeHi
{
switch (pTargetActorData->iSubKind)
{
- case 23: // 무거운데 올라갈 수 있는 벽
+ case ENUM_CLASS(PXOBJECT::WALL):
/* OnCollision 함수에 넘길 값 */
-
-
CollisionDesc.vWorldPos = XMVectorSet( (_float)vWorldPos.x, (_float)vWorldPos.y, (_float)vWorldPos.z, 1.f);
memcpy(&CollisionDesc.vWorldNomal, &vWorldNormal, sizeof(_float3));
memcpy(&CollisionDesc.vHitDir, &vDir, sizeof(_float3));
CollisionDesc.fLength = fLength;
pOwnerActorData->pOwner->Get_Owner()->OnCollision(pTargetActorData->pOwner , &CollisionDesc);
-
+ break;
+ case ENUM_CLASS(PXOBJECT::GOBLIN_WARRIOR):
+
+ /* OnCollision 함수에 넘길 값 */
+ CollisionDesc.vWorldPos = XMVectorSet( (_float)vWorldPos.x, (_float)vWorldPos.y, (_float)vWorldPos.z, 1.f);
+ memcpy(&CollisionDesc.vWorldNomal, &vWorldNormal, sizeof(_float3));
+ memcpy(&CollisionDesc.vHitDir, &vDir, sizeof(_float3));
+ CollisionDesc.fLength = fLength;
+
+ pOwnerActorData->pOwner->Get_Owner()->OnCollision(pTargetActorData->pOwner , &CollisionDesc);
+ static_cast(pTargetActorData->pBody)->Add_Force(CollisionDesc.vHitDir * fLength * 100.f, PSX::PxForceMode::eIMPULSE);
break;
default:
{
@@ -81,13 +89,17 @@ void CCallBack_EffectHitBox_HitReport::onControllerHit(const PSX::PxControllersH
PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향
_float fLength = hit.length; // 시도한 move 길이
- PSX::PxController* pOtherController = hit.other; // 다른 컨트롤러
+ PSX::PxController* pOtherController = hit.other; // 다른 컨트롤러
+ PSX::PxActor* pActor = pOtherController->getActor();
+
+ ON_COLLISION_INFO CollisionDesc = {};
if (nullptr != pController && nullptr != pOtherController) {
- PhsXUserData* pActorData = static_cast(pOtherController->getActor()->userData);
- assert(nullptr != pActorData); // missing user data
+ PhsXUserData* pTargetActorData = static_cast(pActor->userData);
+ PhsXUserData* pOwnerActorData = static_cast(pController->getActor()->userData);
+ assert(nullptr != pTargetActorData); // missing user data
- switch (pActorData->eKind)
+ switch (pTargetActorData->eKind)
{
case PHYSX_KIND::BODY_STATIC:
assert(false);
@@ -96,7 +108,26 @@ void CCallBack_EffectHitBox_HitReport::onControllerHit(const PSX::PxControllersH
assert(false);
break;
case PHYSX_KIND::CCTActor:
- // Action
+ switch (pTargetActorData->iSubKind)
+ {
+ case ENUM_CLASS(PXOBJECT::GOBLIN_WARRIOR):
+
+ /* OnCollision 함수에 넘길 값 */
+ CollisionDesc.vWorldPos = XMVectorSet((_float)vWorldPos.x, (_float)vWorldPos.y, (_float)vWorldPos.z, 1.f);
+ memcpy(&CollisionDesc.vWorldNomal, &vWorldNormal, sizeof(_float3));
+ memcpy(&CollisionDesc.vHitDir, &vDir, sizeof(_float3));
+ CollisionDesc.fLength = fLength;
+
+ pOwnerActorData->pOwner->Get_Owner()->OnCollision(pTargetActorData->pOwner, &CollisionDesc);
+ pTargetActorData->pOwner->OnCollision(pOwnerActorData->pOwner, &CollisionDesc);
+ break;
+ default:
+ {
+ PSX::PxRigidDynamic* pDynamic = static_cast(pActor);
+ pDynamic->addForce(vDir * fLength * 100000.f, PSX::PxForceMode::eIMPULSE);
+ }
+ break;
+ }
break;
case PHYSX_KIND::OBSTACLEActor:
break;
diff --git a/Jusin154_Team3D/Client/Private/CallBack_Monster_HitReport.cpp b/Jusin154_Team3D/Client/Private/CallBack_Monster_HitReport.cpp
index 348ab72db..9cc701393 100644
--- a/Jusin154_Team3D/Client/Private/CallBack_Monster_HitReport.cpp
+++ b/Jusin154_Team3D/Client/Private/CallBack_Monster_HitReport.cpp
@@ -70,12 +70,16 @@ void CCallBack_Monster_HitReport::onControllerHit(const PSX::PxControllersHit& h
_float fLength = hit.length; // 시도한 move 길이
PSX::PxController* pOtherController = hit.other; // 다른 컨트롤러
+ PSX::PxActor* pActor = pOtherController->getActor();
+
+ ON_COLLISION_INFO CollisionDesc = {};
if (nullptr != pController && nullptr != pOtherController) {
- PhsXUserData* pActorData = static_cast(pOtherController->getActor()->userData);
- assert(nullptr != pActorData); // missing user data
+ PhsXUserData* pTargetActorData = static_cast(pActor->userData);
+ PhsXUserData* pOwnerActorData = static_cast(pController->getActor()->userData);
+ assert(nullptr != pTargetActorData); // missing user data
- switch (pActorData->eKind)
+ switch (pTargetActorData->eKind)
{
case PHYSX_KIND::BODY_STATIC:
assert(false);
@@ -84,7 +88,17 @@ void CCallBack_Monster_HitReport::onControllerHit(const PSX::PxControllersHit& h
assert(false);
break;
case PHYSX_KIND::CCTActor:
- // Action
+ switch (pTargetActorData->iSubKind)
+ {
+ case ENUM_CLASS(PXOBJECT::SKILL_NORMALJAP):
+ break;
+ default:
+ {
+ PSX::PxRigidDynamic* pDynamic = static_cast(pActor);
+ pDynamic->addForce(vDir * fLength * 100000.f, PSX::PxForceMode::eIMPULSE);
+ }
+ break;
+ }
break;
case PHYSX_KIND::OBSTACLEActor:
break;
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
index f32d2487b..447eca4d8 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
@@ -88,10 +88,10 @@ void CCamPosition_Shoulder::Priority_Update(_float fTimeDelta)
void CCamPosition_Shoulder::Update(_float fTimeDelta)
{
-
GUI::DragFloat3("Camera Shoulder Position",(_float*)&m_vShoulderPosRatio,0.01f);
GUI::DragFloat("Camera Shoulder Length",&m_fCameraFocalLength, 0.01f);
- if (m_pGameInstance->Key_Up(DIK_O)) {
+ if (m_pGameInstance->Key_Up(DIK_INSERT)) {
+
m_pBinded_Camera->Toggle_Priority();
}
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER))) {
diff --git a/Jusin154_Team3D/Client/Private/Decendo.cpp b/Jusin154_Team3D/Client/Private/Decendo.cpp
index 0f2d27a51..845818acd 100644
--- a/Jusin154_Team3D/Client/Private/Decendo.cpp
+++ b/Jusin154_Team3D/Client/Private/Decendo.cpp
@@ -26,17 +26,14 @@ HRESULT CDecendo::Initialize_Prototype()
HRESULT CDecendo::Initialize(void* pArg)
{
- if (FAILED(__super::Initialize(pArg))) {
+ if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
- }
- if (FAILED(Ready_Components(pArg))) {
+ if (FAILED(Ready_Components(pArg)))
return E_FAIL;
- }
- if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Decendo"))) {
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Decendo")))
return E_FAIL;
- }
m_wstrEffectName = L"Decendo";
@@ -65,20 +62,19 @@ void CDecendo::Priority_Update(_float fTimeDelta)
void CDecendo::Update(_float fTimeDelta)
{
- if (m_bVisible == false){
+ if (m_bVisible == false)
return;
- }
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
- m_pProjectile_Blur->Get_Component()->Translation(m_vOwnerLook * 0.5f);
- m_pProjectile->Get_Component()->Translation(m_vOwnerLook * 0.5f);
+ m_pProjectile_Blur->Get_Component()->Translation(m_vCameraLook * 0.5f);
+ m_pProjectile->Get_Component()->Translation(m_vCameraLook * 0.5f);
if (nullptr != m_pPhysHitBox) {
- m_pPhysHitBox->Get_Component()->AccumulateMomentum(m_vOwnerLook * 0.5f);
+ m_pPhysHitBox->Get_Component()->AccumulateMomentum(m_vCameraLook * 0.5f);
}
@@ -107,17 +103,15 @@ void CDecendo::Late_Update(_float fTimeDelta)
HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
{
- if (pObject == nullptr) {
+ if (pObject == nullptr)
return E_FAIL;
- }
/* 부모 할당 */
m_pOwner = pObject;
/* 피직스 생성*/
- if (FAILED(Ready_Child())) {
+ if (FAILED(Ready_Child()))
return E_FAIL;
- }
/* 초기 셋팅 초기화 */
Reset_EffectParts();
@@ -144,11 +138,11 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
//나아가는 벡터와 한점을 가져와 수직인 평면상에 하나의 점으로 DIR 을 만듬
- m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK));
+ m_vCameraLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK));
_vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
- _vector vQuaternion = XMQuaternionRotationAxis(m_vOwnerLook, m_pGameInstance->Random_Float(0.f, XM_PIDIV2));
+ _vector vQuaternion = XMQuaternionRotationAxis(m_vCameraLook, m_pGameInstance->Random_Float(0.f, XM_PIDIV2));
m_vRotateUp = XMVector3Rotate(vUp, vQuaternion);
m_vRotateUp = XMVector3Normalize(m_vRotateUp);
@@ -177,7 +171,6 @@ HRESULT CDecendo::Ready_Child()
Desc.vRotRPY = { 0.f, 0.f, 0.f };
-
Desc.iSubKind = 70;
Desc.vDeltaPos = _float3(0.f, 0.f, 0.f);
Desc.vLifeTime = { 0.f, 1.f };
@@ -256,9 +249,8 @@ void CDecendo::Free()
{
__super::Free();
- if (m_pPhysHitBox != nullptr){
+ if (m_pPhysHitBox != nullptr)
SAFE_RELEASE(m_pPhysHitBox);
- }
SAFE_RELEASE(m_pProjectile_Blur);
SAFE_RELEASE(m_pProjectile);
@@ -267,20 +259,9 @@ void CDecendo::Free()
#ifdef _DEBUG
void CDecendo::Describe_Entity()
{
- GUI::Begin("VALUE");
- _float4 vValue = {};
-
- if (GUI::InputFloat("TurnValue", (_float*)&m_fTurnValue))
- {
- }
-
- GUI::End();
}
-
-#endif // _DEBUG
-
-
+#endif
HRESULT CDecendo::Bind_ShaderResources()
{
return S_OK;
diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp
index ee704f414..acbcde1d7 100644
--- a/Jusin154_Team3D/Client/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp
@@ -74,7 +74,7 @@ HRESULT CEffectObject::Render_Blur()
SHADER_PASS_INSTANCE_MODEL BlurPass = {};
- if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD)
+ if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::BLEND_NOWORLD)
{
BlurPass = SHADER_PASS_INSTANCE_MODEL::NON_WORLD_BLUR;
}
@@ -131,10 +131,21 @@ HRESULT CEffectObject::Render_Bloom()
return E_FAIL;
}
+ SHADER_PASS_INSTANCE_MODEL BloomPass = {};
+
+ if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::BLEND_NOWORLD)
+ {
+ BloomPass = SHADER_PASS_INSTANCE_MODEL::BLOOM_NOWORLD;
+ }
+ else
+ {
+ BloomPass = SHADER_PASS_INSTANCE_MODEL::BLOOM;
+ }
+
for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++)
{
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_INSTANCE_MODEL::BLOOM)))) {
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(BloomPass)))) {
return E_FAIL;
}
@@ -160,8 +171,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
SAFE_RELEASE(m_pInstance_ModelCom);
- if (m_pLightCom != nullptr)
+ if (m_pLightCom != nullptr){
SAFE_RELEASE(m_pLightCom);
+ }
_string strPerfectFilePath = pFilePath;
@@ -556,7 +568,7 @@ HRESULT CEffectObject::Bind_ShaderResources()
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseDistortionUVGainAmount", &m_EffectInfo.vDiffuseDistortionUVGainAmount, sizeof(_float2)))) {
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vDistortionTime", &m_EffectInfo.vDistortionTime, sizeof(_float2)))) {
return E_FAIL;
}
@@ -677,6 +689,9 @@ HRESULT CEffectObject::Bind_ShaderResources()
+ return S_OK;
+
+
return S_OK;
}
@@ -730,8 +745,9 @@ void CEffectObject::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pInstance_ModelCom);
- if (m_pLightCom != nullptr)
+ if (m_pLightCom != nullptr){
SAFE_RELEASE(m_pLightCom);
+ }
}
diff --git a/Jusin154_Team3D/Client/Private/EffectParts.cpp b/Jusin154_Team3D/Client/Private/EffectParts.cpp
index 7baa44447..af3fd16e0 100644
--- a/Jusin154_Team3D/Client/Private/EffectParts.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectParts.cpp
@@ -47,10 +47,6 @@ void CEffectParts::Update(_float fTimeDelta)
if (m_pInstance_ModelCom == nullptr)
return;
- m_pInstance_ModelCom->Drop(fTimeDelta);
-
- if (m_EffectInfo.isBillboard)
- m_pGameInstance->BillBoard(m_pTransformCom);
}
@@ -58,12 +54,17 @@ void CEffectParts::Update(_float fTimeDelta)
void CEffectParts::Late_Update(_float fTimeDelta)
{
+
if (m_bVisible == false)
return;
if (m_pInstance_ModelCom == nullptr)
return;
+
+ m_pInstance_ModelCom->Drop(fTimeDelta);
+
+
if (m_EffectInfo.isBillboard)
m_pGameInstance->BillBoard(m_pTransformCom);
@@ -73,6 +74,7 @@ void CEffectParts::Late_Update(_float fTimeDelta)
m_pGameInstance->Add_RenderGroup(RENDER::BLOOM, this);
}
+
if (m_EffectInfo.isBlur == true)
{
m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this);
@@ -83,6 +85,7 @@ void CEffectParts::Late_Update(_float fTimeDelta)
m_pGameInstance->Add_RenderGroup(m_EffectInfo.eRenderOrder, this);
+
}
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 3387868f1..777012efe 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -8,6 +8,7 @@
#include "NomalJap.h"
#include "Decendo.h"
#include "Protego.h"
+#include "Revelio.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -47,6 +48,7 @@ void CEffectPool::Priority_Update(_float fTimeDelta)
{
//SAFE_RELEASE(*iter);
//iter = m_ActiveEffectList.erase(iter);
+ ++iter;
}
else
{
@@ -64,6 +66,7 @@ void CEffectPool::Update(_float fTimeDelta)
{
//SAFE_RELEASE(*iter);
//iter = m_ActiveEffectList.erase(iter);
+ ++iter;
}
else
{
@@ -121,7 +124,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::BOMBARD, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
CBombard* pEffect = nullptr;
@@ -148,6 +151,14 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
+ if (FAILED(Create_Effect(SKILL_TYPE::REVELIO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
+
+ CRevelio* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
return S_OK;
diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
index 47e284b23..a21c80590 100644
--- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
@@ -127,7 +127,7 @@ HRESULT CEffect_Container::Ready_Components(void* pArg)
TransformDesc.fRadius = 20.f;
TransformDesc.fRotationPerSec = 10.f;
TransformDesc.fSpeedPerSec = 10.f;
-
+
if (FAILED(__super::Ready_Components(&TransformDesc))) {
return E_FAIL;
}
@@ -146,8 +146,9 @@ HRESULT CEffect_Container::Reset_EffectParts()
{
CInstance_Model* pInstanceModel = iter.second->Get_Component();
- if (pInstanceModel == nullptr)
+ if (pInstanceModel == nullptr){
continue;
+ }
pInstanceModel->Instane_Buffer_ReStruct();
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp
index 2c0cb6115..6b90c0b24 100644
--- a/Jusin154_Team3D/Client/Private/Goblin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin.cpp
@@ -71,14 +71,36 @@ void CGoblin::Update(_float fTimeDelta)
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
- m_pCharacter_Controller->Move(fTimeDelta);
-
+ GUI::Text("%d", m_pCharacter_Controller->IsActive());
+ GUI::Text("%f %f", m_vStunTimer.x, m_vStunTimer.y);
+ if (true == m_pCharacter_Controller->IsActive()) {
+ m_pCharacter_Controller->Move(fTimeDelta);
+ m_vStunTimer.x = 0.f;
+ }
+ else {
+ if (0.f == m_vStunTimer.x) {
+ PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
+ PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
+ m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
+ //m_pCharacter_Controller->Move(fTimeDelta);
+ }
+ m_vStunTimer.x += fTimeDelta;
+ m_pTransformCom->Set_WorldMatrix(m_pRigidBody->Get_Actor()->getGlobalPose());
+ if (m_vStunTimer.y < m_vStunTimer.x) {
+ m_pRigidBody->ConvertToCCT(*m_pCharacter_Controller);
+ }
+ }
}
void CGoblin::Late_Update(_float fTimeDelta)
{
__super::Late_Update(fTimeDelta);
- m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
+ if (true == m_pCharacter_Controller->IsActive()) {
+ m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
+ }
+ else {
+ m_pTransformCom->Set_WorldMatrix(m_pRigidBody->Get_Actor()->getGlobalPose());
+ }
m_pTransformCom->LookAt(XMLoadFloat4(&m_vTargetPos));
@@ -120,13 +142,38 @@ HRESULT CGoblin::Render()
}
#ifdef _DEBUG
- m_pCharacter_Controller->Render();
- //m_pRigidBody->Render();
+ if (true == m_pCharacter_Controller->IsActive()) {
+ if (FAILED(m_pCharacter_Controller->Render())) {
+ return E_FAIL;
+ }
+ }
+ else {
+ if (FAILED(m_pRigidBody->Render())) {
+ return E_FAIL;
+ }
+ }
#endif
return S_OK;
}
+void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+ _vector vWorldPos = {}; // 접촉지점
+ _vector vWorldNomal = {}; // 접촉노말
+ _vector vHitDir = {}; // 시도한 move 방향
+ _float fLength = {}; // 작용된 힘
+
+ m_pCharacter_Controller->ConvertToDO(*m_pRigidBody);
+ m_pRigidBody->Add_Force(vHitDir * fLength * 100.f, PSX::PxForceMode::eIMPULSE);
+
+}
+
+void CGoblin::OnHit(CGameObject* pOther, CGameObject* pCaller)
+{
+}
+
HRESULT CGoblin::Ready_Components()
{
CTransform::TRANSFORM_DESC Desc = {};
@@ -155,8 +202,8 @@ HRESULT CGoblin::Ready_Components()
Desc.fMaterial = { 0.5f, 0.5f, 0.6f };
Desc.bAutoStepping = { false };
Desc.fStepOffset = { 0.05f };
- Desc.fRadius = 0.5f;
- Desc.fHeight = 1.0f;
+ Desc.fRadius = 0.6f;
+ Desc.fHeight = 0.7f;
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Monster_HitReport::Create();
Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_Monster_Behavior::Create();
Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY;
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index 5e955fb4d..ae68827d5 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -63,9 +63,12 @@ HRESULT CInfoInstance::Deregist_ActiveMonster(CMonster* pUnit)
return m_pMonsterInfo->Deregist_ActiveMonster(pUnit);
}
-CMonster* CInfoInstance::Get_LockOnMonster()
+CUnit* CInfoInstance::Get_LockOnUnit()
{
- return m_pMonsterInfo->Get_LockOnMonster();
+ CUnit* pUnit = { nullptr };
+ pUnit = m_pMonsterInfo->Get_LockOnUnit();
+ // pUnit = m_pInfo->Get_LockOnUnit();
+ return pUnit;
}
pair CInfoInstance::Get_NearestPlayerAlly(_fvector vPos)
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index fc65df560..1e30d6175 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -63,9 +63,11 @@ HRESULT CLevel_GamePlay::Initialize()
void CLevel_GamePlay::Update(_float fTimeDelta)
{
- if (m_pGameInstance->Key_Up(DIK_ADD))
- {
- m_pGameInstance->Set_LevelToChange();
+ if (m_pGameInstance->Key_Pressing(DIK_0)) {
+ if (m_pGameInstance->Key_Up(DIK_1))
+ {
+ m_pGameInstance->Set_LevelToChange();
+ }
}
m_pInfoInstance->Update(fTimeDelta);
@@ -132,7 +134,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
HRESULT CLevel_GamePlay::Ready_Layer_UI(const _wstring& strLayerTag)
{
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_UI))) {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, g_iStaticLevel, LAYER_UI))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 1266932d8..a9cbd7905 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -58,12 +58,15 @@
#include "Decendo.h"
#include "NomalJap.h"
#include "Protego.h"
+#include "Revelio.h"
#include "TrailObject.h"
#include "Instance_Model.h"
#include "Trail.h"
#include "EffectPool.h"
+
+
#pragma endregion
#pragma region MAP
@@ -263,21 +266,6 @@ HRESULT CLoader::Loading_For_GamePlay()
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
- CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
- return E_FAIL;
- }
-
- return S_OK;
-
- });
- Asset_FileLoad("../Bin/Resources/Textures/HUD", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
- {
-
- _string strFilePath = pFilePath;
- _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
-
-
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
return E_FAIL;
@@ -544,8 +532,8 @@ HRESULT CLoader::Loading_For_GamePlay()
Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
Desc.vMatInfo = { 0.5f, 0.5f, 0.6f };
Desc.fContactOffset = { 0.05f };
- Desc.vhalfGeometryInfo = { 2.5f, 4.5f, 3.5f };
- Desc.fDensity = 10.f;
+ Desc.vhalfGeometryInfo = { 1.f, 1.f, 1.f };
+ Desc.fDensity = 1.f;
Desc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
Desc.eLockFlag = {};
Desc.vAutoDamping = { 100.f, 100.f };
@@ -574,8 +562,7 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Wand_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity()))))
-
+ CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"),
@@ -621,6 +608,10 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRevelio::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Client/Private/Magic_Icon.cpp b/Jusin154_Team3D/Client/Private/Magic_Icon.cpp
index 5128a6f15..b06a7c3d6 100644
--- a/Jusin154_Team3D/Client/Private/Magic_Icon.cpp
+++ b/Jusin154_Team3D/Client/Private/Magic_Icon.cpp
@@ -117,7 +117,7 @@ HRESULT CMagic_Icon::Render()
_vector CMagic_Icon::Get_WorldPostion()
{
- return m_pOwner->Get_WorldPostion();
+ return m_pTransformCom->Get_State(STATE::POSITION);
}
HRESULT CMagic_Icon::Bind_ShaderResources()
diff --git a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp
index e3339ea97..9b674760d 100644
--- a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp
@@ -77,7 +77,7 @@ HRESULT CMonsterInfo::Deregist_ActiveMonster(CMonster* pUnit)
return E_FAIL;
}
-CMonster* CMonsterInfo::Get_LockOnMonster()
+CUnit* CMonsterInfo::Get_LockOnUnit()
{
return m_pLockOnMonster;
}
diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp
index 288e74f50..7b60c48a9 100644
--- a/Jusin154_Team3D/Client/Private/NomalJap.cpp
+++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp
@@ -1,6 +1,8 @@
#include "pch.h"
#include "NomalJap.h"
+#include "Unit.h"
+#include "InfoInstance.h"
#include "GameInstance.h"
#include "EffectParts.h"
#include "PhysXEffectHitBox.h"
@@ -13,7 +15,8 @@ CNomalJap::CNomalJap(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
}
CNomalJap::CNomalJap(const CNomalJap& rhs)
- : CEffect_Container(rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
{
}
@@ -47,8 +50,8 @@ HRESULT CNomalJap::Initialize(void* pArg)
SAFE_ADDREF(m_pProjectile);
SAFE_ADDREF(m_pProjectile_Side);
- m_fDuration = 5.f;
-
+ m_fDuration = 1.f;
+ assert(m_fDuration > 0.f);
return S_OK;
}
@@ -71,29 +74,61 @@ void CNomalJap::Update(_float fTimeDelta)
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
+ if (m_fAccTime > m_fDuration) {
+ SAFE_RELEASE(m_pTargetUnit);
+ }
- m_pProjectile_Side->Get_Component()->Translation(m_vOwnerLook * 1.2f);
- m_pProjectile->Get_Component()->Translation(m_vOwnerLook * 1.2f);
+ _vector vDirection = XMLoadFloat3(&m_vDirection);
+
+
+ // 선속도
+ m_pProjectile_Side->Get_Component()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
+ m_pProjectile->Get_Component()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
if (nullptr != m_pPhysHitBox) {
- m_pPhysHitBox->Get_Component()->AccumulateMomentum(m_vOwnerLook * 1.2f);
+ m_pPhysHitBox->Get_Component()->AccumulateMomentum(vDirection * m_fLinearSpeed * fTimeDelta);
}
+ if (false == m_bTrailPulseEnded && m_fAccTime > m_fDuration * 0.3f) {
+ m_bTrailPulseEnded = true;
- if (m_fAccTime > XM_2PI)
+ if (nullptr != m_pTargetUnit && false == m_pTargetUnit->isDead()) {
+ _vector vCurrentPos = m_pProjectile->Get_WorldPostion();
+ _vector vTargetPos = m_pTargetUnit->Get_WorldPostion();
+ XMStoreFloat4(&m_vTargetPos, vTargetPos);
+ XMStoreFloat3(&m_vDirection, XMVector4Normalize(vTargetPos - vCurrentPos));
+
+ _float fDistance = XMVectorGetX(XMVector3Length(vTargetPos - vCurrentPos));
+ m_fLinearSpeed = fDistance / (m_fDuration - m_fAccTime) * 10 / 3;
+ SAFE_RELEASE(m_pTargetUnit);
+ }
+
+ MoveHitBox(fTimeDelta);
return;
+ }
+ if (true == m_bTrailPulseEnded) {
+ MoveHitBox(fTimeDelta);
+ return;
+ }
+ _vector vRotateUp = XMLoadFloat3(&m_vRotateUp);
+ m_fAccTime += fTimeDelta;
- m_fAccTime += fTimeDelta * 15.f;
-
- m_pProjectile_Side->Get_Component()->Translation(m_vRotateUp * 0.6f * sinf(m_fAccTime));
- m_pProjectile->Get_Component()->Translation(m_vRotateUp * 0.6f * sinf(m_fAccTime));
-
+ // 각속도
+ m_pProjectile_Side->Get_Component()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime));
+ m_pProjectile->Get_Component()->Translation(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime));
if (nullptr != m_pPhysHitBox) {
- m_pPhysHitBox->Get_Component()->AccumulateMomentum(m_vRotateUp * 0.6f * sinf(m_fAccTime));
+ m_pPhysHitBox->Get_Component()->AccumulateMomentum(vRotateUp * 0.6f * sinf(m_fAngularSpeed * m_fAccTime));
+ MoveHitBox(fTimeDelta);
}
+}
+void CNomalJap::MoveHitBox(Engine::_float fTimeDelta)
+{
+ if (nullptr != m_pPhysHitBox) {
+ m_pPhysHitBox->Get_Component()->Move(fTimeDelta);
+ }
}
void CNomalJap::Late_Update(_float fTimeDelta)
@@ -124,11 +159,14 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject)
m_fAccTime = 0.f;
__super::m_fAccTime = 0.f;
m_fPreAccTime = 0.f;
+ m_bTrailPulseEnded = false;
/* 초기 객체 위치 초기화 */
- m_pProjectile->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- m_pProjectile_Side->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ _vector vStartPos = m_pOwner->Get_WorldPostion();
+ XMStoreFloat4(&m_vStartPos, vStartPos);
+ m_pProjectile->Get_Component()->Set_State(STATE::POSITION, vStartPos);
+ m_pProjectile_Side->Get_Component()->Set_State(STATE::POSITION, vStartPos);
/* 초기 객체 비지블 */
m_pProjectile->Set_Visible(true);
@@ -136,18 +174,38 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject)
/*트레일 초기화 */
Get_PartObject()->Set_Visible(true);
-
Get_PartObject()->Get_Component()->Reset_Trail();
//나아가는 벡터와 한점을 가져와 수직인 평면상에 하나의 점으로 DIR 을 만듬
- m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK));
+ pair<_float3, _float3> pairCameraLook = m_pInfoInstance->Get_CameraCoordinateSystem();
+ _vector vDirection = XMVector3Normalize(XMLoadFloat3(&pairCameraLook.first));
_vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
+ XMStoreFloat3(&m_vDirection, vDirection);
- _vector vQuaternion = XMQuaternionRotationAxis(m_vOwnerLook, m_pGameInstance->Random_Float(0.f, XM_PIDIV2));
+ _vector vQuaternion = XMQuaternionRotationAxis(vDirection, m_pGameInstance->Random_Float(0.f, XM_PIDIV2));
+
+ { /* 대상 위치 지정 */
+ SAFE_RELEASE(m_pTargetUnit);
+ m_pTargetUnit = m_pInfoInstance->Get_LockOnUnit();
+ if (nullptr != m_pTargetUnit) {
+ SAFE_ADDREF(m_pTargetUnit); // 타겟이 있다면 타겟 위치로 지정
+ XMStoreFloat4(&m_vTargetPos, m_pTargetUnit->Get_WorldPostion());
+ }
+ else {
+ // 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정
+ XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_pTransformCom->Get_Speed() * m_fDuration);
+ }
+ }
+ { /* 대상 거리 계산 */
+ _float fDistance = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
+ m_fLinearSpeed = fDistance / m_fDuration;
- m_vRotateUp = XMVector3Rotate(vUp, vQuaternion);
+ // 전체 duration 의 0.3 지점에서 2π 회전하도록 각속도 설정
+ _float fTargetRatio = 0.3f;
+ m_fAngularSpeed = m_pGameInstance->Random_Float(2.f, 2.8f) * XM_2PI / (m_fDuration * fTargetRatio);
+ }
- m_vRotateUp = XMVector3Normalize(m_vRotateUp);
+ XMStoreFloat3(&m_vRotateUp, XMVector3Normalize(XMVector3Rotate(vUp, vQuaternion)));
m_bVisible = true;
@@ -226,6 +284,7 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc)
Get_PartObject("JapPT0")->Get_Component()->LookAt(m_pOwner->Get_WorldPostion());
+ SAFE_RELEASE(m_pTargetUnit);
m_pProjectile_Side->Set_Visible(false);
m_pProjectile->Set_Visible(false);
@@ -242,9 +301,11 @@ void CNomalJap::Free()
{
__super::Free();
- if (m_pPhysHitBox != nullptr)
+ if (m_pPhysHitBox != nullptr){
SAFE_RELEASE(m_pPhysHitBox);
+ }
+ SAFE_RELEASE(m_pTargetUnit);
Safe_Release(m_pProjectile);
Safe_Release(m_pProjectile_Side);
diff --git a/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
index 31c1175ce..2a2585bd8 100644
--- a/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
+++ b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
@@ -39,13 +39,12 @@ void CPhysXEffectHitBox::Priority_Update(_float fTimeDelta)
void CPhysXEffectHitBox::Update(_float fTimeDelta)
{
m_pTransformCom->AccumulateMomentum(XMLoadFloat3(&m_vDeltaPos));
-
}
void CPhysXEffectHitBox::Late_Update(_float fTimeDelta)
{
if (true == m_pCharacter_Controller->IsActive()) {
- m_pCharacter_Controller->Move(fTimeDelta);
+ m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position());
}
if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
@@ -78,6 +77,13 @@ HRESULT CPhysXEffectHitBox::Render()
return S_OK;
}
+void CPhysXEffectHitBox::Move(_float fTimeDelta)
+{
+ if (true == m_pCharacter_Controller->IsActive()) {
+ m_pCharacter_Controller->Move(fTimeDelta);
+ }
+}
+
HRESULT CPhysXEffectHitBox::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index d7726e40b..8a18b3c66 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -59,8 +59,11 @@ HRESULT CPlayer::Initialize(void* pArg)
Load_KeyFrame();
#endif // _DEBUG
+
m_pBroomModel = static_cast(pArg)->Get_Component();
+ SAFE_ADDREF(m_pBroomModel);
m_pBroomTransform = static_cast(pArg)->Get_Component();
+ SAFE_ADDREF(m_pBroomTransform);
Add_FSM();
@@ -115,8 +118,9 @@ void CPlayer::Update(_float fTimeDelta)
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
+ Play_Event();
- __super::Update(fTimeDelta);
+__super::Update(fTimeDelta);
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
@@ -136,7 +140,7 @@ void CPlayer::Late_Update(_float fTimeDelta)
__super::Late_Update(fTimeDelta);
if (nullptr != m_pLockOnMonster && false == m_pLockOnMonster->isDead()) {
- m_pLockOnMonster->Set_DrawOutLine();
+ static_cast(m_pLockOnMonster)->Set_DrawOutLine();
}
}
@@ -186,7 +190,7 @@ void CPlayer::Render_CameraCoordinateSystem()
const _float fArrowLength = 2.0f;
_vector xmvLook = XMVector4Normalize(XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f));
_float2 vLook = { XMVectorGetX(xmvLook), XMVectorGetZ(xmvLook) };
-
+ GUI::Begin("Player_CAM_COOORD");
GUI::Text("%d", m_pLockOnMonster);
GUI::Text("W : %.2f, %.2f, %.2f", m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z);
@@ -204,6 +208,7 @@ void CPlayer::Render_CameraCoordinateSystem()
GUI::Button("##6", { fButtonSize, fButtonSize }); GUI::SameLine();
GUI::Button(("S : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , -m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
GUI::Button("##8", { fButtonSize, fButtonSize });
+ GUI::End();
//W CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })
//A CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , - m_vCameraRightDir.z })
//S CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })
@@ -331,7 +336,7 @@ HRESULT CPlayer::Bind_ShaderResources()
}
void CPlayer::ReLockOnTarget()
{
- m_pLockOnMonster = m_pInfoInstance->Get_LockOnMonster();
+ m_pLockOnMonster = m_pInfoInstance->Get_LockOnUnit();
if (nullptr != m_pLockOnMonster) {
if (true == m_pLockOnMonster->isDead()) {
m_pLockOnMonster = nullptr;
@@ -342,19 +347,12 @@ void CPlayer::ReLockOnTarget()
void CPlayer::SetGravity()
{
PSX::PxControllerCollisionFlags eCollisionFlags = m_pCharacter_Controller->Get_CollisionFlags();
- eCollisionFlags;
- if ( false == eCollisionFlags.isSet(PSX::PxControllerCollisionFlag::Enum::eCOLLISION_DOWN)
- && false == eCollisionFlags.isSet(PSX::PxControllerCollisionFlag::Enum::eCOLLISION_SIDES)) {
- if (false == m_pFSM->IsEnable(STATEANIM::JUMP)) { // 벽에 닿지 않았는데 점프 중이 아닐 땐 중력 on
- m_pCharacter_Controller->SetGravity(true);
- }
- else { // 점프 중일 땐 off
- m_pCharacter_Controller->SetGravity(false);
- }
- }
- else { // 벽에 닿는중일 땐 항상 중력 off
+ if (true == m_pFSM->IsEnable(FSMSTATE::JUMP)){
m_pCharacter_Controller->SetGravity(false);
}
+ else { // 점프 중일 땐 off
+ m_pCharacter_Controller->SetGravity(true);
+ }
}
void CPlayer::Update_CameraCoordinateSystem()
@@ -386,6 +384,34 @@ _matrix CPlayer::Get_WandPos()
return BoneMatrix;
}
+void CPlayer::Play_Event()
+{
+ for (auto iter = m_PendingEvents.begin(); iter != m_PendingEvents.end(); )
+ {
+ _float ratio = m_pModelCom->Get_CurrentTrackProgressRatio();
+ _uint curAnim = m_pModelCom->Get_AnimIndex();
+
+ if (curAnim == iter->AnimIndex && ratio >= iter->fRatio)
+ {
+ iter->Callback();
+ iter = m_PendingEvents.erase(iter);
+ }
+ else
+ {
+ ++iter;
+ }
+ }
+}
+
+void CPlayer::Add_Event(_uint AnimIndex, function Callback, _float fRatio)
+{
+ PendingEvent Desc;
+ Desc.AnimIndex = AnimIndex;
+ Desc.fRatio = fRatio;
+ Desc.Callback = Callback;
+ m_PendingEvents.push_back(Desc);
+}
+
CPlayer* CPlayer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CPlayer* pInstance = new CPlayer(pDevice, pContext);
@@ -435,6 +461,8 @@ void CPlayer::Free()
SAFE_RELEASE(m_pCamPosition_TopDown_LookPart);
SAFE_RELEASE(m_pCamPosition_ShoulderPart);
SAFE_RELEASE(m_pEffectPool);
+ SAFE_RELEASE(m_pBroomModel);
+ SAFE_RELEASE(m_pBroomTransform);
}
#ifdef _DEBUG
@@ -471,6 +499,8 @@ void CPlayer::Describe_Entity()
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
GUI::Text(AnimList.c_str());
+ GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
+
GUI::Checkbox("Render", &m_bVisible);
GUI::Text("%d", m_iStateMask);
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index e5ec21054..4ba738dda 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -23,6 +23,7 @@
#include "EffectPool.h"
+
#pragma region States
void CPlayer::TestKeyInput(_float fTimeDelta)
@@ -51,7 +52,10 @@ void CPlayer::TestKeyInput(_float fTimeDelta)
{
m_eSpell = STATEANIM::DISILLUSION_EXIT;
}
-
+ if (m_pGameInstance->Key_Down(DIK_F7))
+ {
+ m_eSpell = STATEANIM::LUMOS;
+ }
}
HRESULT CPlayer::InputAction()
@@ -303,10 +307,8 @@ void CPlayer::Behavior_MoveEnter()
m_pFSM->Enable_State(FSMSTATE::JOG);
m_bSprintToggle = false;
m_bWalkToggle = false;
- if (SUCCEEDED(InputMove()))
- {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- }
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ m_bRatio = true;
}
}
else { // While Moving
@@ -328,6 +330,7 @@ void CPlayer::Behavior_MoveEnter()
m_bSprintToggle = false;
m_bWalkToggle = false;
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ m_bRatio = true;
}
}
@@ -430,14 +433,12 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
xmvInputDir = XMVector3Normalize(xmvInputDir);
_float2 vInputDir = { XMVectorGetX(xmvInputDir),XMVectorGetZ(xmvInputDir) };
- GUI::Text("%.1f, %.1f", vInputDir.x, vInputDir.y);
_vector xmvCurLook = XMVector4Normalize(
XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f));
_float2 vCurLook = { XMVectorGetX(xmvCurLook),XMVectorGetZ(xmvCurLook) };
_float vDir = CMyTools::Get_Direction2D(vCurLook, vInputDir);
_float absDir = fabsf(vDir);
-
_float cross = vCurLook.x * vInputDir.y - vCurLook.y * vInputDir.x;
_bool bSkipAngleCheck = { false };
@@ -452,7 +453,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
}
if (!bSkipAngleCheck) {
_float absDir = fabsf(vDir);
- if (absDir <= XMConvertToRadians(90.f)) {
+ if (absDir < XMConvertToRadians(80.f)) {
if (m_pFSM->IsEnable(FSMSTATE::JOG))
{
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
@@ -672,24 +673,29 @@ void CPlayer::Behavior_CombatEnter()
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::COMBAT);
+ if (m_pModelCom->Get_SecondAnimIndex() == m_Animation[STATEANIM::LUMOS].first)
+ {
+ m_pModelCom->Set_Second_AnimationIndex(-1, ENUM_CLASS(BLEND_BONE::SHOULDER_R));
+ m_eSpell = STATEANIM::END;
+ }
if (m_pGameInstance->Key_Down(DIK_R)) {
m_pFSM->Enable_State(FSMSTATE::SKILL);
pairAnimInfo = m_Animation[STATEANIM::SKILL];
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::REVELIO, this);
+
}
else if (m_pGameInstance->Key_Down(DIK_Q)) {
m_pFSM->Enable_State(FSMSTATE::SKILL2);
pairAnimInfo = m_Animation[STATEANIM::SKILL2];
-
- m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this);
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); },
+ 0.4f);
}
else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) {
m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK);
pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK];
- m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, this);
- /*m_pModelCom->Anim_Event(0.1f, m_Animation[STATEANIM::LIGHT_ATTACK].first, [this]() {
- m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, this);
- return E_FAIL;
- });*/
+ Add_Event(pairAnimInfo.first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject()); }, 0.1f);
}
else if (SUCCEEDED(InputSpell())) {
m_pFSM->Enable_State(FSMSTATE::SPELL);
@@ -700,6 +706,7 @@ void CPlayer::Behavior_CombatEnter()
case STATEANIM::DEPULSO:
pairAnimInfo = m_Animation[STATEANIM::DEPULSO];
m_eSpell = STATEANIM::END;
+
break;
case STATEANIM::DIFFINDO:
pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
@@ -713,6 +720,47 @@ void CPlayer::Behavior_CombatEnter()
pairAnimInfo = m_Animation[STATEANIM::DISILLUSION_EXIT];
m_eSpell = STATEANIM::END;
break;
+ case STATEANIM::LUMOS:
+ if (m_pModelCom->Get_SecondAnimIndex() != m_Animation[STATEANIM::LUMOS].first)
+ {
+ if (SUCCEEDED(InputMove()))
+ {
+ if (m_bSprintToggle) {
+ pairAnimInfo = m_Animation[STATEANIM::SPRINT];
+ }
+ else if (m_bWalkToggle) {
+ pairAnimInfo = m_Animation[STATEANIM::WALK_FWD];
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ }
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::IDLE];
+ }
+ m_pModelCom->Set_Second_AnimationIndex(m_Animation[STATEANIM::LUMOS].first, ENUM_CLASS(BLEND_BONE::SHOULDER_R), true);
+ }
+ else
+ {
+ if (SUCCEEDED(InputMove()))
+ {
+ if (m_bSprintToggle) {
+ pairAnimInfo = m_Animation[STATEANIM::SPRINT];
+ }
+ else if (m_bWalkToggle) {
+ pairAnimInfo = m_Animation[STATEANIM::WALK_FWD];
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ }
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::IDLE];
+ }
+ m_pModelCom->Set_Second_AnimationIndex(m_Animation[STATEANIM::LUMOS_STOP].first, ENUM_CLASS(BLEND_BONE::SHOULDER_R));
+ m_eSpell = STATEANIM::END;
+ }
+ break;
default:
pairAnimInfo = m_Animation[STATEANIM::SPELL];
break;
@@ -731,7 +779,21 @@ void CPlayer::Behavior_CombatEnter()
}
else if (m_pGameInstance->Key_Down(DIK_G)) {
m_pFSM->Enable_State(FSMSTATE::POTION);
- pairAnimInfo = m_Animation[STATEANIM::POTION];
+ if (SUCCEEDED(InputMove()))
+ {
+ if (m_bSprintToggle)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::SPRINT];
+ }
+ else if (m_bWalkToggle)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::WALK_FWD];
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ }
+ }
+ m_pModelCom->Set_Second_AnimationIndex(m_Animation[STATEANIM::POTION].first,ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L));
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
@@ -740,6 +802,7 @@ void CPlayer::Behavior_CombatEnter()
HRESULT CPlayer::Behavior_CombatExitCheck()
{
pair<_uint, _bool> pairAnimInfo;
+
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell())) {
if (m_pGameInstance->Key_Down(DIK_R))
{
@@ -761,9 +824,9 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK];
pairAnimInfo.first = iIndex + 1;
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
-
- m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, this);
-
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, this);},
+ 0.1f);
}
}
}
@@ -793,8 +856,22 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
}
else if (m_pGameInstance->Key_Down(DIK_G)) {
m_pFSM->Enable_State(FSMSTATE::POTION);
- pairAnimInfo = m_Animation[STATEANIM::POTION];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ if (SUCCEEDED(InputMove()))
+ {
+ if (m_bSprintToggle)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::SPRINT];
+ }
+ else if (m_bWalkToggle)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::WALK_FWD];
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ }
+ m_pModelCom->Set_Second_AnimationIndex(m_Animation[STATEANIM::POTION].first, ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L));
}
}
@@ -807,31 +884,24 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
case STATEANIM::ACCIO:
{
pairAnimInfo = m_Animation[STATEANIM::ACCIO];
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this);m_eSpell = STATEANIM::END; },
+ 0.25f);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
break;
case STATEANIM::DESCENDO:
+ {
pairAnimInfo = m_Animation[STATEANIM::DESCENDO];
-
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO, this);m_eSpell = STATEANIM::END; },
+ 0.1f);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ }
break;
default:
break;
}
-
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
-
- m_pModelCom->Anim_Event(0.f, m_Animation[STATEANIM::ACCIO].first, [this]() {
- m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARD, this);
-
- m_eSpell = STATEANIM::END;
- return E_FAIL;
- });
-
- m_pModelCom->Anim_Event(0.f, m_Animation[STATEANIM::DESCENDO].first, [this]() {
- m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO, this);
-
- m_eSpell = STATEANIM::END;
- return E_FAIL;
- });
}
}
@@ -850,8 +920,12 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
}
}
-
if (m_pModelCom->IsFinishedAnim()) {
+ if (SUCCEEDED(InputMove()))
+ {
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+ return E_FAIL;
+ }
m_pFSM->Change_State(FSMSTATE::IDLE);
return E_FAIL;
}
@@ -905,11 +979,10 @@ void CPlayer::Behavior_Broom_RideEnter()
HRESULT CPlayer::Behavior_Broom_RideExitCheck()
{
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
-
+ pair<_uint, _bool> pairAnimInfo;
if (iCurrAnimIndex == m_Animation[STATEANIM::BROOM_MOUNT].first)
{
if (m_pModelCom->IsFinishedAnim()) {
- pair<_uint, _bool> pairAnimInfo;
pairAnimInfo = m_Animation[STATEANIM::BROOM_MOUNT_END];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, true);
}
@@ -920,19 +993,35 @@ HRESULT CPlayer::Behavior_Broom_RideExitCheck()
return E_FAIL;
}*/
- if (SUCCEEDED(InputMove()))
+
+ if (m_pGameInstance->Key_Pressing(DIK_W))
{
- pair<_uint, _bool> pairAnimInfo;
- pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_HOVER_IDLE);
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_FWD);
+ }
+ else if (m_pGameInstance->Key_Pressing(DIK_A))
+ {
+ pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_LEFT);
+ }
+ else if (m_pGameInstance->Key_Pressing(DIK_D))
+ {
+ pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_RIGHT);
+ }
+ else if (m_pGameInstance->Key_Pressing(DIK_LCONTROL))
+ {
+ pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_DOWN);
+ }
+ else if (m_pGameInstance->Key_Pressing(DIK_SPACE))
+ {
+ pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_UP);
}
else
{
- pair<_uint, _bool> pairAnimInfo;
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_HOVER_IDLE);
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+
+
if (m_pGameInstance->Key_Down(DIK_N)) {
m_pFSM->Change_State(FSMSTATE::IDLE);
return E_FAIL;
@@ -969,6 +1058,8 @@ void CPlayer::Player_InterpTurn(_float fTimeDelta)
_float degree = XMConvertToDegrees(angle);
+ GUI::Text("Degree: %.3f", degree);
+
_vector xmvInput = XMVectorZero();
if (m_pGameInstance->Key_Pressing(DIK_W))
@@ -991,8 +1082,12 @@ void CPlayer::Player_InterpTurn(_float fTimeDelta)
_float angleDiff = degree - targetAngle;
- if (angleDiff > 180.f) angleDiff -= 360.f;
- if (angleDiff < -180.f) angleDiff += 360.f;
+ if (angleDiff > 180.f) {
+ angleDiff -= 360.f;
+ }
+ if (angleDiff < -180.f) {
+ angleDiff += 360.f;
+ }
_float Offset = 2.f;
@@ -1019,8 +1114,12 @@ void CPlayer::Add_FSM()
{
if (SUCCEEDED(InputAim()))
{
- _float3 fMove = m_pGameInstance->Get_MouseMove();
- m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.x * 0.05f);
+ if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON))
+ {
+ _float3 fMove = m_pGameInstance->Get_MouseMove();
+ m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.x * 0.03f);
+ }
+
}
}
};
@@ -1096,33 +1195,50 @@ void CPlayer::Add_FSM()
#pragma region Behavior_Broom_Ride
{
+
CState_Broom_Ride::STATE_BROOM_RIDE_DESC Desc{};
Desc.pOwner = this;
Desc.funcEnterEvent = [this]() { Behavior_Broom_RideEnter(); };
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_RideExitCheck(); };
Desc.funcExitEvent = [this]() { Behavior_Broom_RideExit(); };
Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
if (m_pGameInstance->Key_Pressing(DIK_W))
{
_float3 fMove = m_pGameInstance->Get_MouseMove();
- m_pBroomTransform->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.x * 0.03f);
+ m_pBroomTransform->Turn(m_pBroomTransform->Get_State(STATE::UP), fTimeDelta * fMove.x * 0.03f);
}
_matrix BroomWorld = XMLoadFloat4x4(m_pBroomTransform->Get_WorldMatrixPtr());
_matrix BoneLocal = XMLoadFloat4x4(m_pBroomModel->Get_BoneMatrixPtr("broomSocket"));
- XMVECTOR Scale, Rot, Trans;
+ _vector Scale, Rot, Trans;
+
XMMatrixDecompose(&Scale, &Rot, &Trans, BoneLocal);
_matrix BoneNoScale = XMMatrixRotationQuaternion(Rot) * XMMatrixTranslationFromVector(Trans);
- static _float3 OffsetPos = { 0.f, 0.f, 0.f };
- GUI::DragFloat3("BroomOffset", (_float*)&OffsetPos, 0.01f);
- _matrix Offset = XMMatrixTranslation(OffsetPos.x,
- OffsetPos.y, OffsetPos.z);
+
+ if (iCurrAnimIndex == m_Animation[STATEANIM::BROOM_FWD].first)
+ {
+ m_OffsetPos = { 0.f, 1.05f, 0.f };
+ }
+ else
+ {
+ m_OffsetPos = { 0.f, 1.18f, 0.f };
+ }
+
+ GUI::DragFloat3("BroomOffset", (_float*)&m_OffsetPos, 0.01f);
+ _matrix Offset = XMMatrixTranslation(m_OffsetPos.x,
+ m_OffsetPos.y, m_OffsetPos.z);
_matrix SocketWorld = BoneNoScale * Offset* BroomWorld;
-
- m_pTransformCom->Set_WorldMatrix(SocketWorld);
- m_pCharacter_Controller->Set_Position(SocketWorld.r[3]);
+
+ _matrix FixRot = XMMatrixRotationY(XMConvertToRadians(180.f));
+
+ _matrix FinalWorld = FixRot * SocketWorld;
+
+ m_pTransformCom->Set_WorldMatrix(FinalWorld);
+ m_pCharacter_Controller->Set_Position(FinalWorld.r[3]);
+
};
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::BROOM_RIDE, CState_Broom_Ride::Create(&Desc));
@@ -1173,12 +1289,13 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::LIGHT_ATTACK] = { 413,false };
m_Animation[STATEANIM::SPELL] = { 772,false };
m_Animation[STATEANIM::MAPHELP] = { 122,false };
- m_Animation[STATEANIM::POTION] = { 114,false };
+ m_Animation[STATEANIM::POTION] = { 114,false }; // 114 포션 // 909 루모스
m_Animation[STATEANIM::ACCIO] = { 417,false };
m_Animation[STATEANIM::DESCENDO] = { 857,false };
m_Animation[STATEANIM::DEPULSO] = { 858,false };
m_Animation[STATEANIM::DIFFINDO] = { 862,false };
- m_Animation[STATEANIM::LUMOS] = { 851,false };
+ m_Animation[STATEANIM::LUMOS] = { 909,true };
+ m_Animation[STATEANIM::LUMOS_STOP] = { 912,false };
m_Animation[STATEANIM::DISILLUSION_ENTER] = { 585,false };
m_Animation[STATEANIM::DISILLUSION_EXIT] = { 586,false };
m_Animation[STATEANIM::ANCIENT_THROW] = { 919,false };
@@ -1187,8 +1304,12 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::HIT_L] = { 1124,false };
m_Animation[STATEANIM::HIT_R] = { 1125,false };
- m_Animation[STATEANIM::BROOM_IDLE] = { 679,true };
- m_Animation[STATEANIM::BROOM_FWD] = { 680,true };
+ m_Animation[STATEANIM::BROOM_IDLE] = { 710,true };
+ m_Animation[STATEANIM::BROOM_FWD] = { 711,true };
+ m_Animation[STATEANIM::BROOM_LEFT] = { 713,true };
+ m_Animation[STATEANIM::BROOM_RIGHT] = { 714,true };
+ m_Animation[STATEANIM::BROOM_DOWN] = { 712,true };
+ m_Animation[STATEANIM::BROOM_UP] = { 715,true };
m_Animation[STATEANIM::BROOM_MOUNT] = { 734,false };
m_Animation[STATEANIM::BROOM_MOUNT_END] = { 737,false };
@@ -1199,6 +1320,15 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::JOG_AIM_STOP_L] = { 295,false };
m_Animation[STATEANIM::JOG_AIM_STOP_R] = { 456,false };
m_Animation[STATEANIM::JOG_AIM_STOP_BWD] = { 444,false };
+
+ //루모스 스탑 912
+
+ //713 왼쪽 슬로우
+ //714 오른쪽
+ //712 아래
+ //715 위
}
+
+
#pragma endregion State
diff --git a/Jusin154_Team3D/Client/Private/Revelio.cpp b/Jusin154_Team3D/Client/Private/Revelio.cpp
new file mode 100644
index 000000000..fc17b10f2
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Revelio.cpp
@@ -0,0 +1,212 @@
+#include "pch.h"
+#include "Revelio.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Player.h"
+
+
+CRevelio::CRevelio(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRevelio::CRevelio(const CRevelio& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CRevelio::Initialize_Prototype()
+{
+
+ return S_OK;
+
+}
+
+HRESULT CRevelio::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Revelio")))
+ return E_FAIL;
+
+ m_pRevelioPT_Y = Get_PartObject("WandPT_Y");
+ m_pRevelioPT_B = Get_PartObject("WandPT_B");
+ m_pRevelioPT_R = Get_PartObject("WandPT_R");
+
+ SAFE_ADDREF(m_pRevelioPT_Y);
+ SAFE_ADDREF(m_pRevelioPT_B);
+ SAFE_ADDREF(m_pRevelioPT_R);
+
+ m_wstrEffectName = L"Revelio";
+
+
+
+ m_fDuration = 3.f;
+
+ return S_OK;
+}
+
+void CRevelio::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CRevelio::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+ CPlayer* pPlayer = static_cast(m_pOwner);
+
+ if (pPlayer == nullptr)
+ return;
+
+ _matrix WandWorld = pPlayer->Get_WandPos();
+
+ /*_vector pPos = pPlayer->Get_WandPos().r[3];*/
+
+ m_pRevelioPT_Y->Get_Component()->Set_WorldMatrix(WandWorld);
+ m_pRevelioPT_R->Get_Component()->Set_WorldMatrix(WandWorld);
+ m_pRevelioPT_B->Get_Component()->Set_WorldMatrix(WandWorld);
+
+}
+
+void CRevelio::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRevelio::Pre_Setting(CGameObject* pObject)
+{
+ if (pObject == nullptr)
+ return E_FAIL;
+
+ m_pOwner = pObject;
+
+
+ Reset_EffectParts();
+
+ m_fAccTime = 0.f;
+ __super::m_fAccTime = 0.f;
+ m_fPreAccTime = 0.f;
+
+
+ CPlayer* pPlayer = static_cast(m_pOwner);
+
+ if (pPlayer == nullptr)
+ return E_FAIL;
+
+ _matrix WandWorld = pPlayer->Get_WandPos();
+
+ /*_vector pPos = pPlayer->Get_WandPos().r[3];*/
+
+ m_pRevelioPT_Y->Get_Component()->Set_WorldMatrix(WandWorld);
+ m_pRevelioPT_R->Get_Component()->Set_WorldMatrix(WandWorld);
+ m_pRevelioPT_B->Get_Component()->Set_WorldMatrix(WandWorld);
+
+ m_pRevelioPT_Y->Set_Visible(true);
+ m_pRevelioPT_R->Set_Visible(true);
+ m_pRevelioPT_B->Set_Visible(true);
+
+
+ Get_PartObject("Revelio_Ring")->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ Get_PartObject("Revelio_Ring")->Set_Visible(true);
+
+ m_bVisible = true;
+
+ return S_OK;
+}
+
+HRESULT CRevelio::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRevelio::Ready_Child()
+{
+ return S_OK;
+}
+
+CRevelio* CRevelio::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRevelio* pInstance = new CRevelio(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRevelio");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRevelio::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRevelio* pInstance = new CRevelio(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRevelio");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRevelio::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CRevelio::Free()
+{
+ __super::Free();
+
+ //if(m_pPhysHitBox != nullptr)
+ // if (m_pPhysHitBox->Get_Depth() == false)
+ // SAFE_RELEASE(m_pPhysHitBox);
+
+
+ SAFE_RELEASE(m_pRevelioPT_Y);
+ SAFE_RELEASE(m_pRevelioPT_B);
+ SAFE_RELEASE(m_pRevelioPT_R);
+
+}
+#ifdef _DEBUG
+
+void CRevelio::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CRevelio::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/Skill_Data.cpp b/Jusin154_Team3D/Client/Private/Skill_Data.cpp
new file mode 100644
index 000000000..bcb5590be
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Skill_Data.cpp
@@ -0,0 +1 @@
+#include "pch.h"
diff --git a/Jusin154_Team3D/Client/Private/Slot_Number.cpp b/Jusin154_Team3D/Client/Private/Slot_Number.cpp
index 675349f6b..0e7a0d043 100644
--- a/Jusin154_Team3D/Client/Private/Slot_Number.cpp
+++ b/Jusin154_Team3D/Client/Private/Slot_Number.cpp
@@ -211,17 +211,13 @@ HRESULT CSlot_Number::Ready_Components(void* pArg)
void CSlot_Number::UV()
{
- pUVDesc[0].fUVStart = Meter_Index(1);
- pUVDesc[0].fUVEnd = Compute_UVY(1);
- pUVDesc[1].fUVStart = Meter_Index(2);
- pUVDesc[1].fUVEnd = Compute_UVY(2);
- pUVDesc[2].fUVStart = Meter_Index(3);
- pUVDesc[2].fUVEnd = Compute_UVY(3);
- pUVDesc[3].fUVStart = Meter_Index(4);
- pUVDesc[3].fUVEnd = Compute_UVY(4);
+ pUVDesc[0].fUV = Meter_Index(1);
+ pUVDesc[1].fUV = Meter_Index(2);
+ pUVDesc[2].fUV = Meter_Index(3);
+ pUVDesc[3].fUV = Meter_Index(4);
}
-_float2 CSlot_Number::Meter_Index(_uint Number)
+_float4 CSlot_Number::Meter_Index(_uint Number)
{
m_fIamge_Size = { 320.f, 128.f };
@@ -234,29 +230,15 @@ _float2 CSlot_Number::Meter_Index(_uint Number)
_uint frameX = Number % iXCount;
_uint frameY = Number / iXCount;
- _float2 UVStart;
- UVStart.x = frameX * frameWidth / m_fIamge_Size.x;
- UVStart.y = frameY * frameHeight / m_fIamge_Size.y;
+ _float4 UV;
+ UV.x = frameX * frameWidth / m_fIamge_Size.x;
+ UV.y = frameY * frameHeight / m_fIamge_Size.y;
+ UV.z = UV.x + (frameWidth / m_fIamge_Size.x);
+ UV.w = UV.y + (frameHeight / m_fIamge_Size.y);
- return UVStart;
+ return UV;
}
-_float2 CSlot_Number::Compute_UVY(_uint Number)
-{
- m_fIamge_Size = { 320.f, 128.f };
-
- _float frameWidth = 64.f;
- _float frameHeight = 64.f;
-
- // Start 구함
- _float2 UVStart = Meter_Index(Number);
-
- _float2 UVEnd;
- UVEnd.x = UVStart.x + (frameWidth / m_fIamge_Size.x);
- UVEnd.y = UVStart.y + (frameHeight / m_fIamge_Size.y);
-
- return UVEnd;
-}
CSlot_Number* CSlot_Number::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
diff --git a/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp b/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp
index d7335caec..d86062901 100644
--- a/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp
@@ -44,10 +44,11 @@ HRESULT CSpell_Overlay::Initialize(void* pArg)
m_fAngle = XMConvertToRadians(-135.f);
m_fAlpha = 1.f;
m_fAlphaTime = 1.f;
+ m_vUVScale.x = 1.f;
m_vUVScale.y = 1.f;
m_fCoolTime = 5.f;
m_fSortZ = 0.01f;
- m_iSkillType = ENUM_CLASS(SKILLTYPE::CONTROL);
+ m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
Compute_UI(5);
m_bActive = true;
return S_OK;
@@ -55,7 +56,7 @@ HRESULT CSpell_Overlay::Initialize(void* pArg)
void CSpell_Overlay::Compute_UI(_uint SpellID)
{
- _float2 fImage_Size = { 1024.f, 1536.f };
+ _float2 fImage_Size = { 1024.f, 1536.f};
_uint iCountX = 4;
_uint iCountY = 6;
@@ -154,7 +155,7 @@ HRESULT CSpell_Overlay::Render()
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELLTYPE))))
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::TYPE))))
{
return E_FAIL;
}
@@ -201,6 +202,10 @@ HRESULT CSpell_Overlay::Bind_ShaderResources()
{
return E_FAIL;
}
+ if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0)))
+ {
+ return E_FAIL;
+ }
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
{
return E_FAIL;
@@ -221,7 +226,7 @@ HRESULT CSpell_Overlay::Bind_ShaderResources()
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSkillType, sizeof(_float))))
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType, sizeof(_int))))
{
return E_FAIL;
}
@@ -241,6 +246,10 @@ HRESULT CSpell_Overlay::Bind_ShaderResources()
{
return E_FAIL;
}
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaU", &m_vUVScale.x, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaV", &m_vUVScale.y, sizeof(_float))))
{
return E_FAIL;
@@ -274,6 +283,10 @@ HRESULT CSpell_Overlay::Ready_Components(void* pArg)
{
return E_FAIL;
}
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
{
return E_FAIL;
@@ -315,6 +328,7 @@ void CSpell_Overlay::Free()
SAFE_RELEASE(m_pDiffuse_TextureCom);
SAFE_RELEASE(m_pDiffuse_TextureCom1);
SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferCom);
}
diff --git a/Jusin154_Team3D/Client/Private/Spell_Slot.cpp b/Jusin154_Team3D/Client/Private/Spell_Slot.cpp
index cb57aa16d..6fed41de8 100644
--- a/Jusin154_Team3D/Client/Private/Spell_Slot.cpp
+++ b/Jusin154_Team3D/Client/Private/Spell_Slot.cpp
@@ -39,7 +39,7 @@ HRESULT CSpell_Slot::Initialize(void* pArg)
m_fAlpha = 1.f;
m_fTimeMult = 3.f;
- m_fAngle = XMConvertToRadians(45);
+ m_fAngle = XMConvertToRadians(-135);
m_fAlphaTime = 1.f;
m_fOffSetX = 101.f;
m_fOffSetY = 101.f;
@@ -47,7 +47,6 @@ HRESULT CSpell_Slot::Initialize(void* pArg)
m_pVIBufferCom->Set_Cloned(true);
m_pVIBufferCom->Set_Pos(380.f, -30.f, m_fOffSetX, m_fOffSetY, m_iCols);
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
- m_pVIBufferCom->Set_ImageUV();
m_bActive = true;
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Spell_UI.cpp b/Jusin154_Team3D/Client/Private/Spell_UI.cpp
index e2cde53dc..43c6c45ce 100644
--- a/Jusin154_Team3D/Client/Private/Spell_UI.cpp
+++ b/Jusin154_Team3D/Client/Private/Spell_UI.cpp
@@ -184,7 +184,7 @@ HRESULT CSpell_UI::Render()
_vector CSpell_UI::Get_WorldPostion()
{
- return m_pOwner->Get_WorldPostion();
+ return m_pTransformCom->Get_State(STATE::POSITION);
}
HRESULT CSpell_UI::Bind_ShaderResources()
diff --git a/Jusin154_Team3D/Client/Private/Terrain.cpp b/Jusin154_Team3D/Client/Private/Terrain.cpp
index 107408e01..0f835bd18 100644
--- a/Jusin154_Team3D/Client/Private/Terrain.cpp
+++ b/Jusin154_Team3D/Client/Private/Terrain.cpp
@@ -109,9 +109,11 @@ HRESULT CTerrain::Render()
}
}
#endif // _DEBUG
+#ifndef _DEBUG
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NORTEX::ENV_TERRAIN_ANISO)))) {
return E_FAIL;
}
+#endif // !_DEBUG
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
diff --git a/Jusin154_Team3D/Client/Private/TrailObject.cpp b/Jusin154_Team3D/Client/Private/TrailObject.cpp
index a19b1c26a..0c743a127 100644
--- a/Jusin154_Team3D/Client/Private/TrailObject.cpp
+++ b/Jusin154_Team3D/Client/Private/TrailObject.cpp
@@ -238,9 +238,12 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
return E_FAIL;
}
+ m_pTrailCom->ReStructVB(m_TrailInfo.iNumVertex);
+
CloseHandle(hFile);
return S_OK;
+
}
HRESULT CTrailObject::Render()
@@ -260,9 +263,10 @@ HRESULT CTrailObject::Render()
HRESULT CTrailObject::Render_Blur()
{
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL_BLUR))))
+ if (FAILED(Bind_ShaderResources()))
return E_FAIL;
+
if (FAILED(m_pShaderCom->Bind_RawValue("g_fBlurIntensity", &m_TrailInfo.fBlurIntensity, sizeof(_float)))) {
return E_FAIL;
}
@@ -271,9 +275,11 @@ HRESULT CTrailObject::Render_Blur()
return E_FAIL;
}
- if (FAILED(Bind_ShaderResources()))
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL_BLUR))))
return E_FAIL;
+
+
if (FAILED(m_pTrailCom->Render()))
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/Wand.cpp b/Jusin154_Team3D/Client/Private/Wand.cpp
index 6c41aa709..5b8c9f71c 100644
--- a/Jusin154_Team3D/Client/Private/Wand.cpp
+++ b/Jusin154_Team3D/Client/Private/Wand.cpp
@@ -25,12 +25,19 @@ HRESULT CWand::Initialize(void* pArg)
WAND_DESC* pDesc = static_cast (pArg);
m_pSocketMatrices = pDesc->pSocketMatrices;
- if (FAILED(__super::Initialize(pArg)))
+ if (FAILED(__super::Initialize(pArg))){
return E_FAIL;
+ }
- if (FAILED(Ready_Components()))
+ if (FAILED(Ready_Components())){
return E_FAIL;
+ }
+
+#ifdef _DEBUG
+ m_pGripShape = (GeometricPrimitive::CreateSphere(m_pContext, 0.1f, 10, false, false));
+ m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 0.1f, 10, false, false));
+#endif // _DEBUG
return S_OK;
}
@@ -42,11 +49,12 @@ void CWand::Priority_Update(_float fTimeDelta)
socketMatrix = XMLoadFloat4x4(m_pSocketMatrices);
for (int i = 0; i < 3; ++i) {
- socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]);
+ socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]);
}
m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr()));
-
+ XMStoreFloat4x4(&m_pWandTipMatrix, XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("Effect")) * m_pTransformCom->Get_XMWorldMatrix());
+
#ifdef _DEBUG
Describe_Entity();
@@ -55,6 +63,7 @@ void CWand::Priority_Update(_float fTimeDelta)
void CWand::Update(_float fTimeDelta)
{
+ m_pModelCom->Combined_BoneMatrix();
}
@@ -88,10 +97,19 @@ HRESULT CWand::Render()
return E_FAIL;
}
}
-
+#ifdef _DEBUG
+ m_pGripShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Green, nullptr, true);
+ m_pSubShape->Draw(XMLoadFloat4x4(&m_pWandTipMatrix), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Purple, nullptr, true);
+#endif // _DEBUG
+
return S_OK;
}
+_vector CWand::Get_WorldPostion()
+{
+ return XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[3][0]);
+}
+
HRESULT CWand::Ready_Components()
{
@@ -170,6 +188,27 @@ void CWand::Free()
void CWand::Describe_Entity()
{
+ _float4 vPos;
+ _float4 vTipWorldPos;
+
+ _float4 vTipRight;
+ _float4 vTipUp;
+ _float4 vTipLook;
+ _float4 vTipPos;
+ XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION));
+ XMStoreFloat4(&vTipWorldPos, Get_WorldPostion());
+
+ XMStoreFloat4(&vTipRight, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[0][0]));
+ XMStoreFloat4(&vTipUp, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[1][0]));
+ XMStoreFloat4(&vTipLook, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[2][0]));
+ XMStoreFloat4(&vTipPos, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[3][0]));
+
+ GUI::Text("vPos, %.2f, %.2f, %.2f, %.2f", vPos.x, vPos.y, vPos.z, vPos.w);
+ GUI::Text("vTipWorldPos, %.2f, %.2f, %.2f, %.2f", vTipWorldPos.x, vTipWorldPos.y, vTipWorldPos.z, vTipWorldPos.w);
+ GUI::Text("vTipRight, %.2f, %.2f, %.2f, %.2f", vTipRight.x, vTipRight.y, vTipRight.z, vTipRight.w);
+ GUI::Text("vTipUp, %.2f, %.2f, %.2f, %.2f", vTipUp.x, vTipUp.y, vTipUp.z, vTipUp.w);
+ GUI::Text("vTipLook, %.2f, %.2f, %.2f, %.2f", vTipLook.x, vTipLook.y, vTipLook.z, vTipLook.w);
+ GUI::Text("vTipPos, %.2f, %.2f, %.2f, %.2f", vTipPos.x, vTipPos.y, vTipPos.z, vTipPos.w);
}
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index 9dc3ae989..b711a541b 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -12,13 +12,20 @@ namespace Client
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, END };
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR, TRAIL_BLOOM, END };
- enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, ALPHA_BLEND, BLOOM, END };
- enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, SPELLTYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, END };
+ enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, END };
+ enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, END };
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, END };
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
- enum class SKILL_TYPE { JAP, BOMBARD, DESCENDO, PROTEGO, END };
+ enum class SKILL_TYPE {
+ ARESTO_MOMENTUM, GLACIUS, LEVIOSO, TRANSFORM, ASSIO,
+ DEPULSO, DESCENDO, FLIPENDO, CONFRINGO, DIFFINDO, EXPELLIARMUS,
+ BOMBARDA, INCENDIO, DISILLUSIONMENT, LUMOS, REPARO, WINGARDIUM_LEVIOSA,
+ CONJURING_SPELL, ALTERING_SPELL, EVANESCO, AVADA_KEDAVRA, CRUCIO, IMPERIO,
+ BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, JAP, REVELIO, PROTEGO, STUPEFY,
+ ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS, END
+ };
enum class BLOOM_TYPE { NONE, BASIC, MULTIPLY, END };
}
diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h
index fff89ab5c..c3c76619d 100644
--- a/Jusin154_Team3D/Client/Public/Client_Struct.h
+++ b/Jusin154_Team3D/Client/Public/Client_Struct.h
@@ -15,4 +15,16 @@ namespace Client
vector<_wstring> pRigidBodyTags;
vector LoadedRigidBody;
}FOLDER_LOAD;
+
+ typedef struct tagSpellInfo
+ {
+ _uint iSpell_ID{};
+ _wstring pSpell_Name;
+ _uint iSpell_Type{};
+ _uint iSpell_CoolTime{};
+ _uint iAnimNum{};
+ _wstring pSpellInfo;
+ _bool bSpell_Lock = false;
+ _bool bEquip_Spell = false;
+ }SPELLINFO;
};
diff --git a/Jusin154_Team3D/Client/Public/Decendo.h b/Jusin154_Team3D/Client/Public/Decendo.h
index 3454ccecc..e1bc2863a 100644
--- a/Jusin154_Team3D/Client/Public/Decendo.h
+++ b/Jusin154_Team3D/Client/Public/Decendo.h
@@ -40,7 +40,7 @@ class CDecendo final : public CEffect_Container
_float m_fAccTime = {};
_float m_fLerpAmount = {};
_float m_fTurnValue = {};
- _vector m_vOwnerLook = {};
+ _vector m_vCameraLook = {};
public:
static CDecendo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
diff --git a/Jusin154_Team3D/Client/Public/EffectObject.h b/Jusin154_Team3D/Client/Public/EffectObject.h
index adfb98373..b4c1e051d 100644
--- a/Jusin154_Team3D/Client/Public/EffectObject.h
+++ b/Jusin154_Team3D/Client/Public/EffectObject.h
@@ -24,7 +24,7 @@ class CEffectObject abstract : public CPartObject
_float2 vMaskingUVGainAmount = {};
_float2 vNoiseUVGainAmount = {};
- _float2 vDiffuseDistortionUVGainAmount = {};
+ _float2 vDistortionTime = {};
_float2 vMaskDistortionUVGainAmount = {};
_float2 vUVCutting = { 1.f ,1.f };
@@ -94,7 +94,6 @@ class CEffectObject abstract : public CPartObject
_float fBluringStrength = { 0.01f };
-
_bool isBloom = {};
_bool isBloomDissolve = {};
@@ -104,6 +103,7 @@ class CEffectObject abstract : public CPartObject
BLOOM_TYPE eBloomType = {};
+
}EFFECT_INFO;
diff --git a/Jusin154_Team3D/Client/Public/Goblin.h b/Jusin154_Team3D/Client/Public/Goblin.h
index 05a575185..a93d3b666 100644
--- a/Jusin154_Team3D/Client/Public/Goblin.h
+++ b/Jusin154_Team3D/Client/Public/Goblin.h
@@ -19,6 +19,9 @@ class CGoblin final : public CMonster
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
+ virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
+
private:
CCallBack_Monster_Behavior* m_pCallBack_Behavior = { nullptr };
@@ -26,6 +29,7 @@ class CGoblin final : public CMonster
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
+ _float2 m_vStunTimer = { 0.f, 4.f };
_uint iIndex;
private:
diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h
index 0f7adec6e..8832eb433 100644
--- a/Jusin154_Team3D/Client/Public/InfoInstance.h
+++ b/Jusin154_Team3D/Client/Public/InfoInstance.h
@@ -35,7 +35,7 @@ class CInfoInstance final : public CBase
HRESULT Regist_ActiveMonster(class CMonster* pUnit);
HRESULT Deregist_ActiveMonster(class CMonster* pUnit);
- class CMonster* Get_LockOnMonster();
+ class CUnit* Get_LockOnUnit();
pair Get_NearestPlayerAlly(_fvector vPos);
#pragma endregion
#pragma region MAP_INFO
diff --git a/Jusin154_Team3D/Client/Public/MonsterInfo.h b/Jusin154_Team3D/Client/Public/MonsterInfo.h
index e16801af6..b45493079 100644
--- a/Jusin154_Team3D/Client/Public/MonsterInfo.h
+++ b/Jusin154_Team3D/Client/Public/MonsterInfo.h
@@ -25,7 +25,7 @@ class CMonsterInfo final : public CBase
HRESULT Regist_ActiveMonster(class CMonster* pUnit);
HRESULT Deregist_ActiveMonster(class CMonster* pUnit);
- class CMonster* Get_LockOnMonster();
+ CUnit* Get_LockOnUnit();
pair Get_NearestPlayerAlly(_fvector vPos);
private:
diff --git a/Jusin154_Team3D/Client/Public/NomalJap.h b/Jusin154_Team3D/Client/Public/NomalJap.h
index 72ce0bae8..d0a3b9283 100644
--- a/Jusin154_Team3D/Client/Public/NomalJap.h
+++ b/Jusin154_Team3D/Client/Public/NomalJap.h
@@ -18,6 +18,7 @@ class CNomalJap final : public CEffect_Container
public:
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
+ void MoveHitBox(Engine::_float fTimeDelta);
virtual void Late_Update(_float fTimeDelta) override;
@@ -32,16 +33,24 @@ class CNomalJap final : public CEffect_Container
HRESULT Bind_ShaderResources() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
_wstring m_wstrEffectName = {};
class CPartObject* m_pProjectile = {};
class CPartObject* m_pProjectile_Side = {};
- _vector m_vRotateUp = {};
+ _float3 m_vRotateUp = {};
_float m_fAccTime = {};
_float m_fLerpAmount = {};
_float m_fTurnValue = {};
- _vector m_vOwnerLook = {};
+
+ CUnit* m_pTargetUnit = { nullptr }; // 발사될 당시 대상
+ _float3 m_vDirection = { 0.f, 0.f, 1.f };
+ _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치
+ _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치
+ _float m_fAngularSpeed = XM_2PI / 0.3f;
+ _float m_fLinearSpeed = 1.f;
+ _bool m_bTrailPulseEnded = false;
public:
static CNomalJap* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
diff --git a/Jusin154_Team3D/Client/Public/PhysXEffectHitBox.h b/Jusin154_Team3D/Client/Public/PhysXEffectHitBox.h
index 8b1f4ebd0..808e9e7d0 100644
--- a/Jusin154_Team3D/Client/Public/PhysXEffectHitBox.h
+++ b/Jusin154_Team3D/Client/Public/PhysXEffectHitBox.h
@@ -35,6 +35,7 @@ class CPhysXEffectHitBox final : public CGameObject
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
+ virtual void Move(_float fTimeDelta);
private:
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h
index f2b34928a..f0f7fdabd 100644
--- a/Jusin154_Team3D/Client/Public/Player.h
+++ b/Jusin154_Team3D/Client/Public/Player.h
@@ -7,6 +7,14 @@ NS_BEGIN(Client)
class CPlayer final : public CUnit
{
+public:
+ struct PendingEvent
+ {
+ _float fRatio = 0.f;
+ _uint AnimIndex = 0;
+ function Callback;
+ };
+
private:
CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CPlayer(const CPlayer& Prototype);
@@ -24,7 +32,7 @@ class CPlayer final : public CUnit
_matrix Get_WandPos();
private:
CInfoInstance* m_pInfoInstance = { nullptr };
- class CMonster* m_pLockOnMonster = { nullptr };
+ CUnit* m_pLockOnMonster = { nullptr };
_float m_fDirectionRadian = 0.f;
_bool m_bSprintToggle = { false };
@@ -33,7 +41,6 @@ class CPlayer final : public CUnit
_float3 m_vCameraLookDir = { 0.f, 0.f, 1.f, };
_float3 m_vCameraRightDir = { 1.f, 0.f, 0.f };
-
class CCamPosition_Socket* m_pCamPosition_TopDown_LookPart = { nullptr };
class CCamPosition_Arm* m_pCamPosition_TopDown_FollowPart = { nullptr };
class CCamPosition_Shoulder* m_pCamPosition_ShoulderPart = { nullptr };
@@ -83,6 +90,13 @@ class CPlayer final : public CUnit
virtual void Add_FSM();
virtual void Set_Anim();
+ void Play_Event();
+ void Add_Event(_uint AnimIndex, function Callback, _float fRatio = 0.f);
+
+ vector m_PendingEvents;
+
+
+ _float3 m_OffsetPos = {};
_float m_fAmount = { 1.f };
_float m_fInputTime = {};
_bool m_bRatio = { false };
diff --git a/Jusin154_Team3D/Client/Public/Revelio.h b/Jusin154_Team3D/Client/Public/Revelio.h
new file mode 100644
index 000000000..d8f8f2707
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Revelio.h
@@ -0,0 +1,49 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CRevelio final : public CEffect_Container
+{
+private:
+ CRevelio(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRevelio(const CRevelio& rhs);
+ virtual ~CRevelio() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+ class CPlayer* m_pPlayer = {};
+ class CEffectParts* m_pRevelioPT_Y = { nullptr };
+ class CEffectParts* m_pRevelioPT_B = { nullptr };
+ class CEffectParts* m_pRevelioPT_R = { nullptr };
+
+public:
+ static CRevelio* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Skill_Data.h b/Jusin154_Team3D/Client/Public/Skill_Data.h
new file mode 100644
index 000000000..1f8db1ae1
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Skill_Data.h
@@ -0,0 +1,5 @@
+#pragma once
+class CSkill_Data
+{
+};
+
diff --git a/Jusin154_Team3D/Client/Public/Slot_Number.h b/Jusin154_Team3D/Client/Public/Slot_Number.h
index 0d30e7301..7b4ad290b 100644
--- a/Jusin154_Team3D/Client/Public/Slot_Number.h
+++ b/Jusin154_Team3D/Client/Public/Slot_Number.h
@@ -33,8 +33,7 @@ class CSlot_Number final : public CElementObject
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
void UV();
- _float2 Meter_Index(_uint Numver);
- _float2 Compute_UVY(_uint Numver);
+ _float4 Meter_Index(_uint Numver);
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
diff --git a/Jusin154_Team3D/Client/Public/Spell_Overlay.h b/Jusin154_Team3D/Client/Public/Spell_Overlay.h
index ae3ce440e..2b889685c 100644
--- a/Jusin154_Team3D/Client/Public/Spell_Overlay.h
+++ b/Jusin154_Team3D/Client/Public/Spell_Overlay.h
@@ -39,6 +39,7 @@ class CSpell_Overlay final : public CElementObject
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/TrailObject.h b/Jusin154_Team3D/Client/Public/TrailObject.h
index c943dce5e..81982c0cd 100644
--- a/Jusin154_Team3D/Client/Public/TrailObject.h
+++ b/Jusin154_Team3D/Client/Public/TrailObject.h
@@ -67,6 +67,8 @@ class CTrailObject final : public CPartObject
BLOOM_TYPE eBloomType = {};
_float2 vBloomTime = {};
+ _int iNumVertex = {};
+
}TRAIL_INFO;
private:
CTrailObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/Wand.h b/Jusin154_Team3D/Client/Public/Wand.h
index fae9fb6e5..af48b0f61 100644
--- a/Jusin154_Team3D/Client/Public/Wand.h
+++ b/Jusin154_Team3D/Client/Public/Wand.h
@@ -24,6 +24,7 @@ class CWand final : public CPartObject
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
public:
private:
@@ -31,6 +32,13 @@ class CWand final : public CPartObject
CShader* m_pShaderCom = { nullptr };
CModel* m_pModelCom = { nullptr };
+ _float4x4 m_pWandTipMatrix = {};
+
+#ifdef _DEBUG
+ unique_ptr m_pGripShape = { nullptr };
+ unique_ptr m_pSubShape = { nullptr };
+#endif // _DEBUG
+
private:
HRESULT Ready_Components();
HRESULT Bind_ShaderResources();
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin
index b10f481a1..245479070 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:553a743d2dec286f4a8e60f16234ee60a649ba11db65ce57d0a581076f51d46b
+oid sha256:6d20b4f1e88798301e3cf0c99b841d1d29b6aa6001aa90196e5204470e7aff46
size 792
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_0.bin
index 323ba9e67..795379321 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_0.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_0.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a7fe1f3eb2344e68a1e04d5a12b47e4cd6b34e132a94975a7ec57ea06630f4ce
+oid sha256:b634351811718a4303a72b3467f33d655ef11852655a68d9254b9bd10a16a33d
size 794
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_1.bin
index 3e51743f6..c26a138e7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:70670ea59ce71ddd5f8ed30d2685f21faf4dcb2ad060c2fc6e51d232eb1f0be3
+oid sha256:6efb883040983da9842d0d63d33d0beb1ac52c723a3341d2339e433eea0cf1a1
size 794
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin
index 47b18c707..1c8ad4c1a 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3e717285622cd1a36fdc9434e8109aad9b83f11a753cf1cd811d836fe656ec2d
+oid sha256:955eef7ca633e7f2fdbc15fd7c9fa790597514261ee6251e9b223188db2a088c
size 786
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_3.bin
index 6cbcb4034..428236f32 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_3.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_3.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:71a50a5ab505d00b25c12abb86e883f2ef928bc2bc0fa43175aceb30d5b3d390
+oid sha256:60262a4c7b411a60a94f8d8ecb462c823392843a76b05cc45e60c2635f58dd1a
size 786
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Smoke.bin
index 22fab4b9b..befd7ad57 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Smoke.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Smoke.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c0f0445b81bf913674d0a1c930e5a41c2f79559c2e72e479abb40fe1091fa34b
-size 741
+oid sha256:eb72212ab3646a4c810c7e09a336ca47a6602bab438a008bcd06da9378b886cd
+size 752
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin
index 22cce70c5..836af987e 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4159ecd17d8841b5e4c65e68eeeb0ee1d6c5f8ea54f66197557fde5278cb7100
+oid sha256:833d0014fe0a82a96e996d9dc0cec076235b299b49d3900abc878cd1834c0449
size 790
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin
index 203a6608e..a69543fd8 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1337e4494de24daa6fe06b8f1199ea2dd79117d57f18a2c547bf20f106bc36bf
-size 743
+oid sha256:d3b8c8e33e690b492532fb02dab25682a7f88460c5667404fb3c59925498e529
+size 750
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail
index 01013bf3b..7351c6b10 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapPT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapPT0.bin
index 160a6ebab..bd668f84f 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapPT0.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapPT0.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:af517ebb169ff53865ede7d92fd067b9dcf957a065be6033e616feb32c11e94b
+oid sha256:5a10c067013027c37e167061cb20fc6695c280fb058fa12f200acf8c9013c059
size 751
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapTrail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapTrail.trail
index 65613e0ca..8b7c1bde9 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapTrail.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapTrail.trail differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin
new file mode 100644
index 000000000..09c99416b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b34c04715c99f1a0f19d85f2a7d13a17f4070c7ab3c472f5e5fe1fc89dd8a422
+size 753
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ1.bin
new file mode 100644
index 000000000..49f37bc02
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7210948fd6db0bb88816e6a8b12d65d80f652df9a08c3ad0619491498a2833b7
+size 753
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin
new file mode 100644
index 000000000..88df1c802
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5e336892c6c5d78c91c9ae24b4aea3c987be609861d57cfa0cdaabdc830e5778
+size 789
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin
new file mode 100644
index 000000000..1090c6917
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d6cfa5e6c66767b4919c915c6455f7d1765cd0ee7d59b1e7905d3616748f9003
+size 789
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail
new file mode 100644
index 000000000..ac9950a87
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin
new file mode 100644
index 000000000..c801ec930
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:82a42de5c4b3cb91698a6d430d7912b2c53820a21e4db6dccd6dd10bfa15ed5b
+size 792
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand1.bin
new file mode 100644
index 000000000..1b0d933ef
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:150e241cbe575d683f005d868389c7cdca26d1d3fd76dc4fe7a5688fec2c7230
+size 795
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin
new file mode 100644
index 000000000..cb42d5a41
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bd33f0220332dd3e3d1757bd84f9431c1b765231cd712ebf52a62fabf88b92ca
+size 767
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin
new file mode 100644
index 000000000..15d72f328
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:df3c185b85b6beb78e13d90806d8330b3249b1613edf96ace5be5e4135ddfcca
+size 250
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Revelio.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Revelio.bin
new file mode 100644
index 000000000..4c8852970
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Revelio.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:361c1b52fd37940363fcd6713e1d77401a655af5c27d3b9f4f47ea116cb5379d
+size 240
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Ring.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Ring.bin
new file mode 100644
index 000000000..517f86b0c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Ring.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cabd9577d7053ac437a4132bdffdb7b6d89606aa6f6ab38eebf04ecc94f27e44
+size 821
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_B.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_B.bin
new file mode 100644
index 000000000..30c3774c1
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_B.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e7a71800b39699fa672419fa5c43899cca1661fe54968afbab03e10df6bf5d71
+size 767
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_R.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_R.bin
new file mode 100644
index 000000000..acf55c7c4
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_R.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cbd63053318fdc5dfbc052728618c89bb398b8b0c6a8e83b6139e2f653f2f769
+size 767
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_Y.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_Y.bin
new file mode 100644
index 000000000..8f9738e55
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_Y.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6b9594eb0d4d3f79df97e87c611a682c3f5c7be2fee0c0474a2e44a36e71f702
+size 767
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin
index c8b2f5057..ba8e1b814 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ea853923b5a6bf95e8b9d6855f2aa3231df11341406c1d8c3315b14c9c218e04
-size 700
+oid sha256:8b272bfabd881500d3ed8cc900aa7667dac9b8ed7a5a84725ab29eabea0c7720
+size 834
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/Bombard_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/Bombard_Trail.trail
index de75d04c5..f093e1e8d 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/Bombard_Trail.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/Bombard_Trail.trail differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin
index 9352f16ea..b5c1e52bf 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:bce0d398b8f6b078cd2165ded9b855bb3f9ce3bec57daee5d33e32c92532574f
-size 1204656
+oid sha256:5b338190be49b19a80802f95ba48039c62894fe788ebad7ef6198fe45af6f35b
+size 1204588
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.fbx
index 1b2b3a395..5ead16d59 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3960d6a8980bd6332d69d85052d43a7ec1114b0c374b17217c4f7f65e8335e1f
-size 3140380
+oid sha256:6a511b9beb58d275bd38b545061d2f27f908668ec2af43d5ec94a5834c9ee85c
+size 3137484
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom3.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom3.fbx
new file mode 100644
index 000000000..1b2b3a395
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom3.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3960d6a8980bd6332d69d85052d43a7ec1114b0c374b17217c4f7f65e8335e1f
+size 3140380
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin
index 84c1732c2..302d61b9f 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:30c393a0dcbcf5b6d34f3e8643bb0d8859e56f93ed9252d6071c6cf83edabbc8
+oid sha256:08c0e53542fa6f5b850e345c0df241aa59ddaa100415d6f2d9277c590f580671
size 68978
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx
index d56d7e953..4855fb9cd 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:70aebae3fb159ea7acd1b8538427821827a7c6c011ed1921d09200707b431a1f
-size 43612
+oid sha256:4d7813f0c76d9c94ab480f6583a3d94f8ce20cc903d4eaedeb104b055f555b98
+size 45100
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
index 754d895eb..d109e5e46 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
@@ -145,6 +145,8 @@ PBR_LIGHT_OUT PBR_Lighting(
if (NdotL <= 0 || NdotV <= 0)
{
return Out;
+ Out.vShade = 0;
+ Out.vSpecular = 0;
}
float fAlpha = max(fRoughness * fRoughness, 0.04f);
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
index db13bce76..afff86997 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
@@ -181,7 +181,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
return Out;
}
- float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
+ //float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
{ // 수치조정 // 디렉셔널
float fMinRoughness = 0.05f;
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
@@ -191,11 +191,14 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
-
- PBR_Out.vShade *= fDiffuseAOStrength;
+ PBR_Out.vShade *= fOcclusion;
- Out.vShade = float4(PBR_Out.vShade, 1.f);
- Out.vSpecular = float4(PBR_Out.vSpecular, 1.f);
+ float3 vAmbient = g_vLightAmbient.rgb * fOcclusion;
+ float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
+ float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb;
+
+ Out.vShade = float4(vFinalDiffuse, 1.f);
+ Out.vSpecular = float4(vFinalSpecular, 1.f);
return Out;
}
@@ -268,7 +271,7 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
return Out;
}
- float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
+ //float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
{ // 수치조정 // 점광원
float fMinRoughness = 0.05f;
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
@@ -278,10 +281,14 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
- PBR_Out.vShade *= fDiffuseAOStrength;
+ PBR_Out.vShade *= fOcclusion;
- Out.vShade = float4(PBR_Out.vShade, 1.f);
- Out.vSpecular = float4(PBR_Out.vSpecular, 1.f);
+ float3 vAmbient = g_vLightAmbient.rgb * fOcclusion;
+ float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
+ float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb;
+
+ Out.vShade = float4(vFinalDiffuse, 1.f);
+ Out.vSpecular = float4(vFinalSpecular, 1.f);
return Out;
}
@@ -318,7 +325,9 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
float fCameraDistance = length(g_vCamPosition.xyz - vWorldPosition.xyz);
float fLightDistance = length(g_vLightPos.xyz - vWorldPosition.xyz);
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
- float3 vToLight = normalize(g_vLightPos.xyz - vWorldPosition.xyz); // 픽셀에서 라이트로
+ float3 vToLight = normalize(vWorldPosition.xyz - g_vLightPos.xyz); // 픽셀에서 라이트로
+ float3 vLightToPixel = normalize(vWorldPosition.xyz - g_vLightPos.xyz);
+
fAttenuation = saturate((g_fLightRange - fLightDistance) / g_fLightRange);
if (fAttenuation <= 0.f)
@@ -328,7 +337,7 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
return Out;
}
- float fCosAngle = dot(vToView, g_vLightDir.xyz);
+ float fCosAngle = dot(-vLightToPixel, normalize(g_vLightDir.xyz));
if (fCosAngle < g_fSpotOuterAngle)
{
Out.vShade = float4(0.f, 0.f, 0.f, 1.f);
@@ -365,7 +374,7 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
return Out;
}
- float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
+ //float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
{ // 수치조정 // 점광원
float fMinRoughness = 0.05f;
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
@@ -375,10 +384,14 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
- PBR_Out.vShade *= fDiffuseAOStrength;
+ PBR_Out.vShade *= fOcclusion;
- Out.vShade = float4(PBR_Out.vShade, 1.f);
- Out.vSpecular = float4(PBR_Out.vSpecular, 1.f);
+ float3 vAmbient = g_vLightAmbient.rgb * fOcclusion;
+ float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
+ float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb;
+
+ Out.vShade = float4(vFinalDiffuse, 1.f);
+ Out.vSpecular = float4(vFinalSpecular, 1.f);
return Out;
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
index 91a72f9db..b669d3285 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
@@ -39,6 +39,7 @@ struct ParticleValue
float fSizeDrag;
float3 vDeltaSize;
float2 vDelay;
+
};
@@ -101,7 +102,7 @@ void CS_MAIN(
{
if (isNoWorld)
{
- float4x4 CurMat = { particle.vRight, particle.vUp, particle.vLook, particle.vTranslation };
+ row_major float4x4 CurMat = { particle.vRight, particle.vUp, particle.vLook, particle.vTranslation };
CurMat = mul(CurMat, WorldMatrix);
@@ -112,6 +113,7 @@ void CS_MAIN(
particle.vTranslation = CurMat[3].xyzw;
}
}
+
// 라이프타임 움직임
particle.vLifeTime.x += fTimeDelta;
@@ -151,21 +153,26 @@ void CS_MAIN(
if (particleValue.fDrag < FLT_EPSILON5)
fDrag = 1;
- float4 vVelocity = vector(normalize(particle.vLook.xyz) * particleValue.fSpeed, 1.f);
+ float4 vVelocity = vector(normalize(particle.vLook.xyz) * particleValue.fSpeed, 0.f);
particle.vTranslation += vVelocity * fTimeDelta * fDrag;
}
if (isPivotMove)
{
+ float fTime = (particle.vLifeTime.x / particle.vLifeTime.y);
+
float3 vDir = normalize(particleValue.vPivot - particleValue.vOriginTranslation.xyz);
- float fDrag = particleValue.fDrag;
+ float fRatio = (1 - fTime * fTime);
+ float fDrag = particleValue.fDrag * fRatio;
+
+
if (particleValue.fDrag < FLT_EPSILON5)
fDrag = 1;
- float4 vVelocity = vector(vDir * particleValue.fSpeed, 1.f);
+ float4 vVelocity = vector(vDir * particleValue.fSpeed , 0.f);
particle.vTranslation += vVelocity * fTimeDelta * fDrag;
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index 1aee12e67..37238d940 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -1,3 +1,4 @@
+
#include "Engine_Shader_Defines.hlsli"
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
@@ -9,7 +10,7 @@ int g_iImageCountY;
uint g_iIndexU;
uint g_iIndexV;
uint g_iQuestType;
-uint g_iSpellType;
+int g_iSpellType;
float g_fPI;
float g_fFar;
@@ -339,15 +340,27 @@ PS_OUT PS_QuestType(PS_IN In)
return Out;
}
-PS_OUT PS_UVMult(PS_IN In)
+PS_OUT PS_Spell_Anim(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
- float4 color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+ float4 Color = float4(1.f,1.f,1.f,1.f);
+ float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
- color.a *= Alpha;
- Out.vColor = color;
+ Color = tex1;
+
+ float2 texpos = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 texsize = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 texlocal = (In.vTexcoord - texpos) / texsize;
+ bool inside = all(texlocal >= 0.0f && texlocal <= 1.0f);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
+
+ if (inside)
+ Color = lerp(Color, tex2, tex2.a);
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
return Out;
}
@@ -505,22 +518,22 @@ PS_OUT PS_SpellAnim(PS_IN In)
switch (g_iSpellType)
{
case 0:
- BGColor = float3(208.f, 179.f, 54.f) / 255.f;
+ BGColor = float3(255.f, 255.f, 0.f) / 255.f;
break;
case 1:
- BGColor = float3(89.f, 32.f, 215.f) / 255.f;
+ BGColor = float3(150.f, 120.f, 240.f) / 255.f;
break;
case 2:
BGColor = float3(190.f, 46., 34.f) / 255.f;
break;
case 3:
- BGColor = float3(37.f, 129.f, 162.f) / 255.f;
+ BGColor = float3(24.f, 190.f, 255.f) / 255.f;
break;
case 4:
- BGColor = float3(134.f, 171.f, 78.f) / 255.f;
+ BGColor = float3(200.f, 220.f, 150.f) / 255.f;
break;
case 5:
- BGColor = float3(0.f, 80.f, 55.f) / 255.f;
+ BGColor = float3(50.f, 150.f, 110.f) / 255.f;
break;
case 6:
BGColor = float3(0.f, 0.f, 0.f);
@@ -541,11 +554,11 @@ PS_OUT PS_SpellAnim(PS_IN In)
color1 = tex3;
- float wave1 = sin(OverrayUV.x * 10.f + g_fTime ) * 0.01f;
- float wave2 = sin(OverrayUV.x * 10.f + g_fTime ) * 0.01f;
+ float wave1 = sin(OverrayUV.x * 10.f + g_fTime) * 0.01f;
+ float wave2 = sin(OverrayUV.x * 10.f + g_fTime) * 0.01f;
float waveThreshold1 = CoolTime + wave1;
float waveThreshold2 = CoolTime2 + wave2;
- float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f , waveUV.y = (OverrayUV.y - waveThreshold1) /(waveThreshold2 - waveThreshold1));
+ float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f, waveUV.y = (OverrayUV.y - waveThreshold1) / (waveThreshold2 - waveThreshold1));
waveUV = saturate(waveUV);
float tex5 = g_Texture3.Sample(DefaultSampler, waveUV).r;
@@ -895,7 +908,7 @@ PS_OUT PS_Magic_Item(PS_IN In)
float2 OverrayUV = In.vTexcoord;
float CoolTime = 0.f + g_fDeltaV;
- float CoolTime2 = 0.f + g_fDeltaV + 0.05;
+ float CoolTime2 = 0.f + g_fDeltaV + 0.1f;
atlasUV = startUV + In.vTexcoord * (endUV - startUV);
float4 tex3 = g_Texture1.Sample(ClampSampler, OverrayUV);
tex3.rgb *= BGColor;
@@ -913,16 +926,20 @@ PS_OUT PS_Magic_Item(PS_IN In)
float waveThreshold1 = CoolTime + wave1;
float waveThreshold2 = CoolTime2 + wave2;
-
+ float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f, waveUV.y = (OverrayUV.y - waveThreshold1) / (waveThreshold2 - waveThreshold1));
+ waveUV = saturate(waveUV);
+ float Mask = g_MaskingTexture.Sample(DefaultSampler, waveUV).r;
if (g_fDeltaV <= 1.f)
{
if (OverrayUV.y >= waveThreshold1 && OverrayUV.y <= waveThreshold2)
{
- color1.rgb = float3(1.f, 1.f, 1.f);
+ color1.rgb += float3(1.f, 1.f, 1.f) * Mask * 1.f;
}
}
- if (OverrayUV.y <= CoolTime)
+ float waveThreshold = CoolTime + wave1;
+
+ if (OverrayUV.y <= waveThreshold)
{
color1.a = 0.f;
}
@@ -961,6 +978,187 @@ PS_OUT PS_Magic_Item(PS_IN In)
return Out;
}
+PS_OUT PS_Spell_Preview(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+ float2 uv = In.vTexcoord;
+ float2 CurrentPixelPosition = uv * g_fCurrent_Size;
+ float OriginLeft = g_fNine_Slice.x;
+ float OriginRight = g_fNine_Slice.y;
+ float OriginTop = g_fNine_Slice.z;
+ float OriginBottom = g_fNine_Slice.w;
+
+ float CurrentLeft = OriginLeft;
+ float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
+ float CurrentTop = OriginTop;
+ float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
+
+ float2 Finaluv = In.vTexcoord;
+
+ if (CurrentPixelPosition.x < CurrentLeft)
+ {
+ Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
+ }
+ else if (CurrentPixelPosition.x > CurrentRight)
+ {
+ float dist = CurrentPixelPosition.x - CurrentRight;
+ Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
+ Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
+ }
+
+ if (CurrentPixelPosition.y < CurrentTop)
+ {
+ Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
+ }
+ else if (CurrentPixelPosition.y > CurrentBottom)
+ {
+ float dist = CurrentPixelPosition.y - CurrentBottom;
+ Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
+ Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
+ }
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
+ float4 tex3 = g_Texture2.Sample(DefaultSampler, Finaluv);
+ Color = tex1;
+
+ tex3.rgb = tex2.rgb;
+
+ Color = lerp(Color, tex3, tex3.a);
+
+ float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+ float4 tex4 = g_Texture3.Sample(DefaultSampler, Finaluv);
+ if (inside1)
+ {
+ Color = lerp(Color, tex4, tex4.a);
+ }
+
+ Color.a *= Alpha;
+
+ Out.vColor = Color;
+
+ return Out;
+}
+
+PS_OUT PS_Spell_Header(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+
+ float3 BGColor= float3(1.f, 1.f, 1.f);
+
+ switch (g_iSpellType)
+ {
+ case 0:
+ BGColor = float3(255.f, 255.f, 0.f) / 255.f;
+ break;
+ case 1:
+ BGColor = float3(150.f, 120.f, 240.f) / 255.f;
+ break;
+ case 2:
+ BGColor = float3(190.f, 46., 34.f) / 255.f;
+ break;
+ case 3:
+ BGColor = float3(24.f, 190.f, 255.f) / 255.f;
+ break;
+ case 4:
+ BGColor = float3(200.f, 220.f, 150.f) / 255.f;
+ break;
+ case 5:
+ BGColor = float3(50.f, 150.f, 110.f) / 255.f;
+ break;
+ case 6:
+ BGColor = float3(0.f, 0.f, 0.f);
+ break;
+ }
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+ Color = tex1;
+
+ Color.rgb *= BGColor;
+
+ Color.a *= Alpha;
+
+ Out.vColor = Color;
+
+ return Out;
+}
+PS_OUT PS_Spell_Header_Line(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+ float2 uv = In.vTexcoord;
+ float2 CurrentPixelPosition = uv * g_fCurrent_Size;
+ float OriginLeft = g_fNine_Slice.x;
+ float OriginRight = g_fNine_Slice.y;
+ float OriginTop = g_fNine_Slice.z;
+ float OriginBottom = g_fNine_Slice.w;
+
+ float CurrentLeft = OriginLeft;
+ float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
+ float CurrentTop = OriginTop;
+ float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
+
+ float2 Finaluv = In.vTexcoord;
+
+ if (CurrentPixelPosition.x < CurrentLeft)
+ {
+ Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
+ }
+ else if (CurrentPixelPosition.x > CurrentRight)
+ {
+ float dist = CurrentPixelPosition.x - CurrentRight;
+ Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
+ Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
+ }
+
+ if (CurrentPixelPosition.y < CurrentTop)
+ {
+ Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
+ }
+ else if (CurrentPixelPosition.y > CurrentBottom)
+ {
+ float dist = CurrentPixelPosition.y - CurrentBottom;
+ Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
+ }
+ else
+ {
+ float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
+ Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
+ }
+
+ float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
+ Color = tex1;
+
+ //Color.rgb = tex2.rgb;
+
+ Color.a *= Alpha;
+
+ Out.vColor = Color;
+
+ return Out;
+}
+
technique11 PosTexTechnique11
{
pass Default
@@ -1043,14 +1241,14 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_QuestType();
}
- pass UVMult
+ pass Spell_Anim
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
- PixelShader = compile ps_5_0 PS_UVMult();
+ PixelShader = compile ps_5_0 PS_Spell_Anim();
}
pass NineSlice
@@ -1161,4 +1359,34 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_Magic_Item();
}
+ pass Spell_Preview
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Spell_Preview();
+ }
+
+ pass Spell_Header
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Spell_Header();
+ }
+
+ pass Spell_Header_Line
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Spell_Header_Line();
+ }
+
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl
index d6b238656..5b35a6cf9 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl
@@ -4,12 +4,18 @@ matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
Texture2D g_Texture;
Texture2D g_Texture1;
+Texture2D g_Texture2;
+Texture2D g_Texture3;
+Texture2D g_Texture4;
+Texture2D g_Texture5;
+Texture2D g_MaskTexture;
float g_fAlpha;
float g_fOwnerAlpha;
float g_fCanvasAlpha;
float g_fAngle;
float g_fFar;
+float g_fTime;
struct VS_IN
{
@@ -18,14 +24,17 @@ struct VS_IN
float2 vSize : TEXCOORD1;
float2 vPos : TEXCOORD2;
- float2 vUVStart : TEXCOORD3;
- float2 vUVEnd: TEXCOORD4;
+ float4 vUV : TEXCOORD3;
+ float4 vColor : TEXCOORD4;
+ float bHover : TEXCOORD5;
};
struct VS_OUT
{
float4 vPosition : SV_POSITION;
float2 vTexcoord : TEXCOORD0;
+ float4 vColor : TEXCOORD1;
+ float bHover : TEXCOORD2;
};
VS_OUT VS_MAIN(VS_IN In)
@@ -34,17 +43,21 @@ VS_OUT VS_MAIN(VS_IN In)
matrix matVP = mul(g_ViewMatrix, g_ProjMatrix);
float3 vLocalPos = In.vPosition;
- vLocalPos.xy *= In.vSize;
- vLocalPos.xy += In.vPos;
- float2 StartUV = In.vUVStart;
- float2 EndUV = In.vUVEnd;
+ if (In.bHover != 0)
+ vLocalPos.xy *= In.vSize * 1.1f;
+ else
+ vLocalPos.xy *= In.vSize;
+
+ vLocalPos.xy += In.vPos;
+ float4 UV = In.vUV;
float3 vParentPos = float3(g_WorldMatrix._41, g_WorldMatrix._42, g_WorldMatrix._43);
float3 vFinalWorldPos = vLocalPos + vParentPos;
-
+
Out.vPosition = mul(float4(vFinalWorldPos, 1.f), matVP);
- Out.vTexcoord = StartUV + In.vTexcoord * (EndUV - StartUV);
-
+ Out.vTexcoord = UV.xy + In.vTexcoord * (UV.zw - UV.xy);
+ Out.vColor = In.vColor;
+ Out.bHover = In.bHover;
return Out;
}
@@ -52,6 +65,8 @@ struct PS_IN
{
float4 vPosition : SV_POSITION;
float2 vTexcoord : TEXCOORD0;
+ float4 vColor : TEXCOORD1;
+ float bHover : TEXCOORD2;
};
struct PS_OUT
@@ -88,7 +103,7 @@ PS_OUT PS_Alpha_Blend(PS_IN In)
float4 color = g_Texture.Sample(ClampSampler, In.vTexcoord);
- if(color.a <= 0.4f)
+ if (color.a <= 0.4f)
discard;
color.a *= Alpha;
@@ -124,6 +139,172 @@ PS_OUT PS_Megic_Meter(PS_IN In)
return Out;
}
+PS_OUT PS_Spell_List(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float3 Blue = float3(41.f, 165.f, 255.f) / 255.f;
+
+ float4 color = float4(1.f, 1.f, 1.f, 1.f);
+ float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
+ float4 tex2 = g_Texture1.Sample(ClampSampler, In.vTexcoord);
+
+ color = tex1;
+ tex2.rgb *= Blue * 1.5f;
+
+ if (all(color.rgb >= float3(65.f / 255.f, 65.f / 255.f, 65.f / 255.f)))
+ color = tex2;
+
+ //if(color.a <= 0.4f)
+ // discard;
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+
+ return Out;
+}
+
+PS_OUT PS_Eessential_Spell_Slot(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 color = float4(1.f, 1.f, 1.f, 1.f);
+ float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
+ float4 tex2 = g_Texture1.Sample(ClampSampler, In.vTexcoord);
+
+ color = tex1;
+
+ color = lerp(tex1, tex2, tex2.a);
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+
+ return Out;
+}
+
+PS_OUT PS_Eessential_Spell(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 color = float4(1.f, 1.f, 1.f, 1.f);
+ float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
+
+ color = tex1;
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+
+ return Out;
+}
+
+PS_OUT PS_Color_Image(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 color = float4(1.f, 1.f, 1.f, 1.f);
+
+ float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
+ color = tex1;
+ color *= In.vColor;
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+
+ return Out;
+}
+
+PS_OUT PS_Spell_Hover(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float3 HoverOff = g_Texture2.Sample(DefaultSampler, In.vTexcoord).rgb;
+ float3 HoverOn = g_Texture3.Sample(DefaultSampler, In.vTexcoord).rgb;
+
+ float4 color = float4(1.f, 1.f, 1.f, 1.f);
+
+ if (In.bHover != 0)
+ {
+ float tex1 = g_Texture5.Sample(DefaultSampler, In.vTexcoord).r;
+ color.r *= tex1.r;
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
+ color = lerp(tex1, tex2, tex2.a);
+ color.rgb = HoverOn;
+ }
+ else
+ {
+ float tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord).r;
+ color.r *= tex1.r;
+ float4 tex2 = g_Texture4.Sample(DefaultSampler, In.vTexcoord);
+ color = lerp(tex1, tex2, tex2.a);
+ color.rgb = HoverOff;
+ color.a *= 0.5f;
+ }
+
+
+ color *= In.vColor;
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+
+ return Out;
+}
+
+PS_OUT PS_Spell_Effect(PS_IN In)
+{
+ PS_OUT Out;
+
+ if (In.bHover == 0)
+ discard;
+
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+ float4 color = float4(1.f, 1.f, 1.f, 1.f);
+ float2 maskUV = In.vTexcoord + g_fTime * float2(0.2f, 0.0f);
+
+ //float2 center = float2(0.5, 0.5);
+ //float2 uv = In.vTexcoord - center;
+ //float angle = -g_fTime;
+ //float s = sin(angle);
+ //float c = cos(angle);
+ //float2 rotUV = float2(
+ //uv.x * c - uv.y * s,
+ //uv.x * s + uv.y * c
+ //) + center;
+
+ //float2 maskUV = In.vTexcoord;
+
+ //maskUV.x += g_fTime * float2(0.05, 0.02); // 속도 조절 가능
+
+ //float2 center = float2(0.5, 0.0);
+ //float2 uv = In.vTexcoord - center;
+
+ //float scale = 0.5 + sin(g_fTime * 20) * 0.5;
+ //uv.x *= scale;
+
+ //uv += center;
+
+ float tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord).r;
+ float mask = g_MaskTexture.Sample(DefaultSampler, maskUV).r;
+
+ color.a *= tex1;
+ color.a *= mask;
+ color.a *= Alpha;
+
+ color *= In.vColor;
+
+ Out.vColor = color;
+
+ return Out;
+}
+
technique11 PosTexTechnique11
{
pass Default
@@ -158,4 +339,70 @@ technique11 PosTexTechnique11
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_Megic_Meter();
}
+
+ pass Spell_List
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Spell_List();
+ }
+
+ pass Eessential_Spell_Slot
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Eessential_Spell_Slot();
+ }
+
+ pass Eessential_Spell
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Eessential_Spell();
+ }
+
+ pass Color_Image
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Color_Image();
+ }
+
+ pass Spell_Hover
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Spell_Hover();
+ }
+
+ pass Spell_Effect
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Spell_Effect();
+ }
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
index f3c86e997..9a1a6a4cd 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
@@ -64,7 +64,7 @@ int g_iDiffuseMoveLerpOption;
int g_iNoiseMoveLerpOption;
//
-float2 g_vDiffuseDistortionUVGainAmount;
+float2 g_vDistortionTime;
float2 g_vMaskDistortionUVGainAmount;
@@ -255,6 +255,7 @@ float4 DrawEffect(PS_IN In)
float2 vDistortionUVMoveTime = g_ParticleValue[In.iGPUIndex].vDistortionUVMoveTime;
float2 vDelay = g_ParticleValue[In.iGPUIndex].vDelay;
+
if (vDelay.x < vDelay.y)
{
discard;
@@ -271,26 +272,6 @@ float4 DrawEffect(PS_IN In)
UV += SelectLerpUV((g_vDiffuseUVGainAmount / g_vUVCutting), (vDiffuseTime.x / vDiffuseTime.y), g_iDiffuseMoveLerpOption);
}
- /* 디퓨즈 디스토션 */
- if (g_isDistortion == true)
- {
-
- float2 vDistortion = In.vTexcoord + SelectLerpUV(g_vDiffuseDistortionUVGainAmount, (vDistortionUVMoveTime.x / vDistortionUVMoveTime.y), g_iDiffuseDistortionMoveLerpOption);
-
- vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortion);
-
- //0.5f를 빼는 이유는 중심을 0으로 옮겨서 양음수 방향으로 offset을 줄수 있다.
- vMtrlDistortion.rg -= 0.5f;
-
- //아마 분할되었다면 noise도 분할해야할듯
- vMtrlDistortion.rg /= g_vUVCutting;
-
- //디스토션(노이즈) 텍스쳐로 uv를 왜곡함
-
- UV = UV + (vMtrlDistortion).rg * g_fNoiseDistortionIntensity;
-
- }
-
if (g_isDiffuseBlur)
{
float4 fAccDiffuse;
@@ -373,8 +354,17 @@ float4 DrawEffect(PS_IN In)
vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortionUV);
+
+
+ float fDistortionIntensity = g_fNoiseDistortionIntensity;
+
+ if (g_vDistortionTime.y != 0)
+ {
+ fDistortionIntensity = g_fNoiseDistortionIntensity * ((In.vLifeTime.x / In.vLifeTime.y));
+ }
+
//디스토션(노이즈) 텍스쳐로 uv를 왜곡함
- vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * g_fNoiseDistortionIntensity;
+ vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * fDistortionIntensity;
}
@@ -588,14 +578,14 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
vMtrlDiffuse = DrawEffect(In);
- int2 iTexel = int2(In.vPosition.xy);
+ //int2 iTexel = int2(In.vPosition.xy);
- float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r;
+ //float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r;
- float fbias = 0.000005f;
+ //float fbias = 0.000005f;
- if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
- discard;
+ //if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
+ // discard;
Out = BlendedWeight(vMtrlDiffuse, In.vProjPos.w);
@@ -654,8 +644,6 @@ VS_OUT VS_BLUR_NOWORLD(VS_IN In, uint iGPUIndex : SV_InstanceID)
return Out;
}
-
-
struct PS_BLUR_OUT
{
float4 vDiffuse : SV_TARGET0;
@@ -700,12 +688,15 @@ PS_BLOOM_OUT PS_BLOOM(PS_IN In)
vector vMtrlDiffuse;
+ float2 vDelay = g_ParticleValue[In.iGPUIndex].vDelay;
+
vMtrlDiffuse = DrawEffect(In);
+
//// 색깔 추가할 처리 (이미시브)
- vMtrlDiffuse += EmissiveDraw(In);
+ vMtrlDiffuse += EmissiveDraw(In);
float fBloomStrength = g_fBloomStrength;
@@ -726,6 +717,32 @@ PS_BLOOM_OUT PS_BLOOM(PS_IN In)
}
+PS_BLOOM_OUT PS_BLEND(PS_IN In)
+{
+ PS_BLOOM_OUT Out;
+
+ vector vMtrlDiffuse;
+
+ vMtrlDiffuse = DrawEffect(In);
+
+
+ //int2 iTexel = int2(In.vPosition.xy);
+
+ //float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTex el, 0)).r;
+
+ //float fbias = 0.000005f;
+
+ //if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
+ // discard;
+
+ //// 색깔 추가할 처리 (이미시브)
+
+ vMtrlDiffuse.rgb += EmissiveDraw(In).rgb;
+
+ Out.vDiffuse = vMtrlDiffuse;
+
+ return Out;
+}
technique11 DefaultTechnique
{
@@ -752,7 +769,7 @@ technique11 DefaultTechnique
pass Blur
{
SetRasterizerState(RS_Nocull);
- SetDepthStencilState(DSS_None, 0);
+ SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_BLUR();
GeometryShader = NULL;
@@ -782,7 +799,7 @@ technique11 DefaultTechnique
pass BLUR_NO_WORLD
{
SetRasterizerState(RS_Nocull);
- SetDepthStencilState(DSS_None, 0);
+ SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_BLUR_NOWORLD();
GeometryShader = NULL;
@@ -790,14 +807,24 @@ technique11 DefaultTechnique
}
- pass ALPHA_BLEND
+ pass BLEND
{
SetRasterizerState(RS_Nocull);
- SetDepthStencilState(DSS_None, 0);
- SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
- VertexShader = compile vs_5_0 VS_BLUR();
+ SetDepthStencilState(DSS_Effect, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
- PixelShader = compile ps_5_0 PS_BLUR();
+ PixelShader = compile ps_5_0 PS_BLEND();
+ }
+
+ pass BLEND_NOWORLD
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Effect, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_NOWORLD();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_BLEND();
}
pass BLOOM
@@ -810,6 +837,16 @@ technique11 DefaultTechnique
PixelShader = compile ps_5_0 PS_BLOOM();
}
+ pass BLOOM_NOWORLD
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_NOWORLD();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_BLOOM();
+ }
+
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoFlyIcon.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/MiniMap/UI_T_NoFlyIcon.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoFlyIcon.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/MiniMap/UI_T_NoFlyIcon.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoMountIcon.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/MiniMap/UI_T_NoMountIcon.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoMountIcon.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/MiniMap/UI_T_NoMountIcon.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/Lock.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/Lock.png
new file mode 100644
index 000000000..5e3716df2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/Lock.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/SpellWidgetPanelBack.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/SpellWidgetPanelBack.png
new file mode 100644
index 000000000..7a7da21f3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/SpellWidgetPanelBack.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/Spell_Widget.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/Spell_Widget.png
index bd3c9cea3..f8ec4801b 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/Spell_Widget.png and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/Spell_Widget.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_GoldLeaf.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_GoldLeaf.png
new file mode 100644
index 000000000..10b0bed15
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_GoldLeaf.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_Goldleaf_Large.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_Goldleaf_Large.png
new file mode 100644
index 000000000..d6d761b05
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_Goldleaf_Large.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_Header_Line.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_Header_Line.png
new file mode 100644
index 000000000..3d6fffb31
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_Header_Line.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_IconButton.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_IconButton.png
new file mode 100644
index 000000000..d350d3d8b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_IconButton.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_IconButtonHighlight.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_IconButtonHighlight.png
new file mode 100644
index 000000000..867ef1d40
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_IconButtonHighlight.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_IconButtonOutline.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_IconButtonOutline.png
new file mode 100644
index 000000000..cc1dffe78
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_IconButtonOutline.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_LighthouseHeaderBack.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_LighthouseHeaderBack.png
new file mode 100644
index 000000000..ab94ead0f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_LighthouseHeaderBack.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_NewLock.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_NewLock.png
new file mode 100644
index 000000000..18e940838
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_NewLock.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_SelectedBorderMask.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_SelectedBorderMask.png
new file mode 100644
index 000000000..833a8ab61
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_SelectedBorderMask.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_SelectedPresetBorder.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_SelectedPresetBorder.png
new file mode 100644
index 000000000..a75f3ae17
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_SelectedPresetBorder.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_SpellType_Generic.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_SpellType_Generic.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_SpellType_Generic.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_SpellType_Generic.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_TalentTree_TreeBack.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_TalentTree_TreeBack.png
new file mode 100644
index 000000000..fa79e0ed1
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_TalentTree_TreeBack.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_TalentVideoBorder.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_TalentVideoBorder.png
new file mode 100644
index 000000000..b12972394
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_TalentVideoBorder.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_TooltipBorder_4K.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_TooltipBorder_4K.png
new file mode 100644
index 000000000..8310c6dd5
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/UI_T_TooltipBorder_4K.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Crucio_Decal_Emiss_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Crucio_Decal_Emiss_D.png
new file mode 100644
index 000000000..3f857f63b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Crucio_Decal_Emiss_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Cursed_X_Outer_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Cursed_X_Outer_D.png
new file mode 100644
index 000000000..f667ecabd
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Cursed_X_Outer_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_FlameTileGrey_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_FlameTileGrey_D.png
new file mode 100644
index 000000000..b1a59d625
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_FlameTileGrey_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Flare02_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Flare02_D.png
new file mode 100644
index 000000000..83ac7e0ee
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Flare02_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Flippendo_ScorchMark2_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Flippendo_ScorchMark2_D.png
new file mode 100644
index 000000000..41450a0b7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Flippendo_ScorchMark2_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Inky_Smoke_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Inky_Smoke_D.png
new file mode 100644
index 000000000..eebd2001f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Inky_Smoke_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Noise08_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Noise08_D.png
new file mode 100644
index 000000000..7c1ae0e40
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Noise08_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Repairo_Wisp_04_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Repairo_Wisp_04_D.png
new file mode 100644
index 000000000..d8ef663c4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_Repairo_Wisp_04_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_RingFlare_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_RingFlare_D.png
new file mode 100644
index 000000000..5b2e570ee
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_RingFlare_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_SwirlNoise_01_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_SwirlNoise_01_D.png
new file mode 100644
index 000000000..bf956b0cf
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_SwirlNoise_01_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_WhispLine_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_WhispLine_D.png
new file mode 100644
index 000000000..47abb63ce
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_WhispLine_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_WindNoise_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_WindNoise_D.png
new file mode 100644
index 000000000..6f434b183
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_WindNoise_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_WispyNoise_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_WispyNoise_D.png
new file mode 100644
index 000000000..77c43e314
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellWidget/VFX_T_WispyNoise_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Altas_Eessential.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Altas_Eessential.dds
new file mode 100644
index 000000000..0a0543a48
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Altas_Eessential.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Atlas_Widget_Spell.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Atlas_Widget_Spell.dds
new file mode 100644
index 000000000..66d912ed0
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Atlas_Widget_Spell.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Conjuration.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Conjuration.png
deleted file mode 100644
index e865c8647..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Conjuration.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Descendo.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Descendo.png
deleted file mode 100644
index 23163f45e..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Descendo.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_SpellType_InnerShadow.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_SpellType_InnerShadow.png
deleted file mode 100644
index b505584cc..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_SpellType_InnerShadow.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_reparo.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_reparo.png
deleted file mode 100644
index 7b0f22d55..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_reparo.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_spell_Crucio.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_spell_Crucio.png
deleted file mode 100644
index 61cdd37f4..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_spell_Crucio.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_spell_transformation_4K.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_spell_transformation_4K.png
deleted file mode 100644
index a0bba2153..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_spell_transformation_4K.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_spell_transformationoverland.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_spell_transformationoverland.png
deleted file mode 100644
index 6c0797351..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_spell_transformationoverland.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_wingardium.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_wingardium.png
deleted file mode 100644
index 4196a09cf..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/UI_T_wingardium.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/accio.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/accio.png
deleted file mode 100644
index 2bce2fb55..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/accio.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/arrestomomentum.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/arrestomomentum.png
deleted file mode 100644
index 62cb4c8a5..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/arrestomomentum.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/avadakedavra.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/avadakedavra.png
deleted file mode 100644
index 1d0cb34a1..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/avadakedavra.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/confringo.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/confringo.png
deleted file mode 100644
index fe2968523..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/confringo.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/depulso.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/depulso.png
deleted file mode 100644
index ed98ea5d7..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/depulso.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/diffindo.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/diffindo.png
deleted file mode 100644
index 919119ab1..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/diffindo.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/expelliarmus.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/expelliarmus.png
deleted file mode 100644
index b272c4fa8..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/expelliarmus.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/expulso.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/expulso.png
deleted file mode 100644
index 91a3a6b73..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/expulso.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/glacius.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/glacius.png
deleted file mode 100644
index 06f10cee2..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/glacius.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/imperius.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/imperius.png
deleted file mode 100644
index b4315b7a6..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/imperius.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/incendio.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/incendio.png
deleted file mode 100644
index d9ce34549..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/incendio.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/levioso.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/levioso.png
deleted file mode 100644
index e5b078558..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/levioso.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index 172078f5b..90acba622 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -209,6 +209,8 @@
+
+
@@ -251,12 +253,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -350,6 +365,8 @@
+
+
@@ -394,12 +411,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index 9afcdd1bd..0fa1be799 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -205,9 +205,6 @@
{3131278b-18f5-4b84-ba85-73104998e9c9}
-
- {9c21aba5-00c1-4b4c-8a82-dac7a156fd9b}
-
{680910fd-aee2-4f69-b644-12b36b0f635b}
@@ -298,30 +295,6 @@
{c81350c7-0edb-4e51-babf-09bf627414f1}
-
- {a56502cb-b0b8-4ea7-bc5e-5482b416fef9}
-
-
- {8a70232d-f917-4ff6-b617-302e325996ae}
-
-
- {dac78c4e-b898-45dc-8740-794899de0c69}
-
-
- {d5681f71-af29-4418-bf3a-a1486c6ba171}
-
-
- {029a22c4-ab06-4db0-9527-4e3cfa1a2e0d}
-
-
- {b017e167-f48d-4417-a924-765ab802cff5}
-
-
- {904a7ae5-33fe-49a1-9f31-27443acc9e1a}
-
-
- {0b8cac41-419f-48ce-87bc-805b8962b4df}
-
{7e8b7123-11fb-4946-99fe-3265932d0536}
@@ -391,12 +364,84 @@
{c7b1ffc6-548f-464c-8f19-8b6ff5913b06}
+
+ {03dca491-c8d3-4204-b450-b6089287aa3d}
+
+
+ {c87ea325-8242-4bc4-aec7-b102a5b1c847}
+
+
+ {8d15e456-f0d7-45b6-b725-7f1a8c0f6b0f}
+
+
+ {bae34bc2-3b69-40c0-8c9a-278dba07c8aa}
+
+
+ {1700ba11-4e28-4934-b757-bfed96b74503}
+
+
+ {da710064-ef45-41e1-8fc5-1fc544cb4cb8}
+
+
+ {78ffbbbe-930a-4770-93fc-ec46f7ff2c8d}
+
+
+ {d5815cd9-96d2-4364-b0d6-be0bb10b02db}
+
+
+ {62f1bdfb-9162-434a-a462-b63f5e763277}
+
+
+ {9c21aba5-00c1-4b4c-8a82-dac7a156fd9b}
+
+
+ {a56502cb-b0b8-4ea7-bc5e-5482b416fef9}
+
+
+ {8a70232d-f917-4ff6-b617-302e325996ae}
+
+
+ {dac78c4e-b898-45dc-8740-794899de0c69}
+
+
+ {d5681f71-af29-4418-bf3a-a1486c6ba171}
+
+
+ {029a22c4-ab06-4db0-9527-4e3cfa1a2e0d}
+
+
+ {b017e167-f48d-4417-a924-765ab802cff5}
+
+
+ {904a7ae5-33fe-49a1-9f31-27443acc9e1a}
+
+
+ {0b8cac41-419f-48ce-87bc-805b8962b4df}
+
+
+ {99125f58-acb9-4e9c-af15-87bf4e09c9b1}
+
+
+ {261e2297-e48d-4e42-b57e-12b0c0e633a3}
+
+
+ {754c2260-5073-4489-9fa8-0df8da6d0255}
+
+
+ {9d80f32a-aaca-490e-babf-3a7fe4cc0600}
+
{cf446efa-94e5-4fd2-83e1-dba2149eddc8}
{99652c97-4011-4d1f-84fb-7e6aa9f6ec1a}
+
+ {4aa98871-8d80-4757-b616-e96f4e840857}
+
+
+ {3949bd3b-1686-43e3-822c-d3eabe41653e}
+
@@ -768,12 +813,57 @@
50.UI\Spell_Canvas\Spell_Panel\Current_Spell_Slot
+
+ 02.GameObjects\Layer_Effect\Effect\09.Revelio
+
+
+ 02.GameObjects\Layer_Effect\Effect\10.Levioso
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_List
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Eessential_Spell_Slot
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Eessential_Spell
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_List_Image
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_State
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_Hober
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_Hover_Effect
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_Preview
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_Preview\Spell_Header
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_Preview\Spell_Header_Line
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_Vidio_Border
+
03.GameTime
02.GameObjects\Env\03.MapElement\Light
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_Anim
+
+
+ 50.UI\Spell_Data
+
@@ -1144,12 +1234,57 @@
50.UI\Spell_Canvas\Spell_Panel\Current_Spell_Slot
+
+ 02.GameObjects\Layer_Effect\Effect\09.Revelio
+
+
+ 02.GameObjects\Layer_Effect\Effect\10.Levioso
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_List
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Eessential_Spell_Slot
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Eessential_Spell
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_List_Image
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_State
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_Hober
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_Hover_Effect
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_Preview
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_Preview\Spell_Header
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_Preview\Spell_Header_Line
+
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_Vidio_Border
+
03.GameTime
02.GameObjects\Env\03.MapElement\Light
+
+ 50.UI\Spell_Canvas\Spell_Panel\Spell_Anim
+
+
+ 50.UI\Spell_Data
+
diff --git a/Jusin154_Team3D/Editor/Private/Bombard.cpp b/Jusin154_Team3D/Editor/Private/Bombard.cpp
index 03b5e16c8..55e19134d 100644
--- a/Jusin154_Team3D/Editor/Private/Bombard.cpp
+++ b/Jusin154_Team3D/Editor/Private/Bombard.cpp
@@ -73,7 +73,6 @@ void CBombard::Late_Update(_float fTimeDelta)
__super::Late_Update(fTimeDelta);
-
}
HRESULT CBombard::Pre_Setting(CGameObject* pObject)
@@ -210,9 +209,8 @@ void CBombard::Free()
{
__super::Free();
- if(m_pPhysHitBox != nullptr)
- if (m_pPhysHitBox->isDead() == false)
- SAFE_RELEASE(m_pPhysHitBox);
+ if (m_pPhysHitBox != nullptr)
+ SAFE_RELEASE(m_pPhysHitBox);
SAFE_RELEASE(m_pLight_Projectile);
diff --git a/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp
index 4dd3224c1..af9f8046e 100644
--- a/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp
+++ b/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp
@@ -88,7 +88,7 @@ void CCamPosition_Shoulder::Priority_Update(_float fTimeDelta)
void CCamPosition_Shoulder::Update(_float fTimeDelta)
{
- if (m_pGameInstance->Key_Up(DIK_O)) {
+ if (m_pGameInstance->Key_Up(DIK_INSERT)) {
m_pBinded_Camera->Toggle_Priority();
}
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER))) {
diff --git a/Jusin154_Team3D/Editor/Private/Current_Spell_Slot.cpp b/Jusin154_Team3D/Editor/Private/Current_Spell_Slot.cpp
index 5e22856f8..ceee66aaa 100644
--- a/Jusin154_Team3D/Editor/Private/Current_Spell_Slot.cpp
+++ b/Jusin154_Team3D/Editor/Private/Current_Spell_Slot.cpp
@@ -39,15 +39,14 @@ HRESULT CCurrent_Spell_Slot::Initialize(void* pArg)
m_fAlpha = 1.f;
m_fTimeMult = 3.f;
- m_fAngle = XMConvertToRadians(45);
+ m_fAngle = XMConvertToRadians(-135);
m_fAlphaTime = 1.f;
m_fOffSetX = 105.f;
m_fOffSetY = 150.f;
m_iCols = 4;
m_pVIBufferCom->Set_Cloned(true);
- m_pVIBufferCom->Set_Pos(-780.f, -110.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Pos(-780.f, 340.f, m_fOffSetX, m_fOffSetY, m_iCols);
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
- m_pVIBufferCom->Set_ImageUV();
return S_OK;
}
@@ -113,7 +112,7 @@ HRESULT CCurrent_Spell_Slot::Render()
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT))))
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::DEFAULT))))
{
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Private/Decendo.cpp b/Jusin154_Team3D/Editor/Private/Decendo.cpp
index 62354d060..1283712f9 100644
--- a/Jusin154_Team3D/Editor/Private/Decendo.cpp
+++ b/Jusin154_Team3D/Editor/Private/Decendo.cpp
@@ -69,12 +69,12 @@ void CDecendo::Update(_float fTimeDelta)
Update_Event(fTimeDelta);
- m_pProjectile_Blur->Get_Component()->Translation(m_vOwnerLook * 0.5f);
- m_pProjectile->Get_Component()->Translation(m_vOwnerLook * 0.5f);
+ m_pProjectile_Blur->Get_Component()->Translation(m_vCameraLook * 0.5f);
+ m_pProjectile->Get_Component()->Translation(m_vCameraLook * 0.5f);
if (nullptr != m_pPhysHitBox) {
- m_pPhysHitBox->Get_Component()->AccumulateMomentum(m_vOwnerLook * 0.5f);
+ m_pPhysHitBox->Get_Component()->AccumulateMomentum(m_vCameraLook * 0.5f);
}
@@ -138,11 +138,11 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
//나아가는 벡터와 한점을 가져와 수직인 평면상에 하나의 점으로 DIR 을 만듬
- m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK));
+ m_vCameraLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK));
_vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
- _vector vQuaternion = XMQuaternionRotationAxis(m_vOwnerLook, m_pGameInstance->Random_Float(0.f, XM_PIDIV2));
+ _vector vQuaternion = XMQuaternionRotationAxis(m_vCameraLook, m_pGameInstance->Random_Float(0.f, XM_PIDIV2));
m_vRotateUp = XMVector3Rotate(vUp, vQuaternion);
m_vRotateUp = XMVector3Normalize(m_vRotateUp);
@@ -249,9 +249,8 @@ void CDecendo::Free()
{
__super::Free();
- if(m_pPhysHitBox != nullptr)
- if (m_pPhysHitBox->isDead() == false)
- SAFE_RELEASE(m_pPhysHitBox);
+ if (m_pPhysHitBox != nullptr)
+ SAFE_RELEASE(m_pPhysHitBox);
SAFE_RELEASE(m_pProjectile_Blur);
SAFE_RELEASE(m_pProjectile);
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_Globe.cpp b/Jusin154_Team3D/Editor/Private/Dummy_Globe.cpp
index ad4e239d6..30a4f77e1 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_Globe.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_Globe.cpp
@@ -43,7 +43,7 @@ void CDummy_Globe::Update(_float fTimeDelta)
void CDummy_Globe::Late_Update(_float fTimeDelta)
{
if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
- m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::BLOOM, this);
}
}
diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
index 0b68db0f0..2854db2d5 100644
--- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp
+++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
@@ -46,8 +46,6 @@ void CEditEffect::Update(_float fTimeDelta)
if (m_pInstance_ModelCom == nullptr)
return;
- m_pInstance_ModelCom->Drop(fTimeDelta);
-
}
@@ -60,6 +58,10 @@ void CEditEffect::Late_Update(_float fTimeDelta)
if (m_pInstance_ModelCom == nullptr)
return;
+
+ m_pInstance_ModelCom->Drop(fTimeDelta);
+
+
if (m_EffectInfo.isBillboard)
m_pGameInstance->BillBoard(m_pTransformCom);
@@ -405,9 +407,9 @@ void CEditEffect::Describe_Entity()
//여기서 모델, 텍스쳐, 선택할 수 있도록 함
const char* pLerp[] = { "Linear" , "EaseInQuad", "EaseOutQuad", "EaseInCubic" , "EaseOutCubic" , "EaseInOutSin" , "EaseInBack" , "Expo" , "Circle" };
- const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" , "UI" };
+ const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM" , "UI", "OCCLUSION"};
const char* pEffectType[] = { "EFFECT" , "TRAIL" };
- const char* pShaderPass[] = { "DEFAULT" , "NON_NOMALMAP" , "BLUR" , "WEIGHTBLEND" , "NON_WORLD" , "NON_WORLD_BLUR", "ALPHA_BLEND", "BLOOM"};
+ const char* pShaderPass[] = { "DEFAULT" , "NON_NOMALMAP" , "BLUR" , "WEIGHTBLEND" , "NON_WORLD" , "NON_WORLD_BLUR", "BLEND", "BLEND_NOWORLD", "BLOOM" ,"BLOOM_NOWORLD" };
const char* pBloomType[] = { "NONE" , "BASIC" , "MUILTY"};
_int iCurrentItem = static_cast<_int>(m_EffectInfo.eRenderOrder);
@@ -735,7 +737,7 @@ void CEditEffect::Describe_Entity()
GUI::Spacing();
- GUI::DragFloat2("DiffuseDistortionUVGainAmount", (_float*)&m_EffectInfo.vDiffuseDistortionUVGainAmount, 0.01f);
+ GUI::DragFloat2("vDistortionTime", (_float*)&m_EffectInfo.vDistortionTime, 0.01f);
_int iDiffuseNoiseMoveLerpOption = (_int)m_EffectInfo.iDiffuseDistortionMoveLerpOption;
diff --git a/Jusin154_Team3D/Editor/Private/Eessential_Spell.cpp b/Jusin154_Team3D/Editor/Private/Eessential_Spell.cpp
new file mode 100644
index 000000000..ab66cc828
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Eessential_Spell.cpp
@@ -0,0 +1,283 @@
+#include "pch.h"
+#include "Eessential_Spell.h"
+#include "GameInstance.h"
+
+CEessential_Spell::CEessential_Spell(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CEessential_Spell::CEessential_Spell(const CEessential_Spell& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CEessential_Spell::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CEessential_Spell::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 40.f;
+ Desc.fSizeY = 40.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fAlpha = 1.f;
+ m_fTimeMult = 3.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 80.f;
+ m_fOffSetY = 80.f;
+ m_iCols = 4;
+ UV();
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-731.f, -300.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ m_pVIBufferCom->Set_ImageUV(pUVDesc);
+ return S_OK;
+}
+
+void CEessential_Spell::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CEessential_Spell::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CEessential_Spell::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CEessential_Spell::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::EESSENTIAL_SPELL))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CEessential_Spell::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CEessential_Spell::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CEessential_Spell::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CEessential_Spell::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+void CEessential_Spell::UV()
+{
+ for (_uint i = 0; i < 8; ++i)
+ {
+ pUVDesc[i].fUV = Meter_Index(i);
+ }
+}
+
+_float4 CEessential_Spell::Meter_Index(_uint Number)
+{
+ _float2 fImage_Size = _float2{ 512.f, 256.f};
+
+ _uint iXCount = 4;
+ _uint iYCount = 2;
+
+ _float frameWidth = 128.f;
+ _float frameHeight = 128.f;
+
+ _uint frameX = Number % iXCount;
+ _uint frameY = Number / iXCount;
+
+ _float4 UV{};
+ UV.x = frameX * frameWidth / fImage_Size.x;
+ UV.y = frameY * frameHeight / fImage_Size.y;
+ UV.z = UV.x + (frameWidth / fImage_Size.x);
+ UV.w = UV.y + (frameHeight / fImage_Size.y);
+
+ return UV;
+}
+
+HRESULT CEessential_Spell::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CEessential_Spell::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Eessential_Spell"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Altas_Eessential"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CEessential_Spell* CEessential_Spell::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CEessential_Spell* pInstance = new CEessential_Spell(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CEessential_Spell");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CEessential_Spell::Clone(void* pArg, CGameObject* pOwner)
+{
+ CEessential_Spell* pInstance = new CEessential_Spell(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CEessential_Spell");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CEessential_Spell::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CEessential_Spell::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Eessential_Spell_Slot.cpp b/Jusin154_Team3D/Editor/Private/Eessential_Spell_Slot.cpp
new file mode 100644
index 000000000..7f376933b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Eessential_Spell_Slot.cpp
@@ -0,0 +1,298 @@
+#include "pch.h"
+#include "Eessential_Spell_Slot.h"
+#include "GameInstance.h"
+
+CEessential_Spell_Slot::CEessential_Spell_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CEessential_Spell_Slot::CEessential_Spell_Slot(const CEessential_Spell_Slot& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CEessential_Spell_Slot::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CEessential_Spell_Slot::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 65.f;
+ Desc.fSizeY = 65.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fAlpha = 1.f;
+ m_fTimeMult = 3.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 80.f;
+ m_fOffSetY = 80.f;
+ m_iCols = 4;
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-731.f, -300.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ return S_OK;
+}
+
+void CEessential_Spell_Slot::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CEessential_Spell_Slot::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ Hover();
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CEessential_Spell_Slot::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CEessential_Spell_Slot::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::EESSENTIAL_SPELL_SOLT))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CEessential_Spell_Slot::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CEessential_Spell_Slot::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CEessential_Spell_Slot::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CEessential_Spell_Slot::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+void CEessential_Spell_Slot::Hover()
+{
+ POINT ptMouse{};
+ GetCursorPos(&ptMouse);
+ ScreenToClient(g_hWnd, &ptMouse);
+ _float2 fMouse;
+ fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
+ fMouse.y = -(ptMouse.y - (g_iWinSizeY * 0.5f));
+
+ // 엘리먼트의 월드 위치를 더해주면 엘리먼트 좌표계 기준이 됨
+ fMouse.x -= m_pOwner->Get_WorldPostion().m128_f32[0];
+ fMouse.y -= m_pOwner->Get_WorldPostion().m128_f32[1];
+
+ m_bPrevHover = m_bHover;
+ m_bHover = (m_iSpellType = m_pVIBufferCom->Set_Mouse_Hover(fMouse));
+ if (m_iSpellType != -1)
+ {
+ m_bHover = true;
+ if (m_bHover == true && m_bPrevHover == false)
+ {
+ m_iSpellType += ENUM_CLASS(SKILL_TYPE::JAP);
+ static_cast(m_pOwner)->Set_SkillType(m_iSpellType);
+ }
+ }
+ else
+ {
+ m_bHover = false;
+ if (m_bHover == false && m_bPrevHover == true)
+ {
+ static_cast(m_pOwner)->Set_SkillType(m_iSpellType);
+ }
+ }
+
+}
+
+HRESULT CEessential_Spell_Slot::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CEessential_Spell_Slot::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Eessential_Spell_Slot"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_ActionItemBG"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_ActionDiamondTriggerBack_4K"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CEessential_Spell_Slot* CEessential_Spell_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CEessential_Spell_Slot* pInstance = new CEessential_Spell_Slot(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CEessential_Spell_Slot");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CEessential_Spell_Slot::Clone(void* pArg, CGameObject* pOwner)
+{
+ CEessential_Spell_Slot* pInstance = new CEessential_Spell_Slot(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CEessential_Spell_Slot");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CEessential_Spell_Slot::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CEessential_Spell_Slot::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
index 6d249efa8..0b2a5f811 100644
--- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
@@ -75,7 +75,7 @@ HRESULT CEffectObject::Render_Blur()
SHADER_PASS_INSTANCE_MODEL BlurPass = {};
- if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD)
+ if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::BLEND_NOWORLD)
{
BlurPass = SHADER_PASS_INSTANCE_MODEL::NON_WORLD_BLUR;
}
@@ -132,10 +132,21 @@ HRESULT CEffectObject::Render_Bloom()
return E_FAIL;
}
+ SHADER_PASS_INSTANCE_MODEL BloomPass = {};
+
+ if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::BLEND_NOWORLD)
+ {
+ BloomPass = SHADER_PASS_INSTANCE_MODEL::BLOOM_NOWORLD;
+ }
+ else
+ {
+ BloomPass = SHADER_PASS_INSTANCE_MODEL::BLOOM;
+ }
+
for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++)
{
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_INSTANCE_MODEL::BLOOM)))) {
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(BloomPass)))) {
return E_FAIL;
}
@@ -808,7 +819,7 @@ HRESULT CEffectObject::Bind_ShaderResources()
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseDistortionUVGainAmount", &m_EffectInfo.vDiffuseDistortionUVGainAmount, sizeof(_float2)))) {
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vDistortionTime", &m_EffectInfo.vDistortionTime, sizeof(_float2)))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
index 569ac6789..787968562 100644
--- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
@@ -8,6 +8,8 @@
#include "NomalJap.h"
#include "Decendo.h"
#include "Protego.h"
+#include "Revelio.h"
+#include "Levioso.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -37,6 +39,7 @@ HRESULT CEffectPool::Initialize(void* pArg)
if (FAILED(Ready_Effect()))
return E_FAIL;
+
return S_OK;
}
@@ -46,8 +49,7 @@ void CEffectPool::Priority_Update(_float fTimeDelta)
{
if (false == (*iter)->Get_Visible())
{
- //SAFE_RELEASE(*iter);
- //iter = m_ActiveEffectList.erase(iter);
+ ++iter;
}
else
{
@@ -56,8 +58,7 @@ void CEffectPool::Priority_Update(_float fTimeDelta)
}
}
-
- (*m_EffectList[ENUM_CLASS(SKILL_TYPE::PROTEGO)].begin())->Describe_Entity();
+ (*m_EffectList[ENUM_CLASS(SKILL_TYPE::LEVIOSO)].begin())->Describe_Entity();
}
@@ -67,8 +68,7 @@ void CEffectPool::Update(_float fTimeDelta)
{
if (false == (*iter)->Get_Visible())
{
- //SAFE_RELEASE(*iter);
- //iter = m_ActiveEffectList.erase(iter);
+ ++iter;
}
else
{
@@ -126,7 +126,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::BOMBARD, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
CBombard* pEffect = nullptr;
@@ -135,7 +135,7 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect;}
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::DECENDO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::DESCENDO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
CDecendo* pEffect = nullptr;
@@ -155,6 +155,27 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
+ if (FAILED(Create_Effect(SKILL_TYPE::REVELIO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
+
+ CRevelio* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
+
+ if (FAILED(Create_Effect(SKILL_TYPE::LEVIOSO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
+
+ CLevioso* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
+
+
return S_OK;
}
@@ -195,6 +216,33 @@ HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner)
return S_OK;
}
+HRESULT CEffectPool::Reset_Pool()
+{
+ for (size_t i = 0; i < ENUM_CLASS(SKILL_TYPE::END); i++)
+ {
+ for (auto& pEffect : m_EffectList[i])
+ {
+ SAFE_RELEASE(pEffect);
+ }
+
+ m_EffectList[i].clear();
+ }
+
+ for (auto& pEffect : m_ActiveEffectList)
+ {
+ SAFE_RELEASE(pEffect);
+ }
+
+
+ m_ActiveEffectList.clear();
+
+
+ if (FAILED(Ready_Effect()))
+ return E_FAIL;
+
+ return S_OK;
+}
+
CEffectPool* CEffectPool::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
@@ -234,14 +282,25 @@ void CEffectPool::Free()
{
SAFE_RELEASE(pEffect);
}
+
+ m_EffectList[i].clear();
}
for (auto& pEffect : m_ActiveEffectList)
{
SAFE_RELEASE(pEffect);
+
+
}
+
+ m_ActiveEffectList.clear();
}
void CEffectPool::Describe_Entity()
{
+ if(GUI::Button("Reset Pool"))
+ {
+ Reset_Pool();
+ }
+
}
diff --git a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
index b3271422f..b0e42dc62 100644
--- a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
+++ b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp
@@ -4,6 +4,8 @@
#include "GameInstance.h"
#include "EditEffect.h"
#include "TrailObject.h"
+#include "EffectPool.h"
+#include "Layer.h"
#include
@@ -55,6 +57,8 @@ HRESULT CEffect_Editor::Initialize(void* pArg)
return E_FAIL;
+ m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
+ SAFE_ADDREF(m_pEffectPool);
return S_OK;
}
@@ -521,6 +525,7 @@ void CEffect_Editor::Free()
SAFE_RELEASE(m_pEditEffect);
SAFE_RELEASE(m_pTrailObject);
+ SAFE_RELEASE(m_pEffectPool);
}
void CEffect_Editor::Describe_Entity()
@@ -770,6 +775,11 @@ void CEffect_Editor::Describe_Entity()
}
}
+
+
+
+ m_pEffectPool->Describe_Entity();
+
ImGui::End();
}
diff --git a/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp b/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp
index 42977a5f6..e25650f18 100644
--- a/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp
+++ b/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp
@@ -153,7 +153,7 @@ void CIMGUIUI::Update(_float fTimeDelta)
m_fLerpY = static_cast(m_pElementObject)->Get_Lerp_Pos().m128_f32[1];
m_fMoveSpeed = static_cast(m_pElementObject)->Get_Speed();
m_fAngle = static_cast(m_pElementObject)->Get_Angle();
- m_iSkillType = static_cast(m_pElementObject)->Get_SkillType();
+ m_iSpellType = static_cast(m_pElementObject)->Get_SkillType();
m_fCoolTime = static_cast(m_pElementObject)->Get_CoolTime();
}
GUI::Begin("Current_PanelObject_Info");
@@ -436,10 +436,10 @@ void CIMGUIUI::Update(_float fTimeDelta)
static_cast(m_pElementObject)->Set_Angle(m_fAngle);
}
- GUI::Text("SkillType %d", m_iSkillType);
- if (GUI::Combo("SkillType", &m_iSkillType, SpellTypeNames, itemCount))
+ GUI::Text("SkillType %d", m_iSpellType);
+ if (GUI::Combo("SkillType", &m_iSpellType, SpellTypeNames, itemCount))
{
- static_cast(m_pElementObject)->Set_SkillType(m_iSkillType);
+ static_cast(m_pElementObject)->Set_SkillType(m_iSpellType);
}
GUI::Text("CoolTime %.1f", m_fCoolTime);
diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp
index 1af33ee51..09ecf51ac 100644
--- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp
@@ -42,14 +42,16 @@ HRESULT CLevel_EffectViewer::Initialize()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_EffectPool")))) //플레이어보다 먼저 생성해야함!
+ return E_FAIL;
+
+
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, TEXT("Layer_Editor"))))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, LAYER_CUBE)))
return E_FAIL;
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_EffectPool")))) //플레이어보다 먼저 생성해야함!
- return E_FAIL;
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER)))
return E_FAIL;
diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
index 180c4356a..3666a6d5b 100644
--- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
@@ -96,7 +96,9 @@ void CLevel_ObjectViewer::Add_Parts()
_bool bDisabled = {};
if (m_HumanRoot)
bDisabled = (m_HumanRoot->Get_MainModel());
- if (!bDisabled) GUI::BeginDisabled();
+ if (!bDisabled) {
+ GUI::BeginDisabled();
+ }
if (GUI::BeginTabItem("Head"))
{
Category_PartsModelList("Human/Head/Male", "Head");
@@ -113,7 +115,9 @@ void CLevel_ObjectViewer::Add_Parts()
GUI::EndTabItem();
}
- if (!bDisabled) GUI::EndDisabled();
+ if (!bDisabled) {
+ GUI::EndDisabled();
+ }
GUI::EndTabBar();
}
GUI::EndTabItem();
@@ -133,7 +137,9 @@ void CLevel_ObjectViewer::Add_Parts()
_bool bDisabled = {};
if (m_HumanRoot)
bDisabled = (m_HumanRoot->Get_MainModel());
- if (!bDisabled) GUI::BeginDisabled();
+ if (!bDisabled) {
+ GUI::BeginDisabled();
+ }
if (GUI::BeginTabItem("Head"))
{
Category_PartsModelList("Human/Head/FeMale", "Head");
@@ -150,7 +156,9 @@ void CLevel_ObjectViewer::Add_Parts()
GUI::EndTabItem();
}
- if (!bDisabled) GUI::EndDisabled();
+ if (!bDisabled) {
+ GUI::EndDisabled();
+ }
GUI::EndTabBar();
}
GUI::EndTabItem();
@@ -390,9 +398,13 @@ void CLevel_ObjectViewer::Dummy_Object_Setting()
_float AnimTrack = pModel->Get_CurrentTrackPosition();
if (GUI::DragFloat("AnimTrack", &AnimTrack))
{
- pModel->Set_CurrentTrackPosition(AnimTrack);
+ if(AnimTrack>=0.f)
+ pModel->Set_CurrentTrackPosition(AnimTrack);
}
+ _float AnimRatio = pModel->Get_CurrentTrackProgressRatio();
+ GUI::DragFloat("AnimRatio", &AnimRatio);
+
_float AnimSpeed = pModel->Get_AnimSpeed();
GUI::DragFloat("AnimSpeed", &AnimSpeed, 0.1f);
pModel->Set_AnimSpeed(AnimSpeed);
@@ -524,7 +536,9 @@ void CLevel_ObjectViewer::Parts_Object_Setting()
FILE* fp = nullptr;
fopen_s(&fp, "../Bin/Resources/Models/Human/KeyFrame.bin", "wb");
- if (!fp) return;
+ if (!fp) {
+ return;
+ }
_uint KeyFrameSize = (_uint)m_KeyFrames.size();
@@ -605,8 +619,9 @@ void CLevel_ObjectViewer::Load_KeyFrame(const _char* Name)
}
fopen_s(&fp, Path.c_str(), "rb");
- if (!fp) return;
-
+ if (!fp) {
+ return;
+ }
_uint KeyFrameSize = 0;
fread(&KeyFrameSize, sizeof(_uint), 1, fp);
@@ -678,7 +693,9 @@ void CLevel_ObjectViewer::Save_KeyFrame()
FILE* fp = nullptr;
fopen_s(&fp, Path.c_str(), "wb");
- if (!fp) return;
+ if (!fp) {
+ return;
+ }
_uint KeyFrameSize = (_uint)m_KeyFrames.size();
diff --git a/Jusin154_Team3D/Editor/Private/Levioso.cpp b/Jusin154_Team3D/Editor/Private/Levioso.cpp
new file mode 100644
index 000000000..2ef230564
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Levioso.cpp
@@ -0,0 +1,275 @@
+#include "pch.h"
+#include "Levioso.h"
+
+#include "GameInstance.h"
+#include "EditEffect.h"
+#include "Player.h"
+#include "TrailObject.h"
+#include "Dummy_PhysXEffectHitBox.h"
+
+
+CLevioso::CLevioso(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CLevioso::CLevioso(const CLevioso& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CLevioso::Initialize_Prototype()
+{
+
+ return S_OK;
+
+}
+
+HRESULT CLevioso::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Levioso")))
+ return E_FAIL;
+
+ m_pLeviosoPJ_0 = Get_PartObject("Levioso_PJ0");
+ m_pLeviosoPJ_1 = Get_PartObject("Levioso_PJ1");
+ m_pLeviosoTrail = Get_PartObject("Levioso_Trail");
+ m_pTrail_PT_0 = Get_PartObject("Trail_PT0");
+
+ SAFE_ADDREF(m_pLeviosoPJ_0);
+ SAFE_ADDREF(m_pLeviosoPJ_1);
+ SAFE_ADDREF(m_pLeviosoTrail);
+ SAFE_ADDREF(m_pTrail_PT_0);
+
+ m_wstrEffectName = L"Levioso";
+
+ m_fTurnSpeed = 10.f;
+ m_fRange = 1.f;
+
+ m_fDuration = 1.5f;
+
+ return S_OK;
+}
+
+void CLevioso::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+ if (nullptr != m_pPhysHitBox) {
+ m_pPhysHitBox->Get_Component()->RewindMomentum();
+ }
+}
+
+void CLevioso::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+
+ m_pLeviosoPJ_0->Get_Component()->Translation(m_vOwnerLook * 0.25f);
+ m_pLeviosoPJ_1->Get_Component()->Translation(m_vOwnerLook * 0.25f);
+
+
+ m_pTrail_PT_0->Get_Component()->Translation(m_vOwnerLook * 0.25f);
+
+
+
+ if (nullptr != m_pPhysHitBox) {
+ m_pPhysHitBox->Get_Component()->AccumulateMomentum(m_vOwnerLook * 0.25f);
+ }
+
+
+ _matrix WorldMat = m_pTrail_PT_0->Get_Component()->Get_XMWorldMatrix();
+
+ m_pLeviosoTrail->Trail_Update(WorldMat, fTimeDelta);
+
+}
+
+void CLevioso::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ CPlayer* pPlayer = static_cast(m_pOwner);
+
+ if (pPlayer == nullptr)
+ return;
+
+ _matrix WandWorld = pPlayer->Get_WandPos();
+
+ //m_pLeviosoTrail->Get_Component()->Fixed_Trail(WandWorld);
+
+
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CLevioso::Pre_Setting(CGameObject* pObject)
+{
+ if (pObject == nullptr)
+ return E_FAIL;
+
+ m_pOwner = pObject;
+
+
+ Reset_EffectParts();
+
+ __super::m_fAccTime = 0.f;
+ m_fPreAccTime = 0.f;
+
+ m_fAccRotateTime = 0.f;
+
+
+
+ CPlayer* pPlayer = static_cast(m_pOwner);
+
+ if (pPlayer == nullptr)
+ return E_FAIL;
+
+ _vector WandPos = pPlayer->Get_WandPos().r[3];
+
+ m_pLeviosoPJ_0->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix());
+ m_pLeviosoPJ_1->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix());
+ m_pTrail_PT_0->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix());
+
+ m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos);
+ m_pLeviosoPJ_1->Get_Component()->Set_State(STATE::POSITION, WandPos);
+ m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos);
+
+
+ m_pLeviosoPJ_0 ->Set_Visible(true);
+ m_pLeviosoPJ_1->Set_Visible(true);
+ m_pTrail_PT_0->Set_Visible(true);
+
+ m_pLeviosoTrail->Set_Visible(true);
+ m_pLeviosoTrail->Get_Component()->Reset_Trail();
+
+ m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK));
+
+ m_bVisible = true;
+
+ return S_OK;
+}
+
+HRESULT CLevioso::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CLevioso::Ready_Child()
+{
+ CDummy_PhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
+
+ m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+
+ XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
+
+
+ Desc.vRotRPY = { 0.f, 0.f, 0.f };
+ Desc.iSubKind = 70;
+ Desc.vDeltaPos = _float3(0.f, 0.f, 0.f);
+ Desc.vLifeTime = { 0.f, 1.5f };
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this, &m_pPhysHitBox))) {
+ assert(false);
+ return E_FAIL;
+ }
+
+ SAFE_ADDREF(m_pPhysHitBox);
+
+ return S_OK;
+}
+
+CLevioso* CLevioso::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CLevioso* pInstance = new CLevioso(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CLevioso");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CLevioso::Clone(void* pArg, CGameObject* pOwner)
+{
+ CLevioso* pInstance = new CLevioso(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CLevioso");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CLevioso::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+
+
+ m_pLeviosoPJ_0->Set_Visible(false);
+ m_pLeviosoPJ_1->Set_Visible(false);
+ m_pTrail_PT_0->Set_Visible(false);
+ m_pLeviosoTrail->Set_Visible(false);
+
+ m_pPhysHitBox->Set_Dead();
+ SAFE_RELEASE(m_pPhysHitBox);
+
+}
+
+void CLevioso::Free()
+{
+ __super::Free();
+
+ if(m_pPhysHitBox != nullptr)
+ SAFE_RELEASE(m_pPhysHitBox);
+
+ SAFE_RELEASE(m_pLeviosoPJ_0);
+ SAFE_RELEASE(m_pLeviosoPJ_1);
+ SAFE_RELEASE(m_pLeviosoTrail);
+ SAFE_RELEASE(m_pTrail_PT_0);
+}
+#ifdef _DEBUG
+
+void CLevioso::Describe_Entity()
+{
+ GUI::Begin("LEVIOSO");
+
+ GUI::DragFloat("TURN SPEED", &m_fTurnSpeed);
+ GUI::DragFloat("RANGE", &m_fRange);
+ GUI::End();
+
+}
+
+#endif // _DEBUG
+
+HRESULT CLevioso::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index 78185bcc2..f9d179fa8 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -66,6 +66,18 @@
#include "Spell_Canvas.h"
#include "Spell_Panel.h"
#include "Current_Spell_Slot.h"
+#include "Spell_List.h"
+#include "Eessential_Spell_Slot.h"
+#include "Eessential_Spell.h"
+#include "Spell_List_Image.h"
+#include "Spell_State.h"
+#include "Spell_Hover.h"
+#include "Spell_Hover_Effect.h"
+#include "Spell_Preview.h"
+#include "Spell_Header.h"
+#include "Spell_Header_Line.h"
+#include "Spell_Vidio_Border.h"
+#include "Spell_Anim.h"
#include "IMGUIUI.h"
@@ -103,7 +115,8 @@
#include "Decendo.h"
#include "Protego.h"
#include "EffectPool.h"
-
+#include "Revelio.h"
+#include "Levioso.h"
#pragma endregion
#pragma region PHYSX_HEADER
@@ -387,22 +400,6 @@ HRESULT CLoader::Loading_For_UI()
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName,
- CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
- return E_FAIL;
- }
-
- return S_OK;
-
- });
-
- Asset_FileLoad("../Bin/Resources/Textures/HUD", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
- {
-
- _string strFilePath = pFilePath;
- _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
-
-
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName,
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
return E_FAIL;
@@ -492,11 +489,230 @@ HRESULT CLoader::Loading_For_UI()
});
+ Asset_FileLoad("../Bin/Resources/Textures/GadgetWheel", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
+ {
+
+ _string strFilePath = pFilePath;
+ _wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
+
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName,
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+
+ });
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Item"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/GadgetWheel/Item%d.png"), 8)))) {
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Accio"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Accio\\Accio%d.png"), 151))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Altering_Spell"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Alohomora"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Alohomora\\Alohomora%d.png"), 394))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Ancient_Magic"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic\\Ancient_Magic%d.png"), 152))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Ancient_Magic_Throw"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic_Throw\\Ancient_Magic_Throw%d.png"), 89))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Arresto_Momentum"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Arresto_Momentum\\Arresto_Momentum%d.png"), 120))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Avada_Kedavra"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Avada_Kedavra\\Avada_Kedavra%d.png"), 208))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Basic_Cast"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Basic_Cast\\Basic_Cast%d.png"), 308))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Beast_Feed"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Feed\\Beast_Feed%d.png"), 378))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Beast_Petting_Brush"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Petting_Brush\\Beast_Petting_Brush%d.png"), 327))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Bombarda"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Bombarda\\Bombarda%d.png"), 262))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Confringo"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Confringo\\Confringo%d.png"), 157))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Conjuring_Spell"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Conjuring_Spell\\Conjuring_Spell%d.png"), 115))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Descendo"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Descendo\\Descendo%d.png"), 155))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Depulso"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Depulso\\Depulso%d.png"), 152))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Diffindo"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Diffindo\\Diffindo%d.png"), 150))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Disillusionment"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Disillusionment\\Disillusionment%d.png"), 260))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Evanesco"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Evanesco\\Evanesco%d.png"), 136))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Expelliarmus"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Expelliarmus\\Expelliarmus%d.png"), 146))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Flipendo"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Flipendo\\Flipendo%d.png"), 188))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Glacius"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Glacius\\Glacius%d.png"), 156))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Imperio"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Imperio\\Imperio%d.png"), 462))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Incendio"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Incendio\\Incendio%d.png"), 213))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Levioso"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Levioso\\Levioso%d.png"), 180))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Lumos"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Lumos\\Lumos%d.png"), 365))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Nab_Sack"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Nab_Sack\\Nab_Sack%d.png"), 235))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Petrificus_Totalus"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Petrificus_Totalus\\Petrificus_Totalus%d.png"), 275))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Protego"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Protego\\Protego%d.png"), 285))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Reparo"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Reparo\\Reparo%d.png"), 385))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Revelio"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Revelio\\Revelio%d.png"), 227))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Stupefy"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Stupefy\\Stupefy%d.png"), 222))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Transformation"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Transformation\\Transformation%d.png"), 146))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Wingardium_Leviosa"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Wingardium_Leviosa\\Wingardium_Leviosa%d.png"), 273))))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Crucio"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Crucio\\Crucio%d.png"), 216))))
+ {
+ return E_FAIL;
+ }
+
m_strMessage = TEXT("Model Loading..");
CVIBuffer_UI_Instance::UI_INSTANCE_DESC SpellSlotUIDesc{};
@@ -517,6 +733,42 @@ HRESULT CLoader::Loading_For_UI()
return E_FAIL;
}
+ CVIBuffer_UI_Instance::UI_INSTANCE_DESC Spell_List{};
+
+ Spell_List.iNum = 26;
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List"),
+ CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Spell_List)))) {
+ return E_FAIL;
+ }
+
+ CVIBuffer_UI_Instance::UI_INSTANCE_DESC Eessential_Spell_Slot{};
+
+ Eessential_Spell_Slot.iNum = 8;
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Eessential_Spell_Slot"),
+ CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Eessential_Spell_Slot)))) {
+ return E_FAIL;
+ }
+
+ CVIBuffer_UI_Instance::UI_INSTANCE_DESC Eessential_Spell{};
+
+ Eessential_Spell.iNum = 8;
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Eessential_Spell"),
+ CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Eessential_Spell)))) {
+ return E_FAIL;
+ }
+
+ CVIBuffer_UI_Instance::UI_INSTANCE_DESC Spell_List_Image{};
+
+ Spell_List_Image.iNum = 26;
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List_Image"),
+ CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Spell_List_Image)))) {
+ return E_FAIL;
+ }
+
CVIBuffer_UI_Instance::UI_INSTANCE_DESC SlotNumberUIDesc{};
SlotNumberUIDesc.iNum = 4;
@@ -668,6 +920,54 @@ HRESULT CLoader::Loading_For_UI()
{
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_List::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEessential_Spell_Slot::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEessential_Spell::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_List_Image::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_State::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Hover::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Hover_Effect::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Preview::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Header::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Header_Line::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Vidio_Border::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_Anim::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CIMGUIUI::Create(m_pDevice, m_pContext))))
{
@@ -685,10 +985,10 @@ HRESULT CLoader::Loading_For_UI()
}
HRESULT CLoader::Loading_For_Effect()
{
-
+
m_strMessage = TEXT("PhysX Meshes Loading..");
{
-
+
// Dumping Box
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
{
@@ -766,7 +1066,7 @@ HRESULT CLoader::Loading_For_Effect()
return S_OK;
- });
+ });
Asset_FileLoad("../Bin/Resources/Textures/Effect/Flipbooks", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
@@ -781,7 +1081,7 @@ HRESULT CLoader::Loading_For_Effect()
return S_OK;
- });
+ });
Asset_FileLoad("../Bin/Resources/Textures/Effect/Gradients", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
@@ -849,15 +1149,15 @@ HRESULT CLoader::Loading_For_Effect()
futures.emplace_back(Deferred_ModelLoad(
MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity(),
TEXT("Prototype_Component_SkyboxModel")
- ));
+ ));
futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(),
+ MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
TEXT("Prototype_Component_Npc_Model")
));
futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixIdentity(),
+ MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity(),
TEXT("Prototype_Component_Wand_Model")
));
@@ -940,6 +1240,12 @@ HRESULT CLoader::Loading_For_Effect()
if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CProtego::Create(m_pDevice, m_pContext))))
return E_FAIL;
+ if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CRevelio::Create(m_pDevice, m_pContext))))
+ return E_FAIL;
+
+ if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CLevioso::Create(m_pDevice, m_pContext))))
+ return E_FAIL;
+
/* For.Prototype_GameObject_Wand */
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext))))
@@ -1064,12 +1370,12 @@ HRESULT CLoader::Loading_For_PhysXLevel()
PSX::PxTransform pxPivotTransform = PSX::PxTransform(PSX::PxVec3(3.5f, 1.5f, 0.f));
Desc.pxMassCenter = pxPivotTransform;
- Desc.eLockFlag = {
- PSX::PxRigidDynamicLockFlag::eLOCK_ANGULAR_X |
+ Desc.eLockFlag = {
+ PSX::PxRigidDynamicLockFlag::eLOCK_ANGULAR_X |
//PSX::PxRigidDynamicLockFlag::eLOCK_ANGULAR_Y |
- PSX::PxRigidDynamicLockFlag::eLOCK_ANGULAR_Z |
- PSX::PxRigidDynamicLockFlag::eLOCK_LINEAR_Y |
- PSX::PxRigidDynamicLockFlag::eLOCK_LINEAR_X |
+ PSX::PxRigidDynamicLockFlag::eLOCK_ANGULAR_Z |
+ PSX::PxRigidDynamicLockFlag::eLOCK_LINEAR_Y |
+ PSX::PxRigidDynamicLockFlag::eLOCK_LINEAR_X |
PSX::PxRigidDynamicLockFlag::eLOCK_LINEAR_Z
};
Desc.vAutoDamping = { 10.f, 10.f };
@@ -1100,7 +1406,7 @@ HRESULT CLoader::Loading_For_PhysXLevel()
}
}
- {
+ {
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
@@ -1201,13 +1507,13 @@ HRESULT CLoader::Loading_For_PhysXLevel()
//if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXFixedDoor::Create(m_pDevice, m_pContext)))) {
// return E_FAIL;
//}
- if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXPlayable::Create(m_pDevice, m_pContext)))){
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXPlayable::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXMonster::Create(m_pDevice, m_pContext)))){
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXMonster::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXMesh::Create(m_pDevice, m_pContext)))){
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXMesh::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXWall::Create(m_pDevice, m_pContext)))) {
@@ -1216,10 +1522,10 @@ HRESULT CLoader::Loading_For_PhysXLevel()
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXPlatform::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapObject_Collision::Create(m_pDevice, m_pContext)))){
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapObject_Collision::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapObject_LOD::Create(m_pDevice, m_pContext)))){
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapObject_LOD::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
@@ -1257,22 +1563,22 @@ HRESULT CLoader::Loading_For_Bloom()
#pragma endregion
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Desc_Box"),
- CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(10.f, 10.f, 10.f) * XMMatrixIdentity())))){
+ CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(10.f, 10.f, 10.f) * XMMatrixIdentity())))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Model_DummyPlane"),
- CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Effect/DummyPlane/DummyPlane.fbx", XMMatrixTranslation(0.f, -10.f, 0.f) * XMMatrixIdentity())))){
+ CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Effect/DummyPlane/DummyPlane.fbx", XMMatrixTranslation(0.f, -10.f, 0.f) * XMMatrixIdentity())))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Desc_Globe"), // RG DDS NormalMap
- CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/DragonGlobe/DragonGlobe.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))){
+ CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/DragonGlobe/DragonGlobe.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Desc_Globe2"), // RGB DDS NormalMap
- CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/DragonGlobe2/DragonGlobe.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))){
+ CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/DragonGlobe2/DragonGlobe.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))) {
return E_FAIL;
}
@@ -1282,23 +1588,23 @@ HRESULT CLoader::Loading_For_Bloom()
/* Hog_Props */
if (FAILED(MapFolderLoad("C:\\Users\\kimnuri\\Desktop\\MeshTable\\Game\\Environment\\Hogwarts\\Meshes\\Props",
- ".fbx", true, ModelPrototypeTags, ModelPrototypePath))){
+ ".fbx", true, ModelPrototypeTags, ModelPrototypePath))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CHair::Create(m_pDevice, m_pContext)))){
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CHair::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_Globe::Create(m_pDevice, m_pContext)))){
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_Cube::Create(m_pDevice, m_pContext)))){
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_Globe::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_Plane::Create(m_pDevice, m_pContext)))){
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_Cube::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_Plane::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
@@ -1400,13 +1706,13 @@ HRESULT CLoader::MapFolderLoad(const _char* pDirectoryPath, const _char* pFileEx
void APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag, vector** OutContents)
{
if (FAILED(CoInitializeEx(nullptr, 0))) {
- return ;
+ return;
}
*OutContents = new vector;
for (const auto& file : filesystem::directory_iterator(pDirectoryPath))
{
- if (file.is_directory()){ continue; }
+ if (file.is_directory()) { continue; }
if (strcmp(file.path().extension().string().c_str(), pFileExt)) { continue; }
FOLDER_LOAD* pContents = new FOLDER_LOAD;
@@ -1608,19 +1914,19 @@ HRESULT CLoader::Loading_For_ObjectViewer()
#pragma endregion
futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin",XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(),
+ MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
TEXT("Prototype_Component_Npc_Model")
));
futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.fbx",XMMatrixIdentity(),
+ MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin",XMMatrixIdentity(),
TEXT("Prototype_Component_Wand_Model")
));
futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(),
+ MODEL::ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
TEXT("Prototype_Component_Broom_Model")
));
futures.emplace_back(Deferred_ModelLoad(
- MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity(),
+ MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.bin", XMMatrixIdentity(),
TEXT("Prototype_Component_SkyboxModel")
));
futures.emplace_back(Deferred_ModelLoad(
@@ -1786,7 +2092,7 @@ HRESULT CLoader::Loading_For_MapViewer()
vector ModelPrototypePath = {};
#pragma region HOGSMEADE
-
+
///* Terrain*/
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Terrain",
// ".bin", true, ModelPrototypeTags, ModelPrototypePath)))
@@ -1970,7 +2276,7 @@ HRESULT CLoader::Loading_For_MapViewer()
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Collision",
// ".bin", false, ModelPrototypeTags, ModelPrototypePath)))
// return E_FAIL;
-
+
/* Light */
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\LightPosts",
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
@@ -1980,316 +2286,316 @@ HRESULT CLoader::Loading_For_MapViewer()
#ifdef gimch
-//vector> jobFutures;
-//
-//_uint iLoadCount = 46;
-//vector*> Contents(iLoadCount);
+ //vector> jobFutures;
+ //
+ //_uint iLoadCount = 46;
+ //vector*> Contents(iLoadCount);
+
+ //{
+ // { /* Terrain */
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Terrain",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Terrain",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* TScrolls */
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Collisions",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* 3BroomStick*/
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes\\3Broom_Kit",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* Ollivanders*/
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* Gatehouse*/
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Gatehouse\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* BLDG_QuidditchShop */
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_QuidditchShop\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_QuidditchShop\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* BLDG_HogsheadInn */
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_HogsheadInn\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_HogsheadInn\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* BLDG_Honeydukes */
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Honeydukes\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Honeydukes\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* BLDG_OwlPost */
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_OwlPost\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_OwlPost\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* BLDG_TeaShop */
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* BLDG_Zonkos */
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* BLDG_DB_GR */
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_DB_GR\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_DB_GR\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* BLDG_Potions */
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Collisions",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* BLDG_Salon */
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* Hengist_Tree */
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Vegetation\\Hengist_Tree",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Vegetation",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* GEN A*/
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* GEN B*/
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_B\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_B\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* GEN C*/
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* GEN E*/
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* GEN F*/
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_F\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_F\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* GEN G*/
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_G\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_G\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* GEN H*/
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_H\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_H\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ // { /* GEN J*/
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Meshes",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // jobFutures.emplace_back(Deferred_FolderLoad(
+ // "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Collision",
+ // ".bin", false,
+ // &Contents[jobFutures.size()]
+ // ));
+ // }
+ //}
+ //
+ // for (auto& jobFuture : jobFutures)
+ // {
+ // jobFuture.get();
+ // }
+ //
+ // for (_uint i = 0; i < Contents.size(); ++i) {
+ // for (_uint j = 0; j < (Contents[i])->size(); ++j) {
+ // FOLDER_LOAD* pContents = (*Contents[i])[j];
+ // if (true == pContents->bLoadTags) {
+ // ModelPrototypeTags.push_back(pContents->pModelTag);
+ // ModelPrototypePath.push_back(pContents->pathModel);
+ // }
+ //
+ // if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) {
+ // return E_FAIL;
+ // }
+ //
+ // for (_uint k = 0; k < pContents->pRigidBodyTags.size(); ++k) {
+ // if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pRigidBodyTags[k], pContents->LoadedRigidBody[k]))) {
+ // return E_FAIL;
+ // }
+ // }
+ //
+ // }
+ // }
-//{
-// { /* Terrain */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Terrain",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Terrain",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* TScrolls */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Collisions",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* 3BroomStick*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes\\3Broom_Kit",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* Ollivanders*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* Gatehouse*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Gatehouse\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_QuidditchShop */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_QuidditchShop\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_QuidditchShop\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_HogsheadInn */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_HogsheadInn\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_HogsheadInn\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_Honeydukes */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Honeydukes\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Honeydukes\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_OwlPost */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_OwlPost\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_OwlPost\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_TeaShop */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_Zonkos */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_DB_GR */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_DB_GR\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_DB_GR\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_Potions */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Collisions",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* BLDG_Salon */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* Hengist_Tree */
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Vegetation\\Hengist_Tree",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Vegetation",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN A*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN B*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_B\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_B\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN C*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN E*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN F*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_F\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_F\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN G*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_G\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_G\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN H*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_H\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_H\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-// { /* GEN J*/
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Meshes",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// jobFutures.emplace_back(Deferred_FolderLoad(
-// "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Collision",
-// ".bin", false,
-// &Contents[jobFutures.size()]
-// ));
-// }
-//}
-//
-// for (auto& jobFuture : jobFutures)
-// {
-// jobFuture.get();
-// }
-//
-// for (_uint i = 0; i < Contents.size(); ++i) {
-// for (_uint j = 0; j < (Contents[i])->size(); ++j) {
-// FOLDER_LOAD* pContents = (*Contents[i])[j];
-// if (true == pContents->bLoadTags) {
-// ModelPrototypeTags.push_back(pContents->pModelTag);
-// ModelPrototypePath.push_back(pContents->pathModel);
-// }
-//
-// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) {
-// return E_FAIL;
-// }
-//
-// for (_uint k = 0; k < pContents->pRigidBodyTags.size(); ++k) {
-// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pRigidBodyTags[k], pContents->LoadedRigidBody[k]))) {
-// return E_FAIL;
-// }
-// }
-//
-// }
-// }
-
m_strMessage = TEXT("쉐이더를(을) 로딩 중 입니다.");
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_PROP_MODEL,
@@ -2317,7 +2623,7 @@ HRESULT CLoader::Loading_For_MapViewer()
CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "../Bin/Resources/Data/Map/T_LandscapeStreamingProxy_0_LOD1_D.png"))))
return E_FAIL;
-
+
CVIBuffer_Model_Instance::INSTANCE_DESC InstanceDesc = {};
InstanceDesc.iNum = 200;
diff --git a/Jusin154_Team3D/Editor/Private/Magic_Item.cpp b/Jusin154_Team3D/Editor/Private/Magic_Item.cpp
index b2a9664e9..beefb262a 100644
--- a/Jusin154_Team3D/Editor/Private/Magic_Item.cpp
+++ b/Jusin154_Team3D/Editor/Private/Magic_Item.cpp
@@ -219,6 +219,10 @@ HRESULT CMagic_Item::Bind_ShaderResources()
{
return E_FAIL;
}
+ if (FAILED(m_pDiffuse_TextureCom6->Bind_ShaderResource(m_pShaderCom, "g_MaskingTexture", 0)))
+ {
+ return E_FAIL;
+ }
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
{
return E_FAIL;
@@ -316,6 +320,10 @@ HRESULT CMagic_Item::Ready_Components(void* pArg)
{
return E_FAIL;
}
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast(&m_pDiffuse_TextureCom6), nullptr)))
+ {
+ return E_FAIL;
+ }
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
{
return E_FAIL;
@@ -360,6 +368,7 @@ void CMagic_Item::Free()
SAFE_RELEASE(m_pDiffuse_TextureCom3);
SAFE_RELEASE(m_pDiffuse_TextureCom4);
SAFE_RELEASE(m_pDiffuse_TextureCom5);
+ SAFE_RELEASE(m_pDiffuse_TextureCom6);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferCom);
}
diff --git a/Jusin154_Team3D/Editor/Private/NomalJap.cpp b/Jusin154_Team3D/Editor/Private/NomalJap.cpp
index aba06e4ab..e048357af 100644
--- a/Jusin154_Team3D/Editor/Private/NomalJap.cpp
+++ b/Jusin154_Team3D/Editor/Private/NomalJap.cpp
@@ -71,12 +71,12 @@ void CNomalJap::Update(_float fTimeDelta)
Update_Event(fTimeDelta);
- m_pProjectile_Side->Get_Component()->Translation(m_vOwnerLook * 1.2f);
- m_pProjectile->Get_Component()->Translation(m_vOwnerLook * 1.2f);
+ m_pProjectile_Side->Get_Component()->Translation(m_vCameraLook * 1.2f);
+ m_pProjectile->Get_Component()->Translation(m_vCameraLook * 1.2f);
if (nullptr != m_pPhysHitBox) {
- m_pPhysHitBox->Get_Component()->AccumulateMomentum(m_vOwnerLook * 1.2f);
+ m_pPhysHitBox->Get_Component()->AccumulateMomentum(m_vCameraLook * 1.2f);
}
@@ -139,11 +139,11 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject)
//나아가는 벡터와 한점을 가져와 수직인 평면상에 하나의 점으로 DIR 을 만듬
- m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK));
+ m_vCameraLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK));
_vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
- _vector vQuaternion = XMQuaternionRotationAxis(m_vOwnerLook, m_pGameInstance->Random_Float(0.f, XM_PIDIV2));
+ _vector vQuaternion = XMQuaternionRotationAxis(m_vCameraLook, m_pGameInstance->Random_Float(0.f, XM_PIDIV2));
m_vRotateUp = XMVector3Rotate(vUp, vQuaternion);
@@ -232,8 +232,12 @@ void CNomalJap::OnCollision(CGameObject* pOther , void* pDesc)
Get_PartObject()->Set_Visible(false);
Get_PartObject()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
- m_pPhysHitBox->Set_Dead();
- SAFE_RELEASE(m_pPhysHitBox);
+ if (m_pPhysHitBox != nullptr)
+ {
+ m_pPhysHitBox->Set_Dead();
+ SAFE_RELEASE(m_pPhysHitBox);
+ }
+
}
void CNomalJap::Free()
@@ -241,8 +245,7 @@ void CNomalJap::Free()
__super::Free();
if(m_pPhysHitBox != nullptr)
- if (m_pPhysHitBox->isDead() == false)
- SAFE_RELEASE(m_pPhysHitBox);
+ SAFE_RELEASE(m_pPhysHitBox);
Safe_Release(m_pProjectile);
Safe_Release(m_pProjectile_Side);
diff --git a/Jusin154_Team3D/Editor/Private/Player.cpp b/Jusin154_Team3D/Editor/Private/Player.cpp
index 6fd9b7ec8..4523fce20 100644
--- a/Jusin154_Team3D/Editor/Private/Player.cpp
+++ b/Jusin154_Team3D/Editor/Private/Player.cpp
@@ -240,9 +240,9 @@ _matrix CPlayer::Get_WandPos()
if (pWand == nullptr)
return _matrix();
- _matrix BoneMatrix = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("root"));
+ _matrix BoneMatrix = XMLoadFloat4x4(pWand->Get_BoneMatrixPtr("root"));
- BoneMatrix = BoneMatrix * m_pTransformCom->Get_XMWorldMatrix();
+ BoneMatrix = BoneMatrix * Get_PartObject()->Get_Component()->Get_XMWorldMatrix();
_float3 vOffset = _float3(0.f, -0.27f, -0.32f);
diff --git a/Jusin154_Team3D/Editor/Private/Player_States.cpp b/Jusin154_Team3D/Editor/Private/Player_States.cpp
index 493529c8a..e314d77f8 100644
--- a/Jusin154_Team3D/Editor/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Editor/Private/Player_States.cpp
@@ -21,7 +21,6 @@
#pragma endregion
#include "EffectPool.h"
-#include "Protego.h"
#pragma region States
void CPlayer::TestKeyInput(_float fTimeDelta)
@@ -433,6 +432,8 @@ void CPlayer::Behavior_CombatEnter()
if (m_pGameInstance->Key_Down(DIK_R)) {
m_pFSM->Enable_State(FSMSTATE::SKILL);
pairAnimInfo = m_Animation[STATEANIM::SKILL];
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::REVELIO, this);
}
else if (m_pGameInstance->Key_Down(DIK_Q)) {
m_pFSM->Enable_State(FSMSTATE::SKILL2);
@@ -457,6 +458,10 @@ void CPlayer::Behavior_CombatEnter()
case STATEANIM::DEPULSO:
pairAnimInfo = m_Animation[STATEANIM::DEPULSO];
m_eSpell = STATEANIM::END;
+
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this);
+
break;
case STATEANIM::DIFFINDO:
pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
@@ -544,7 +549,7 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
case STATEANIM::ACCIO:
pairAnimInfo = m_Animation[STATEANIM::ACCIO];
- m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARD, this);
+ m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this);
break;
@@ -552,7 +557,7 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
{
pairAnimInfo = m_Animation[STATEANIM::DESCENDO];
- m_pEffectPool->Use_Skill(SKILL_TYPE::DECENDO, this);
+ m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO, this);
}
break;
default:
@@ -661,18 +666,28 @@ void CPlayer::Add_FSM()
void CPlayer::Set_Anim()
{
m_Animation[STATEANIM::IDLE] = { 266,true };
+ m_Animation[STATEANIM::IDLE_AIM] = { 5,true };
m_Animation[STATEANIM::IDLE_TURN_L] = { 270,false };
m_Animation[STATEANIM::IDLE_TURN_R] = { 430,false };
m_Animation[STATEANIM::IDLE_TURN_BWD] = { 268,false };
m_Animation[STATEANIM::WALK_FWD] = { 625,true };
- m_Animation[STATEANIM::WALK_BWD] = { 166,true };
+ m_Animation[STATEANIM::WALK_LEFT] = { 337,false };
+ m_Animation[STATEANIM::WALK_RIGHT] = { 504,false };
+ m_Animation[STATEANIM::WALK_BWD] = { 352,false };
+
m_Animation[STATEANIM::WALK_STOP] = { 344,false };
m_Animation[STATEANIM::JOG_FWD] = { 167,true };
- m_Animation[STATEANIM::JOG_BWD] = { 154,false};
+ m_Animation[STATEANIM::JOG_LEFT] = { 164,false }; // Turn
+ m_Animation[STATEANIM::JOG_RIGHT] = { 185,false };// Turn
+ m_Animation[STATEANIM::JOG_BWD] = { 154,false }; // Turn
m_Animation[STATEANIM::JOG_STOP] = { 289,false };
+ m_Animation[STATEANIM::JOG_AIM_LEFT] = { 171,true };
+ m_Animation[STATEANIM::JOG_AIM_RIGHT] = { 175,true };
+ m_Animation[STATEANIM::JOG_AIM_BWD] = { 166,true };
+
m_Animation[STATEANIM::JUMP] = { 205,false };
m_Animation[STATEANIM::JUMP_JOG] = { 203,false };
m_Animation[STATEANIM::JUMP_SPRINT] = { 207,false };
@@ -681,21 +696,41 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::LAND] = { 259,false };
- m_Animation[STATEANIM::DODGE] = { 802,false };
- m_Animation[STATEANIM::DODGE_BLINK] = { 799,true };
+ m_Animation[STATEANIM::DODGE] = { 878,false };
+ m_Animation[STATEANIM::DODGE_BLINK] = { 876,true };
m_Animation[STATEANIM::SKILL] = { 593,false };
- m_Animation[STATEANIM::SKILL2] = { 915,false };
+ m_Animation[STATEANIM::SKILL2] = { 991,false };
m_Animation[STATEANIM::LIGHT_ATTACK] = { 413,false };
- m_Animation[STATEANIM::SPELL] = { 696,false };
+ m_Animation[STATEANIM::SPELL] = { 772,false };
m_Animation[STATEANIM::MAPHELP] = { 122,false };
+ m_Animation[STATEANIM::POTION] = { 114,false }; // 114 포션 // 909 루모스
m_Animation[STATEANIM::ACCIO] = { 417,false };
- m_Animation[STATEANIM::DESCENDO] = { 418,false };
- m_Animation[STATEANIM::DEPULSO] = { 782,false };
- m_Animation[STATEANIM::DIFFINDO] = { 786,false };
- m_Animation[STATEANIM::LUMOS] = { 782,false };
+ m_Animation[STATEANIM::DESCENDO] = { 857,false };
+ m_Animation[STATEANIM::DEPULSO] = { 858,false };
+ m_Animation[STATEANIM::DIFFINDO] = { 862,false };
+ m_Animation[STATEANIM::LUMOS] = { 909,true };
+ m_Animation[STATEANIM::LUMOS_STOP] = { 912,false };
m_Animation[STATEANIM::DISILLUSION_ENTER] = { 585,false };
m_Animation[STATEANIM::DISILLUSION_EXIT] = { 586,false };
+ m_Animation[STATEANIM::ANCIENT_THROW] = { 919,false };
+
+
+ m_Animation[STATEANIM::HIT_L] = { 1124,false };
+ m_Animation[STATEANIM::HIT_R] = { 1125,false };
+
+ m_Animation[STATEANIM::BROOM_IDLE] = { 679,true };
+ m_Animation[STATEANIM::BROOM_FWD] = { 680,true };
+
+ m_Animation[STATEANIM::BROOM_MOUNT] = { 734,false };
+ m_Animation[STATEANIM::BROOM_MOUNT_END] = { 737,false };
+ m_Animation[STATEANIM::BROOM_HOVER_START] = { 699,false };
+ m_Animation[STATEANIM::BROOM_HOVER_IDLE] = { 703,true };
+
+
+ m_Animation[STATEANIM::JOG_AIM_STOP_L] = { 295,false };
+ m_Animation[STATEANIM::JOG_AIM_STOP_R] = { 456,false };
+ m_Animation[STATEANIM::JOG_AIM_STOP_BWD] = { 444,false };
}
#pragma endregion State
diff --git a/Jusin154_Team3D/Editor/Private/Revelio.cpp b/Jusin154_Team3D/Editor/Private/Revelio.cpp
new file mode 100644
index 000000000..b58b010f7
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Revelio.cpp
@@ -0,0 +1,212 @@
+#include "pch.h"
+#include "Revelio.h"
+
+#include "GameInstance.h"
+#include "EditEffect.h"
+#include "Player.h"
+
+
+CRevelio::CRevelio(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRevelio::CRevelio(const CRevelio& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CRevelio::Initialize_Prototype()
+{
+
+ return S_OK;
+
+}
+
+HRESULT CRevelio::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Revelio")))
+ return E_FAIL;
+
+ m_pRevelioPT_Y = Get_PartObject("WandPT_Y");
+ m_pRevelioPT_B = Get_PartObject("WandPT_B");
+ m_pRevelioPT_R = Get_PartObject("WandPT_R");
+
+ SAFE_ADDREF(m_pRevelioPT_Y);
+ SAFE_ADDREF(m_pRevelioPT_B);
+ SAFE_ADDREF(m_pRevelioPT_R);
+
+ m_wstrEffectName = L"Revelio";
+
+
+
+ m_fDuration = 3.f;
+
+ return S_OK;
+}
+
+void CRevelio::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CRevelio::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+ CPlayer* pPlayer = static_cast(m_pOwner);
+
+ if (pPlayer == nullptr)
+ return;
+
+ _matrix WandWorld = pPlayer->Get_WandPos();
+
+ /*_vector pPos = pPlayer->Get_WandPos().r[3];*/
+
+ m_pRevelioPT_Y->Get_Component()->Set_WorldMatrix(WandWorld);
+ m_pRevelioPT_R->Get_Component()->Set_WorldMatrix(WandWorld);
+ m_pRevelioPT_B->Get_Component()->Set_WorldMatrix(WandWorld);
+
+}
+
+void CRevelio::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRevelio::Pre_Setting(CGameObject* pObject)
+{
+ if (pObject == nullptr)
+ return E_FAIL;
+
+ m_pOwner = pObject;
+
+
+ Reset_EffectParts();
+
+ m_fAccTime = 0.f;
+ __super::m_fAccTime = 0.f;
+ m_fPreAccTime = 0.f;
+
+
+ CPlayer* pPlayer = static_cast(m_pOwner);
+
+ if (pPlayer == nullptr)
+ return E_FAIL;
+
+ _matrix WandWorld = pPlayer->Get_WandPos();
+
+ /*_vector pPos = pPlayer->Get_WandPos().r[3];*/
+
+ m_pRevelioPT_Y->Get_Component()->Set_WorldMatrix(WandWorld);
+ m_pRevelioPT_R->Get_Component()->Set_WorldMatrix(WandWorld);
+ m_pRevelioPT_B->Get_Component()->Set_WorldMatrix(WandWorld);
+
+ m_pRevelioPT_Y->Set_Visible(true);
+ m_pRevelioPT_R->Set_Visible(true);
+ m_pRevelioPT_B->Set_Visible(true);
+
+
+ Get_PartObject("Revelio_Ring")->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ Get_PartObject("Revelio_Ring")->Set_Visible(true);
+
+ m_bVisible = true;
+
+ return S_OK;
+}
+
+HRESULT CRevelio::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRevelio::Ready_Child()
+{
+ return S_OK;
+}
+
+CRevelio* CRevelio::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRevelio* pInstance = new CRevelio(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRevelio");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRevelio::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRevelio* pInstance = new CRevelio(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRevelio");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRevelio::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CRevelio::Free()
+{
+ __super::Free();
+
+ //if(m_pPhysHitBox != nullptr)
+ // if (m_pPhysHitBox->Get_Depth() == false)
+ // SAFE_RELEASE(m_pPhysHitBox);
+
+
+ SAFE_RELEASE(m_pRevelioPT_Y);
+ SAFE_RELEASE(m_pRevelioPT_B);
+ SAFE_RELEASE(m_pRevelioPT_R);
+
+}
+#ifdef _DEBUG
+
+void CRevelio::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CRevelio::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Editor/Private/RootModelPart.cpp b/Jusin154_Team3D/Editor/Private/RootModelPart.cpp
index 489dd2283..60067d2dd 100644
--- a/Jusin154_Team3D/Editor/Private/RootModelPart.cpp
+++ b/Jusin154_Team3D/Editor/Private/RootModelPart.cpp
@@ -71,7 +71,7 @@ void CRootModelPart::Update_Anim(_float fTimeDelta)
{
pModel->Set_PlayAnim(m_pMainModel->Get_PlayAnim());
pModel->Set_AnimSpeed(m_pMainModel->Get_AnimSpeed());
- pModel->ComputeAnimation();
+ //pModel->ComputeAnimation();
pModel->Play_Animation(fTimeDelta,m_pTransformCom);
}
}
@@ -100,7 +100,7 @@ void CRootModelPart::Change_Model(_uint iIndex)
pModel->Set_AnimationIndex(m_iAnimIndex);
pModel->Set_CurrentTrackPosition(m_fTrackPosition);
- pModel->ComputeAnimation();
+ //pModel->ComputeAnimation();
pModel->Play_Animation(0.f, m_pTransformCom);
if (iIndex == ENUM_CLASS(PARTSTYPE::BODY))
@@ -114,7 +114,7 @@ void CRootModelPart::Set_Animation(_uint iAnimIndex)
{
m_pMainModel->Set_AnimationIndex(iAnimIndex);
m_pMainModel->Set_CurrentTrackPosition(0.f);
- m_pMainModel->ComputeAnimation();
+ //m_pMainModel->ComputeAnimation();
m_pMainModel->Play_Animation(0.f, m_pTransformCom);
for (auto& PartObject : m_ModelParts)
{
@@ -123,7 +123,7 @@ void CRootModelPart::Set_Animation(_uint iAnimIndex)
{
pModel->Set_AnimationIndex(m_pMainModel->Get_AnimIndex());
pModel->Set_CurrentTrackPosition(m_pMainModel->Get_CurrentTrackPosition());
- pModel->ComputeAnimation();
+ //pModel->ComputeAnimation();
pModel->Play_Animation(0.f, m_pTransformCom);
}
}
diff --git a/Jusin154_Team3D/Editor/Private/Slot_Number.cpp b/Jusin154_Team3D/Editor/Private/Slot_Number.cpp
index 3099589bb..11ddde33b 100644
--- a/Jusin154_Team3D/Editor/Private/Slot_Number.cpp
+++ b/Jusin154_Team3D/Editor/Private/Slot_Number.cpp
@@ -210,17 +210,13 @@ HRESULT CSlot_Number::Ready_Components(void* pArg)
void CSlot_Number::UV()
{
- pUVDesc[0].fUVStart = Meter_Index(1);
- pUVDesc[0].fUVEnd = Compute_UVY(1);
- pUVDesc[1].fUVStart = Meter_Index(2);
- pUVDesc[1].fUVEnd = Compute_UVY(2);
- pUVDesc[2].fUVStart = Meter_Index(3);
- pUVDesc[2].fUVEnd = Compute_UVY(3);
- pUVDesc[3].fUVStart = Meter_Index(4);
- pUVDesc[3].fUVEnd = Compute_UVY(4);
+ pUVDesc[0].fUV = Meter_Index(1);
+ pUVDesc[1].fUV = Meter_Index(2);
+ pUVDesc[2].fUV = Meter_Index(3);
+ pUVDesc[3].fUV = Meter_Index(4);
}
-_float2 CSlot_Number::Meter_Index(_uint Number)
+_float4 CSlot_Number::Meter_Index(_uint Number)
{
m_fIamge_Size = { 320.f, 128.f };
@@ -233,28 +229,13 @@ _float2 CSlot_Number::Meter_Index(_uint Number)
_uint frameX = Number % iXCount;
_uint frameY = Number / iXCount;
- _float2 UVStart;
- UVStart.x = frameX * frameWidth / m_fIamge_Size.x;
- UVStart.y = frameY * frameHeight / m_fIamge_Size.y;
+ _float4 UV;
+ UV.x = frameX * frameWidth / m_fIamge_Size.x;
+ UV.y = frameY * frameHeight / m_fIamge_Size.y;
+ UV.z = UV.x + (frameWidth / m_fIamge_Size.x);
+ UV.w = UV.y + (frameHeight / m_fIamge_Size.y);
- return UVStart;
-}
-
-_float2 CSlot_Number::Compute_UVY(_uint Number)
-{
- m_fIamge_Size = { 320.f, 128.f };
-
- _float frameWidth = 64.f;
- _float frameHeight = 64.f;
-
- // Start 구함
- _float2 UVStart = Meter_Index(Number);
-
- _float2 UVEnd;
- UVEnd.x = UVStart.x + (frameWidth / m_fIamge_Size.x);
- UVEnd.y = UVStart.y + (frameHeight / m_fIamge_Size.y);
-
- return UVEnd;
+ return UV;
}
CSlot_Number* CSlot_Number::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Anim.cpp b/Jusin154_Team3D/Editor/Private/Spell_Anim.cpp
new file mode 100644
index 000000000..8ffec41f8
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Spell_Anim.cpp
@@ -0,0 +1,241 @@
+#include "pch.h"
+#include "Spell_Anim.h"
+#include "GameInstance.h"
+
+CSpell_Anim::CSpell_Anim(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_Anim::CSpell_Anim(const CSpell_Anim& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_Anim::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Anim::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 470.f;
+ Desc.fSizeY = 250.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 3.f;
+ m_fSortZ = 0.01f;
+ m_iTotalFrames = 216;
+ m_fFrameTime = 0.1f;
+ m_iCurrentFrame = 0;
+ m_bAnim_Start = false;
+ return S_OK;
+}
+
+void CSpell_Anim::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Anim::Update(_float fTimeDelta)
+{
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ if (m_pGameInstance->Key_Down(DIK_9))
+ {
+ m_bAnim_Start = !m_bAnim_Start;
+ }
+ if (m_bAnim_Start)
+ {
+ m_fTime += fTimeDelta * m_fTimeMult;
+ }
+ else
+ m_iCurrentFrame = 0;
+
+ if (m_fTime >= m_fFrameTime)
+ {
+ m_iCurrentFrame++;
+ m_fTime -= m_fFrameTime;
+
+ if (m_iCurrentFrame >= m_iTotalFrames)
+ m_iCurrentFrame = 0;
+ }
+
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_Anim::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpell_Anim::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpell_Anim::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_Anim::Anim_Start(_uint iSpell_Id)
+{
+}
+
+void CSpell_Anim::Anim_End()
+{
+}
+
+HRESULT CSpell_Anim::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", m_iCurrentFrame)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpell_Anim::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Crucio"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+
+CSpell_Anim* CSpell_Anim::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Anim* pInstance = new CSpell_Anim(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Anim");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Anim::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Anim* pInstance = new CSpell_Anim(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Anim");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Anim::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpell_Anim::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Canvas.cpp b/Jusin154_Team3D/Editor/Private/Spell_Canvas.cpp
index 13d0525bd..e711775e1 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Canvas.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Canvas.cpp
@@ -39,7 +39,6 @@ HRESULT CSpell_Canvas::Initialize(void* pArg)
{
return E_FAIL;
}
-
return S_OK;
}
@@ -132,9 +131,7 @@ void CSpell_Canvas::Free()
SAFE_RELEASE(m_pVIBufferCom);
}
-#ifdef _DEBUG
void CSpell_Canvas::Describe_Entity()
{
}
-#endif // _DEBUG
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Data.cpp b/Jusin154_Team3D/Editor/Private/Spell_Data.cpp
new file mode 100644
index 000000000..decc62317
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Spell_Data.cpp
@@ -0,0 +1,91 @@
+#include "pch.h"
+#include "Spell_Data.h"
+#include "GameObject.h"
+
+CSpell_Data::CSpell_Data(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CGameObject(pDevice, pContext)
+{
+}
+
+CSpell_Data::CSpell_Data(const CSpell_Data& rhs)
+ :CGameObject(rhs)
+{
+}
+
+HRESULT CSpell_Data::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Data::Initialize(void* pArg)
+{
+ return S_OK;
+}
+
+void CSpell_Data::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CSpell_Data::Update(_float fTimeDelta)
+{
+}
+
+void CSpell_Data::Late_Update(_float fTimeDelta)
+{
+}
+
+HRESULT CSpell_Data::Render()
+{
+ return S_OK;
+}
+
+_vector CSpell_Data::Get_WorldPostion()
+{
+ return _vector();
+}
+
+HRESULT CSpell_Data::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Data::Ready_Components(void* pArg)
+{
+ return S_OK;
+}
+
+CSpell_Data* CSpell_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Data* pInstance = new CSpell_Data(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Data");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Data::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Data* pInstance = new CSpell_Data(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Data");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Data::Free()
+{
+ __super::Free();
+
+}
+
+void CSpell_Data::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Header.cpp b/Jusin154_Team3D/Editor/Private/Spell_Header.cpp
new file mode 100644
index 000000000..284be9ad9
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Spell_Header.cpp
@@ -0,0 +1,221 @@
+#include "pch.h"
+#include "Spell_Header.h"
+#include "GameInstance.h"
+
+CSpell_Header::CSpell_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_Header::CSpell_Header(const CSpell_Header& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_Header::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Header::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = -20.f;
+ Desc.fSizeX = 512.f;
+ Desc.fSizeY = 64.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 3.f;
+ m_fMoveSpeed = 5.f;
+ m_fLerpX = m_fX;
+ m_fLerpY = 45;
+ return S_OK;
+}
+
+void CSpell_Header::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Header::Update(_float fTimeDelta)
+{
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_Header::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible) {
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpell_Header::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELL_HEADER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpell_Header::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_Header::MoveY(_float fY)
+{
+ m_fY += fY;
+}
+
+HRESULT CSpell_Header::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpell_Header::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_LighthouseHeaderBack"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpell_Header* CSpell_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Header* pInstance = new CSpell_Header(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Header::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Header* pInstance = new CSpell_Header(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Header::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpell_Header::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Header_Line.cpp b/Jusin154_Team3D/Editor/Private/Spell_Header_Line.cpp
new file mode 100644
index 000000000..dbd3bdaf5
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Spell_Header_Line.cpp
@@ -0,0 +1,214 @@
+#include "pch.h"
+#include "Spell_Header_Line.h"
+#include "GameInstance.h"
+
+CSpell_Header_Line::CSpell_Header_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_Header_Line::CSpell_Header_Line(const CSpell_Header_Line& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_Header_Line::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Header_Line::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 20.f;
+ Desc.fSizeX = 487.f;
+ Desc.fSizeY = 18.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 3.f;
+ m_fMoveSpeed = 5.f;
+ return S_OK;
+}
+
+void CSpell_Header_Line::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Header_Line::Update(_float fTimeDelta)
+{
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_Header_Line::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible) {
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpell_Header_Line::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpell_Header_Line::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_Header_Line::MoveY(_float fY)
+{
+ m_fY += fY;
+}
+
+HRESULT CSpell_Header_Line::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpell_Header_Line::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_Header_Line"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpell_Header_Line* CSpell_Header_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Header_Line* pInstance = new CSpell_Header_Line(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Header_Line");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Header_Line::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Header_Line* pInstance = new CSpell_Header_Line(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Header");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Header_Line::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpell_Header_Line::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Hover.cpp b/Jusin154_Team3D/Editor/Private/Spell_Hover.cpp
new file mode 100644
index 000000000..86a4e1685
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Spell_Hover.cpp
@@ -0,0 +1,313 @@
+#include "pch.h"
+#include "Spell_Hover.h"
+#include "GameInstance.h"
+
+CSpell_Hover::CSpell_Hover(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_Hover::CSpell_Hover(const CSpell_Hover& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_Hover::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Hover::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fAlpha = 1.f;
+ m_fTimeMult = 3.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 120.f;
+ m_fOffSetY = 122.f;
+ m_iCols = 4;
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ return S_OK;
+}
+
+void CSpell_Hover::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Hover::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ Hover();
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_Hover::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpell_Hover::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::SPELL_HOVER))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpell_Hover::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_Hover::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CSpell_Hover::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CSpell_Hover::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+void CSpell_Hover::Hover()
+{
+ POINT ptMouse{};
+ GetCursorPos(&ptMouse);
+ ScreenToClient(g_hWnd, &ptMouse);
+ _float2 fMouse;
+ fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
+ fMouse.y = -(ptMouse.y - (g_iWinSizeY* 0.5f));
+
+ fMouse.x -= m_pOwner->Get_WorldPostion().m128_f32[0];
+ fMouse.y -= m_pOwner->Get_WorldPostion().m128_f32[1];
+
+ m_pVIBufferCom->Set_Mouse_Hover(fMouse);
+
+}
+
+HRESULT CSpell_Hover::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom4->Bind_ShaderResource(m_pShaderCom, "g_Texture4", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom5->Bind_ShaderResource(m_pShaderCom, "g_Texture5", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CSpell_Hover::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_IconButtonOutline"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_IconButtonHighlight"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_GoldLeaf"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_Goldleaf_Large"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_IconButton"), reinterpret_cast(&m_pDiffuse_TextureCom4), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_SelectedPresetBorder"), reinterpret_cast(&m_pDiffuse_TextureCom5), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpell_Hover* CSpell_Hover::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Hover* pInstance = new CSpell_Hover(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Hover");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Hover::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Hover* pInstance = new CSpell_Hover(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Hover");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Hover::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
+ SAFE_RELEASE(m_pDiffuse_TextureCom4);
+ SAFE_RELEASE(m_pDiffuse_TextureCom5);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpell_Hover::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Hover_Effect.cpp b/Jusin154_Team3D/Editor/Private/Spell_Hover_Effect.cpp
new file mode 100644
index 000000000..f336f09d1
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Spell_Hover_Effect.cpp
@@ -0,0 +1,279 @@
+#include "pch.h"
+#include "Spell_Hover_Effect.h"
+#include "GameInstance.h"
+
+CSpell_Hover_Effect::CSpell_Hover_Effect(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_Hover_Effect::CSpell_Hover_Effect(const CSpell_Hover_Effect& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_Hover_Effect::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Hover_Effect::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fAlpha = 1.f;
+ m_fTimeMult = 1.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 120.f;
+ m_fOffSetY = 122.f;
+ m_iCols = 4;
+ m_fSortZ = 0.02f;
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ return S_OK;
+}
+
+void CSpell_Hover_Effect::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Hover_Effect::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ Hover();
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_Hover_Effect::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpell_Hover_Effect::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::SPELL_SLOT_EFFECT))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpell_Hover_Effect::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_Hover_Effect::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CSpell_Hover_Effect::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CSpell_Hover_Effect::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+void CSpell_Hover_Effect::Hover()
+{
+ POINT ptMouse{};
+ GetCursorPos(&ptMouse);
+ ScreenToClient(g_hWnd, &ptMouse);
+ _float2 fMouse;
+ fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
+ fMouse.y = -(ptMouse.y - (g_iWinSizeY * 0.5f));
+
+ fMouse.x -= m_pOwner->Get_WorldPostion().m128_f32[0];
+ fMouse.y -= m_pOwner->Get_WorldPostion().m128_f32[1];
+
+ m_pVIBufferCom->Set_Mouse_Hover(fMouse);
+
+}
+
+HRESULT CSpell_Hover_Effect::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_MaskTexture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+
+HRESULT CSpell_Hover_Effect::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_SelectedBorderMask"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_VFX_T_WhispLine_D"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpell_Hover_Effect* CSpell_Hover_Effect::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Hover_Effect* pInstance = new CSpell_Hover_Effect(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Hover_Effect");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Hover_Effect::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Hover_Effect* pInstance = new CSpell_Hover_Effect(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Hover_Effect");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Hover_Effect::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpell_Hover_Effect::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_List.cpp b/Jusin154_Team3D/Editor/Private/Spell_List.cpp
new file mode 100644
index 000000000..57eaeca74
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Spell_List.cpp
@@ -0,0 +1,303 @@
+#include "pch.h"
+#include "Spell_List.h"
+#include "GameInstance.h"
+
+CSpell_List::CSpell_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_List::CSpell_List(const CSpell_List& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_List::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_List::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fAlpha = 1.f;
+ m_fTimeMult = 3.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 120.f;
+ m_fOffSetY = 122.f;
+ m_iCols = 4;
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ Color();
+ return S_OK;
+}
+
+void CSpell_List::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_List::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+ Hover();
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_List::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+
+HRESULT CSpell_List::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::COLOR))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpell_List::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_List::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CSpell_List::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CSpell_List::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+void CSpell_List::Color()
+{
+ m_pVIBufferCom->Set_Index_Renge_Color(0, 3, _float4(255.f / 255.f, 255.f / 255.f, 0.f / 255.f, 1.f));
+ m_pVIBufferCom->Set_Index_Renge_Color(4, 7, _float4(150.f / 255.f, 120.f / 255.f, 240.f / 255.f, 1.f));
+ m_pVIBufferCom->Set_Index_Renge_Color(8, 12, _float4(190.f / 255.f, 46.f / 255.f, 34.f / 255.f, 1.f));
+ m_pVIBufferCom->Set_Index_Renge_Color(13, 16, _float4(24.f / 255.f, 190.f / 255.f, 255.f / 255.f, 1.f));
+ m_pVIBufferCom->Set_Index_Renge_Color(17, 19, _float4(200.f / 255.f, 220.f / 255.f, 150.f / 255.f, 1.f));
+ m_pVIBufferCom->Set_Index_Renge_Color(20, 22, _float4(50.f / 255.f, 150.f / 255.f, 110.f / 255.f, 1.f));
+ m_pVIBufferCom->Set_Index_Renge_Color(23, 25, _float4(24.f / 255.f, 190.f / 255.f, 255.f / 255.f, 1.f));
+}
+
+void CSpell_List::Hover()
+{
+ POINT ptMouse{};
+ GetCursorPos(&ptMouse);
+ ScreenToClient(g_hWnd, &ptMouse);
+ _float2 fMouse;
+ fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
+ fMouse.y = -(ptMouse.y - (g_iWinSizeY * 0.5f));
+
+ // 엘리먼트의 월드 위치를 더해주면 엘리먼트 좌표계 기준이 됨
+ fMouse.x -= m_pOwner->Get_WorldPostion().m128_f32[0];
+ fMouse.y -= m_pOwner->Get_WorldPostion().m128_f32[1];
+
+ m_bPrevHover = m_bHover;
+ m_bHover = (m_iSpellType = m_pVIBufferCom->Set_Mouse_Hover(fMouse));
+ if (m_iSpellType != -1)
+ {
+ m_bHover = true;
+ if (m_bHover == true && m_bPrevHover == false)
+ {
+ static_cast(m_pOwner)->Set_SkillType(m_iSpellType);
+ }
+ }
+ else
+ {
+ m_bHover = false;
+ if (m_bHover == false && m_bPrevHover == true)
+ {
+ static_cast(m_pOwner)->Set_SkillType(m_iSpellType);
+ }
+ }
+
+}
+
+HRESULT CSpell_List::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CSpell_List::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_SpellType_Generic"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpell_List* CSpell_List::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_List* pInstance = new CSpell_List(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_List");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_List::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_List* pInstance = new CSpell_List(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_List");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_List::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpell_List::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_List_Image.cpp b/Jusin154_Team3D/Editor/Private/Spell_List_Image.cpp
new file mode 100644
index 000000000..b263f0576
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Spell_List_Image.cpp
@@ -0,0 +1,286 @@
+#include "pch.h"
+#include "Spell_List_Image.h"
+#include "GameInstance.h"
+
+CSpell_List_Image::CSpell_List_Image(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_List_Image::CSpell_List_Image(const CSpell_List_Image& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_List_Image::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_List_Image::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeY = 90.f;
+ Desc.fSizeX = 90.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fAlpha = 1.f;
+ m_fTimeMult = 3.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 120.f;
+ m_fOffSetY = 122.f;
+ m_iCols = 4;
+ UV();
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ m_pVIBufferCom->Set_ImageUV(pUVDesc);
+ return S_OK;
+}
+
+void CSpell_List_Image::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_List_Image::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_List_Image::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpell_List_Image::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::EESSENTIAL_SPELL))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpell_List_Image::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_List_Image::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CSpell_List_Image::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CSpell_List_Image::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+void CSpell_List_Image::UV()
+{
+ for (_uint i = 0; i < 26; ++i)
+ {
+ pUVDesc[i].fUV = Meter_Index(i);
+ }
+}
+
+_float4 CSpell_List_Image::Meter_Index(_uint Number)
+{
+ _float2 fImage_Size = { 1024.f, 1792.f };
+
+ _uint iCountX = 4;
+ _uint iCountY = 7;
+
+ _float iImageX = 256.f;
+ _float iImageY = 256.f;
+
+ _uint iframeX = Number % iCountX;
+ _uint iframeY = Number / iCountX;
+
+ _float2 UVStart;
+ UVStart.x = iframeX * iImageX / fImage_Size.x;
+ UVStart.y = iframeY * iImageY / fImage_Size.y;
+
+ _float2 UVEnd;
+ UVEnd.x = UVStart.x + (iImageX / fImage_Size.x);
+ UVEnd.y = UVStart.y + (iImageY / fImage_Size.y);
+
+ _float4 UV = _float4{ UVStart.x, UVStart.y, UVEnd.x, UVEnd.y };
+ return UV;
+}
+
+HRESULT CSpell_List_Image::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CSpell_List_Image::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List_Image"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Atlas_Widget_Spell"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpell_List_Image* CSpell_List_Image::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_List_Image* pInstance = new CSpell_List_Image(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_List_Image");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_List_Image::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_List_Image* pInstance = new CSpell_List_Image(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_List_Image");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_List_Image::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpell_List_Image::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp b/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
index 0b657c26f..566519b20 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
@@ -48,7 +48,7 @@ HRESULT CSpell_Overlay::Initialize(void* pArg)
m_vUVScale.y = 1.f;
m_fCoolTime = 5.f;
m_fSortZ = 1.f;
- m_iSkillType = ENUM_CLASS(SKILLTYPE::CONTROL);
+ m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
Compute_UI(5);
return S_OK;
}
@@ -154,7 +154,7 @@ HRESULT CSpell_Overlay::Render()
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELLTYPE))))
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::TYPE))))
{
return E_FAIL;
}
@@ -225,7 +225,7 @@ HRESULT CSpell_Overlay::Bind_ShaderResources()
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSkillType, sizeof(_float))))
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType, sizeof(_int))))
{
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Panel.cpp b/Jusin154_Team3D/Editor/Private/Spell_Panel.cpp
index 40ad30251..5825737f7 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Panel.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Panel.cpp
@@ -2,6 +2,15 @@
#include "Spell_Panel.h"
#include "GameInstance.h"
#include "Current_Spell_Slot.h"
+#include "Spell_List.h"
+#include "Eessential_Spell_Slot.h"
+#include "Eessential_Spell.h"
+#include "Spell_List_Image.h"
+#include "Spell_State.h"
+#include "Spell_Hover.h"
+#include "Spell_Hover_Effect.h"
+#include "Spell_Preview.h"
+#include "Spell_Vidio_Border.h"
CSpell_Panel::CSpell_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CPanelObject(pDevice, pContext)
@@ -40,6 +49,7 @@ HRESULT CSpell_Panel::Initialize(void* pArg)
return E_FAIL;
}
m_fCanvasAlpha = 1.f;
+ m_fSortZ = 0.04f;
return S_OK;
}
@@ -161,6 +171,60 @@ HRESULT CSpell_Panel::Ready_Element(void* pArg)
}
Add_Element(TEXT("Current_Spell_Slot"), m_pCurrent_Spell_Slot);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_List))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_List"), m_pSpell_List);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEessential_Spell_Slot))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Eessential_Spell_Slot"), m_pEessential_Spell_Slot);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pEessential_Spell))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Eessential_Spell"), m_pEessential_Spell);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_List_Image))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_List_Image"), m_pSpell_List_Image);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_State))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_State"), m_pSpell_State);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Hover))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_Hover"), m_pSpell_Hover);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Hover_Effect))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_Hover_Effect"), m_pSpell_Hover_Effect);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Preview))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_Preview"), m_pSpell_Preview);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Vidio_Border))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Spell_Vidio_Border"), m_pSpell_Vidio_Border);
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Preview.cpp b/Jusin154_Team3D/Editor/Private/Spell_Preview.cpp
new file mode 100644
index 000000000..782652f26
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Spell_Preview.cpp
@@ -0,0 +1,297 @@
+#include "pch.h"
+#include "Spell_Preview.h"
+#include "GameInstance.h"
+#include "Spell_Header.h"
+#include "Spell_Header_Line.h"
+
+CSpell_Preview::CSpell_Preview(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_Preview::CSpell_Preview(const CSpell_Preview& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_Preview::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Preview::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 400.f;
+ Desc.fY = -365.f;
+ Desc.fSizeX = 128.f;
+ Desc.fSizeY = 128.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ // y값 최소 270 최대 410
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 3.f;
+ m_vNine_Slice = _float4(50.f, 75.f, 30.f, 96.f);
+ m_fTopY = m_fY - m_vScale.y * 0.5f;
+ SizeUpX(512.f);
+ SizeUpY(270.f);
+ m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
+ m_fSortZ = 0.02f;
+ return S_OK;
+}
+
+void CSpell_Preview::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Preview::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ static_cast(m_pSpell_Header)->Set_SkillType(ENUM_CLASS(m_iSpellType));
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_Preview::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpell_Preview::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELL_PREVIEW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+ m_pSpell_Header->Render();
+ m_pSpell_Header_Line->Render();
+ return S_OK;
+}
+
+_vector CSpell_Preview::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_Preview::SizeUpX(_float fSizeX)
+{
+ _float fX = (fSizeX - m_vScale.x) * 0.5f;
+ m_fSizeX = fSizeX;
+ m_fX += fX;
+ m_fLerpX += fX;
+
+}
+
+void CSpell_Preview::SizeUpY(_float fSizeY)
+{
+ _float prevY = m_fY;
+ m_fSizeY = fSizeY;
+ m_fY = m_fTopY + fSizeY * 0.5f;
+
+ _float deltaY = m_fY - prevY;
+
+ static_cast(m_pSpell_Header_Line)->MoveY(-deltaY);
+ static_cast(m_pSpell_Header)->MoveY(-deltaY);
+}
+
+HRESULT CSpell_Preview::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_vHeaderBack, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpell_Preview::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_SpellWidgetPanelBack"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_Goldleaf_Large"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_TooltipBorder_4K"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_LighthouseHeaderBack"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Header))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Header_Line))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CSpell_Preview* CSpell_Preview::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Preview* pInstance = new CSpell_Preview(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Preview");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Preview::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Preview* pInstance = new CSpell_Preview(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Preview");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Preview::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpell_Preview::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp b/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp
index ebe541b3d..3e7fb4cfe 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp
@@ -39,7 +39,7 @@ HRESULT CSpell_Slot::Initialize(void* pArg)
m_fAlpha = 1.f;
m_fTimeMult = 3.f;
- m_fAngle = XMConvertToRadians(45);
+ m_fAngle = XMConvertToRadians(-135);
m_fAlphaTime = 1.f;
m_fOffSetX = 101.f;
m_fOffSetY = 101.f;
@@ -47,7 +47,6 @@ HRESULT CSpell_Slot::Initialize(void* pArg)
m_pVIBufferCom->Set_Cloned(true);
m_pVIBufferCom->Set_Pos(380.f, -30.f, m_fOffSetX, m_fOffSetY, m_iCols);
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
- m_pVIBufferCom->Set_ImageUV();
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Slot_Preview.cpp b/Jusin154_Team3D/Editor/Private/Spell_Slot_Preview.cpp
index 2a4986416..979927f06 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Slot_Preview.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Slot_Preview.cpp
@@ -44,7 +44,6 @@ HRESULT CSpell_Slot_Preview::Initialize(void* pArg)
m_pVIBufferCom->Set_Cloned(true);
//m_pVIBufferCom->Set_Pos(0.f, 0.f, m_fOffSetX, m_fOffSetY, m_iCols);
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
- m_pVIBufferCom->Set_ImageUV();
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_State.cpp b/Jusin154_Team3D/Editor/Private/Spell_State.cpp
new file mode 100644
index 000000000..44fdf495c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Spell_State.cpp
@@ -0,0 +1,269 @@
+#include "pch.h"
+#include "Spell_State.h"
+#include "GameInstance.h"
+
+CSpell_State::CSpell_State(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_State::CSpell_State(const CSpell_State& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_State::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_State::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fAlpha = 1.f;
+ m_fTimeMult = 3.f;
+ m_fAlphaTime = 1.f;
+ m_fOffSetX = 120.f;
+ m_fOffSetY = 122.f;
+ m_iCols = 4;
+ m_pVIBufferCom->Set_Cloned(true);
+ m_pVIBufferCom->Set_Pos(-185.f, 375.f, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ return S_OK;
+}
+
+void CSpell_State::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_State::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+ Hover();
+ __super::Update(fTimeDelta);
+}
+
+void CSpell_State::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible)
+ {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpell_State::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIINTANCE::ALPHABLEND))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpell_State::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpell_State::SizeUpX(_float fSizeX)
+{
+ m_fSizeX = fSizeX;
+ m_pVIBufferCom->Set_SizeX(m_fSizeX);
+}
+
+void CSpell_State::SizeUpY(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_SizeY(m_fSizeY);
+}
+
+void CSpell_State::SizeUpdate(_float fSizeX, _float fSizeY)
+{
+ m_fSizeX = fSizeX;
+ m_fSizeY = fSizeY;
+ m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+}
+
+void CSpell_State::Hover()
+{
+ POINT ptMouse{};
+ GetCursorPos(&ptMouse);
+ ScreenToClient(g_hWnd, &ptMouse);
+ _float2 fMouse;
+ fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
+ fMouse.y = -(ptMouse.y - (g_iWinSizeY * 0.5f));
+
+ // 엘리먼트의 월드 위치를 더해주면 엘리먼트 좌표계 기준이 됨
+ fMouse.x -= m_pOwner->Get_WorldPostion().m128_f32[0];
+ fMouse.y -= m_pOwner->Get_WorldPostion().m128_f32[1];
+
+ m_pVIBufferCom->Set_Mouse_Hover(fMouse);
+
+}
+
+HRESULT CSpell_State::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CSpell_State::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Spell_List"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_NewLock"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpell_State* CSpell_State::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_State* pInstance = new CSpell_State(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_State");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_State::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_State* pInstance = new CSpell_State(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_State");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_State::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpell_State::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Vidio_Border.cpp b/Jusin154_Team3D/Editor/Private/Spell_Vidio_Border.cpp
new file mode 100644
index 000000000..b5f0d702b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Spell_Vidio_Border.cpp
@@ -0,0 +1,234 @@
+#include "pch.h"
+#include "Spell_Vidio_Border.h"
+#include "GameInstance.h"
+#include "Spell_Anim.h"
+
+CSpell_Vidio_Border::CSpell_Vidio_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpell_Vidio_Border::CSpell_Vidio_Border(const CSpell_Vidio_Border& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpell_Vidio_Border::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpell_Vidio_Border::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 590.f;
+ Desc.fY = -100.f;
+ Desc.fSizeX = 520.f;
+ Desc.fSizeY = 275.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 3.f;
+ m_fMoveSpeed = 5.f;
+ m_fLerpX = m_fX;
+ m_fLerpY = 45;
+ return S_OK;
+}
+
+void CSpell_Vidio_Border::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpell_Vidio_Border::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+ __super::Update(fTimeDelta);
+
+}
+
+void CSpell_Vidio_Border::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpell_Vidio_Border::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpell_Vidio_Border::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpell_Vidio_Border::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpell_Vidio_Border::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_TalentVideoBorder"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Anim))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CSpell_Vidio_Border* CSpell_Vidio_Border::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpell_Vidio_Border* pInstance = new CSpell_Vidio_Border(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpell_Vidio_Border");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpell_Vidio_Border::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpell_Vidio_Border* pInstance = new CSpell_Vidio_Border(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Vidio_Border");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpell_Vidio_Border::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpell_Vidio_Border::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/TrailObject.cpp b/Jusin154_Team3D/Editor/Private/TrailObject.cpp
index acdb0cdfa..8b6bd1053 100644
--- a/Jusin154_Team3D/Editor/Private/TrailObject.cpp
+++ b/Jusin154_Team3D/Editor/Private/TrailObject.cpp
@@ -326,6 +326,8 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
return E_FAIL;
}
+ m_pTrailCom->ReStructVB(m_TrailInfo.iNumVertex);
+
CloseHandle(hFile);
return S_OK;
@@ -486,6 +488,12 @@ void CTrailObject::Describe_Entity()
m_pShaderCom->Describe_Entity();
+ if(GUI::InputInt("NumVertex", &m_TrailInfo.iNumVertex))
+ {
+ m_pTrailCom->Reset_Trail();
+ m_pTrailCom->ReStructVB(m_TrailInfo.iNumVertex);
+ }
+
GUI::Checkbox("Diffuse", &m_TrailInfo.isDiffuse);
GUI::Checkbox("Masking", &m_TrailInfo.isMask);
GUI::Checkbox("Noise", &m_TrailInfo.isNoise);
diff --git a/Jusin154_Team3D/Editor/Private/Wand.cpp b/Jusin154_Team3D/Editor/Private/Wand.cpp
index 77bb00bfd..23bc08d7f 100644
--- a/Jusin154_Team3D/Editor/Private/Wand.cpp
+++ b/Jusin154_Team3D/Editor/Private/Wand.cpp
@@ -53,26 +53,12 @@ void CWand::Priority_Update(_float fTimeDelta)
void CWand::Update(_float fTimeDelta)
{
-
- Describe_Entity();
-
- //_matrix BoneMatrix = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("root"));
-
- //BoneMatrix = BoneMatrix * m_pTransformCom->Get_XMWorldMatrix();
-
-
- //BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[0]) * m_vOffset.x;
- //BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[1]) * m_vOffset.y;
- //BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[2]) * m_vOffset.z;
-
- //m_pEffectParts->Get_Component()->Set_WorldMatrix(BoneMatrix);
-
- //m_pTrail->Trail_Update(BoneMatrix, fTimeDelta);
-
+ m_pModelCom->Combined_BoneMatrix();
}
void CWand::Late_Update(_float fTimeDelta)
{
+
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
}
diff --git a/Jusin154_Team3D/Editor/Public/Decendo.h b/Jusin154_Team3D/Editor/Public/Decendo.h
index 3e778f36c..40b02a92e 100644
--- a/Jusin154_Team3D/Editor/Public/Decendo.h
+++ b/Jusin154_Team3D/Editor/Public/Decendo.h
@@ -40,7 +40,7 @@ class CDecendo final : public CEffect_Container
_float m_fAccTime = {};
_float m_fLerpAmount = {};
_float m_fTurnValue = {};
- _vector m_vOwnerLook = {};
+ _vector m_vCameraLook = {};
public:
static CDecendo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
diff --git a/Jusin154_Team3D/Editor/Public/Dummy_Globe.h b/Jusin154_Team3D/Editor/Public/Dummy_Globe.h
index 5ed94c890..cb77d502c 100644
--- a/Jusin154_Team3D/Editor/Public/Dummy_Globe.h
+++ b/Jusin154_Team3D/Editor/Public/Dummy_Globe.h
@@ -27,6 +27,7 @@ class CDummy_Globe final : public CGameObject
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
+ virtual HRESULT Render_Bloom() override { return Render(); };
private:
CModel* m_pModelCom = { nullptr };
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index 163a5f0e0..809fed838 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -16,7 +16,7 @@ namespace Editor
enum class LEVEL { STATIC, LOADING, LOGO, LOBY, GAMEPLAY, RESTART, OBJECT, MAP, UI, EFFECT, PHYSX, BLOOM, END };
enum class COLLIDABLEOBJECT { PLAYER, MONSTER, HOSTILE_HITBOX, ALLY_HITBOX, NEUTRAL_HITBOX, ENVIRIONMENT, NPC, ITEM, TRIGGERBOX, REGION, NOCOLLIDE, END };
enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT };
- enum class MAPOBJECT_RENDER_TYPE {NORMAL, DECAL, GLASS};
+ enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS };
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ, END };
enum class SHADER_PASS_CUBE { DEFAULT, SHADOW, BLUR, END };
@@ -24,14 +24,26 @@ namespace Editor
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, END };
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
- enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR , TRAIL_BLOOM, END };
- enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, ALPHA_BLEND, BLOOM, END };
- enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, SPELLTYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, END };
- enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, END };
+ enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR , TRAIL_BLOOM, END };
+
+ enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, END };
+ enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, SPELL_ANIM, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, END };
+ enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, END };
+
+
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
- enum class SKILL_TYPE{ JAP , BOMBARD , DECENDO , PROTEGO , END };
+ enum class SKILL_TYPE{ ARESTO_MOMENTUM, GLACIUS, LEVIOSO, TRANSFORM, // 노란색
+ ASSIO, DEPULSO, DESCENDO, FLIPENDO, // 보라색
+ CONFRINGO, DIFFINDO, EXPELLIARMUS, BOMBARDA, INCENDIO, // 빨간색
+ DISILLUSIONMENT, LUMOS, REPARO, WINGARDIUM_LEVIOSA, // 하늘색
+ CONJURING_SPELL, ALTERING_SPELL, EVANESCO, // 연녹색
+ AVADA_KEDAVRA, CRUCIO, IMPERIO, // 진녹색
+ BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, // 하늘색
+ JAP , REVELIO, PROTEGO, STUPEFY, // 검은색
+ ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS, END };
+
enum class BLOOM_TYPE { NONE , BASIC , MULTIPLY , END};
}
diff --git a/Jusin154_Team3D/Editor/Public/Eessential_Spell.h b/Jusin154_Team3D/Editor/Public/Eessential_Spell.h
new file mode 100644
index 000000000..3a793d636
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Eessential_Spell.h
@@ -0,0 +1,53 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CEessential_Spell final : public CElementObject
+{
+private:
+ CEessential_Spell(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CEessential_Spell(const CEessential_Spell& rhs);
+ virtual ~CEessential_Spell() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+public:
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+ void UV();
+ _float4 Meter_Index(_uint Number);
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
+ CVIBuffer_UI_Instance::UI_ATLAS_DESC pUVDesc[8];
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+public:
+ static CEessential_Spell* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Eessential_Spell_Slot.h b/Jusin154_Team3D/Editor/Public/Eessential_Spell_Slot.h
new file mode 100644
index 000000000..6c0619e09
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Eessential_Spell_Slot.h
@@ -0,0 +1,55 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CEessential_Spell_Slot final : public CElementObject
+{
+private:
+ CEessential_Spell_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CEessential_Spell_Slot(const CEessential_Spell_Slot& rhs);
+ virtual ~CEessential_Spell_Slot() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+
+private:
+ void Hover();
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+ _bool m_bHover = { false };
+ _bool m_bPrevHover = { false };
+public:
+ static CEessential_Spell_Slot* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h
index f4d8dd844..f2a9cf81c 100644
--- a/Jusin154_Team3D/Editor/Public/EffectObject.h
+++ b/Jusin154_Team3D/Editor/Public/EffectObject.h
@@ -24,7 +24,7 @@ class CEffectObject abstract : public CPartObject
_float2 vMaskingUVGainAmount = {};
_float2 vNoiseUVGainAmount = {};
- _float2 vDiffuseDistortionUVGainAmount = {};
+ _float2 vDistortionTime = {};
_float2 vMaskDistortionUVGainAmount = {};
_float2 vUVCutting = { 1.f ,1.f };
diff --git a/Jusin154_Team3D/Editor/Public/EffectPool.h b/Jusin154_Team3D/Editor/Public/EffectPool.h
index 2d74d706b..0a555cb30 100644
--- a/Jusin154_Team3D/Editor/Public/EffectPool.h
+++ b/Jusin154_Team3D/Editor/Public/EffectPool.h
@@ -27,6 +27,10 @@ class CEffectPool final : public CGameObject
public:
HRESULT Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPrototypeLevel, _uint iCloneLevel , function AddPrototypeEvent);
HRESULT Use_Skill(SKILL_TYPE eType , CGameObject* pOwner);
+public:
+#ifdef _DEBUG
+ HRESULT Reset_Pool();
+#endif
private:
list m_EffectList[ENUM_CLASS(SKILL_TYPE::END)] = {};
list m_ActiveEffectList = {};
diff --git a/Jusin154_Team3D/Editor/Public/Effect_Editor.h b/Jusin154_Team3D/Editor/Public/Effect_Editor.h
index f0358252f..a0375761c 100644
--- a/Jusin154_Team3D/Editor/Public/Effect_Editor.h
+++ b/Jusin154_Team3D/Editor/Public/Effect_Editor.h
@@ -54,6 +54,9 @@ class CEffect_Editor final : public CEffect_Container
_string m_strTrailSavePath = {};
_string m_strPackageSavePath = {};
+private:
+ class CEffectPool* m_pEffectPool = nullptr;
+
public:
static CEffect_Editor* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Editor/Public/IMGUIUI.h b/Jusin154_Team3D/Editor/Public/IMGUIUI.h
index 3b8461faf..77f8ef5fe 100644
--- a/Jusin154_Team3D/Editor/Public/IMGUIUI.h
+++ b/Jusin154_Team3D/Editor/Public/IMGUIUI.h
@@ -48,7 +48,7 @@ class CIMGUIUI final : public CGameObject
_float m_fAlpha{};
_float2 m_UV{};
- _int m_iSkillType{};
+ _int m_iSpellType{};
_vector m_vLerpPosition{};
_float m_fLerpX{};
diff --git a/Jusin154_Team3D/Editor/Public/Levioso.h b/Jusin154_Team3D/Editor/Public/Levioso.h
new file mode 100644
index 000000000..1b3fb48bf
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Levioso.h
@@ -0,0 +1,55 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Editor)
+
+class CLevioso final : public CEffect_Container
+{
+private:
+ CLevioso(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CLevioso(const CLevioso& rhs);
+ virtual ~CLevioso() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+ class CPlayer* m_pPlayer = {};
+
+ class CEditEffect* m_pLeviosoPJ_0 = { nullptr };
+ class CEditEffect* m_pLeviosoPJ_1 = { nullptr };
+ class CTrailObject* m_pLeviosoTrail = { nullptr };
+ class CEditEffect* m_pTrail_PT_0 = { nullptr };
+
+ _vector m_vOwnerLook = {};
+ _float m_fAccRotateTime = {};
+ _float m_fTurnSpeed = {};
+ _float m_fRange = {};
+public:
+ static CLevioso* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Magic_Item.h b/Jusin154_Team3D/Editor/Public/Magic_Item.h
index 83cf77f0c..18df03ef7 100644
--- a/Jusin154_Team3D/Editor/Public/Magic_Item.h
+++ b/Jusin154_Team3D/Editor/Public/Magic_Item.h
@@ -35,6 +35,7 @@ class CMagic_Item final : public CElementObject
CTexture* m_pDiffuse_TextureCom3 = { nullptr };
CTexture* m_pDiffuse_TextureCom4 = { nullptr };
CTexture* m_pDiffuse_TextureCom5 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom6 = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
diff --git a/Jusin154_Team3D/Editor/Public/NomalJap.h b/Jusin154_Team3D/Editor/Public/NomalJap.h
index 8101aa3a9..70f9aa159 100644
--- a/Jusin154_Team3D/Editor/Public/NomalJap.h
+++ b/Jusin154_Team3D/Editor/Public/NomalJap.h
@@ -39,7 +39,7 @@ class CNomalJap final : public CEffect_Container
_float m_fAccTime = {};
_float m_fLerpAmount = {};
_float m_fTurnValue = {};
- _vector m_vOwnerLook = {};
+ _vector m_vCameraLook = {};
public:
static CNomalJap* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
diff --git a/Jusin154_Team3D/Editor/Public/Player.h b/Jusin154_Team3D/Editor/Public/Player.h
index 80bc9f88d..5c4c27ed7 100644
--- a/Jusin154_Team3D/Editor/Public/Player.h
+++ b/Jusin154_Team3D/Editor/Public/Player.h
@@ -17,7 +17,7 @@ class CPlayer final : public CUnit
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
- _bool Set_Sprint(_bool bSprint) { m_bSprintToggle = bSprint; }
+ _bool Set_Sprint(_bool bSprint) { m_bSprintToggle = bSprint; }
_matrix Get_WandPos();
private:
_float m_fDirectionRadian = 0.f;
diff --git a/Jusin154_Team3D/Editor/Public/Revelio.h b/Jusin154_Team3D/Editor/Public/Revelio.h
new file mode 100644
index 000000000..e3b334bf6
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Revelio.h
@@ -0,0 +1,49 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Editor)
+
+class CRevelio final : public CEffect_Container
+{
+private:
+ CRevelio(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRevelio(const CRevelio& rhs);
+ virtual ~CRevelio() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+ class CPlayer* m_pPlayer = {};
+ class CEditEffect* m_pRevelioPT_Y = { nullptr };
+ class CEditEffect* m_pRevelioPT_B = { nullptr };
+ class CEditEffect* m_pRevelioPT_R = { nullptr };
+
+public:
+ static CRevelio* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Slot_Number.h b/Jusin154_Team3D/Editor/Public/Slot_Number.h
index 340b9b872..a419eee42 100644
--- a/Jusin154_Team3D/Editor/Public/Slot_Number.h
+++ b/Jusin154_Team3D/Editor/Public/Slot_Number.h
@@ -27,8 +27,7 @@ class CSlot_Number final : public CElementObject
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
void UV();
- _float2 Meter_Index(_uint Numver);
- _float2 Compute_UVY(_uint Numver);
+ _float4 Meter_Index(_uint Numver);
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
diff --git a/Jusin154_Team3D/Editor/Public/Spell_Anim.h b/Jusin154_Team3D/Editor/Public/Spell_Anim.h
new file mode 100644
index 000000000..678f2b36a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Spell_Anim.h
@@ -0,0 +1,51 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CSpell_Anim final : public CElementObject
+{
+private:
+ CSpell_Anim(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Anim(const CSpell_Anim& rhs);
+ virtual ~CSpell_Anim() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+public:
+ void Anim_Start(_uint iSpell_Id);
+ void Anim_End();
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDesendo_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iTotalFrames{}; // 전체 프레임 수
+ _float m_fFrameTime{}; // 한 프레임당 시간(초)
+ _int m_iCurrentFrame{}; // 현재 보여줄 프레임
+
+ _uint m_iSpell_Index{};
+ _bool m_bAnim_Start = { false };
+public:
+ static CSpell_Anim* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Spell_Data.h b/Jusin154_Team3D/Editor/Public/Spell_Data.h
new file mode 100644
index 000000000..86c6f33f6
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Spell_Data.h
@@ -0,0 +1,41 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "GameObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Editor)
+
+class CSpell_Data final : public CGameObject
+{
+ CSpell_Data(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Data(const CSpell_Data& rhs);
+ virtual ~CSpell_Data() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ CGameObject* m_pSpell_Panel = { nullptr };
+public:
+ static CSpell_Data* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Spell_Header.h b/Jusin154_Team3D/Editor/Public/Spell_Header.h
new file mode 100644
index 000000000..41fb41913
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Spell_Header.h
@@ -0,0 +1,43 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CSpell_Header final : public CElementObject
+{
+private:
+ CSpell_Header(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Header(const CSpell_Header& rhs);
+ virtual ~CSpell_Header() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual void MoveY(_float fY) override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CSpell_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Spell_Header_Line.h b/Jusin154_Team3D/Editor/Public/Spell_Header_Line.h
new file mode 100644
index 000000000..d8062f7ec
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Spell_Header_Line.h
@@ -0,0 +1,43 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CSpell_Header_Line final : public CElementObject
+{
+private:
+ CSpell_Header_Line(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Header_Line(const CSpell_Header_Line& rhs);
+ virtual ~CSpell_Header_Line() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual void MoveY(_float fY) override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CSpell_Header_Line* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Spell_Hover.h b/Jusin154_Team3D/Editor/Public/Spell_Hover.h
new file mode 100644
index 000000000..496588411
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Spell_Hover.h
@@ -0,0 +1,60 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Editor)
+
+class CSpell_Hover final : public CElementObject
+{
+private:
+ CSpell_Hover(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Hover(const CSpell_Hover& rhs);
+ virtual ~CSpell_Hover() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+private:
+ void Hover();
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom4 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom5 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+public:
+ static CSpell_Hover* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Spell_Hover_Effect.h b/Jusin154_Team3D/Editor/Public/Spell_Hover_Effect.h
new file mode 100644
index 000000000..433d74719
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Spell_Hover_Effect.h
@@ -0,0 +1,56 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Editor)
+
+class CSpell_Hover_Effect final : public CElementObject
+{
+private:
+ CSpell_Hover_Effect(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Hover_Effect(const CSpell_Hover_Effect& rhs);
+ virtual ~CSpell_Hover_Effect() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+private:
+ void Hover();
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+public:
+ static CSpell_Hover_Effect* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Spell_List.h b/Jusin154_Team3D/Editor/Public/Spell_List.h
new file mode 100644
index 000000000..7e81f303a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Spell_List.h
@@ -0,0 +1,60 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Editor)
+
+class CSpell_List final : public CElementObject
+{
+private:
+ CSpell_List(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_List(const CSpell_List& rhs);
+ virtual ~CSpell_List() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+private:
+ void Color();
+ void Hover();
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+ _bool m_bHover = { false };
+ _bool m_bPrevHover = { false };
+
+public:
+ static CSpell_List* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Spell_List_Image.h b/Jusin154_Team3D/Editor/Public/Spell_List_Image.h
new file mode 100644
index 000000000..2a8a3ba0b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Spell_List_Image.h
@@ -0,0 +1,57 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Editor)
+
+class CSpell_List_Image final : public CElementObject
+{
+private:
+ CSpell_List_Image(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_List_Image(const CSpell_List_Image& rhs);
+ virtual ~CSpell_List_Image() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+public:
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+ void UV();
+ _float4 Meter_Index(_uint Number);
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
+ CVIBuffer_UI_Instance::UI_ATLAS_DESC pUVDesc[26];
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+public:
+ static CSpell_List_Image* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Spell_Panel.h b/Jusin154_Team3D/Editor/Public/Spell_Panel.h
index 4d7ebe882..8fa70c623 100644
--- a/Jusin154_Team3D/Editor/Public/Spell_Panel.h
+++ b/Jusin154_Team3D/Editor/Public/Spell_Panel.h
@@ -23,6 +23,11 @@ class CSpell_Panel final : public CPanelObject
virtual HRESULT Render() override;
virtual _vector Get_WorldPostion() override;
+public:
+ void SlotHoverOn();
+ void SlotHoverOff();
+ void SlotHover();
+
private:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
@@ -36,6 +41,17 @@ class CSpell_Panel final : public CPanelObject
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
CGameObject* m_pCurrent_Spell_Slot = { nullptr };
+ CGameObject* m_pSpell_List = { nullptr };
+ CGameObject* m_pEessential_Spell_Slot = { nullptr };
+ CGameObject* m_pEessential_Spell = { nullptr };
+ CGameObject* m_pSpell_List_Image = { nullptr };
+ CGameObject* m_pSpell_State = { nullptr };
+ CGameObject* m_pSpell_Hover = { nullptr };
+ CGameObject* m_pSpell_Hover_Effect = { nullptr };
+ CGameObject* m_pSpell_Preview = { nullptr };
+ CGameObject* m_pSpell_Vidio_Border = { nullptr };
+
+ _uint m_iSlotHover_Index{};
public:
static CSpell_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Editor/Public/Spell_Preview.h b/Jusin154_Team3D/Editor/Public/Spell_Preview.h
new file mode 100644
index 000000000..6f3dcd134
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Spell_Preview.h
@@ -0,0 +1,51 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CSpell_Preview final : public CElementObject
+{
+private:
+ CSpell_Preview(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Preview(const CSpell_Preview& rhs);
+ virtual ~CSpell_Preview() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ CGameObject* m_pSpell_Header = { nullptr };
+ CGameObject* m_pSpell_Header_Line = { nullptr };
+
+ _float4 m_vHeaderBack{};
+
+public:
+ static CSpell_Preview* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Spell_State.h b/Jusin154_Team3D/Editor/Public/Spell_State.h
new file mode 100644
index 000000000..ae6d7a509
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Spell_State.h
@@ -0,0 +1,55 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Editor)
+
+class CSpell_State final : public CElementObject
+{
+private:
+ CSpell_State(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_State(const CSpell_State& rhs);
+ virtual ~CSpell_State() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+ virtual void SizeUpX(_float fSizeX) override;
+ virtual void SizeUpY(_float fSizeY) override;
+ virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
+private:
+ void Hover();
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
+
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
+
+public:
+ static CSpell_State* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Spell_Vidio_Border.h b/Jusin154_Team3D/Editor/Public/Spell_Vidio_Border.h
new file mode 100644
index 000000000..3263a8c70
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Spell_Vidio_Border.h
@@ -0,0 +1,43 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CSpell_Vidio_Border final : public CElementObject
+{
+private:
+ CSpell_Vidio_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpell_Vidio_Border(const CSpell_Vidio_Border& rhs);
+ virtual ~CSpell_Vidio_Border() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDesendo_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ CGameObject* m_pSpell_Anim = { nullptr };
+
+public:
+ static CSpell_Vidio_Border* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/TrailObject.h b/Jusin154_Team3D/Editor/Public/TrailObject.h
index 6a7c16594..190930957 100644
--- a/Jusin154_Team3D/Editor/Public/TrailObject.h
+++ b/Jusin154_Team3D/Editor/Public/TrailObject.h
@@ -68,6 +68,8 @@ class CTrailObject final : public CPartObject
BLOOM_TYPE eBloomType = {};
_float2 vBloomTime = {};
+ _int iNumVertex = {};
+
}TRAIL_INFO;
private:
CTrailObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
index 754d895eb..d109e5e46 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
@@ -145,6 +145,8 @@ PBR_LIGHT_OUT PBR_Lighting(
if (NdotL <= 0 || NdotV <= 0)
{
return Out;
+ Out.vShade = 0;
+ Out.vSpecular = 0;
}
float fAlpha = max(fRoughness * fRoughness, 0.04f);
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
index db13bce76..afff86997 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
@@ -181,7 +181,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
return Out;
}
- float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
+ //float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
{ // 수치조정 // 디렉셔널
float fMinRoughness = 0.05f;
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
@@ -191,11 +191,14 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
-
- PBR_Out.vShade *= fDiffuseAOStrength;
+ PBR_Out.vShade *= fOcclusion;
- Out.vShade = float4(PBR_Out.vShade, 1.f);
- Out.vSpecular = float4(PBR_Out.vSpecular, 1.f);
+ float3 vAmbient = g_vLightAmbient.rgb * fOcclusion;
+ float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
+ float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb;
+
+ Out.vShade = float4(vFinalDiffuse, 1.f);
+ Out.vSpecular = float4(vFinalSpecular, 1.f);
return Out;
}
@@ -268,7 +271,7 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
return Out;
}
- float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
+ //float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
{ // 수치조정 // 점광원
float fMinRoughness = 0.05f;
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
@@ -278,10 +281,14 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
- PBR_Out.vShade *= fDiffuseAOStrength;
+ PBR_Out.vShade *= fOcclusion;
- Out.vShade = float4(PBR_Out.vShade, 1.f);
- Out.vSpecular = float4(PBR_Out.vSpecular, 1.f);
+ float3 vAmbient = g_vLightAmbient.rgb * fOcclusion;
+ float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
+ float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb;
+
+ Out.vShade = float4(vFinalDiffuse, 1.f);
+ Out.vSpecular = float4(vFinalSpecular, 1.f);
return Out;
}
@@ -318,7 +325,9 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
float fCameraDistance = length(g_vCamPosition.xyz - vWorldPosition.xyz);
float fLightDistance = length(g_vLightPos.xyz - vWorldPosition.xyz);
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
- float3 vToLight = normalize(g_vLightPos.xyz - vWorldPosition.xyz); // 픽셀에서 라이트로
+ float3 vToLight = normalize(vWorldPosition.xyz - g_vLightPos.xyz); // 픽셀에서 라이트로
+ float3 vLightToPixel = normalize(vWorldPosition.xyz - g_vLightPos.xyz);
+
fAttenuation = saturate((g_fLightRange - fLightDistance) / g_fLightRange);
if (fAttenuation <= 0.f)
@@ -328,7 +337,7 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
return Out;
}
- float fCosAngle = dot(vToView, g_vLightDir.xyz);
+ float fCosAngle = dot(-vLightToPixel, normalize(g_vLightDir.xyz));
if (fCosAngle < g_fSpotOuterAngle)
{
Out.vShade = float4(0.f, 0.f, 0.f, 1.f);
@@ -365,7 +374,7 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
return Out;
}
- float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
+ //float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
{ // 수치조정 // 점광원
float fMinRoughness = 0.05f;
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
@@ -375,10 +384,14 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
- PBR_Out.vShade *= fDiffuseAOStrength;
+ PBR_Out.vShade *= fOcclusion;
- Out.vShade = float4(PBR_Out.vShade, 1.f);
- Out.vSpecular = float4(PBR_Out.vSpecular, 1.f);
+ float3 vAmbient = g_vLightAmbient.rgb * fOcclusion;
+ float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
+ float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb;
+
+ Out.vShade = float4(vFinalDiffuse, 1.f);
+ Out.vSpecular = float4(vFinalSpecular, 1.f);
return Out;
}
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
index 91a72f9db..b669d3285 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
@@ -39,6 +39,7 @@ struct ParticleValue
float fSizeDrag;
float3 vDeltaSize;
float2 vDelay;
+
};
@@ -101,7 +102,7 @@ void CS_MAIN(
{
if (isNoWorld)
{
- float4x4 CurMat = { particle.vRight, particle.vUp, particle.vLook, particle.vTranslation };
+ row_major float4x4 CurMat = { particle.vRight, particle.vUp, particle.vLook, particle.vTranslation };
CurMat = mul(CurMat, WorldMatrix);
@@ -112,6 +113,7 @@ void CS_MAIN(
particle.vTranslation = CurMat[3].xyzw;
}
}
+
// 라이프타임 움직임
particle.vLifeTime.x += fTimeDelta;
@@ -151,21 +153,26 @@ void CS_MAIN(
if (particleValue.fDrag < FLT_EPSILON5)
fDrag = 1;
- float4 vVelocity = vector(normalize(particle.vLook.xyz) * particleValue.fSpeed, 1.f);
+ float4 vVelocity = vector(normalize(particle.vLook.xyz) * particleValue.fSpeed, 0.f);
particle.vTranslation += vVelocity * fTimeDelta * fDrag;
}
if (isPivotMove)
{
+ float fTime = (particle.vLifeTime.x / particle.vLifeTime.y);
+
float3 vDir = normalize(particleValue.vPivot - particleValue.vOriginTranslation.xyz);
- float fDrag = particleValue.fDrag;
+ float fRatio = (1 - fTime * fTime);
+ float fDrag = particleValue.fDrag * fRatio;
+
+
if (particleValue.fDrag < FLT_EPSILON5)
fDrag = 1;
- float4 vVelocity = vector(vDir * particleValue.fSpeed, 1.f);
+ float4 vVelocity = vector(vDir * particleValue.fSpeed , 0.f);
particle.vTranslation += vVelocity * fTimeDelta * fDrag;
diff --git a/Jusin154_Team3D/Engine/Private/Animation.cpp b/Jusin154_Team3D/Engine/Private/Animation.cpp
index ab2984f7f..050b4a388 100644
--- a/Jusin154_Team3D/Engine/Private/Animation.cpp
+++ b/Jusin154_Team3D/Engine/Private/Animation.cpp
@@ -24,6 +24,8 @@ CAnimation::CAnimation(const CAnimation& rhs)
, m_pSaveAnim{ rhs.m_pSaveAnim }
, m_fAnimSpeed{rhs.m_fAnimSpeed }
, m_iBoneCount{rhs.m_iBoneCount}
+ , m_fProgress{rhs.m_fProgress }
+ , m_fDurationSeconds{ rhs.m_fDurationSeconds }
{
memcpy_s(m_TickPerSeconds, sizeof(_float) * 2, rhs.m_TickPerSeconds, sizeof(_float) * 2);
@@ -33,27 +35,29 @@ CAnimation::CAnimation(const CAnimation& rhs)
SAFE_ADDREF(pChannel);
}
}
-_bool CAnimation::Update_TransformationMatrices(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _bool bIsLoop, _float fTimeDelta,_vector vector[3])
+_bool CAnimation::Update_TransformationMatrices(const vector& Bones, LOCALPOS_DESC** pLocalPosArray, _bool bIsLoop, _float fTimeDelta, _bool bIsSpine, vector<_uint> BoneMask,_vector vector[3])
{
+ m_fTempTrack += fTimeDelta * m_fAnimSpeed;
m_fProgress = m_fTickPerSecond * fTimeDelta * m_fAnimSpeed;
m_fCurrentTrackPosition += m_fProgress;
if (m_fCurrentTrackPosition >= m_fDuration) {
if (false == bIsLoop) {
m_fCurrentTrackPosition = 0.f; // 루프
- m_fCurrentTrackPosition = m_fDuration;
+ m_fTempTrack = 0.f;
return true;
}
else {
Depart_Animation();
m_fCurrentTrackPosition = m_fProgress;
+ m_fTempTrack = 0.f;
ResetRootMotion();
- ProgressAnimation(Bones, pLocalPosArray, vector);
+ ProgressAnimation(Bones, pLocalPosArray, bIsSpine, BoneMask, vector);
return true;
}
}
- ProgressAnimation(Bones, pLocalPosArray, vector);
+ ProgressAnimation(Bones, pLocalPosArray, bIsSpine, BoneMask, vector);
return false;
}
@@ -256,6 +260,8 @@ HRESULT CAnimation::Initialize(const vector& Bones, const aiAnimation* p
m_iNumChannels = pAIAnimation->mNumChannels;
m_CurrentKeyFrameIndices.resize(m_iNumChannels);
+ m_fDurationSeconds = m_fDuration / m_fTickPerSecond;
+
for (_uint i = 0; i < m_iNumChannels; ++i) {
CChannel* pChannel = CChannel::Create(Bones, pAIAnimation->mChannels[i]);
if (nullptr == pChannel) {
@@ -297,6 +303,8 @@ HRESULT CAnimation::Initialize(const vector& Bones, const CModel* pModel
m_iBoneCount = (_uint)Bones.size();
+ m_fDurationSeconds = m_fDuration / m_fTickPerSecond;
+
for (size_t i = 0; i < m_iNumChannels; i++)
{
CChannel* pChannel = CChannel::Create(pModel, &pSaveAnimation->Channels[i]);
@@ -309,14 +317,14 @@ HRESULT CAnimation::Initialize(const vector& Bones, const CModel* pModel
return S_OK;
}
-void CAnimation::ProgressAnimation(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray,_vector vector[3])
+void CAnimation::ProgressAnimation(const vector& Bones, LOCALPOS_DESC** pLocalPosArray, _bool bIsSpine,vector<_uint>BoneMask,_vector vector[3])
{
_uint iIndex = {};
if (m_vBoneTransformationMatrix.size() > 0) {
m_vBoneTransformationMatrix.clear();
}
for (auto& pChannel : m_Channels) {
- pChannel->Update_TransformationMatirx(Bones, pLocalPosArray, m_fCurrentTrackPosition, &m_CurrentKeyFrameIndices[iIndex++], vector);
+ pChannel->Update_TransformationMatirx(Bones, pLocalPosArray, m_fCurrentTrackPosition, &m_CurrentKeyFrameIndices[iIndex++], bIsSpine, BoneMask, vector);
m_vBoneTransformationMatrix.push_back(pChannel->Get_BoneTransformationMatrix());
}
}
diff --git a/Jusin154_Team3D/Engine/Private/Channel.cpp b/Jusin154_Team3D/Engine/Private/Channel.cpp
index 4973e5c61..dbb3d388d 100644
--- a/Jusin154_Team3D/Engine/Private/Channel.cpp
+++ b/Jusin154_Team3D/Engine/Private/Channel.cpp
@@ -113,12 +113,23 @@ HRESULT CChannel::Initialize(const vector& Bones, _uint iIndex)
void CChannel::Update_TransformationMatirx(
const vector& Bones,
- const LOCALPOS_DESC* pLocalPosArray,
+ LOCALPOS_DESC** pLocalPosArray,
_float fCurrentTrackPosition,
_uint* pCurrentKeyFrameIndex,
+ _bool bIsSpine,
+ vector<_uint> BoneMask,
_vector vector[3])
{
- const LOCALPOS_DESC& LocalPos = pLocalPosArray[m_iBoneIndex];
+ if (!bIsSpine)
+ {
+ m_IsUpper = BoneMask[m_iBoneIndex];
+ m_ilayerIndex = m_IsUpper ? 1 : 0;
+ LocalPos = pLocalPosArray[m_ilayerIndex][m_iBoneIndex];
+ }
+ else
+ {
+ LocalPos = pLocalPosArray[0][m_iBoneIndex];
+ }
_vector vScale = XMLoadFloat3(&LocalPos.Scale);
_vector vRotation = XMLoadFloat4(&LocalPos.Rotation);
@@ -128,17 +139,32 @@ void CChannel::Update_TransformationMatirx(
LocalPos.Translation.z,
1.f);
- if (Bones[m_iBoneIndex]->Compare_Name("Reference"))
+ if (Bones[m_iBoneIndex]->Compare_Name("Reference") && vector)
{
vector[0] = vScale;
vector[1] = vRotation;
vector[2] = vTranslation;
}
-
- m_BoneTransformationMatrix =
- XMMatrixAffineTransformation(vScale, XMVectorSet(0.f, 0.f, 0.f, 1.f), vRotation, vTranslation);
- Bones[m_iBoneIndex]->Set_TransformationMatrix(m_BoneTransformationMatrix);
+ if (bIsSpine)
+ {
+ m_BoneTransformationMatrix =
+ XMMatrixAffineTransformation(vScale, XMVectorSet(0.f, 0.f, 0.f, 1.f), vRotation, vTranslation);
+
+ Bones[m_iBoneIndex]->Set_TransformationMatrix(m_BoneTransformationMatrix);
+ }
+ else
+ {
+ if (m_ilayerIndex == 1)
+ {
+ m_BoneTransformationMatrix =
+ XMMatrixAffineTransformation(vScale, XMVectorSet(0.f, 0.f, 0.f, 1.f), vRotation, vTranslation);
+
+ Bones[m_iBoneIndex]->Set_TransformationMatrix(m_BoneTransformationMatrix);
+ }
+ }
+
+
}
void CChannel::ResetRootMotion()
diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
index bbe400cdf..d21daa66a 100644
--- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
+++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
@@ -153,7 +153,7 @@ HRESULT CCharacter_Controller::ConvertToDO(CRigidBody_Dynamic& BodyOriginal)
PSX::PxTransform pxTransform = pCCTActor->getGlobalPose();
pDOActor->setGlobalPose(pxTransform);
- return E_FAIL;
+ return S_OK;
}
void CCharacter_Controller::Move(_float fTimeDelta)
diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp
index 7539f7c80..5f44b7821 100644
--- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp
+++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp
@@ -428,7 +428,7 @@ void CGameInstance::Clear_Objects_With_Layers(_uint iLevelIndex)
}
HRESULT CGameInstance::Add_RenderGroup(RENDER eRenderGroup, CGameObject* pRenderObject)
-{
+{
return m_pRenderer->Add_RenderGroup(eRenderGroup, pRenderObject);
}
diff --git a/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp b/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp
index 7bca5fe38..a8aed2001 100644
--- a/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp
+++ b/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp
@@ -260,7 +260,9 @@ void CGraphic_Device::Free()
OutputDebugStringW(L" D3D11 Live Object ref Count Checker END \r ");
OutputDebugStringW(L"----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- \r ");
}
- if (d3dDebug != nullptr) d3dDebug->Release();
+ if (d3dDebug != nullptr) {
+ d3dDebug->Release();
+ }
#endif
diff --git a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
index 5f1e3ae15..f55b6737b 100644
--- a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
@@ -173,7 +173,9 @@ HRESULT CInstance_Model::Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fma
#ifdef EDITOR_PROJECT
_bool CInstance_Model::SaveAssimpModel(const _char* filename , const aiScene* pAIScene)
{
- if (!pAIScene) return false;
+ if (!pAIScene) {
+ return false;
+ }
_char szModel[MAX_PATH] = {};
_char szExt[MAX_PATH] = {};
@@ -267,7 +269,9 @@ _bool CInstance_Model::SaveAssimpModel(const _char* filename , const aiScene* pA
FILE* fp = nullptr;
fopen_s(&fp, savePath.c_str(), "wb");
- if (!fp) return false;
+ if (!fp) {
+ return false;
+ }
fwrite(&modelData.MeshCount, sizeof(_uint), 1, fp);
@@ -349,7 +353,9 @@ bool CInstance_Model::LoadData(const _char* filename)
{
FILE* fp = nullptr;
fopen_s(&fp, filename, "rb");
- if (!fp) return false;
+ if (!fp) {
+ return false;
+ }
SaveModel NewModel = {};
diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp
index 819b9e4ef..c81c6d562 100644
--- a/Jusin154_Team3D/Engine/Private/Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Model.cpp
@@ -113,25 +113,40 @@ _bool CModel::Play_Animation(_float fTimeDelta, CTransform* pTransform)
if (m_iCurrentAnimIndex < 0 || m_iCurrentAnimIndex >= (_int)m_iNumAnimations)
return false;
+ if (m_iCurrSecondAnimIndex >= 0) {
+ Play_Dual_Anim(fTimeDelta, pTransform);
+ }
+ else {
+ Play_Anim(fTimeDelta, pTransform);
+ }
+
+ return m_bIsFinishedAnim;
+}
+
+_bool CModel::Play_Anim(_float fTimeDelta, CTransform* pTransform)
+{
if (m_bLoopRestarted)
{
m_vPrevRootPos = { 0,0,0 };
m_bLoopRestarted = false;
}
- ComputeAnimation();
+ ComputeAnimation(m_iCurrentAnimIndex);
if (m_iPreAnimIndex >= 0 && m_iPreAnimIndex != m_iCurrentAnimIndex)
{
m_fBlendTime += fTimeDelta;
m_fRatio = (m_fBlendTime / m_fBlendDuration);
- if (m_fRatio > 1.f) m_fRatio = 1.f;
+ if (m_fRatio > 1.f) {
+ m_fRatio = 1.f;
+ }
CAnimation* pCurAnim = m_Animations[m_iCurrentAnimIndex];
CAnimation* pPreAnim = m_Animations[m_iPreAnimIndex];
- m_bIsFinishedAnim = pCurAnim->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, m_vector);
-
+ m_bIsFinishedAnim = pCurAnim->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_vector);
+
+
pCurAnim->InterpAnim(pPreAnim, m_Bones, m_fRatio);
if (m_fRatio >= 1.f)
@@ -142,7 +157,7 @@ _bool CModel::Play_Animation(_float fTimeDelta, CTransform* pTransform)
}
else
{
- m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, m_vector);
+ m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_vector);
m_iPreAnimIndex = m_iCurrentAnimIndex;
}
@@ -177,6 +192,78 @@ _bool CModel::Play_Animation(_float fTimeDelta, CTransform* pTransform)
return m_bIsFinishedAnim;
}
+_bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform)
+{
+ if (m_bLoopRestarted)
+ {
+ m_vPrevRootPos = { 0,0,0 };
+ m_bLoopRestarted = false;
+ }
+
+ ComputeAnimation(m_iCurrentAnimIndex);
+ ComputeAnimation_Second(m_iCurrSecondAnimIndex);
+
+ if (m_iPreAnimIndex >= 0 && m_iPreAnimIndex != m_iCurrentAnimIndex)
+ {
+ m_fBlendTime += fTimeDelta;
+ m_fRatio = (m_fBlendTime / m_fBlendDuration);
+ if (m_fRatio > 1.f) m_fRatio = 1.f;
+
+ CAnimation* pCurAnim = m_Animations[m_iCurrentAnimIndex];
+ CAnimation* pPreAnim = m_Animations[m_iPreAnimIndex];
+
+ CAnimation* pSecondAnim = m_Animations[m_iCurrSecondAnimIndex];
+
+ m_bIsFinishedAnim = pCurAnim->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_vector);
+ pCurAnim->InterpAnim(pPreAnim, m_Bones, m_fRatio);
+ m_bIsSecondFinishedAnim = pSecondAnim->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsSecondLoop, fTimeDelta, false, m_iBoneMask);
+ if (m_fRatio >= 1.f)
+ {
+ m_iPreAnimIndex = m_iCurrentAnimIndex;
+ m_fBlendTime = 0.f;
+ }
+ }
+ else
+ {
+ m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_vector);
+ m_bIsSecondFinishedAnim = m_Animations[m_iCurrSecondAnimIndex]->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsSecondLoop, fTimeDelta, false, m_iBoneMask);
+ m_iPreAnimIndex = m_iCurrentAnimIndex;
+ }
+
+ if (m_bRatio) {
+ Update_RootBone(m_fAmount * m_fRatio);
+ }
+ else
+ {
+ Update_RootBone();
+ }
+
+ if (m_bIsFinishedAnim)
+ {
+ if (m_bIsLoop)
+ {
+ m_bLoopRestarted = true;
+ }
+ else
+ XMStoreFloat3(&m_vPrevRootPos, m_vector[2]);
+
+ m_vPrevRootRot = { 0.f,0.f,0.f,0.f };
+ m_bInitialRootRotSaved = false;
+ }
+
+ if (!m_bIsSecondLoop && m_bIsSecondFinishedAnim)
+ {
+ m_iCurrSecondAnimIndex = -1;
+ }
+
+ for (auto& pBone : m_Bones)
+ {
+ pBone->Update_CombinedTransformationMatrix(m_Bones, XMLoadFloat4x4(&m_PreTransformMatrix));
+ }
+
+ return m_bIsFinishedAnim;
+}
+
void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop,_float fAmount,_bool bRatio)
{
if (m_iCurrentAnimIndex == iIndex){
@@ -201,6 +288,22 @@ void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop,_float fAmount,_bool
}
}
+void CModel::Set_Second_AnimationIndex(_uint iIndex, _uint BoneIndex,_bool isLoop)
+{
+ if (m_iCurrSecondAnimIndex == iIndex) {
+ return;
+ }
+ if (iIndex >= 0 && iIndex < m_iNumAnimations)
+ {
+ m_iCurrSecondAnimIndex = iIndex;
+ m_bIsSecondLoop = isLoop;
+ m_iBoneMask = m_BoneMask[BoneIndex];
+ }
+ else {
+ m_iCurrSecondAnimIndex = -1;
+ }
+}
+
void CModel::Update_RootBone(_float Amount)
{
if (m_Bones[m_iRootBoneIndex]->Compare_Name("Reference") && m_pTransform != nullptr)
@@ -366,6 +469,7 @@ HRESULT CModel::Anim_Event(_float fRatio,_uint AnimIndex,function Event)
return E_FAIL;
}
+
HRESULT CModel::Render(_uint iMeshIndex)
{
m_Meshes[iMeshIndex]->Bind_Resources();
@@ -568,7 +672,9 @@ HRESULT CModel::Ready_Bones(const aiNode* pAINode, _int iParentIndex)
}
_bool CModel::SaveAssimpModel(const _char* filename)
{
- if (!m_pAIScene) return false;
+ if (!m_pAIScene) {
+ return false;
+ }
_char szModel[MAX_PATH] = {};
_char szExt[MAX_PATH] = {};
@@ -743,7 +849,9 @@ _bool CModel::SaveAssimpModel(const _char* filename)
FILE* fp = nullptr;
fopen_s(&fp, savePath.c_str(), "wb");
- if (!fp) return false;
+ if (!fp) {
+ return false;
+ }
fwrite(&modelData.MeshCount, sizeof(_uint), 1, fp);
fwrite(&modelData.MaterialCount, sizeof(_uint), 1, fp);
@@ -933,11 +1041,12 @@ HRESULT CModel::Create_CS()
_uint CS1_OutputStrides[] = {
sizeof(LOCALPOS_DESC),
+ sizeof(LOCALPOS_DESC),
};
m_pComputeShader = CComputeShader::Create(m_pDevice, m_pContext, L"../Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl",
- "CS_LocalSRT", (_uint)m_Bones.size(), 0, 1, nullptr, CS1_OutputStrides
+ "CS_LocalSRT", (_uint)m_Bones.size(), 0, 2, nullptr, CS1_OutputStrides
);
if (!m_pComputeShader)
@@ -986,14 +1095,14 @@ void CModel::Create_Con()
}
-void CModel::UpdateAnimationCS()
+void CModel::UpdateAnimationCS(_uint AnimIndex)
{
D3D11_MAPPED_SUBRESOURCE sub{};
if (SUCCEEDED(m_pContext->Map(m_pConstantBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &sub)))
{
ANIMSTATE_DESC* pDesc = (ANIMSTATE_DESC*)sub.pData;
- CAnimation* pAnim = m_Animations[m_iCurrentAnimIndex];
+ CAnimation* pAnim = m_Animations[AnimIndex];
pDesc->CurrentTime = pAnim->Get_CurrentTrackPosition();
pDesc->Duration = pAnim->Get_Duration();
pDesc->Speed = pAnim->Get_AnimSpeed();
@@ -1003,13 +1112,13 @@ void CModel::UpdateAnimationCS()
}
}
-void CModel::ComputeAnimation()
+void CModel::ComputeAnimation(_uint AnimIndex)
{
- UpdateAnimationCS();
+ UpdateAnimationCS(AnimIndex);
_uint iGroupCountX = ((_uint)m_Bones.size() + 255) / 256;
- CAnimation* pAnim = m_Animations[m_iCurrentAnimIndex];
+ CAnimation* pAnim = m_Animations[AnimIndex];
ID3D11ShaderResourceView* srvs[2] = {
pAnim->Get_KeyFrameSrv(),
pAnim->Get_ChannelSrv(),
@@ -1025,20 +1134,96 @@ void CModel::ComputeAnimation()
m_pContext->Dispatch(iGroupCountX, 1, 1);
auto outSubs = m_pComputeShader->ReadBackOutputs();
- m_pLocalPos = static_cast(outSubs[0].pData);
+ m_pLocalPos[0] = static_cast(outSubs[0].pData);
}
-void CModel::InItialize_SpineIndex()
+void CModel::ComputeAnimation_Second(_uint AnimIndex)
+{
+ UpdateAnimationCS(AnimIndex);
+
+ _uint iGroupCountX = ((_uint)m_Bones.size() + 255) / 256;
+
+ CAnimation* pAnim = m_Animations[AnimIndex];
+ ID3D11ShaderResourceView* srvs[2] = {
+ pAnim->Get_KeyFrameSrv(),
+ pAnim->Get_ChannelSrv(),
+ };
+
+ m_pContext->CSSetShader(m_pComputeShader->Get_Compute(), nullptr, 0);
+ m_pContext->CSSetConstantBuffers(0, 1, &m_pConstantBuffer);
+ m_pContext->CSSetShaderResources(0, 2, srvs);
+
+ ID3D11UnorderedAccessView* uavs[1] = { m_pComputeShader->GetOutputUAV(1) };
+ m_pContext->CSSetUnorderedAccessViews(0, 1, uavs, nullptr);
+
+ m_pContext->Dispatch(iGroupCountX, 1, 1);
+
+ auto outSubs = m_pComputeShader->ReadBackOutputs();
+ m_pLocalPos[1] = static_cast(outSubs[1].pData);
+}
+
+void CModel::InItialize_BoneIndex()
{
for (_uint i = 0; i < (_uint)m_Bones.size(); i++)
{
if (m_Bones[i]->Compare_Name("Spine"))
{
- m_iSpineIndex = i;
+ m_iBoneIndex[ENUM_CLASS(BLEND_BONE::SPINE)] = i;
+ }
+ if (m_Bones[i]->Compare_Name("LeftShoulder"))
+ {
+ m_iBoneIndex[ENUM_CLASS(BLEND_BONE::SHOULDER_L)] = i;
+ }
+ if (m_Bones[i]->Compare_Name("RightShoulder"))
+ {
+ m_iBoneIndex[ENUM_CLASS(BLEND_BONE::SHOULDER_R)] = i;
+ }
+ if (m_Bones[i]->Compare_Name("Neck"))
+ {
+ m_iBoneIndex[ENUM_CLASS(BLEND_BONE::NECK)] = i;
}
}
}
+void CModel::Initialize_BoneMasks()
+{
+ m_BoneMask.resize((_int)BLEND_BONE::END);
+ for (auto& mask : m_BoneMask)
+ mask.resize(m_Bones.size(), false);
+
+ auto BuildMask = [&](_int rootIndex, vector<_uint>& outMask)
+ {
+ if (rootIndex == -1)
+ return;
+ for (_uint i = 0; i < (_uint)m_Bones.size(); i++)
+ {
+ _int cur = i;
+ while (cur != -1)
+ {
+ if (cur == rootIndex)
+ {
+ outMask[i] = true;
+ break;
+ }
+ cur = m_Bones[cur]->Get_ParentBoneIndex();
+ }
+ }
+ };
+
+ BuildMask(m_iBoneIndex[ENUM_CLASS(BLEND_BONE::SPINE)], m_BoneMask[ENUM_CLASS(BLEND_BONE::SPINE)]);
+ BuildMask(m_iBoneIndex[ENUM_CLASS(BLEND_BONE::SHOULDER_L)], m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_L)]);
+ BuildMask(m_iBoneIndex[ENUM_CLASS(BLEND_BONE::SHOULDER_R)], m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_R)]);
+ BuildMask(m_iBoneIndex[ENUM_CLASS(BLEND_BONE::NECK)], m_BoneMask[ENUM_CLASS(BLEND_BONE::NECK)]);
+
+ for (_uint i = 0; i < m_Bones.size(); i++)
+ {
+ m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L)][i] =
+ m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_L)][i] | m_BoneMask[ENUM_CLASS(BLEND_BONE::NECK)][i];
+
+ m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_R)][i] =
+ m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_R)][i] | m_BoneMask[ENUM_CLASS(BLEND_BONE::NECK)][i];
+ }
+}
HRESULT CModel::Create_ParentVB()
{
@@ -1182,7 +1367,9 @@ _bool CModel::LoadData(const _char* filename)
{
FILE* fp = nullptr;
fopen_s(&fp, filename, "rb");
- if (!fp) return false;
+ if (!fp) {
+ return false;
+ }
SaveModel NewModel = {};
@@ -1319,7 +1506,9 @@ void CModel::LoadAnim(const _char* fileName)
{
FILE* fp = nullptr;
fopen_s(&fp, fileName, "rb");
- if (!fp) return;
+ if (!fp) {
+ return;
+ }
_uint MeshCount, MaterialCount, AnimationCount, NodeCount;
@@ -1426,7 +1615,9 @@ HRESULT CModel::Initialize(void* pArg)
if (m_eType == MODEL::ANIM)
{
Initialize_RootBone();
- InItialize_SpineIndex();
+ InItialize_BoneIndex();
+ Initialize_BoneMasks();
+
Create_Temp();
m_Parent.resize(m_Bones.size());
for (size_t i = 0; i < (_uint)m_Bones.size(); i++)
@@ -1485,8 +1676,9 @@ HRESULT CModel::Ready_Bones(const std::vector& allNodes, _int currentI
CBone* pBone = CBone::Create(saveNode, parentIndex);
- if (!pBone) return E_FAIL;
-
+ if (!pBone) {
+ return E_FAIL;
+ }
m_Bones.push_back(pBone);
_int myIndex = _int(m_Bones.size() - 1);
diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
index 811af0234..f4dd5f117 100644
--- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
@@ -112,20 +112,8 @@ PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody
case ACTOR::HEIGHTFIELD:
{ // SetUp HeightField
PSX::PxHeightField* pHeightField = Find_HeightField(RigidBody.Get_PxMeshKey());
- PSX::PxHeightFieldGeometry* pPxHeightGeometry = { nullptr };
-
- _vector vPos, vRotq, vScale;
- XMMatrixDecompose(&vScale, &vRotq, &vPos, WorldMatrix);
- vRotq = XMQuaternionNormalize(vRotq);
-
- PSX::PxTransform out;
- XMStoreFloat3((_float3*)&out.p, vPos);
- XMStoreFloat4((_float4*)&out.q, vRotq);
- PSX::PxMeshScale meshScale(
- PSX::PxVec3(fabsf(vScale.m128_f32[0]), fabsf(vScale.m128_f32[1]), fabsf(vScale.m128_f32[2])),
- PSX::PxQuat(PSX::PxIdentity) // 스케일 축은 로컬 기준
- );
- pPxHeightGeometry = new PSX::PxHeightFieldGeometry(pHeightField);
+ PSX::PxHeightFieldGeometry* pPxHeightGeometry = new PSX::PxHeightFieldGeometry(pHeightField);
+ pPxHeightGeometry->heightScale = 0.01f/* 기본 정밀도 100배 0.01 -> 1cm, 1 -> 1m */;
// 유효성 체크
PX_ASSERT(pPxHeightGeometry->isValid());
diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp
index 0d47c79da..70e8b59e1 100644
--- a/Jusin154_Team3D/Engine/Private/Renderer.cpp
+++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp
@@ -12,12 +12,12 @@ CRenderer::CRenderer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
SAFE_ADDREF(m_pDevice);
SAFE_ADDREF(m_pContext);
- SAFE_ADDREF(m_pGameInstance);
+ SAFE_ADDREF(m_pGameInstance);
}
HRESULT CRenderer::Add_RenderGroup(RENDER eRenderGroup, CGameObject* pRenderObject)
{
- if (nullptr == pRenderObject || pRenderObject->isDead()){
+ if (nullptr == pRenderObject || pRenderObject->isDead()) {
return E_FAIL;
}
@@ -78,7 +78,7 @@ void CRenderer::Render()
Describe_Entitiy();
m_pGameInstance->RenderTarget_Debuger();
- if(m_pGameInstance->Key_Pressing(DIK_F10)){
+ if (m_pGameInstance->Key_Pressing(DIK_F10)) {
Render_Debug();
}
#endif
@@ -232,7 +232,7 @@ void CRenderer::Render_Combined()
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Combined")))) {
return;
}
- {
+ {
// Bind_Resorces
m_pShader->Bind_Matrix("g_WorldMatrix", &m_WorldMatrix);
@@ -321,7 +321,7 @@ void CRenderer::Render_EnvironmentPostProcess()
}
m_pShader->Bind_Matrix("g_WorldMatrix", &m_WorldMatrix);
- m_pShader->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix);
+ m_pShader->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix);
m_pShader->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix);
m_pShader->Bind_Matrix("g_invMatView", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV));
m_pShader->Bind_Matrix("g_invmatProj", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV));
@@ -473,7 +473,7 @@ void CRenderer::Render_Blur()
if (nullptr != pRenderObject)
if (FAILED(pRenderObject->Render_Blur())) {
assert(false);
- }
+ }
SAFE_RELEASE(pRenderObject);
}
@@ -495,11 +495,11 @@ void CRenderer::Render_Blur()
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Blur"), m_pShader, "g_BlurTexture"))) {
return;
}
-
+
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Blur_Weight"), m_pShader, "g_BlurWeightTexture"))) {
return;
}
-
+
m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::BLUR));
m_pVIBuffer->Bind_Resources();
@@ -534,74 +534,88 @@ void CRenderer::Render_Blend()
void CRenderer::Render_Bloom()
{
- if (m_pGameInstance->Key_Up(DIK_HOME)) {
- m_bPostProcessing_BLOOM = !m_bPostProcessing_BLOOM;
+ GUI::Begin("PostProcessing_Bloom");
+ GUI::PushItemWidth(80);
+ GUI::DragFloat("g_fThreshold", &m_fThreshold, 0.01f, 0.02f, 100.f, "%.3f");
+ GUI::SliderInt("g_iEmbossingPass", &m_iBloomEmbossingPass, 0, 2, "%d");
+ GUI::End();
+
+ //{ // BackBuffer
+ // ID3D11Texture2D* pBackBuffer = nullptr;
+ // m_pGameInstance->Get_BackBufferPTR(&pBackBuffer);
+ // //m_pGameInstance->Copy_RenderTarget(TEXT("Target_Diffuse"), pBackBuffer);
+ // m_pGameInstance->Paste_RenderTarget(TEXT("Target_Bloom_Input"), pBackBuffer);
+ // SAFE_RELEASE(pBackBuffer);
+ //}
+
+ // "Target_Bloom_Input"
+ // "Target_Bloom"
+ // "Target_Bloom_4x4"
+ // "Target_Bloom_8x8"
+ // "Target_Bloom_16x16"
+ // "Target_Bloom_16x16_X"
+ // "Target_Bloom_8x8_2"
+ // "Target_Bloom_4x4_2"
+
+ if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Bloom")))) {
+ return;
}
- if(true == m_bPostProcessing_BLOOM) {
- //{ // BackBuffer
- // ID3D11Texture2D* pBackBuffer = nullptr;
- // m_pGameInstance->Get_BackBufferPTR(&pBackBuffer);
- // //m_pGameInstance->Copy_RenderTarget(TEXT("Target_Diffuse"), pBackBuffer);
- // m_pGameInstance->Paste_RenderTarget(TEXT("Target_Bloom_Input"), pBackBuffer);
- // SAFE_RELEASE(pBackBuffer);
+
+ for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::BLOOM)])
+ {
+ if (nullptr != pRenderObject)
+ if (FAILED(pRenderObject->Render_Bloom())) {
+ assert(false);
+ }
+
+ //if (true == m_bPostProcessing_BLOOM) {
+ // { // BackBuffer
+ // ID3D11Texture2D* pBackBuffer = nullptr;
+ // m_pGameInstance->Get_BackBufferPTR(&pBackBuffer);
+ // //m_pGameInstance->Copy_RenderTarget(TEXT("Target_Diffuse"), pBackBuffer);
+ // m_pGameInstance->Paste_RenderTarget(TEXT("Target_Bloom_Input"), pBackBuffer);
+ // SAFE_RELEASE(pBackBuffer);
+ //
//}
- // "Target_Bloom_Input"
- // "Target_Bloom"
- // "Target_Bloom_4x4"
- // "Target_Bloom_8x8"
- // "Target_Bloom_16x16"
- // "Target_Bloom_16x16_X"
- // "Target_Bloom_8x8_2"
- // "Target_Bloom_4x4_2"
- if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Bloom")))) {
- return;
- }
-
- for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::BLOOM)])
- {
- if (nullptr != pRenderObject)
- if (FAILED(pRenderObject->Render_Bloom())) {
- assert(false);
- }
-
- SAFE_RELEASE(pRenderObject);
- }
-
- m_RenderObjects[ENUM_CLASS(RENDER::BLOOM)].clear();
-
- if (FAILED(m_pGameInstance->End_MRT())) {
- return;
- }
-
- m_pShader->Bind_RawValue("g_fThreshold", &m_fThreshold, sizeof(_float));
- m_pShader->Bind_RawValue("g_iBloomEmbossingPass", &m_iBloomEmbossingPass, sizeof(_int));
-
- m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_Input"), TEXT("Target_Bloom_4x4"), SHADER_PASS_DEFERRED::EMBOSSING); // 2
- m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4"), TEXT("Target_Bloom_8x8"), SHADER_PASS_DEFERRED::REFIT); // 3
- m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8"), TEXT("Target_Bloom_16x16"), SHADER_PASS_DEFERRED::REFIT); // 4
-
- m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_16x16"), TEXT("Target_Bloom_16x16_X"), SHADER_PASS_DEFERRED::BLOOM_BLURX);
- m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_16x16_X"), TEXT("Target_Bloom_16x16"), SHADER_PASS_DEFERRED::BLOOM_BLURY); // 5
- m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_16x16"), TEXT("Target_Bloom_8x8"), SHADER_PASS_DEFERRED::REFIT); // 6
-
- m_pGameInstance->Accumulate_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8"), TEXT("Target_Bloom_16x16"), TEXT("Target_Bloom_8x8_2"), SHADER_PASS_DEFERRED::BLOOM_ACCUM);
- m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8_2"), TEXT("Target_Bloom_8x8"), SHADER_PASS_DEFERRED::BLOOM_BLURX);
- m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8"), TEXT("Target_Bloom_8x8_2"), SHADER_PASS_DEFERRED::BLOOM_BLURY); // 7
-
- m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8_2"), TEXT("Target_Bloom_4x4"), SHADER_PASS_DEFERRED::REFIT);
- m_pGameInstance->Accumulate_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4"), TEXT("Target_Bloom_8x8_2"), TEXT("Target_Bloom_4x4_2"), SHADER_PASS_DEFERRED::BLOOM_ACCUM);
- m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4_2"), TEXT("Target_Bloom_4x4"), SHADER_PASS_DEFERRED::BLOOM_BLURX);
- m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4"), TEXT("Target_Bloom_4x4_2"), SHADER_PASS_DEFERRED::BLOOM_BLURY); // 8
-
- m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4_2"), TEXT("Target_Bloom"), SHADER_PASS_DEFERRED::REFIT);
- m_pGameInstance->Finish_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_Input"), TEXT("Target_Bloom"), SHADER_PASS_DEFERRED::BLOOM_FINISH); // 9
+ SAFE_RELEASE(pRenderObject);
}
+
+ m_RenderObjects[ENUM_CLASS(RENDER::BLOOM)].clear();
+
+ if (FAILED(m_pGameInstance->End_MRT())) {
+ return;
+ }
+
+ m_pShader->Bind_RawValue("g_fThreshold", &m_fThreshold, sizeof(_float));
+ m_pShader->Bind_RawValue("g_iBloomEmbossingPass", &m_iBloomEmbossingPass, sizeof(_int));
+
+ m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_Input"), TEXT("Target_Bloom_4x4"), SHADER_PASS_DEFERRED::EMBOSSING); // 2
+ m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4"), TEXT("Target_Bloom_8x8"), SHADER_PASS_DEFERRED::REFIT); // 3
+ m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8"), TEXT("Target_Bloom_16x16"), SHADER_PASS_DEFERRED::REFIT); // 4
+
+ m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_16x16"), TEXT("Target_Bloom_16x16_X"), SHADER_PASS_DEFERRED::BLOOM_BLURX);
+ m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_16x16_X"), TEXT("Target_Bloom_16x16"), SHADER_PASS_DEFERRED::BLOOM_BLURY); // 5
+ m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_16x16"), TEXT("Target_Bloom_8x8"), SHADER_PASS_DEFERRED::REFIT); // 6
+
+ m_pGameInstance->Accumulate_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8"), TEXT("Target_Bloom_16x16"), TEXT("Target_Bloom_8x8_2"), SHADER_PASS_DEFERRED::BLOOM_ACCUM);
+ m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8_2"), TEXT("Target_Bloom_8x8"), SHADER_PASS_DEFERRED::BLOOM_BLURX);
+ m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8"), TEXT("Target_Bloom_8x8_2"), SHADER_PASS_DEFERRED::BLOOM_BLURY); // 7
+
+ m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8_2"), TEXT("Target_Bloom_4x4"), SHADER_PASS_DEFERRED::REFIT);
+ m_pGameInstance->Accumulate_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4"), TEXT("Target_Bloom_8x8_2"), TEXT("Target_Bloom_4x4_2"), SHADER_PASS_DEFERRED::BLOOM_ACCUM);
+ m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4_2"), TEXT("Target_Bloom_4x4"), SHADER_PASS_DEFERRED::BLOOM_BLURX);
+ m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4"), TEXT("Target_Bloom_4x4_2"), SHADER_PASS_DEFERRED::BLOOM_BLURY); // 8
+
+ m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4_2"), TEXT("Target_Bloom"), SHADER_PASS_DEFERRED::REFIT);
+ m_pGameInstance->Finish_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_Input"), TEXT("Target_Bloom"), SHADER_PASS_DEFERRED::BLOOM_FINISH); // 9
+
}
void CRenderer::Render_UI()
{
+
m_RenderObjects[ENUM_CLASS(RENDER::UI)].sort([](CGameObject* pDest, CGameObject* pSrc)->_bool {
_float3 vDstPos = {};
_float3 vSrcPos = {};
@@ -611,6 +625,8 @@ void CRenderer::Render_UI()
return vDstPos.z > vSrcPos.z;
}); // z 소팅
+
+
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::UI)])
{
if (nullptr != pRenderObject) {
@@ -862,7 +878,7 @@ HRESULT CRenderer::Initialize()
return E_FAIL;
}
-
+
if (FAILED(Ready_ShadowDepthStencilView(g_iMaxShadowWidth, g_iMaxShadowHeight))) {
return E_FAIL;
}
@@ -969,7 +985,7 @@ HRESULT CRenderer::Initialize()
}
m_pWeightBlendShader = (CShader*)m_pGameInstance->Clone_Asset_Prototype(g_iStaticLevel, FX_WEIGHTBELND, nullptr, nullptr);
-
+
if (nullptr == m_pWeightBlendShader) {
return E_FAIL;
}
@@ -1060,11 +1076,11 @@ void CRenderer::Describe_Entitiy()
GUI::DragFloat("Max Radius", &m_fDOF_ENV_AmountRadius, 0.1f, 0.0f, 10.0f, "%.2f");
- if (m_fDOF_ENV_StartDistance < m_fDOF_ENV_FocusDistance){
+ if (m_fDOF_ENV_StartDistance < m_fDOF_ENV_FocusDistance) {
m_fDOF_ENV_StartDistance = m_fDOF_ENV_FocusDistance;
}
- if (m_fDOF_ENV_MaxEnd < m_fDOF_ENV_StartDistance + 1.0f){
+ if (m_fDOF_ENV_MaxEnd < m_fDOF_ENV_StartDistance + 1.0f) {
m_fDOF_ENV_MaxEnd = m_fDOF_ENV_StartDistance + 1.0f;
}
diff --git a/Jusin154_Team3D/Engine/Private/Trail.cpp b/Jusin154_Team3D/Engine/Private/Trail.cpp
index ae78708f1..fb8f83706 100644
--- a/Jusin154_Team3D/Engine/Private/Trail.cpp
+++ b/Jusin154_Team3D/Engine/Private/Trail.cpp
@@ -37,24 +37,8 @@ HRESULT CTrail::Initialize(void* pArg)
m_pVertices = new VTXPOSTEX[m_iNumVertices];
-#pragma region VTX_BUFFER
- D3D11_BUFFER_DESC VBDesc{};
- VBDesc.ByteWidth = m_iVertexStride * m_iNumVertices;
- VBDesc.Usage = D3D11_USAGE_DYNAMIC;
- VBDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER;
- VBDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE;
- VBDesc.MiscFlags = 0;
- VBDesc.StructureByteStride = m_iVertexStride;
-
- VTXPOSTEX* pVertices = new VTXPOSTEX[m_iNumVertices]{};
-
- D3D11_SUBRESOURCE_DATA InitialVBDate{};
- InitialVBDate.pSysMem = pVertices;
-
- if (FAILED(m_pDevice->CreateBuffer(&VBDesc, &InitialVBDate, &m_pVB))) {
+ if (FAILED(Create_VB()))
return E_FAIL;
- }
- Safe_Delete_Array(pVertices);
#pragma endregion
@@ -84,9 +68,9 @@ HRESULT CTrail::Initialize(void* pArg)
iStartIndex + 3
};
- pIndices[iIndex++] = Indicies[0];
pIndices[iIndex++] = Indicies[1];
pIndices[iIndex++] = Indicies[2];
+ pIndices[iIndex++] = Indicies[0];
pIndices[iIndex++] = Indicies[1];
pIndices[iIndex++] = Indicies[3];
@@ -106,11 +90,47 @@ HRESULT CTrail::Initialize(void* pArg)
return S_OK;
}
+HRESULT CTrail::Create_VB()
+{
+
+ if (m_pVB != nullptr)
+ SAFE_RELEASE(m_pVB);
+
+#pragma region VTX_BUFFER
+ D3D11_BUFFER_DESC VBDesc{};
+ VBDesc.ByteWidth = m_iVertexStride * m_iNumVertices;
+ VBDesc.Usage = D3D11_USAGE_DYNAMIC;
+ VBDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER;
+ VBDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE;
+ VBDesc.MiscFlags = 0;
+ VBDesc.StructureByteStride = m_iVertexStride;
+
+ VTXPOSTEX* pVertices = new VTXPOSTEX[m_iNumVertices]{};
+
+ D3D11_SUBRESOURCE_DATA InitialVBDate{};
+ InitialVBDate.pSysMem = pVertices;
+
+ if (FAILED(m_pDevice->CreateBuffer(&VBDesc, &InitialVBDate, &m_pVB))) {
+ return E_FAIL;
+ }
+ Safe_Delete_Array(pVertices);
+
+ return S_OK;
+}
+
void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
{
- _vector vLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), WorldMatrix);
- _vector vHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), WorldMatrix);
+
+ _matrix WorldMat = {};
+
+ WorldMat.r[0] = XMVector3Normalize(WorldMatrix.r[0]);
+ WorldMat.r[1] = XMVector3Normalize(WorldMatrix.r[1]);
+ WorldMat.r[2] = XMVector3Normalize(WorldMatrix.r[2]);
+ WorldMat.r[3] = WorldMatrix.r[3];
+
+ _vector vLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), WorldMat);
+ _vector vHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), WorldMat);
//한칸씩 밀기
@@ -149,6 +169,21 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
}
+ if (m_isFixedTrail == true)
+ {
+ //만약 고정된 트레일을 켰다면 가장 마지막 부분을 항상 내 위치로 고정함
+ _vector vFixedLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), m_FixedMat);
+ _vector vFixedHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), m_FixedMat);
+
+ XMStoreFloat3(&m_pVertices[0].vPosition, vFixedLow);
+ XMStoreFloat3(&m_pVertices[1].vPosition, vFixedHigh);
+
+
+
+ }
+
+ Describe_Entity();
+
//XMStoreFloat3(&m_pVertices[0].vPosition, vLow);
//XMStoreFloat3(&m_pVertices[1].vPosition, vHigh);
@@ -163,6 +198,8 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
m_pVertices[i].vTexcoord = _float2(u, 0); // Low
m_pVertices[i + 1].vTexcoord = _float2(u, 1); // High
+
+
}
@@ -172,6 +209,8 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
{
memcpy(VBResource.pData, m_pVertices, sizeof(VTXPOSTEX) * m_iNumVertices);
+
+ VTXPOSTEX* pDebug = static_cast(VBResource.pData);
m_pContext->Unmap(m_pVB, 0);
}
@@ -187,6 +226,16 @@ void CTrail::Reset_Trail()
m_fAccTime = 0.f;
}
+HRESULT CTrail::ReStructVB(_uint iNumVertices)
+{
+ m_iNumVertices = iNumVertices;
+
+ if (FAILED(Create_VB()))
+ return E_FAIL;
+
+ return S_OK;
+}
+
#ifdef _DEBUG
HRESULT CTrail::Save_Trail(HANDLE hFile)
{
@@ -211,6 +260,21 @@ HRESULT CTrail::Load_Trail(HANDLE hFile)
return S_OK;
}
+void CTrail::Fixed_Trail(_fmatrix WorldMatrix)
+{
+ _matrix WorldMat = {};
+
+ WorldMat.r[0] = XMVector3Normalize(WorldMatrix.r[0]);
+ WorldMat.r[1] = XMVector3Normalize(WorldMatrix.r[1]);
+ WorldMat.r[2] = XMVector3Normalize(WorldMatrix.r[2]);
+ WorldMat.r[3] = WorldMatrix.r[3];
+
+ m_isFixedTrail = true;
+ m_FixedMat = WorldMat;
+}
+
+
+
HRESULT CTrail::Render()
{
if (m_iNumCount < 4)
@@ -258,8 +322,10 @@ void CTrail::Free()
void CTrail::Describe_Entity()
{
+
GUI::InputFloat3("Low", (_float*)&m_TrailDesc.vLow);
GUI::InputFloat3("High", (_float*)&m_TrailDesc.vHigh);
+
}
diff --git a/Jusin154_Team3D/Engine/Private/Transform.cpp b/Jusin154_Team3D/Engine/Private/Transform.cpp
index a467f38ce..a1c50edfb 100644
--- a/Jusin154_Team3D/Engine/Private/Transform.cpp
+++ b/Jusin154_Team3D/Engine/Private/Transform.cpp
@@ -102,9 +102,9 @@ HRESULT CTransform::Initialize_Prototype()
HRESULT CTransform::Initialize(void* pArg)
{
-
- if (nullptr == pArg)
+ if (nullptr == pArg){
return S_OK;
+ }
TRANSFORM_DESC* pDesc = static_cast(pArg);
diff --git a/Jusin154_Team3D/Engine/Private/UIObject.cpp b/Jusin154_Team3D/Engine/Private/UIObject.cpp
index 8549335bc..c3824772e 100644
--- a/Jusin154_Team3D/Engine/Private/UIObject.cpp
+++ b/Jusin154_Team3D/Engine/Private/UIObject.cpp
@@ -441,12 +441,12 @@ _float CUIObject::Get_Angle()
void CUIObject::Set_SkillType(_int eType)
{
- m_iSkillType = eType;
+ m_iSpellType = eType;
}
_int CUIObject::Get_SkillType()
{
- return m_iSkillType;
+ return m_iSpellType;
}
void CUIObject::Set_CoolTime(_float CoolTime)
diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp
index 296b99460..c4515e4c6 100644
--- a/Jusin154_Team3D/Engine/Private/Unit.cpp
+++ b/Jusin154_Team3D/Engine/Private/Unit.cpp
@@ -62,7 +62,9 @@ void CUnit::Load_KeyFrame()
Path = _string(szDir) + "KeyFrame.bin";
fopen_s(&fp, Path.c_str(), "rb");
- if (!fp) return;
+ if (!fp) {
+ return;
+ }
_uint KeyFrameSize = 0;
fread(&KeyFrameSize, sizeof(_uint), 1, fp);
diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Model_Instance.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Model_Instance.cpp
index 65618d248..aeaf8abf5 100644
--- a/Jusin154_Team3D/Engine/Private/VIBuffer_Model_Instance.cpp
+++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Model_Instance.cpp
@@ -286,7 +286,9 @@ HRESULT CVIBuffer_Model_Instance::Ready_Materials()
HRESULT CVIBuffer_Model_Instance::SaveAssimpModel(const _char* pModelFilePath)
{
- if (!m_pAIScene) return E_FAIL;
+ if (!m_pAIScene) {
+ return E_FAIL;
+ }
for (_uint i = 0; i < m_pAIScene->mNumMeshes; i++)
{
diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
index 67b8a6fe3..1f3178c9f 100644
--- a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
+++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
@@ -376,8 +376,9 @@ HRESULT CVIBuffer_Terrain::Initialize_Prototype(const _char* pFilePath, _uint iS
Safe_Delete_Array(pPixels);
m_pQuadTree = CQuadTree::Create(m_iNumVerticesX * m_iNumVerticesZ - m_iNumVerticesX, m_iNumVerticesX * m_iNumVerticesZ - 1, m_iNumVerticesX - 1, 0);
- if (nullptr == m_pQuadTree)
+ if (nullptr == m_pQuadTree){
return E_FAIL;
+ }
m_pQuadTree->SetUp_Neighbors();
@@ -399,7 +400,7 @@ void CVIBuffer_Terrain::ConvertToHeightField(const _tchar* pStaticKey)
_uint iIndex = iRow * m_iNumVerticesX + iCol;
_uint iPhysXIndex = iCol * m_iNumVerticesZ + iRow;
- _float fRealHeight = m_HeigthValues[iIndex];
+ _float fRealHeight = m_pVertexPositions[iIndex].y * 100.f /* 100배의 정밀도 1cm 단위. */;
PSX::PxI16 iClampHeight = (PSX::PxI16)(PSX::PxClamp(fRealHeight, -32767.f, 32767.f));
PSX::PxHeightFieldSample& pxSample = pxSamples[iPhysXIndex];
diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp
index 110a22c4f..46981233b 100644
--- a/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp
+++ b/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp
@@ -114,6 +114,14 @@ HRESULT CVIBuffer_UI_Instance::Initialize_Prototype(const INSTANCE_DESC* pInstan
m_fPosition = new _float2[m_iNumInstance];
ZeroMemory(m_fPosition, sizeof(_float2) * m_iNumInstance);
+ for (_uint i = 0; i < m_iNumInstance; ++i)
+ {
+ m_pInstanceVertices[i].fSize = _float2(1.f, 1.f); // 기본 크기
+ m_pInstanceVertices[i].fPos = _float2(0.f, 0.f); // 기본 위치
+ m_pInstanceVertices[i].fUV = _float4(0.f, 0.f, 1.f, 1.f); // 전체 텍스처 영역
+ m_pInstanceVertices[i].vColor = _float4(1.f, 1.f, 1.f, 1.f); // 기본 흰색
+ m_pInstanceVertices[i].bHover = 0;
+ }
m_InstanceInitialDesc.pSysMem = m_pInstanceVertices;
@@ -140,7 +148,6 @@ void CVIBuffer_UI_Instance::Set_Index_Position(_uint iIndex, _float fX, _float f
pVertices[iIndex].fPos.x = fX;
pVertices[iIndex].fPos.y = fY;
-
m_pContext->Unmap(m_pVBInstance, 0);
}
@@ -171,7 +178,7 @@ void CVIBuffer_UI_Instance::Set_Pos(_float fX, _float fY, _float OffSetX, _float
_uint row = i / iCols; // 세로 인덱스
pVertices[i].fPos.x = fX + col * OffSetX;
- pVertices[i].fPos.y = fY + row * OffSetY;
+ pVertices[i].fPos.y = fY - row * OffSetY;
}
m_pContext->Unmap(m_pVBInstance, 0);
@@ -236,21 +243,69 @@ void CVIBuffer_UI_Instance::Set_ImageUV(UI_ATLAS_DESC* AtlasUV)
for (size_t i = 0; i < m_iNumInstance; i++)
{
- if (AtlasUV == nullptr)
- {
- pVertices[i].fUVStart = _float2(0.f, 0.f);
- pVertices[i].fUVStart = _float2(1.f, 1.f);
- }
- else
- {
- pVertices[i].fUVStart = AtlasUV[i].fUVStart;
- pVertices[i].fUVEnd = AtlasUV[i].fUVEnd;
- }
+ pVertices[i].fUV = AtlasUV[i].fUV;
}
m_pContext->Unmap(m_pVBInstance, 0);
}
+void CVIBuffer_UI_Instance::Set_Index_Renge_Color(_uint StartIndex, _uint EndIndex, _float4 vColor)
+{
+ D3D11_MAPPED_SUBRESOURCE SubResource{};
+
+ m_pContext->Map(m_pVBInstance, 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, &SubResource);
+
+ VTX_INSTANCE_UI* pVertices = static_cast(SubResource.pData);
+
+ for (size_t i = StartIndex; i <= EndIndex; i++)
+ {
+ pVertices[i].vColor = vColor;
+ }
+
+ m_pContext->Unmap(m_pVBInstance, 0);
+}
+
+_int CVIBuffer_UI_Instance::Set_Mouse_Hover(_float2 fMousePos)
+{
+ D3D11_MAPPED_SUBRESOURCE SubResource{};
+
+ m_pContext->Map(m_pVBInstance, 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, &SubResource);
+
+ VTX_INSTANCE_UI* pVertices = static_cast(SubResource.pData);
+
+ _int hoveredIndex = -1;
+ for (_uint i = 0; i < m_iNumInstance; i++)
+ {
+ _float2 pos = pVertices[i].fPos;
+ _float2 size = pVertices[i].fSize;
+
+ RECT rcInstance{};
+ rcInstance.left = LONG(pos.x - size.x * 0.5f);
+ rcInstance.right = LONG(pos.x + size.x * 0.5f);
+ rcInstance.top = LONG(pos.y - size.y * 0.5f);
+ rcInstance.bottom = LONG(pos.y + size.y * 0.5f);
+
+ POINT pt{};
+ pt.x = LONG(fMousePos.x);
+ pt.y = LONG(fMousePos.y);
+
+ if (PtInRect(&rcInstance, pt))
+ {
+ pVertices[i].bHover = 1.f;
+ hoveredIndex = i;
+ break;
+ }
+ else
+ {
+ pVertices[i].bHover = 0.f;
+ hoveredIndex = -1;
+ }
+ }
+
+ m_pContext->Unmap(m_pVBInstance, 0);
+ return hoveredIndex;
+}
+
CVIBuffer_UI_Instance* CVIBuffer_UI_Instance::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const INSTANCE_DESC* pInstanceDesc)
{
CVIBuffer_UI_Instance* pInstance = new CVIBuffer_UI_Instance(pDevice, pContext);
diff --git a/Jusin154_Team3D/Engine/Public/Animation.h b/Jusin154_Team3D/Engine/Public/Animation.h
index 16018a045..a8b52f63f 100644
--- a/Jusin154_Team3D/Engine/Public/Animation.h
+++ b/Jusin154_Team3D/Engine/Public/Animation.h
@@ -11,8 +11,8 @@ class ENGINE_DLL CAnimation : public CBase
CAnimation(const CAnimation& rhs);
virtual ~CAnimation() = default;
public:
- _bool Update_TransformationMatrices(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _bool bIsLoop, _float fTimeDelta, _vector vector[3]);
- void ProgressAnimation(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _vector vector[3]);
+ _bool Update_TransformationMatrices(const vector& Bones, LOCALPOS_DESC** pLocalPosArray, _bool bIsLoop, _float fTimeDelta, _bool bIsSpine, vector<_uint> BoneMask,_vector vector[3] = nullptr);
+ void ProgressAnimation(const vector& Bones,LOCALPOS_DESC** pLocalPosArray, _bool bIsSpine, vector<_uint> BoneMask, _vector vector[3]);
void ResetRootMotion();
void Depart_Animation();
void Set_AnimPause(_bool bValue) { m_bPause = bValue; }
@@ -23,8 +23,6 @@ class ENGINE_DLL CAnimation : public CBase
vector<_int>* Capture_Bones();
void InterpAnim(CAnimation* pPreAnim, vector& Bones, _float fRatio);
-
-
void CreateGPUData(ID3D11Device* pDevice);
@@ -34,7 +32,7 @@ class ENGINE_DLL CAnimation : public CBase
const _char* Get_SZName() const { return m_szName; }
void Set_CurrentTrackPosition(_float TrackPosition) { m_fCurrentTrackPosition = TrackPosition; }
_float Get_CurrentTrackPosition() { return m_fCurrentTrackPosition; }
- _float Get_CurrentTrackProgressRatio() { return m_fCurrentTrackPosition / m_fDuration; }
+ _float Get_CurrentTrackProgressRatio() { return m_fTempTrack / m_fDurationSeconds; }
void Set_AnimSpeed(_float fSpeed) { m_fAnimSpeed = fSpeed; }
_float Get_AnimSpeed() { return m_fAnimSpeed; }
@@ -78,6 +76,8 @@ class ENGINE_DLL CAnimation : public CBase
_float m_fDuration = {}; // 트랙의 전체 길이
_float m_TickPerSeconds[2] = { 0.f, 0.f }; // 초당 트랙 이동 거리
_uint m_iNumChannels = {}; // 영향을 받는 본의 수
+ _float m_fTempTrack = {};
+ _float m_fDurationSeconds = {};
vector m_Channels; // 이 애니메이션이 영향을 준 사전 계산된 본의 배열
vector<_uint> m_CurrentKeyFrameIndices; // 각 본이 현재 애니메이션에서 취해야할 키프레임 왼쪽 인덱스
diff --git a/Jusin154_Team3D/Engine/Public/Channel.h b/Jusin154_Team3D/Engine/Public/Channel.h
index 5bd134a37..bcd6ca857 100644
--- a/Jusin154_Team3D/Engine/Public/Channel.h
+++ b/Jusin154_Team3D/Engine/Public/Channel.h
@@ -23,7 +23,7 @@ class ENGINE_DLL CChannel : public CBase
CHANNEL_DESC Fill_GPU_ChannelDesc();
public:
- void Update_TransformationMatirx(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _float fCurrentTrackPosition, _uint* pCurrentKeyFrameIndex, _vector vector[3]);
+ void Update_TransformationMatirx(const vector& Bones, LOCALPOS_DESC** pLocalPosArray, _float fCurrentTrackPosition, _uint* pCurrentKeyFrameIndex, _bool bIsSpine, vector<_uint> BoneMask, _vector vector[3]);
_int Get_BoneIndex() { return { m_iBoneIndex }; }
void Set_BoneIndex(_int iBoneIndex) { m_iBoneIndex = iBoneIndex; }
void ResetRootMotion();
@@ -63,6 +63,10 @@ class ENGINE_DLL CChannel : public CBase
_bool m_bInitialRootRotSaved = {false};
_float4 m_vInitialRootRot = {};
+ _bool m_IsUpper = false;
+ _int m_ilayerIndex = 0;
+ LOCALPOS_DESC LocalPos = {};
+
vector m_KeyFrameDesc;
public:
// 바이너리
diff --git a/Jusin154_Team3D/Engine/Public/Character_Controller.h b/Jusin154_Team3D/Engine/Public/Character_Controller.h
index 119755fd4..9b7b9cf3b 100644
--- a/Jusin154_Team3D/Engine/Public/Character_Controller.h
+++ b/Jusin154_Team3D/Engine/Public/Character_Controller.h
@@ -72,7 +72,7 @@ class ENGINE_DLL CCharacter_Controller final :
PSX::PxController* m_pController = { nullptr };
CTransform* m_pTransform = { nullptr };
_bool m_bAutoStepping = { false };
- _float m_fGravity = { 0.094f };
+ _float m_fGravity = { 0.259f };
_float m_fSlopeLimit = { 0.302f/*0~1*/}; // cosf각도, 오르막 경사각 제한. ( 추가설정 필요함 )
PhsXUserData m_tagData = {};
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
index bac13c485..47d674d4e 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
@@ -5,9 +5,10 @@ NS_BEGIN(Engine)
enum class STATE { RIGHT, UP, LOOK, POSITION, END };
enum class LIGHT { DIRECTIONAL, POINT, SPOT, END };
enum class COLLIDER { AABB, OBB, SPHERE, END };
-enum class RENDER { OCCLUSION, PRIORITY, SHADOW, NONBLEND, DECAL, BLUR, NONLIGHT, EFFECT ,BLEND, BLOOM, UI, END };
+enum class RENDER {PRIORITY, SHADOW, NONBLEND, DECAL, BLUR, NONLIGHT, EFFECT ,BLEND, BLOOM, UI, OCCLUSION, END };
enum class RAY { LOCAL, WORLD, END };
enum class ACTOR { BOX, CAPSULE, SPHERE, PLANE, TRIANGLEMESH, HEIGHTFIELD, END };
+enum class BLEND_BONE{SPINE,SHOULDER_L,SHOULDER_R,NECK,SHOULDER_NECK_L, SHOULDER_NECK_R,END};
enum class TEXTURE_LOAD_TYPE {
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Struct.h b/Jusin154_Team3D/Engine/Public/Engine_Struct.h
index a3f05288f..cae318eb1 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Struct.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Struct.h
@@ -200,8 +200,9 @@ typedef struct tagVertexInstance_UI
{
_float2 fSize = {};
_float2 fPos = {};
- _float2 fUVStart = {};
- _float2 fUVEnd = {};
+ _float4 fUV = _float4(0.f, 0.f, 1.f, 1.f);
+ _float4 vColor = _float4(1.f, 1.f, 1.f, 1.f);
+ _float bHover = 0;
}VTX_INSTANCE_UI;
typedef struct tagVertexBlock
@@ -361,22 +362,23 @@ typedef struct tagVertexModelInstanceModelDesc
typedef struct tagVertexInstance_UIDesc
{
- static constexpr unsigned int iNumElements = {6};
+ static constexpr unsigned int iNumElements = { 7 };
static constexpr D3D11_INPUT_ELEMENT_DESC Elements[] = {
{ "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0},
{ "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, 12, D3D11_INPUT_PER_VERTEX_DATA, 0},
{ "TEXCOORD", 1, DXGI_FORMAT_R32G32_FLOAT, 1, 0, D3D11_INPUT_PER_INSTANCE_DATA, 1 },
{ "TEXCOORD", 2, DXGI_FORMAT_R32G32_FLOAT, 1, 8, D3D11_INPUT_PER_INSTANCE_DATA, 1 },
- { "TEXCOORD", 3, DXGI_FORMAT_R32G32_FLOAT, 1, 16, D3D11_INPUT_PER_INSTANCE_DATA, 1 },
- { "TEXCOORD", 4, DXGI_FORMAT_R32G32_FLOAT, 1, 24, D3D11_INPUT_PER_INSTANCE_DATA, 1 }
+ { "TEXCOORD", 3, DXGI_FORMAT_R32G32B32A32_FLOAT, 1, 16, D3D11_INPUT_PER_INSTANCE_DATA, 1 },
+ { "TEXCOORD", 4, DXGI_FORMAT_R32G32B32A32_FLOAT, 1, 32, D3D11_INPUT_PER_INSTANCE_DATA, 1 },
+ { "TEXCOORD", 5, DXGI_FORMAT_R32_FLOAT, 1, 48, D3D11_INPUT_PER_INSTANCE_DATA, 1 }
};
}VTX_POSTEX_INSTANCE_UI;
typedef struct tagPhsXUserData {
- PHYSX_KIND eKind = PHYSX_KIND::NOT_DEFINED;
+ PHYSX_KIND eKind = PHYSX_KIND::NOT_DEFINED;
class CGameObject* pOwner = { nullptr };
_float4x4 BeforeMatrix = { };
@@ -410,7 +412,7 @@ typedef struct tagKeyFrameDesc
typedef struct tagChannelDesc
{
- _uint StartIndex;
+ _uint StartIndex;
_uint KeyCount;
_uint BoneIndex;
//_uint Padding;
diff --git a/Jusin154_Team3D/Engine/Public/FSM.h b/Jusin154_Team3D/Engine/Public/FSM.h
index 906d0f98a..7833da79c 100644
--- a/Jusin154_Team3D/Engine/Public/FSM.h
+++ b/Jusin154_Team3D/Engine/Public/FSM.h
@@ -23,7 +23,8 @@ enum ESTATE : _u64Flag
POTION = 1ULL << 16,
STOP = 1ULL << 17,
HIT = 1ULL << 18,
- BROOM_RIDE = 1ULL << 19,
+ BROOM_RIDE = 1ULL << 19,
+ MOUNT_B = 1ULL << 20,
END
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h
index 6b852dc2b..5a53a5718 100644
--- a/Jusin154_Team3D/Engine/Public/Model.h
+++ b/Jusin154_Team3D/Engine/Public/Model.h
@@ -33,8 +33,12 @@ class ENGINE_DLL CModel final : public CComponent
#pragma endregion
#pragma region Animation
_bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr); // 애니메이션에 델타타임을 넣어줌
+ _bool Play_Anim(_float fTimeDelta, CTransform* pTransform);
+ _bool Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform);
void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f, _bool bRatio = false);
+ void Set_Second_AnimationIndex(_uint iIndex,_uint BoneIndex,_bool isLoop = false);
_bool IsFinishedAnim() const { return m_bIsFinishedAnim; }
+ _bool IsFinishedSecondAnim() const { return m_bIsSecondFinishedAnim; }
_bool IsLoopAnim() const { return m_bIsLoop; }
void Set_CurrentTrackPosition(_float TrackPosition);
const _char* Get_AnimList(_uint iIndex);
@@ -45,6 +49,7 @@ class ENGINE_DLL CModel final : public CComponent
void Set_PlayAnim(_bool bPlayAnim) { m_bPlayAnim = bPlayAnim; }
_bool Get_PlayAnim() const { return m_bPlayAnim; }
_int Get_AnimIndex() const { return m_iCurrentAnimIndex; }
+ _int Get_SecondAnimIndex() const { return m_iCurrSecondAnimIndex; }
_float Get_AnimSpeed();
void Set_AnimSpeed(_float fSpeed);
@@ -64,14 +69,18 @@ _int Get_BoneIndex(const _char* pBoneName) const;
_matrix Get_BoneMatrix(_uint iBoneIndex);
void Combined_BoneMatrix();
+
#pragma endregion
#pragma region Material
HRESULT Bind_Material(_uint iMeshIndex, class CShader* pShader);
#pragma endregion
- void ComputeAnimation();
- void InItialize_SpineIndex();
+ void ComputeAnimation(_uint AnimIndex);
+ void ComputeAnimation_Second(_uint AnimIndex);
+ void InItialize_BoneIndex();
+
+ void Initialize_BoneMasks();
public:
#ifdef EDITOR_PROJECT
@@ -135,7 +144,12 @@ void Combined_BoneMatrix();
class CTransform* m_pTransform = { nullptr }; // 모델 대상의 트랜스폼
_float m_fRatio = {};
- _int m_iSpineIndex = { -1 };
+ _int m_iBoneIndex[ENUM_CLASS(BLEND_BONE::END)] = {-1,-1,-1,-1,-1,-1};
+ _int m_iCurrSecondAnimIndex = { -1 };
+ _bool m_bIsSecondFinishedAnim = { false };
+ _bool m_bIsSecondLoop = { false };
+ vector> m_BoneMask;
+
// 바이너리
SaveModel* m_pSaveModel = { nullptr };
@@ -153,7 +167,9 @@ void Combined_BoneMatrix();
_float4 m_vInitialRootRot = {};
_vector m_vector[3];
- _bool m_bLoopRestarted = false;
+ _bool m_bLoopRestarted = false;
+
+ vector<_uint> m_iBoneMask;
#pragma region Compute
@@ -164,14 +180,14 @@ void Combined_BoneMatrix();
void Create_Temp();
void Create_LocalPosVB();
void Create_Con();
- void UpdateAnimationCS();
+ void UpdateAnimationCS(_uint AnimIndex);
_uint m_iNumBuffer = {};
vector m_Parent = {};
vector m_AnimRanges;
- LOCALPOS_DESC* m_pLocalPos = { nullptr };
+ LOCALPOS_DESC* m_pLocalPos[2] = {nullptr};
class CComputeShader* m_pComputeShader = nullptr;
diff --git a/Jusin154_Team3D/Engine/Public/MyTools.h b/Jusin154_Team3D/Engine/Public/MyTools.h
index 9ecc59ba6..a5e8e0cfc 100644
--- a/Jusin154_Team3D/Engine/Public/MyTools.h
+++ b/Jusin154_Team3D/Engine/Public/MyTools.h
@@ -83,7 +83,9 @@ class CMyTools {
// value로 현재 ratio 가져오기
static _float InverseLerp_f1D(_float fA, _float fB, _float fValue)
{
- if (fA == fB) return 0.0f;
+ if (fA == fB) {
+ return 0.0f;
+ }
return (fValue - fA) / (fB - fA);
}
@@ -116,10 +118,14 @@ class CMyTools {
_vector tv = XMVectorSubtract(vPos, vertexA);
u = XMVectorGetX(XMVector3Dot(tv, ray_cross_edge2)) * inverseDet;
- if (u < 0.f || u > 1.f) return false;
+ if (u < 0.f || u > 1.f) {
+ return false;
+ }
_vector q = XMVector3Cross(tv, edge1);
v = XMVectorGetX(XMVector3Dot(vDir, q)) * inverseDet;
- if (v < 0.f || u + v > 1.f) return false;
+ if (v < 0.f || u + v > 1.f) {
+ return false;
+ }
t = XMVectorGetX(XMVector3Dot(edge2, q)) * inverseDet;
return t >= 0.f;
@@ -178,7 +184,9 @@ class CMyTools {
// 입력라디안에서 출력라디안까지 로테이션 스피드만큼 돌려주고 보정해서 SrcRadian에 넣어줌
inline static void RotateRadianTowards(_float& fSrcRadian, const _float& fDstRadian, _float fRotateSpeed) {
_float fDiffRadian = fmodf(fSrcRadian - fDstRadian, XM_2PI);
- if (fDiffRadian < 0) fDiffRadian += XM_2PI;
+ if (fDiffRadian < 0) {
+ fDiffRadian += XM_2PI;
+ }
if (fDiffRadian < (fRotateSpeed * XM_PI) / 180.f) {
fSrcRadian = fDstRadian;
diff --git a/Jusin154_Team3D/Engine/Public/Renderer.h b/Jusin154_Team3D/Engine/Public/Renderer.h
index 4d07aa396..72fc175ce 100644
--- a/Jusin154_Team3D/Engine/Public/Renderer.h
+++ b/Jusin154_Team3D/Engine/Public/Renderer.h
@@ -44,8 +44,8 @@ class CRenderer final : public CBase
SHADOW_LIGHT_DESC m_PreShadowDesc = {};
_float4x4 m_PreShadowMatrices[ENUM_CLASS(D3DTS::END)] = {};
- _bool m_bPostProcessing_BLOOM = { false };
- _bool m_bDOF_ENV = { false };
+ _bool m_bPostProcessing_BLOOM = { true };
+ _bool m_bDOF_ENV = { true };
_int m_iBloomEmbossingPass = { 0 };
_float m_fThreshold = { 1.26f };
_float m_fDOF_ENV_CutThreshold = { 0.1350f };
diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h
index b062a55eb..baa3d4f51 100644
--- a/Jusin154_Team3D/Engine/Public/State.h
+++ b/Jusin154_Team3D/Engine/Public/State.h
@@ -14,8 +14,8 @@ enum ESTATE
DODGE,DODGE_BLINK, DODGE_LEFT, DODGE_RIGHT,
COMBAT, LIGHT_ATTACK, SPELL, SKILL, SKILL2,
MAPHELP,POTION,
- ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,DISILLUSION_ENTER,DISILLUSION_EXIT, ANCIENT_THROW,
- BROOM_IDLE,BROOM_FWD, BROOM_HOVER_IDLE, BROOM_HOVER_START,BROOM_MOUNT, BROOM_MOUNT_END,
+ ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,LUMOS_STOP,DISILLUSION_ENTER,DISILLUSION_EXIT, ANCIENT_THROW,
+ BROOM_IDLE,BROOM_FWD,BROOM_LEFT,BROOM_RIGHT,BROOM_DOWN,BROOM_UP, BROOM_HOVER_IDLE, BROOM_HOVER_START,BROOM_MOUNT, BROOM_MOUNT_END,
HIT, HIT_FWD, HIT_BWD, HIT_BWD2, HIT_BWD3, HIT_BWD4, HIT_L, HIT_R,
KNOCKDOWN, KNOCKDOWN_FWD, KNOCKDOWN_FWD_SPLT, KNOCKDOWN_FWD_SPLT_HOLD, KNOCKDOWN_BWD, KNOCKDOWN_BWD_SPLT, KNOCKDOWN_BWD_SPLT_HOLD,
GETUP, GETUP_BWD, GETUP_FWD, GETUP_L, GETUP_L_FD, GETUP_L_FU, GETUP_R, GETUP_R_FD, GETUP_R_FU, GETUP_SLOUCH,
diff --git a/Jusin154_Team3D/Engine/Public/Trail.h b/Jusin154_Team3D/Engine/Public/Trail.h
index c578d7ec5..1f50da839 100644
--- a/Jusin154_Team3D/Engine/Public/Trail.h
+++ b/Jusin154_Team3D/Engine/Public/Trail.h
@@ -20,15 +20,20 @@ class ENGINE_DLL CTrail final :
public:
void Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix);
void Reset_Trail();
+ HRESULT ReStructVB(_uint iNumVertices);
#ifdef _DEBUG
HRESULT Save_Trail(HANDLE hFile);
#endif
HRESULT Load_Trail(HANDLE hFile);
+public:
+ void Fixed_Trail(_fmatrix WorldMatrix);
+
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
+ HRESULT Create_VB();
public:
static CTrail* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -46,12 +51,18 @@ class ENGINE_DLL CTrail final :
_vector m_PreHigh[2] = {};
_vector m_PreLow[2] = {};
+ _vector m_PreFixedHigh[3] = {};
+ _vector m_PreFixedLow[3] = {};
+
VTXPOSTEX* m_pVertices = { nullptr };
_float m_fAccTime = {};
_float m_fTrailUpdateTime = {};
_uint m_iNumVerticesPerInstance = {};
+
+ _matrix m_FixedMat = {};
+ _bool m_isFixedTrail = {};
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/UIObject.h b/Jusin154_Team3D/Engine/Public/UIObject.h
index cc24b14a3..1564d510c 100644
--- a/Jusin154_Team3D/Engine/Public/UIObject.h
+++ b/Jusin154_Team3D/Engine/Public/UIObject.h
@@ -7,7 +7,7 @@ NS_BEGIN(Engine)
class ENGINE_DLL CUIObject abstract : public CGameObject
{
public:
- enum class SKILLTYPE {
+ enum class SPELLTYPE {
CONTROL, POWER, DAMAGE,
UTILITY ,TRANSFORM, CURSE, ESSENTIAL
};
@@ -151,12 +151,14 @@ typedef struct tagUIObjectDesc
RECT m_pRect{};
- _int m_iSkillType{};
+ _int m_iSpellType{};
_float m_fSortZ{};
_float m_fMoveSpeed{};
_float4 m_vNine_Slice{};
+ _float m_fTopY{};
+
protected:
virtual HRESULT Initialize_Prototype();
virtual HRESULT Initialize(void* pArg);
diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h b/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h
index 6c65232a6..75278c14b 100644
--- a/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h
+++ b/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h
@@ -12,8 +12,7 @@ class ENGINE_DLL CVIBuffer_UI_Instance final : public CVIBuffer_Instance
}UI_INSTANCE_DESC;
typedef struct tagUIAtlasDesc
{
- _float2 fUVStart{};
- _float2 fUVEnd{};
+ _float4 fUV{};
}UI_ATLAS_DESC;
private:
CVIBuffer_UI_Instance(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -32,7 +31,9 @@ class ENGINE_DLL CVIBuffer_UI_Instance final : public CVIBuffer_Instance
void Set_SizeX(_float fSizeX);
void Set_SizeY(_float fSizeY);
void Set_Cloned(_bool isCloned) { m_isCloned = isCloned; }
- void Set_ImageUV(UI_ATLAS_DESC* AtlasUV = nullptr);
+ void Set_ImageUV(UI_ATLAS_DESC* AtlasUV);
+ void Set_Index_Renge_Color(_uint StartIndex, _uint EndIndex, _float4 vColor);
+ _int Set_Mouse_Hover(_float2 fMousePos);
private:
VTX_INSTANCE_UI* m_pInstanceVertices = { nullptr };