diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
index 4212f3194..117084542 100644
--- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
+++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
@@ -31,6 +31,13 @@ struct ParticleValue
float3 vSinAmount;
float3 vDeltaAngle;
+ float3 vDeltaAxisAngle;
+
+ float fDrag;
+ float3 vPivot;
+
+ float fSizeDrag;
+ float3 vDeltaSize;
};
@@ -49,10 +56,10 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
bool isMoveForward;
bool isSinWave;
- bool IsTurn;
- bool isPadding1;
- bool isPadding2;
- bool isPadding3;
+ bool isTurn;
+ bool isAxisTurn;
+ bool isPivotMove;
+ bool isSizeMove;
float fTimeDelta;
float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
@@ -79,7 +86,7 @@ void CS_MAIN(
{
if (isLoop == false)
{
- return;
+ return ;
}
//초기화
@@ -89,15 +96,45 @@ void CS_MAIN(
particle.vTranslation = particleValue.vOriginTranslation;
particle.vLifeTime.x = 0.f;
+ particleValue.vAniIndex.x = 0.f;
+
+ g_VBInstanceOutput[iIndex] = particle;
+ g_ParticleValueOutput[iIndex] = particleValue;
+
+ return ;
}
if (isMoveForward)
{
+ float fTime = (particle.vLifeTime.x / particle.vLifeTime.y);
+
+ float fRatio = 1 - (1 - fTime * fTime);
+
+ float fDrag = particleValue.fDrag;
+
+ if (particleValue.fDrag < FLT_EPSILON5)
+ fDrag = 1;
+
float4 vVelocity = vector(normalize(particle.vLook.xyz) * particleValue.fSpeed, 1.f);
- particle.vTranslation += vVelocity * fTimeDelta;
+ particle.vTranslation += vVelocity * fTimeDelta * fDrag;
+ }
+
+ if (isPivotMove)
+ {
+ float3 vDir = normalize(particleValue.vPivot - particleValue.vOriginTranslation.xyz);
+
+ float fDrag = particleValue.fDrag;
+
+ if (particleValue.fDrag < FLT_EPSILON5)
+ fDrag = 1;
+
+ float4 vVelocity = vector(vDir * particleValue.fSpeed, 1.f);
+
+ particle.vTranslation += vVelocity * fTimeDelta * fDrag;
+
}
if (isDrop == true)
@@ -111,7 +148,7 @@ void CS_MAIN(
particle.vTranslation += vector( sin(particle.vLifeTime.x * 3.141592 * 2.f) * particleValue.vSinAmount, 0.f);
}
- if (IsTurn == true)
+ if (isTurn == true)
{
/* ROTATE */
float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta);
@@ -132,6 +169,64 @@ void CS_MAIN(
particle.vLook = CurRotatemat[2].xyzw;
}
+
+ if (isAxisTurn)
+ {
+ float4x4 RotateAxisRightMat = RotateAxis(particle.vRight, particleValue.vDeltaAxisAngle.x * fTimeDelta);
+ float4x4 RotateAxisUpMat = RotateAxis(particle.vUp, particleValue.vDeltaAxisAngle.y * fTimeDelta);
+ float4x4 RotateAxisLookMat = RotateAxis(particle.vLook, particleValue.vDeltaAxisAngle.z * fTimeDelta);
+
+
+ float4x4 CombinedRotMat = mul(RotateAxisLookMat, mul(RotateAxisUpMat, RotateAxisRightMat));
+
+ float4x4 CurRotatemat = { particle.vRight, particle.vUp, particle.vLook, vector(0.f, 0.f, 0.f, 1.f) };
+
+
+ CurRotatemat = mul(CurRotatemat ,CombinedRotMat);
+
+ particle.vRight = CurRotatemat[0].xyzw;
+ particle.vUp = CurRotatemat[1].xyzw;
+ particle.vLook = CurRotatemat[2].xyzw;
+
+
+ }
+
+ if (isSizeMove == true)
+ {
+ float3 CurLength =
+ {
+ length(particle.vRight),
+ length(particle.vUp),
+ length(particle.vLook),
+ };
+
+ float fTime = (particle.vLifeTime.x / particle.vLifeTime.y);
+
+ float fRatio = 1 - (1 - fTime * fTime);
+
+ float fDrag = particleValue.fSizeDrag;
+
+ if (particleValue.fSizeDrag < FLT_EPSILON5)
+ fDrag = 1;
+
+ //fDrag *= fRatio;
+
+ CurLength += particleValue.vDeltaSize * fTimeDelta * fDrag;
+
+ if (CurLength.x < FLT_EPSILON5)
+ CurLength.x = FLT_EPSILON5;
+
+ if (CurLength.y < FLT_EPSILON5)
+ CurLength.y = FLT_EPSILON5;
+
+ if (CurLength.z < FLT_EPSILON5)
+ CurLength.z = FLT_EPSILON5;
+
+ particle.vRight = normalize(particle.vRight) * CurLength.x;
+ particle.vUp = normalize(particle.vUp) * CurLength.y;
+ particle.vLook = normalize(particle.vLook) * CurLength.z;
+
+ }
//애니메이션 속도 , 인덱스
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..e614342ce
--- /dev/null
+++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -0,0 +1,606 @@
+#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;
+uint g_iSpellType;
+
+float g_fPI;
+float g_fFar;
+float g_fTime;
+float g_fTimeMult;
+float g_fFrame;
+float g_fDeltaU;
+float g_fDeltaV;
+float g_fAlpha;
+float g_fOwnerAlpha;
+float g_fCanvasAlpha;
+float g_fAngle;
+float g_fCoolTime;
+
+float2 g_fOrigin_Size;
+float2 g_fCurrent_Size;
+
+float4 g_fNine_Slice;
+
+Texture2D g_Texture;
+Texture2D g_Texture1;
+Texture2D g_Texture2;
+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.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;
+
+ float2 uv = In.vTexcoord;
+
+ float4 tex = g_Texture.Sample(DefaultSampler, uv);
+
+ float2 center = float2(0.5f, 0.5f);
+ float2 dir = uv - center;
+
+ float angle = atan2(dir.x, -dir.y);
+ if (angle < 0)
+ angle += g_fPI;
+
+ float rotation = saturate(g_fTime * g_fTimeMult) * g_fPI;
+
+ tex.rgb = (angle <= rotation) ? 1.0 : tex.rgb;
+
+ tex.a *= Alpha;
+
+ Out.vColor = tex;
+
+ 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_UVMult(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_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(1.f, 1.f, 1.f, 1.f);
+
+ float3 BGColor = float3(1.f, 1.f, 1.f);
+
+ switch (g_iSpellType)
+ {
+ case 0:
+ BGColor = float3(208.f, 179.f, 54.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;
+ case 5:
+ BGColor = float3(0.f, 80.f, 55.f) / 255.f;
+ break;
+ case 6:
+ BGColor = float3(0.f, 0.f, 0.f);
+ break;
+ }
+
+ float2 uv = In.vTexcoord;
+ float CoolTime = 1.f - g_fDeltaV;
+ float CoolTime2 = 1.f - g_fDeltaV + 0.05;
+
+ float4 tex1 = g_Texture.Sample(ClampSampler, uv);
+ tex1.rgb *= BGColor;
+ float4 tex2 = g_Texture1.Sample(DefaultSampler, uv);
+
+ if (tex2.a >= 0.9f)
+ tex1 = tex2;
+
+ color = tex1;
+
+ float wave1 = sin(uv.x * 10.f + g_fTime * 2.f) * 0.01f;
+ float wave2 = sin(uv.x * 10.f + g_fTime * 2.f) * 0.01f;
+
+ float waveThreshold1 = CoolTime + wave1;
+ float waveThreshold2 = CoolTime2 + wave2;
+
+ if (g_fDeltaV <= 1.f)
+ {
+ if (uv.y >= waveThreshold1 && uv.y <= waveThreshold2)
+ {
+ color.rgb = float3(1.f, 1.f, 1.f);
+ }
+ }
+
+ if (uv.y <= CoolTime)
+ {
+ color.a = 0.f;
+ }
+
+ 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 UVMult
+ {
+ 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();
+ }
+
+ 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();
+ }
+}
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 6ffd06472..d48707800 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -64,7 +64,16 @@
03.InfoInstance\02.MapInfo
-
+
+ 02.GameObjects\UI\GamePlay_Canvas\Loding_Panel\LoadingWidget
+
+
+ 02.GameObjects\UI\GamePlay_Canvas
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Loding_Panel
+
+
02.GameObjects\Player
@@ -287,6 +296,27 @@
{413e6692-6e4a-4b00-8306-edf652bd876a}
+
+ {c152f9ff-2525-4b4b-938c-5818f8d65a40}
+
+
+ {b819d017-f55f-4e1d-9c09-127a00b7ff57}
+
+
+ {7f5280a9-3955-40ab-bde5-ef52acc0512f}
+
+
+ {4791d5ef-35cd-494d-8c39-bcca14488323}
+
+
+ {9d92d05f-697c-4437-a44a-b82e54255bcc}
+
+
+ {f19404dc-7bc1-4d89-9c4a-72959db5a701}
+
+
+ {f7f22fc0-0e66-4e6e-a60a-0c612d58d802}
+
{be963729-ed65-4506-82f2-24213f5ecf5a}
@@ -406,6 +436,15 @@
03.InfoInstance\02.MapInfo
+
+ 02.GameObjects\UI\GamePlay_Canvas\Loding_Panel\LoadingWidget
+
+
+ 02.GameObjects\UI\GamePlay_Canvas
+
+
+ 02.GameObjects\UI\GamePlay_Canvas\Loding_Panel
+
02.GameObjects\Player
diff --git a/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp
new file mode 100644
index 000000000..32fafc0cd
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp
@@ -0,0 +1,160 @@
+#include "pch.h"
+#include "GamePlay_Canvas.h"
+#include "GameInstance.h"
+//#include "Mission_Panel.h"
+//#include "MiniMap_Panel.h"
+#include "Loading_Panel.h"
+//#include "Action_Panel.h"
+//#include "Mouse_Cursor.h"
+
+CGamePlay_Canvas::CGamePlay_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CCanvasObject(pDevice, pContext)
+{
+}
+
+CGamePlay_Canvas::CGamePlay_Canvas(const CGamePlay_Canvas& rhs)
+ :CCanvasObject(rhs)
+{
+}
+
+
+HRESULT CGamePlay_Canvas::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CGamePlay_Canvas::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 1920.f;
+ Desc.fSizeY = 1080.f;
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Panel(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_bVisible = true;
+ m_bActive = true;
+ return S_OK;
+}
+
+void CGamePlay_Canvas::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CGamePlay_Canvas::Update(_float fTimeDelta)
+{
+ __super::Update(fTimeDelta);
+}
+
+void CGamePlay_Canvas::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible) {
+
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CGamePlay_Canvas::Render()
+{
+ return S_OK;
+}
+
+_vector CGamePlay_Canvas::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CGamePlay_Canvas::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+HRESULT CGamePlay_Canvas::Ready_Components(void* pArg)
+{
+ return S_OK;
+}
+
+HRESULT CGamePlay_Canvas::Ready_Panel(void* pArg)
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoading_Panel))))
+ {
+ return E_FAIL;
+ }
+ Add_Panel(TEXT("LoadingPanel"), m_pLoading_Panel);
+
+ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMinimap_Panel))))
+ //{
+ // return E_FAIL;
+ //}
+ //Add_Panel(TEXT("MinimapPanel"), m_pMinimap_Panel);
+
+ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_Panel))))
+ //{
+ // return E_FAIL;
+ //}
+ //Add_Panel(TEXT("MissionPanel"), m_pMission_Panel);
+
+ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pAction_Panel))))
+ //{
+ // return E_FAIL;
+ //}
+ //Add_Panel(TEXT("ActionPanel"), m_pAction_Panel);
+
+
+ return S_OK;
+}
+
+void CGamePlay_Canvas::Clear_Penel()
+{
+}
+
+CGamePlay_Canvas* CGamePlay_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CGamePlay_Canvas* pInstance = new CGamePlay_Canvas(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CGamePlay_Canvas");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CGamePlay_Canvas::Clone(void* pArg, CGameObject* pOwner)
+{
+ CGamePlay_Canvas* pInstance = new CGamePlay_Canvas(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CGamePlay_Canvas");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CGamePlay_Canvas::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pLoading_Panel);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CGamePlay_Canvas::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index c089be113..a3201bcad 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -5,6 +5,7 @@
#include "Light_Main.h"
#include "Camera_Debug.h"
#include "InfoInstance.h"
+#include "GamePlay_Canvas.h"
#include "Layer.h"
#include "Player.h"
#include "SkyBox.h"
@@ -84,6 +85,10 @@ HRESULT CLevel_GamePlay::Ready_Lights()
HRESULT CLevel_GamePlay::Ready_Layer_UI(const _wstring& strLayerTag)
{
+ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_UI))) {
+ // return E_FAIL;
+ //}
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 5afa6f641..35efbe1b8 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -4,6 +4,9 @@
#include "MainApp.h"
#include "Light_Main.h"
#include "Camera_Debug.h"
+//#include "GamePlay_Canvas.h"
+//#include "Loading_Panel.h"
+//#include "LoadingWidget.h"
#include "Player.h"
#include "Camera_Gaze.h"
@@ -118,6 +121,11 @@ HRESULT CLoader::Loading_For_GamePlay()
{
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("LoadingWidget"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Loading/LoadingWidget.png"), 0)))) {
+ return E_FAIL;
+ }
+
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_MESH,
@@ -134,6 +142,14 @@ HRESULT CLoader::Loading_For_GamePlay()
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
+ m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIEDITOR,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"),
+ VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) {
+ return E_FAIL;
+ }
+
// Heavy Wall
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
{
@@ -184,12 +200,20 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
-
-
m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다.");
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
+ //if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext)))) {
+ // return E_FAIL;
+ //}
+ //if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLoading_Panel::Create(m_pDevice, m_pContext)))) {
+ // return E_FAIL;
+ //}
+ //if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLoadingWidget::Create(m_pDevice, m_pContext)))) {
+ // return E_FAIL;
+ //}
+
/* For.Prototype_GameObject_SkyBox */
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSkyBox::Create(m_pDevice, m_pContext))))
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/LoadingWidget.cpp b/Jusin154_Team3D/Client/Private/LoadingWidget.cpp
new file mode 100644
index 000000000..f1edb4509
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/LoadingWidget.cpp
@@ -0,0 +1,249 @@
+#include "pch.h"
+#include "LoadingWidget.h"
+#include "GameInstance.h"
+
+CLoadingWidget::CLoadingWidget(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CLoadingWidget::CLoadingWidget(const CLoadingWidget& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CLoadingWidget::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CLoadingWidget::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 600.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 200.f;
+ Desc.fSizeY = 200.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_iImageFrameX = 6;
+ m_iImageFrameY = 6;
+ m_fFrame = 0.2f;
+ m_fTimeMult = 3.f;
+ m_fDelayTime = 1.f;
+ m_fEndTime = 1.8f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 3.f;
+ m_fMoveSpeed = 10.f;
+ m_bVisible = true;
+ m_bActive = true;
+ return S_OK;
+}
+
+void CLoadingWidget::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CLoadingWidget::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;
+ }
+ }
+ if (m_bLerpOn == true)
+ {
+ Start_Lerp(m_fMoveSpeed);
+ }
+
+ if (m_bLerpOff == true)
+ {
+ Reset_Pos(m_fMoveSpeed);
+ }
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CLoadingWidget::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CLoadingWidget::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::LODING)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CLoadingWidget::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CLoadingWidget::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_fFrame", &m_fFrame, 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_iImageCountX", &m_iImageFrameX, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iImageCountY", &m_iImageFrameY, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CLoadingWidget::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::STATIC), TEXT("LoadingWidget"), 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;
+}
+
+CLoadingWidget* CLoadingWidget::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CLoadingWidget* pInstance = new CLoadingWidget(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CLoadingWidget");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CLoadingWidget::Clone(void* pArg, CGameObject* pOwner)
+{
+ CLoadingWidget* pInstance = new CLoadingWidget(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CLoadingWidget");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CLoadingWidget::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CLoadingWidget::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Loading_Panel.cpp b/Jusin154_Team3D/Client/Private/Loading_Panel.cpp
new file mode 100644
index 000000000..935aa9b33
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Loading_Panel.cpp
@@ -0,0 +1,155 @@
+#include "pch.h"
+#include "Loading_Panel.h"
+#include "GameInstance.h"
+#include "LoadingWidget.h"
+//#include "LoadingWidget_Flame.h"
+
+CLoading_Panel::CLoading_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CPanelObject(pDevice, pContext)
+{
+}
+
+CLoading_Panel::CLoading_Panel(const CLoading_Panel& rhs)
+ :CPanelObject(rhs)
+{
+}
+
+HRESULT CLoading_Panel::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CLoading_Panel::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 1200.f;
+ Desc.fY = 900.f;
+ Desc.fSizeX = 1515.f;
+ Desc.fSizeY = 300.f;
+
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Element(pArg)))
+ {
+ return E_FAIL;
+ }
+ m_bVisible = true;
+ m_bActive = true;
+ return S_OK;
+}
+
+void CLoading_Panel::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CLoading_Panel::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ __super::Update(fTimeDelta);
+}
+
+void CLoading_Panel::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CLoading_Panel::Render()
+{
+ return S_OK;
+}
+
+_vector CLoading_Panel::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CLoading_Panel::Bind_ShaderResources()
+{
+
+ return S_OK;
+}
+
+HRESULT CLoading_Panel::Ready_Components(void* pArg)
+{
+
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CLoading_Panel::Ready_Element(void* pArg)
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoadingWidget))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("LoadingWidget"), m_pLoadingWidget);
+ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoadingWidget_Flame))))
+ //{
+ // return E_FAIL;
+ //}
+ //Add_Element(TEXT("LoadingWidget_Flame"), m_pLoadingWidget_Flame);
+
+ return S_OK;
+}
+
+CLoading_Panel* CLoading_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CLoading_Panel* pInstance = new CLoading_Panel(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CLoading_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CLoading_Panel::Clone(void* pArg, CGameObject* pOwner)
+{
+ CLoading_Panel* pInstance = new CLoading_Panel(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CLoading_Panel");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CLoading_Panel::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CLoading_Panel::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Public/GamePlay_Canvas.h b/Jusin154_Team3D/Client/Public/GamePlay_Canvas.h
new file mode 100644
index 000000000..5a0fc94e8
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/GamePlay_Canvas.h
@@ -0,0 +1,50 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "CanvasObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Client)
+
+class CGamePlay_Canvas final : public CCanvasObject
+{
+private:
+ CGamePlay_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CGamePlay_Canvas(const CGamePlay_Canvas& rhs);
+ virtual ~CGamePlay_Canvas() = 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 Ready_Panel(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Clear_Penel();
+
+private:
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ CGameObject* m_pMission_Panel = { nullptr };
+ CGameObject* m_pMinimap_Panel = { nullptr };
+ CGameObject* m_pLoading_Panel = { nullptr };
+ CGameObject* m_pAction_Panel = { nullptr };
+
+public:
+ static CGamePlay_Canvas* 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/Client/Public/LoadingWidget.h b/Jusin154_Team3D/Client/Public/LoadingWidget.h
new file mode 100644
index 000000000..bf53b9206
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/LoadingWidget.h
@@ -0,0 +1,44 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Client)
+
+class CLoadingWidget final : public CElementObject
+{
+private:
+ CLoadingWidget(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CLoadingWidget(const CLoadingWidget& rhs);
+ virtual ~CLoadingWidget() = 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 };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iImageFrameX{};
+ _int m_iImageFrameY{};
+ _float m_fFrame{};
+public:
+ static CLoadingWidget* 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/Client/Public/Loading_Panel.h b/Jusin154_Team3D/Client/Public/Loading_Panel.h
new file mode 100644
index 000000000..f1b195fde
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Loading_Panel.h
@@ -0,0 +1,46 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "PanelObject.h"
+
+NS_BEGIN(Engine)
+class CGameObject;
+NS_END
+
+NS_BEGIN(Client)
+
+class CLoading_Panel final : public CPanelObject
+{
+private:
+ CLoading_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CLoading_Panel(const CLoading_Panel& rhs);
+ virtual ~CLoading_Panel() = 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 Ready_Element(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+private:
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ CGameObject* m_pLoadingWidget = { nullptr };
+ CGameObject* m_pLoadingWidget_Flame = { nullptr };
+
+
+public:
+ static CLoading_Panel* 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/Bin/Resources/Data/Effect/BasicParticle2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle2.bin
index 6fcefc8cb..8905548cc 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:33324ff2060094ec06bbc3f5e4f961fc8590a2c9b96f3cb8117099b7bead139f
-size 642
+oid sha256:0bddaec7c43953cf48b607de04044f826d0b938d3a8febd4c3412e60cdc219d3
+size 754
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin
index 6cc4cd5ae..68c274b11 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:cfb9dbdea82faf9d7292fc8e27cc27ddf3885e6980b51f903047b5a80a143903
-size 587
+oid sha256:6527034abc9bec6aeb549613fe9005b652e5dc454b968fa814663439c2dc5cea
+size 707
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle0.bin
new file mode 100644
index 000000000..df3d71cf2
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:00d283741ea12a585fbea22dce225faccd6387d835dcead66b2f5e3396ac5ef0
+size 807
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle1.bin
new file mode 100644
index 000000000..fe8911802
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6be7b1f059c23cc86d6492b9adc0e23a486c914523114bef806c6740e0439ab8
+size 756
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Explosion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Explosion.bin
new file mode 100644
index 000000000..926ec86a8
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Explosion.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a805244677b5601cd024802b35b456a379c931285b6b4056231ebc1fcb511b40
+size 750
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_0.bin
new file mode 100644
index 000000000..508558701
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2a13f34f5fa1739da81aaa652d0aa0528c552b45739fd7a1688a3a677c26af3f
+size 707
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_1.bin
new file mode 100644
index 000000000..eb63deff2
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8341c87c732cb69671bc7bcbc4e8d0d4173c8ab2115967144626e8b92f1650e1
+size 707
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_2.bin
new file mode 100644
index 000000000..b5bfbbb96
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_2.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:79b814bffb0445f8cbddddcd299673df2c15bf469175a1e47f953a711dbf5142
+size 707
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_3.bin
new file mode 100644
index 000000000..e7117e0b0
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_3.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:45b640a0bbb2ea7b5b63fc88d9995c916897f102446c28b06f534348bd1ca80f
+size 707
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Projectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Projectile.bin
new file mode 100644
index 000000000..1dc1e4f83
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Projectile.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d6a2393e330944b0ee49c639fe99ea6164989ceccc597e48e84551b1d64375d8
+size 788
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Smoke.bin
new file mode 100644
index 000000000..be3c2b23e
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Smoke.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:65218dbabefd07543025bba00c4bee0617bee83b98de57c9844547781372bf19
+size 705
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapImpact.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapImpact.bin
index 68742a413..759f7f1d3 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapImpact.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapImpact.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:655010e74ac2158c2e6e170b3227b999e7bb79c6d4ddb47711977ea2d3b45f6c
-size 695
+oid sha256:a6b892cfdd0a8aef117fb7a4afc7089653666870c2e1d23c520824963387f5bd
+size 807
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapLight.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapLight.bin
index 1232f54a1..6e3ead7ee 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapLight.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapLight.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7c1159a04cf6e0047408eac52f4c6cd97b870b366ebe1d8467d53be145bf4abc
-size 640
+oid sha256:3213bb3a0a08e1d868afc52ec304493e5111271f7661c8db56ce9eb641cde6c4
+size 752
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapParticle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapParticle1.bin
index 64eb0211d..458c4302c 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapParticle1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapParticle1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3a17db24b692c3fb97b865374497a88e3d40f752d6ca48f9e63698fa24a3ef36
-size 588
+oid sha256:90dc0962c1416a37debe58bc5b44d8697872f7e9a01fe4585565354517595f3f
+size 700
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile.bin
index e335f47c4..87689f225 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:bf41ba2f46bf12e91ae80a9c4a113a3fcc257f0ec7f1008b429208ef2bdae03a
-size 678
+oid sha256:f5839f16366a626c1e4b91b7e49c71e28e0aad4cfdf649a2e54329aa0413f087
+size 790
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile2.bin
index 401729889..55326b2b2 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c71e23d34b8e56af41a35bac92e7ac43f3863b948ac9b2e976400834c26d86b2
-size 635
+oid sha256:b7f3086b12947b00771ddb624c4e89b20cec830c1ddb9eafa1e74de28a5058d0
+size 747
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile1.bin
index 5f1be16de..df6a48467 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:675facff7ddb1f7a87ffb6922d81096875882a994f9d3bbc23b40f3dc0072184
-size 631
+oid sha256:e447fb46c0fe49c8acc0061ee4b8cf68bdb59c63ee314c9b02a37d5309ac0406
+size 743
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile2.bin
index fee26ef6d..2fe8b6abc 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a9a07e170e2ba63cd9d51f2815302bc8ff4ee342dfa6c3ca735c98801e7b7a6d
-size 641
+oid sha256:a6c04308bbd7dfa71570413576d4f66de96fb6269307201396c9794923c68fb2
+size 753
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileCircle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileCircle1.bin
index 45cb6facd..16f0fd880 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileCircle1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileCircle1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f9e01835b6ca1bf0901bd5a435186a2bf211597a50a8e77ef66df9f502bee2c6
-size 586
+oid sha256:cfea59a237f53e73b02cb6623ab2cd0120f1f586aee6921f4bc570086fc065ef
+size 698
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileMiddle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileMiddle.bin
index 0504e4a3d..c271186f7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileMiddle.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileMiddle.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:fec289dab288362787c36d9a187219f61babb97a6dcabd00aad046f5a3965e03
-size 643
+oid sha256:bf9deea4ae9b01a688785bedf0d08a1179a32af2f0ceaa7020cf7b71749b85e5
+size 755
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MagicProjectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MagicProjectile.bin
deleted file mode 100644
index 1d47abd1c..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MagicProjectile.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:cbe853fd71b771fdc12c4c15ac66ee5d39d7a1baad42bfaa83339eac98514025
-size 670
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Bombard.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Bombard.bin
new file mode 100644
index 000000000..34de99318
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Bombard.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ea5f0901fe1f61804ff823cc87eca481d0c8572ef56dc3d0e33fa53316b3245d
+size 236
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Smoke1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Smoke1.bin
index ae894bd68..cdf2e890b 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Smoke1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Smoke1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3db2fd3373fcd0498c2511579f370a9c7e0f379bd31fd0cc5d2a86e970442387
-size 640
+oid sha256:15e844a209069d289f4e267e6045fa6887257681163d5b146c97be76fa062db8
+size 752
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin
index 247628033..38bf119a0 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:da59ec056c37de150309c542ddd431a058c8b20eaad6302c0e7a2a0c852f453e
-size 635
+oid sha256:efe9a30cc81959dd7133ce0bb6276ac5b92eb16e2f1e154832623b9bd5965b90
+size 747
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BasicParticle2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BasicParticle2.bin
index d5749ac8c..668d54bb0 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BasicParticle2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BasicParticle2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c6a85af24f40fd29ac155d818851d15f21659aa5cd339c34b3b2daaf2833f446
-size 614
+oid sha256:92d5aa0adaad0ee75c2344d15eed70744786932153fb53f219efd2835764d29e
+size 746
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BlustParticle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BlustParticle.bin
index 8c8f9cfc9..7d64ccea8 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BlustParticle.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BlustParticle.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:2e5b06298607ab3b2e70a7e5cb1d60fc1c3e42985f4c3329a9b0adfd99694b70
-size 559
+oid sha256:9d4184e9553e467b77c5466e0cedd9f00168ffed4aea52c07053aa9a7ed03096
+size 699
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Circle0.bin
new file mode 100644
index 000000000..7c5ef33f2
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Circle0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d5706ffe31f04c0bee3e089e4f239a76fb67bd1237fb22ba8cd01a6fc7e9d17e
+size 799
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Explosion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Explosion.bin
new file mode 100644
index 000000000..3774f7ca0
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Explosion.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2893656232894ac1cc91992b9c97bbba75fcb21e69bc5de935141bc147df9b4e
+size 742
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_0.bin
new file mode 100644
index 000000000..a9904eb23
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e01d1835e23745c543e00f24fd199d7d89732682bcdddbb23c1ed221bd5bb9eb
+size 699
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_1.bin
new file mode 100644
index 000000000..c01996bd6
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8336e77446690682b872e84a9b60cdcea71bbd75b808e8d31c1b02483b561d01
+size 699
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_2.bin
new file mode 100644
index 000000000..34596452d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_2.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4e81d31a047678292fe9d68aabd4cb75590a1816003a8f4cc29d85b6c3ec31a3
+size 699
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_3.bin
new file mode 100644
index 000000000..5a0b6a7f3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_3.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:76950f5acde485735c077385f894e217dcfc30dc97d7a21711f2ee149f49b2d3
+size 699
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Projectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Projectile.bin
new file mode 100644
index 000000000..cca1aabe7
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Projectile.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d41b91c21d40d0c747bf7d7ced3bb1db8a4c6b6fc31893ee7111122170bc40ff
+size 780
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Smoke.bin
new file mode 100644
index 000000000..1c843fca0
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Smoke.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a00327d0f76135b565c06bbf73f38d8afc7b7469b9cf1e66dd3e3f05411f9a6e
+size 697
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapImpact.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapImpact.bin
index c38e43cca..56796e513 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapImpact.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapImpact.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:578d053ea11ef3573689b4b3f5ae2ab9e7a0b2773cd20b98364c8cf815cfef7a
-size 667
+oid sha256:e7736584a24f1972257417aebda878d3464f37f0da0f27dad48cabd21ff6eca8
+size 799
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapLight.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapLight.bin
index 1da980370..dc1165384 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapLight.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapLight.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:45a4ae620b249fa4a7d0a11b57c991c9292b6516dedb004233917fcb236491a4
-size 612
+oid sha256:40fd0d79f844262822104ed5e604e072258f29ce6f2be142198273d40d23aecf
+size 744
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapParticle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapParticle1.bin
index bd0cd594d..4f9d56f76 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapParticle1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapParticle1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b8a69fbf03cf611f14d120b4233281c5441c141cce967a34bb0a0ffb5d75421e
-size 560
+oid sha256:d115f65e6f5e4603e16248081717cf5b3aceb1112c6368dead4eeafc8b9a16d3
+size 692
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile.bin
index e9c00fe41..737dcd279 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c937129c7c7b817fa5da26f31114fa6196d2a9a636249c080f88a227fc19b4f9
-size 650
+oid sha256:297b79febe8f4107fc34192a3b7ace5f0646bc5049d5c763983bca1828359ce4
+size 782
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile2.bin
index e5a43541e..bbdae3a81 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:29e377b84488c530efa60ca6849215cd252a41617e214144acf39ec440166799
-size 607
+oid sha256:50ff8d62caafa01c666960e0b72737da4bfa8905cce9af90c93229a39adf1854
+size 739
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile1.bin
index d8e15f979..d6d424595 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:985580cbc2a60ad0adf44066bf6289113cfee5a060b116d8212ee7229bdf5fdf
-size 603
+oid sha256:8b015bbe1091e4d524d7c7c637f5a42b931cc00e218d2307b637c6bd2103baf9
+size 735
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile2.bin
index ead06d755..9accc766d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:90807d935e97d1397e0e06268ae8033f31e56b8555cfa5ebb754d75ba53605ec
-size 613
+oid sha256:f1adb0b74c940aa6db942d9a71370cba3a9e095d34ea7b998c89a57e85af686e
+size 745
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileCircle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileCircle1.bin
index 45b3ae031..834552570 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileCircle1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileCircle1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0d84e7ef14cc880db3ecc1c9f7401ead81900aab6d2abe6347017e06c53aa13a
-size 558
+oid sha256:d8646e5b9f972c65252ec77a97a97306cf484918ee3a41f451ef2e33c9a37fef
+size 690
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileMiddle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileMiddle.bin
index 48ba557a3..0847cebf5 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileMiddle.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileMiddle.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:283dc1ff9d9586506d5da462122cdc817d08df43e388a08f87081c06e0bc2441
-size 615
+oid sha256:e4b6c8694927adf82c81db8733687eea942c26557bad8b4c23cea43aa067c84d
+size 747
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/MagicProjectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/MagicProjectile.bin
deleted file mode 100644
index 30134e743..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/MagicProjectile.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:49b7312bb19a14fce3ec8db147e5375020a319946e2f258070dc542f1c68bda7
-size 642
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Smoke1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Smoke1.bin
index 240b21e2f..f13f07f59 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Smoke1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Smoke1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ea5374fad8d511a6af141b7349968fc2d3c1830c799cd8fdda51a9ccf53ee127
-size 612
+oid sha256:5f303dd4a3616b41c4a2dc5838d28579af68dab52871503cb3f90bf03e81877d
+size 744
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Test.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Test.bin
index 154bcc41b..a2d043337 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:9b1f81d39c4b0cb910417a9cf43895bc1e2aa28300469c89ead3d368700ce97a
-size 607
+oid sha256:ac035576a895f825fa0b0f35847cc45849d20accf2cdf7b40354da6761793b40
+size 739
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 6a7c952fc..b1efa60ae 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
@@ -229,5 +229,40 @@ float4x4 RotateZ(float fAngle)
return RotateZMat;
}
+float4x4 RotateAxis(float4 _vAxis , float fAngle)
+{
+ float flenhth = length(_vAxis);
+ if (flenhth < FLT_EPSILON5)
+ {
+ return float4x4(
+ 1.0, 0.0, 0.0, 0.0,
+ 0.0, 1.0, 0.0, 0.0,
+ 0.0, 0.0, 1.0, 0.0,
+ 0.0, 0.0, 0.0, 1.0
+ );
+ }
+
+ float3 vAxis = normalize(_vAxis);
+
+ float fCos = cos(radians(fAngle));
+ float fSin = sin(radians(fAngle));
+
+ float fX = vAxis.x;
+ float fY = vAxis.y;
+ float fZ = vAxis.z;
+
+ //Rodrigues 공식 기반
+ float4x4 RotateMat =
+ float4x4(
+ fCos + fX * fX * (1.0 - fCos), fX * fY * (1.0 - fCos) - fZ * fSin, fX * fZ * (1.0 - fCos) + fY * fSin, 0.0,
+ fY * fX * (1.0 - fCos) + fZ * fSin, fCos + fY * fY * (1.0 - fCos), fY * fZ * (1.0 - fCos) - fX * fSin, 0.0,
+ fZ * fX * (1.0 - fCos) - fY * fSin, fZ * fY * (1.0 - fCos) + fX * fSin, fCos + fZ * fZ * (1.0 - fCos), 0.0,
+ 0.0, 0.0, 0.0, 1.0
+ );
+
+ return RotateMat;
+
+}
+
#endif // ENGINE_SHADER_FUNCTIONS_HLSLI
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 4212f3194..117084542 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
@@ -31,6 +31,13 @@ struct ParticleValue
float3 vSinAmount;
float3 vDeltaAngle;
+ float3 vDeltaAxisAngle;
+
+ float fDrag;
+ float3 vPivot;
+
+ float fSizeDrag;
+ float3 vDeltaSize;
};
@@ -49,10 +56,10 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
bool isMoveForward;
bool isSinWave;
- bool IsTurn;
- bool isPadding1;
- bool isPadding2;
- bool isPadding3;
+ bool isTurn;
+ bool isAxisTurn;
+ bool isPivotMove;
+ bool isSizeMove;
float fTimeDelta;
float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
@@ -79,7 +86,7 @@ void CS_MAIN(
{
if (isLoop == false)
{
- return;
+ return ;
}
//초기화
@@ -89,15 +96,45 @@ void CS_MAIN(
particle.vTranslation = particleValue.vOriginTranslation;
particle.vLifeTime.x = 0.f;
+ particleValue.vAniIndex.x = 0.f;
+
+ g_VBInstanceOutput[iIndex] = particle;
+ g_ParticleValueOutput[iIndex] = particleValue;
+
+ return ;
}
if (isMoveForward)
{
+ float fTime = (particle.vLifeTime.x / particle.vLifeTime.y);
+
+ float fRatio = 1 - (1 - fTime * fTime);
+
+ float fDrag = particleValue.fDrag;
+
+ if (particleValue.fDrag < FLT_EPSILON5)
+ fDrag = 1;
+
float4 vVelocity = vector(normalize(particle.vLook.xyz) * particleValue.fSpeed, 1.f);
- particle.vTranslation += vVelocity * fTimeDelta;
+ particle.vTranslation += vVelocity * fTimeDelta * fDrag;
+ }
+
+ if (isPivotMove)
+ {
+ float3 vDir = normalize(particleValue.vPivot - particleValue.vOriginTranslation.xyz);
+
+ float fDrag = particleValue.fDrag;
+
+ if (particleValue.fDrag < FLT_EPSILON5)
+ fDrag = 1;
+
+ float4 vVelocity = vector(vDir * particleValue.fSpeed, 1.f);
+
+ particle.vTranslation += vVelocity * fTimeDelta * fDrag;
+
}
if (isDrop == true)
@@ -111,7 +148,7 @@ void CS_MAIN(
particle.vTranslation += vector( sin(particle.vLifeTime.x * 3.141592 * 2.f) * particleValue.vSinAmount, 0.f);
}
- if (IsTurn == true)
+ if (isTurn == true)
{
/* ROTATE */
float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta);
@@ -132,6 +169,64 @@ void CS_MAIN(
particle.vLook = CurRotatemat[2].xyzw;
}
+
+ if (isAxisTurn)
+ {
+ float4x4 RotateAxisRightMat = RotateAxis(particle.vRight, particleValue.vDeltaAxisAngle.x * fTimeDelta);
+ float4x4 RotateAxisUpMat = RotateAxis(particle.vUp, particleValue.vDeltaAxisAngle.y * fTimeDelta);
+ float4x4 RotateAxisLookMat = RotateAxis(particle.vLook, particleValue.vDeltaAxisAngle.z * fTimeDelta);
+
+
+ float4x4 CombinedRotMat = mul(RotateAxisLookMat, mul(RotateAxisUpMat, RotateAxisRightMat));
+
+ float4x4 CurRotatemat = { particle.vRight, particle.vUp, particle.vLook, vector(0.f, 0.f, 0.f, 1.f) };
+
+
+ CurRotatemat = mul(CurRotatemat ,CombinedRotMat);
+
+ particle.vRight = CurRotatemat[0].xyzw;
+ particle.vUp = CurRotatemat[1].xyzw;
+ particle.vLook = CurRotatemat[2].xyzw;
+
+
+ }
+
+ if (isSizeMove == true)
+ {
+ float3 CurLength =
+ {
+ length(particle.vRight),
+ length(particle.vUp),
+ length(particle.vLook),
+ };
+
+ float fTime = (particle.vLifeTime.x / particle.vLifeTime.y);
+
+ float fRatio = 1 - (1 - fTime * fTime);
+
+ float fDrag = particleValue.fSizeDrag;
+
+ if (particleValue.fSizeDrag < FLT_EPSILON5)
+ fDrag = 1;
+
+ //fDrag *= fRatio;
+
+ CurLength += particleValue.vDeltaSize * fTimeDelta * fDrag;
+
+ if (CurLength.x < FLT_EPSILON5)
+ CurLength.x = FLT_EPSILON5;
+
+ if (CurLength.y < FLT_EPSILON5)
+ CurLength.y = FLT_EPSILON5;
+
+ if (CurLength.z < FLT_EPSILON5)
+ CurLength.z = FLT_EPSILON5;
+
+ particle.vRight = normalize(particle.vRight) * CurLength.x;
+ particle.vUp = normalize(particle.vUp) * CurLength.y;
+ particle.vLook = normalize(particle.vLook) * CurLength.z;
+
+ }
//애니메이션 속도 , 인덱스
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index e614342ce..d3a887b6b 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -461,7 +461,7 @@ PS_OUT PS_SpellAnim(PS_IN In)
}
}
- if (uv.y <= CoolTime)
+ if (uv.y <= CoolTime)
{
color.a = 0.f;
}
@@ -472,6 +472,71 @@ PS_OUT PS_SpellAnim(PS_IN In)
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);
+ 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);
+
+
+ Color = tex1;
+
+ tex2.rgb *= float3(112.f, 241.f, 31.f) / 255.f;
+
+ if(Color.r >= 0.01f)
+ Color = tex2;
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
technique11 PosTexTechnique11
{
pass Default
@@ -603,4 +668,13 @@ technique11 PosTexTechnique11
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();
+ }
}
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 029accc32..d6eae9ff4 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl
@@ -16,7 +16,9 @@ struct VS_IN
float2 vTexcoord : TEXCOORD0;
float2 vSize : TEXCOORD1;
- float2 Pos : TEXCOORD2;
+ float2 vPos : TEXCOORD2;
+ float2 vUVStart : TEXCOORD3;
+ float2 vUVEnd: TEXCOORD4;
};
struct VS_OUT
@@ -30,17 +32,17 @@ VS_OUT VS_MAIN(VS_IN In)
VS_OUT Out;
matrix matVP = mul(g_ViewMatrix, g_ProjMatrix);
-
float3 vLocalPos = In.vPosition;
vLocalPos.xy *= In.vSize;
- vLocalPos.xy += In.Pos;
-
+ vLocalPos.xy += In.vPos;
+ float2 StartUV = In.vUVStart;
+ float2 EndUV = In.vUVEnd;
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 = In.vTexcoord;
+ Out.vTexcoord = StartUV + In.vTexcoord * (EndUV - StartUV);
return Out;
}
@@ -78,6 +80,23 @@ PS_OUT PS_MAIN(PS_IN In)
return Out;
}
+PS_OUT PS_Alpha_Blend(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 color = g_Texture.Sample(ClampSampler, In.vTexcoord);
+
+ if(color.a <= 0.4f)
+ discard;
+
+ color.a *= Alpha;
+
+ Out.vColor = color;
+
+ return Out;
+}
+
technique11 PosTexTechnique11
{
pass Default
@@ -90,4 +109,15 @@ technique11 PosTexTechnique11
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_Alpha_Blend();
+ }
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
index 8b583a521..8a0db6625 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
@@ -17,10 +17,19 @@ struct ParticleValue
float2 vAniTime;
float2 vAniIndex;
- float fGravity;
+ float fGravity;
float3 vSinAmount;
float3 vDeltaAngle;
+ float3 vDeltaAxisAngle;
+
+ float fDrag;
+ float3 vPivot;
+
+ float fSizeDrag;
+ float3 vDeltaSize;
+
+
};
@@ -72,7 +81,16 @@ float g_fBlurIntensity; //블러 세기
float g_fNoiseDistortionIntensity; // 디스토션 왜곡 세기
float4 g_vEmissive;
-float g_fEmissiveCutAlpha;
+float g_fEmissiveStrength;
+
+float g_fSoftenExp;
+float g_fSoftStrength;
+float g_fCoreBoost;
+float g_fRadius;
+
+
+float g_fSoftMaskEdge;
+float g_fSoftMask;
bool g_isDiffuse;
bool g_isMasking;
@@ -394,12 +412,14 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
{
vMtrlMask.r = 1.f;
}
-
- vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r);
+ float fSoftMask;
-
+ if (g_fSoftMask > FLT_EPSILON5)
+ fSoftMask = saturate((vMtrlMask.r - g_fSoftMaskEdge) * g_fSoftMask);
+
+ vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask);
if (vMtrlDiffuse.a <= 0.f)
discard;
@@ -443,10 +463,23 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
Out = BlendedWeight(vMtrlDiffuse, In.vProjPos.w);
- // 색깔 추가할 처리 (이미시브)
+ //// 색깔 추가할 처리 (이미시브)
float4 vEmissiveMtrl = vector(0.f, 0.f, 0.f, 0.f);
+
+
+ float2 CenteredUV = In.vTexcoord - 0.5f;
+ float fDistance = saturate(length(CenteredUV) / g_fRadius); // 마스크의 크기를 어느정도할지
+
+ float fMaskAlpha = vMtrlMask.a;
+
+ float fSoftEdge = pow(saturate(1.0f - fDistance), g_fSoftenExp) * g_fSoftStrength; //SoftenExp 엣지감쇠지수 , Strength
+
+ float fCore = pow(saturate(1.0 - fDistance * 2.f), max(0.001, g_fCoreBoost)) * g_fCoreBoost; // CoreBust 중심강조
+
+ float fEmissive = fSoftEdge + fCore;
+
if (g_isEmissive == true)
{
vEmissiveMtrl = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord);
@@ -456,23 +489,15 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
vEmissiveMtrl = g_vEmissive;
}
- float fEmissiveCutAlpha = g_fEmissiveCutAlpha;
-
- if (g_fEmissiveCutAlpha >= vMtrlDiffuse.a)
- {
-
- Out.vColorTarget = vector(0.f, 0.f, 0.f, 0.f);
-
- return Out;
- }
+ float fEmissiveStrength = g_fEmissiveStrength;
if (g_isEmissiveDissolve == true)
{
- vEmissiveMtrl *= (1.f - In.vLifeTime.x / In.vLifeTime.y);
+ fEmissiveStrength *= (1.f - In.vLifeTime.x / In.vLifeTime.y);
}
-
- Out.vColorTarget = pow(vEmissiveMtrl, 2.2f);
-
+
+ Out.vColorTarget = vEmissiveMtrl * fEmissive * fEmissiveStrength; // 이미시브 스트랭스
+
return Out;
}
@@ -642,9 +667,12 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
vMtrlMask.r = 1.f;
}
+
- vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r);
+ float softMask = saturate((vMtrlMask.r - 0.1) * 1.0);
+
+ vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * softMask);
@@ -682,27 +710,41 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
-
float4 vEmissiveMtrl = vector(0.f, 0.f, 0.f, 0.f);
+
+
+ float2 CenteredUV = In.vTexcoord - 0.5f;
+ float fDistance = saturate(length(CenteredUV) / g_fRadius); // 마스크의 크기를 어느정도할지
+
+ float fMaskAlpha = vMtrlMask.a;
+
+ float fSoftEdge = pow(saturate(1.0f - fDistance), g_fSoftenExp) * g_fSoftStrength; //SoftenExp 엣지감쇠지수 , Strength
+
+ float fCore = pow(saturate(1.0 - fDistance * 2.f), max(0.001, g_fCoreBoost)) * g_fCoreBoost; // CoreBust 중심강조
+
+ float fEmissive = fSoftEdge + fCore;
+
if (g_isEmissive == true)
{
vEmissiveMtrl = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord);
}
-
- float fEmissiveCutAlpha = g_fEmissiveCutAlpha;
-
- float fSmoothAlpha = smoothstep(fEmissiveCutAlpha - 0.3f, fEmissiveCutAlpha + 0.3f, vMtrlDiffuse.a);
-
-
- if (g_isEmissiveDissolve == true)
+ else
{
- fSmoothAlpha *= (1.f - In.vLifeTime.x / In.vLifeTime.y);
+ vEmissiveMtrl = g_vEmissive;
}
- float3 vEmissiveColor = g_vEmissive.rgb * g_vEmissive.a + vEmissiveMtrl.rgb * (1 - g_vEmissive.a);
+ float fEmissiveStrength = g_fEmissiveStrength;
- Out.vDiffuse = vector(vMtrlDiffuse.rgb * g_fBlurIntensity, vMtrlDiffuse.a); /** vector(vEmissiveColor * fSmoothAlpha, vMtrlDiffuse.a);*/
+ if (g_isEmissiveDissolve == true)
+ {
+ fEmissiveStrength *= (1.f - In.vLifeTime.x / In.vLifeTime.y);
+ }
+
+ vEmissiveMtrl = vEmissiveMtrl * fEmissive * fEmissiveStrength;
+
+
+ Out.vDiffuse = vector(vMtrlDiffuse.rgb * g_fBlurIntensity + vEmissiveMtrl.rgb, vMtrlDiffuse.a); /** vector(vEmissiveColor * fSmoothAlpha, vMtrlDiffuse.a);*/
return Out;
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/Group 1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/HpBarBG.png
similarity index 100%
rename from Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/Group 1.png
rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/HpBarBG.png
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HUD_HealthMeterFill.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HUD_HealthMeterFill.png
new file mode 100644
index 000000000..574a9cb5e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HUD_HealthMeterFill.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/MasterMaterials/VFX_MM_Flash_Soften.props.txt b/Jusin154_Team3D/Editor/Bin/Resources/VFX/MasterMaterials/VFX_MM_Flash_Soften.props.txt
index c528ae81d..4acd05fe8 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/VFX/MasterMaterials/VFX_MM_Flash_Soften.props.txt
+++ b/Jusin154_Team3D/Editor/Bin/Resources/VFX/MasterMaterials/VFX_MM_Flash_Soften.props.txt
@@ -90,6 +90,6 @@ MobileBaseTexture = None
MobileNormalTexture = None
bUseMobileSpecular = false
MobileSpecularPower = 16
-MobileSpecularMask = MSM_Constant (0)
+MobileSpecularMask = MSM_Constant (0)6
MobileMaskTexture = None
TextureStreamingData[0] = {}
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index 8d2b7722f..a56c73044 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -204,6 +204,7 @@
+
@@ -336,6 +337,7 @@
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index 253f9506f..7f9d7957f 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -340,6 +340,9 @@
{0db597d8-c4e7-479a-9b7e-9014b79a5e03}
+
+ {7e8b7123-11fb-4946-99fe-3265932d0536}
+
{072a4e85-ba07-4ffd-bdb1-ddac02558242}
@@ -684,6 +687,9 @@
50.UI\GamePlay_Canvas\Action_Panel\Slot_Number
+
+ 50.UI\GamePlay_Canvas\Action_Panel\HPBarBG
+
02.GameObjects\Camera\Camera_Gaze
@@ -1027,6 +1033,9 @@
50.UI\GamePlay_Canvas\Action_Panel\Slot_Number
+
+ 50.UI\GamePlay_Canvas\Action_Panel\HPBarBG
+
02.GameObjects\Camera\Camera_Gaze
diff --git a/Jusin154_Team3D/Editor/Private/Action_Panel.cpp b/Jusin154_Team3D/Editor/Private/Action_Panel.cpp
index c58f2101c..6d43368e2 100644
--- a/Jusin154_Team3D/Editor/Private/Action_Panel.cpp
+++ b/Jusin154_Team3D/Editor/Private/Action_Panel.cpp
@@ -4,6 +4,8 @@
#include "Spell_Slot.h"
#include "Spell_Image.h"
#include "Spell_Overlay.h"
+#include "Slot_Number.h"
+#include "HpBarBG.h"
CAction_Panel::CAction_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CPanelObject(pDevice, pContext)
@@ -105,45 +107,11 @@ _vector CAction_Panel::Get_WorldPostion()
HRESULT CAction_Panel::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;
- }
-
return S_OK;
}
HRESULT CAction_Panel::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_ActionItemGoldleaf_4K"), 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;
}
@@ -159,13 +127,23 @@ HRESULT CAction_Panel::Ready_Element(void* pArg)
{
return E_FAIL;
}
- Add_Element(TEXT("SpellImage"), m_pSpell_Image);
+ Add_Element(TEXT("Spell_Image"), m_pSpell_Image);
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Overlay))))
{
return E_FAIL;
}
- Add_Element(TEXT("SpellOverlay"), m_pSpell_Overlay);
+ Add_Element(TEXT("Spell_Overlay"), m_pSpell_Overlay);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSlot_Number))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("Slot_Number"), m_pSlot_Number);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pHpBarBG))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("HpBarBG"), m_pHpBarBG);
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Active_Icon.cpp b/Jusin154_Team3D/Editor/Private/Active_Icon.cpp
index 106d5aa02..25432d584 100644
--- a/Jusin154_Team3D/Editor/Private/Active_Icon.cpp
+++ b/Jusin154_Team3D/Editor/Private/Active_Icon.cpp
@@ -110,9 +110,7 @@ void CActive_Icon::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
- }
__super::Late_Update(fTimeDelta);
}
}
diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
index 8169c54e9..1cd833c01 100644
--- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp
+++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
@@ -433,11 +433,17 @@ void CEditEffect::Describe_Entity()
{
ImGui::PushItemWidth(80);
- GUI::DragFloat("EmissiveCutAlpha", &m_EffectInfo.fEmissiveCutAlpha, 0.005f, 0.f, 1.f);
+ GUI::DragFloat("EmissiveStrength", &m_EffectInfo.fEmissiveStrength, 0.005f, 0.f, 1.f);
+ GUI::DragFloat("Radius", &m_EffectInfo.fRadius, 0.005f);
+ GUI::DragFloat("CoreBoost", &m_EffectInfo.fCoreBoost, 0.005f);
+ GUI::DragFloat("SoftStrength", &m_EffectInfo.fSoftStrength, 0.005f);
+ GUI::DragFloat("SoftenExp", &m_EffectInfo.fSoftenExp, 0.005f);
ImGui::PopItemWidth();
GUI::ColorEdit4("Emissive", (_float*)&m_EffectInfo.vEmissive);
+
+
GUI::Checkbox("EmissiveTex", &m_EffectInfo.isEmissive);
GUI::Checkbox("EmissiveDissolve", &m_EffectInfo.isEmissiveDissolve);
@@ -577,6 +583,10 @@ void CEditEffect::Describe_Entity()
ImGui::PushItemWidth(80);
GUI::DragFloat2("MaskingUVGainAmount", (_float*)&m_EffectInfo.vMaskingUVGainAmount, 0.01f);
+ GUI::Spacing();
+ GUI::DragFloat("SoftMask", &m_EffectInfo.fSoftMask, 0.01f, 0.f);
+ GUI::DragFloat("fSoftMaskEdge", &m_EffectInfo.fSoftMaskEdge, 0.01f, 0.f);
+
ImGui::PopItemWidth();
diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
index 5a35bd159..060dcbd5f 100644
--- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
@@ -454,8 +454,6 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel)
return E_FAIL;
}
-
-
}
if (m_EffectInfo.isNoise)
@@ -705,7 +703,7 @@ HRESULT CEffectObject::Bind_ShaderResources()
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fEmissiveCutAlpha", &m_EffectInfo.fEmissiveCutAlpha, sizeof(_float)))) {
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fEmissiveStrength", &m_EffectInfo.fEmissiveStrength, sizeof(_float)))) {
return E_FAIL;
}
@@ -767,8 +765,30 @@ HRESULT CEffectObject::Bind_ShaderResources()
return E_FAIL;
}
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftenExp", &m_EffectInfo.fSoftenExp, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftStrength", &m_EffectInfo.fSoftStrength, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoreBoost", &m_EffectInfo.fCoreBoost, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fRadius", &m_EffectInfo.fRadius, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftMaskEdge", &m_EffectInfo.fSoftMaskEdge, sizeof(_float)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftMask", &m_EffectInfo.fSoftMask, sizeof(_float)))) {
+ return E_FAIL;
+ }
-
if (m_pDiffuse_TextureCom != nullptr)
{
diff --git a/Jusin154_Team3D/Editor/Private/HpBarBG.cpp b/Jusin154_Team3D/Editor/Private/HpBarBG.cpp
new file mode 100644
index 000000000..1f9b5b178
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/HpBarBG.cpp
@@ -0,0 +1,242 @@
+#include "pch.h"
+#include "HpBarBG.h"
+#include "GameInstance.h"
+
+CHpBarBG::CHpBarBG(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CHpBarBG::CHpBarBG(const CHpBarBG& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CHpBarBG::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CHpBarBG::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 0.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 194.f;
+ Desc.fSizeY = 32.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 = 1.f;
+ m_vNine_Slice = _float4(27.f, 165.f, m_fSizeY * 0.5f, m_fSizeY * 0.5f);
+ return S_OK;
+}
+
+void CHpBarBG::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CHpBarBG::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 CHpBarBG::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CHpBarBG::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::HPBAR)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CHpBarBG::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CHpBarBG::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_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;
+ }
+ return S_OK;
+}
+
+HRESULT CHpBarBG::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_HealthMeter_Middle_4K"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_HUD_HealthMeterFill"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+CHpBarBG* CHpBarBG::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CHpBarBG* pInstance = new CHpBarBG(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CHpBarBG");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CHpBarBG::Clone(void* pArg, CGameObject* pOwner)
+{
+ CHpBarBG* pInstance = new CHpBarBG(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Image");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CHpBarBG::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CHpBarBG::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index e1895d012..1b53733f3 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -56,6 +56,8 @@
#include "Spell_Slot.h"
#include "Spell_Image.h"
#include "Spell_Overlay.h"
+#include "Slot_Number.h"
+#include "HpBarBG.h"
#include "IMGUIUI.h"
@@ -409,7 +411,6 @@ HRESULT CLoader::Loading_For_UI()
CVIBuffer_UI_Instance::UI_INSTANCE_DESC SpellSlotUIDesc{};
SpellSlotUIDesc.iNum = 4;
- SpellSlotUIDesc.vPsition = _float2(100.f, 100.f);
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Instance"),
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &SpellSlotUIDesc)))) {
@@ -419,7 +420,6 @@ HRESULT CLoader::Loading_For_UI()
CVIBuffer_UI_Instance::UI_INSTANCE_DESC SlotNumberUIDesc{};
SlotNumberUIDesc.iNum = 4;
- SlotNumberUIDesc.vPsition = _float2(100.f, 100.f);
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Slot_Number_UI_Instance"),
CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &SlotNumberUIDesc)))) {
@@ -522,6 +522,14 @@ HRESULT CLoader::Loading_For_UI()
{
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSlot_Number::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CHpBarBG::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CIMGUIUI::Create(m_pDevice, m_pContext))))
{
@@ -596,9 +604,8 @@ HRESULT CLoader::Loading_For_Effect()
_string strFilePath = pFilePath;
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
-
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName,
- CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0, wstrFileName)))) {
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Private/LoadingWidget.cpp b/Jusin154_Team3D/Editor/Private/LoadingWidget.cpp
index c70c6d53c..9adb078a0 100644
--- a/Jusin154_Team3D/Editor/Private/LoadingWidget.cpp
+++ b/Jusin154_Team3D/Editor/Private/LoadingWidget.cpp
@@ -108,9 +108,7 @@ void CLoadingWidget::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
- }
__super::Late_Update(fTimeDelta);
}
}
diff --git a/Jusin154_Team3D/Editor/Private/LoadingWidget_Flame.cpp b/Jusin154_Team3D/Editor/Private/LoadingWidget_Flame.cpp
index 8f8a40f48..7ad4d88cd 100644
--- a/Jusin154_Team3D/Editor/Private/LoadingWidget_Flame.cpp
+++ b/Jusin154_Team3D/Editor/Private/LoadingWidget_Flame.cpp
@@ -117,9 +117,7 @@ void CLoadingWidget_Flame::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
- }
__super::Late_Update(fTimeDelta);
}
}
diff --git a/Jusin154_Team3D/Editor/Private/Loading_Panel.cpp b/Jusin154_Team3D/Editor/Private/Loading_Panel.cpp
index e43c4d815..6ef81645e 100644
--- a/Jusin154_Team3D/Editor/Private/Loading_Panel.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loading_Panel.cpp
@@ -1,4 +1,4 @@
-#include "pch.h"
+#include "pch.h"
#include "Loading_Panel.h"
#include "GameInstance.h"
#include "LoadingWidget.h"
diff --git a/Jusin154_Team3D/Editor/Private/MiniMap_Panel.cpp b/Jusin154_Team3D/Editor/Private/MiniMap_Panel.cpp
index 2c3886feb..b08320615 100644
--- a/Jusin154_Team3D/Editor/Private/MiniMap_Panel.cpp
+++ b/Jusin154_Team3D/Editor/Private/MiniMap_Panel.cpp
@@ -68,9 +68,6 @@ void CMiniMap_Panel::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
- m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
- }
}
__super::Late_Update(fTimeDelta);
}
@@ -92,10 +89,7 @@ HRESULT CMiniMap_Panel::Bind_ShaderResources()
HRESULT CMiniMap_Panel::Ready_Components(void* pArg)
{
- if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
- {
- return E_FAIL;
- }
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/MiniMap_TrimBorder.cpp b/Jusin154_Team3D/Editor/Private/MiniMap_TrimBorder.cpp
index 4fac0d622..3aafbe280 100644
--- a/Jusin154_Team3D/Editor/Private/MiniMap_TrimBorder.cpp
+++ b/Jusin154_Team3D/Editor/Private/MiniMap_TrimBorder.cpp
@@ -94,9 +94,7 @@ void CMiniMap_TrimBorder::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
- }
__super::Late_Update(fTimeDelta);
}
}
diff --git a/Jusin154_Team3D/Editor/Private/MissionBanner_Border.cpp b/Jusin154_Team3D/Editor/Private/MissionBanner_Border.cpp
index d11839c1b..0258e390e 100644
--- a/Jusin154_Team3D/Editor/Private/MissionBanner_Border.cpp
+++ b/Jusin154_Team3D/Editor/Private/MissionBanner_Border.cpp
@@ -128,9 +128,7 @@ void CMissionBanner_Border::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
- }
__super::Late_Update(fTimeDelta);
}
}
diff --git a/Jusin154_Team3D/Editor/Private/MissionBanner_Key.cpp b/Jusin154_Team3D/Editor/Private/MissionBanner_Key.cpp
index d2fd24b92..a0fa7faf5 100644
--- a/Jusin154_Team3D/Editor/Private/MissionBanner_Key.cpp
+++ b/Jusin154_Team3D/Editor/Private/MissionBanner_Key.cpp
@@ -94,9 +94,7 @@ void CMissionBanner_Key::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
- }
__super::Late_Update(fTimeDelta);
}
}
diff --git a/Jusin154_Team3D/Editor/Private/Mission_Key.cpp b/Jusin154_Team3D/Editor/Private/Mission_Key.cpp
index 93a4f0ec0..04e828639 100644
--- a/Jusin154_Team3D/Editor/Private/Mission_Key.cpp
+++ b/Jusin154_Team3D/Editor/Private/Mission_Key.cpp
@@ -94,9 +94,7 @@ void CMission_Key::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
- }
__super::Late_Update(fTimeDelta);
}
}
diff --git a/Jusin154_Team3D/Editor/Private/Mission_KeyHold.cpp b/Jusin154_Team3D/Editor/Private/Mission_KeyHold.cpp
index 28e643dba..fcc39e4a9 100644
--- a/Jusin154_Team3D/Editor/Private/Mission_KeyHold.cpp
+++ b/Jusin154_Team3D/Editor/Private/Mission_KeyHold.cpp
@@ -129,9 +129,7 @@ void CMission_KeyHold::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
- }
__super::Late_Update(fTimeDelta);
}
}
diff --git a/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp b/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp
index 62b7d60f7..97c9e2331 100644
--- a/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp
+++ b/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp
@@ -74,8 +74,7 @@ void CMission_Panel::Late_Update(_float fTimeDelta)
}
if (m_bVisible) {
- //_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]);
- //m_pGameInstance->Add_RenderGroup(RENDER::UI, this, *vPos, m_pTransformCom->Get_Radius());
+
}
__super::Late_Update(fTimeDelta);
diff --git a/Jusin154_Team3D/Editor/Private/Slot_Number.cpp b/Jusin154_Team3D/Editor/Private/Slot_Number.cpp
index 5c78a5345..a4197a00f 100644
--- a/Jusin154_Team3D/Editor/Private/Slot_Number.cpp
+++ b/Jusin154_Team3D/Editor/Private/Slot_Number.cpp
@@ -3,18 +3,18 @@
#include "GameInstance.h"
CSlot_Number::CSlot_Number(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
- :CElementObject(pDevice, pContext)
+ :CElementObject(pDevice, pContext)
{
}
CSlot_Number::CSlot_Number(const CSlot_Number& rhs)
- :CElementObject(rhs)
+ :CElementObject(rhs)
{
}
HRESULT CSlot_Number::Initialize_Prototype()
{
- return S_OK;
+ return S_OK;
}
HRESULT CSlot_Number::Initialize(void* pArg)
@@ -22,9 +22,9 @@ HRESULT CSlot_Number::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 0.f;
- Desc.fY = 98.f;
- Desc.fSizeX = 150.f;
- Desc.fSizeY = 150.f;
+ Desc.fY = 0.f;
+ Desc.fSizeX = 35.f;
+ Desc.fSizeY = 35.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) };
@@ -36,17 +36,17 @@ HRESULT CSlot_Number::Initialize(void* pArg)
{
return E_FAIL;
}
-
m_fAlpha = 1.f;
m_fTimeMult = 3.f;
- m_fAngle = XMConvertToRadians(-135);
m_fAlphaTime = 1.f;
m_fOffSetX = 101.f;
m_fOffSetY = 101.f;
m_iCols = 4;
+ UV();
m_pVIBufferCom->Set_Cloned(true);
- m_pVIBufferCom->Set_Pos(m_fX, m_fY, m_fOffSetX, m_fOffSetY, m_iCols);
+ m_pVIBufferCom->Set_Pos(-30.f, 30.f, m_fOffSetX, m_fOffSetY, m_iCols);
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
+ m_pVIBufferCom->Set_ImageUV(pUVDesc);
return S_OK;
}
@@ -101,10 +101,7 @@ void CSlot_Number::Late_Update(_float fTimeDelta)
}
if (m_bVisible)
{
- if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius()))
- {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
- }
}
__super::Late_Update(fTimeDelta);
}
@@ -115,7 +112,7 @@ HRESULT CSlot_Number::Render()
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT))))
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND))))
{
return E_FAIL;
}
@@ -177,10 +174,6 @@ HRESULT CSlot_Number::Bind_ShaderResources()
{
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;
@@ -199,11 +192,11 @@ HRESULT CSlot_Number::Bind_ShaderResources()
HRESULT CSlot_Number::Ready_Components(void* pArg)
{
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Instance"), (CComponent**)&m_pVIBufferCom, nullptr)))
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Slot_Number_UI_Instance"), (CComponent**)&m_pVIBufferCom, nullptr)))
{
return E_FAIL;
}
- if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Atlas_Number"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
{
return E_FAIL;
}
@@ -215,6 +208,55 @@ HRESULT CSlot_Number::Ready_Components(void* pArg)
return S_OK;
}
+void CSlot_Number::UV()
+{
+ pUVDesc[0].fUVStart = Compute_UVX(1);
+ pUVDesc[0].fUVEnd = Compute_UVY(1);
+ pUVDesc[1].fUVStart = Compute_UVX(2);
+ pUVDesc[1].fUVEnd = Compute_UVY(2);
+ pUVDesc[2].fUVStart = Compute_UVX(3);
+ pUVDesc[2].fUVEnd = Compute_UVY(3);
+ pUVDesc[3].fUVStart = Compute_UVX(4);
+ pUVDesc[3].fUVEnd = Compute_UVY(4);
+}
+
+_float2 CSlot_Number::Compute_UVX(_uint Number)
+{
+ m_fIamge_Size = { 320.f, 128.f };
+
+ _uint iXCount = 5;
+ _uint iYCount = 2;
+
+ _float frameWidth = 64.f;
+ _float frameHeight = 64.f;
+
+ _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;
+
+ 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 = Compute_UVX(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)
{
CSlot_Number* pInstance = new CSlot_Number(pDevice, pContext);
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Image.cpp b/Jusin154_Team3D/Editor/Private/Spell_Image.cpp
index 36b98df32..966ecac36 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Image.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Image.cpp
@@ -96,9 +96,7 @@ void CSpell_Image::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
- }
__super::Late_Update(fTimeDelta);
}
}
@@ -174,6 +172,7 @@ HRESULT CSpell_Image::Bind_ShaderResources()
}
return S_OK;
}
+
HRESULT CSpell_Image::Ready_Components(void* pArg)
{
if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp b/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
index f400767aa..e808ae05d 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp
@@ -116,9 +116,7 @@ void CSpell_Overlay::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
- }
}
__super::Late_Update(fTimeDelta);
}
diff --git a/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp b/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp
index 6efea7de5..928f9ccba 100644
--- a/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp
+++ b/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp
@@ -22,7 +22,7 @@ HRESULT CSpell_Slot::Initialize(void* pArg)
CUIObject::UIOBJECT_DESC Desc{};
Desc.fX = 0.f;
- Desc.fY = 98.f;
+ Desc.fY = 0.f;
Desc.fSizeX = 100.f;
Desc.fSizeY = 100.f;
@@ -39,14 +39,15 @@ HRESULT CSpell_Slot::Initialize(void* pArg)
m_fAlpha = 1.f;
m_fTimeMult = 3.f;
- m_fAngle = XMConvertToRadians(-135);
+ m_fAngle = XMConvertToRadians(45);
m_fAlphaTime = 1.f;
m_fOffSetX = 101.f;
m_fOffSetY = 101.f;
m_iCols = 4;
m_pVIBufferCom->Set_Cloned(true);
- m_pVIBufferCom->Set_Pos(m_fX, m_fY, m_fOffSetX, m_fOffSetY, m_iCols);
+ 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;
}
@@ -101,10 +102,7 @@ void CSpell_Slot::Late_Update(_float fTimeDelta)
}
if (m_bVisible)
{
- if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius()))
- {
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
- }
}
__super::Late_Update(fTimeDelta);
}
diff --git a/Jusin154_Team3D/Editor/Public/Action_Panel.h b/Jusin154_Team3D/Editor/Public/Action_Panel.h
index b0177509a..685415b08 100644
--- a/Jusin154_Team3D/Editor/Public/Action_Panel.h
+++ b/Jusin154_Team3D/Editor/Public/Action_Panel.h
@@ -38,6 +38,8 @@ class CAction_Panel final : public CPanelObject
CGameObject* m_pSpell_Slot = { nullptr };
CGameObject* m_pSpell_Image = { nullptr };
CGameObject* m_pSpell_Overlay = { nullptr };
+ CGameObject* m_pSlot_Number = { nullptr };
+ CGameObject* m_pHpBarBG= { nullptr };
public:
static CAction_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index 8a5545adc..28a421c59 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -25,7 +25,7 @@ namespace Editor
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, END };
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, END };
- enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, SPELLTYPE, END };
+ enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, SPELLTYPE, HPBAR, END };
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
}
diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h
index 2f68f9053..d2f348617 100644
--- a/Jusin154_Team3D/Editor/Public/EffectObject.h
+++ b/Jusin154_Team3D/Editor/Public/EffectObject.h
@@ -57,7 +57,7 @@ class CEffectObject abstract : public CPartObject
_float fDiffuseAlpha = { 1.f };
_float fBlurIntensity = {};
_float fNoiseDistortionIntensity = {};
- _float fEmissiveCutAlpha = { 0.f };
+ _float fEmissiveStrength = { 0.f };
LIGHT_DESC LightDesc = {};
RENDER eRenderOrder = { RENDER::EFFECT };
@@ -73,6 +73,15 @@ class CEffectObject abstract : public CPartObject
_bool isNoiseAlpha = { false };
_bool isNomalDissolve = {};
+ _float fSoftenExp = { 1.31429f };
+ _float fSoftStrength = {};
+ _float fCoreBoost = {};
+ _float fRadius = {};
+
+ _float fSoftMaskEdge;
+ _float fSoftMask;
+
+
}EFFECT_INFO;
typedef struct tagPreEffectInfo
@@ -115,7 +124,7 @@ class CEffectObject abstract : public CPartObject
_float fDiffuseAlpha = { 1.f };
_float fBlurIntensity = {};
_float fNoiseDistortionIntensity = {};
- _float fEmissiveCutAlpha = {};
+ _float fEmissiveStrength = {};
LIGHT_DESC LightDesc = {};
RENDER eRenderOrder = { RENDER::EFFECT };
@@ -127,6 +136,11 @@ class CEffectObject abstract : public CPartObject
_bool isNoiseAlpha = { false };
_bool isNomalDissolve = {};
+ _float fSoftenExp = { 1.31429f };
+ _float fSoftStrength = {};
+ _float fCoreBoost = {};
+ _float fRadius = {};
+
}PRE_EFFECT_INFO;
protected:
diff --git a/Jusin154_Team3D/Editor/Public/HpBarBG.h b/Jusin154_Team3D/Editor/Public/HpBarBG.h
new file mode 100644
index 000000000..59c7aa186
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/HpBarBG.h
@@ -0,0 +1,42 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CHpBarBG final : public CElementObject
+{
+private:
+ CHpBarBG(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CHpBarBG(const CHpBarBG& rhs);
+ virtual ~CHpBarBG() = 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_pDiffuse_TextureCom1 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+public:
+ static CHpBarBG* 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/Slot_Number.h b/Jusin154_Team3D/Editor/Public/Slot_Number.h
index 9321002e1..3ffd1b4c2 100644
--- a/Jusin154_Team3D/Editor/Public/Slot_Number.h
+++ b/Jusin154_Team3D/Editor/Public/Slot_Number.h
@@ -26,17 +26,22 @@ class CSlot_Number final : public CElementObject
private:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
+ void UV();
+ _float2 Compute_UVX(_uint Numver);
+ _float2 Compute_UVY(_uint Numver);
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 };
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr };
+ CVIBuffer_UI_Instance::UI_ATLAS_DESC pUVDesc[4];
- _float m_fOffSetX{};
- _float m_fOffSetY{};
- _uint m_iCols{};
+ _float2 m_fIamge_Size{};
+ _float m_fOffSetX{};
+ _float m_fOffSetY{};
+ _uint m_iCols{};
public:
static CSlot_Number* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Editor/Public/Spell_Slot.h b/Jusin154_Team3D/Editor/Public/Spell_Slot.h
index e09d7aea9..c83281309 100644
--- a/Jusin154_Team3D/Editor/Public/Spell_Slot.h
+++ b/Jusin154_Team3D/Editor/Public/Spell_Slot.h
@@ -23,6 +23,7 @@ class CSpell_Slot final : public CElementObject
virtual void SizeUpY(_float fSizeY) override;
virtual void SizeUpdate(_float fSizeX, _float fSizeY) override;
+
private:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
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 6a7c952fc..b1efa60ae 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
@@ -229,5 +229,40 @@ float4x4 RotateZ(float fAngle)
return RotateZMat;
}
+float4x4 RotateAxis(float4 _vAxis , float fAngle)
+{
+ float flenhth = length(_vAxis);
+ if (flenhth < FLT_EPSILON5)
+ {
+ return float4x4(
+ 1.0, 0.0, 0.0, 0.0,
+ 0.0, 1.0, 0.0, 0.0,
+ 0.0, 0.0, 1.0, 0.0,
+ 0.0, 0.0, 0.0, 1.0
+ );
+ }
+
+ float3 vAxis = normalize(_vAxis);
+
+ float fCos = cos(radians(fAngle));
+ float fSin = sin(radians(fAngle));
+
+ float fX = vAxis.x;
+ float fY = vAxis.y;
+ float fZ = vAxis.z;
+
+ //Rodrigues 공식 기반
+ float4x4 RotateMat =
+ float4x4(
+ fCos + fX * fX * (1.0 - fCos), fX * fY * (1.0 - fCos) - fZ * fSin, fX * fZ * (1.0 - fCos) + fY * fSin, 0.0,
+ fY * fX * (1.0 - fCos) + fZ * fSin, fCos + fY * fY * (1.0 - fCos), fY * fZ * (1.0 - fCos) - fX * fSin, 0.0,
+ fZ * fX * (1.0 - fCos) - fY * fSin, fZ * fY * (1.0 - fCos) + fX * fSin, fCos + fZ * fZ * (1.0 - fCos), 0.0,
+ 0.0, 0.0, 0.0, 1.0
+ );
+
+ return RotateMat;
+
+}
+
#endif // ENGINE_SHADER_FUNCTIONS_HLSLI
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 4212f3194..117084542 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl
@@ -31,6 +31,13 @@ struct ParticleValue
float3 vSinAmount;
float3 vDeltaAngle;
+ float3 vDeltaAxisAngle;
+
+ float fDrag;
+ float3 vPivot;
+
+ float fSizeDrag;
+ float3 vDeltaSize;
};
@@ -49,10 +56,10 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
bool isMoveForward;
bool isSinWave;
- bool IsTurn;
- bool isPadding1;
- bool isPadding2;
- bool isPadding3;
+ bool isTurn;
+ bool isAxisTurn;
+ bool isPivotMove;
+ bool isSizeMove;
float fTimeDelta;
float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
@@ -79,7 +86,7 @@ void CS_MAIN(
{
if (isLoop == false)
{
- return;
+ return ;
}
//초기화
@@ -89,15 +96,45 @@ void CS_MAIN(
particle.vTranslation = particleValue.vOriginTranslation;
particle.vLifeTime.x = 0.f;
+ particleValue.vAniIndex.x = 0.f;
+
+ g_VBInstanceOutput[iIndex] = particle;
+ g_ParticleValueOutput[iIndex] = particleValue;
+
+ return ;
}
if (isMoveForward)
{
+ float fTime = (particle.vLifeTime.x / particle.vLifeTime.y);
+
+ float fRatio = 1 - (1 - fTime * fTime);
+
+ float fDrag = particleValue.fDrag;
+
+ if (particleValue.fDrag < FLT_EPSILON5)
+ fDrag = 1;
+
float4 vVelocity = vector(normalize(particle.vLook.xyz) * particleValue.fSpeed, 1.f);
- particle.vTranslation += vVelocity * fTimeDelta;
+ particle.vTranslation += vVelocity * fTimeDelta * fDrag;
+ }
+
+ if (isPivotMove)
+ {
+ float3 vDir = normalize(particleValue.vPivot - particleValue.vOriginTranslation.xyz);
+
+ float fDrag = particleValue.fDrag;
+
+ if (particleValue.fDrag < FLT_EPSILON5)
+ fDrag = 1;
+
+ float4 vVelocity = vector(vDir * particleValue.fSpeed, 1.f);
+
+ particle.vTranslation += vVelocity * fTimeDelta * fDrag;
+
}
if (isDrop == true)
@@ -111,7 +148,7 @@ void CS_MAIN(
particle.vTranslation += vector( sin(particle.vLifeTime.x * 3.141592 * 2.f) * particleValue.vSinAmount, 0.f);
}
- if (IsTurn == true)
+ if (isTurn == true)
{
/* ROTATE */
float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta);
@@ -132,6 +169,64 @@ void CS_MAIN(
particle.vLook = CurRotatemat[2].xyzw;
}
+
+ if (isAxisTurn)
+ {
+ float4x4 RotateAxisRightMat = RotateAxis(particle.vRight, particleValue.vDeltaAxisAngle.x * fTimeDelta);
+ float4x4 RotateAxisUpMat = RotateAxis(particle.vUp, particleValue.vDeltaAxisAngle.y * fTimeDelta);
+ float4x4 RotateAxisLookMat = RotateAxis(particle.vLook, particleValue.vDeltaAxisAngle.z * fTimeDelta);
+
+
+ float4x4 CombinedRotMat = mul(RotateAxisLookMat, mul(RotateAxisUpMat, RotateAxisRightMat));
+
+ float4x4 CurRotatemat = { particle.vRight, particle.vUp, particle.vLook, vector(0.f, 0.f, 0.f, 1.f) };
+
+
+ CurRotatemat = mul(CurRotatemat ,CombinedRotMat);
+
+ particle.vRight = CurRotatemat[0].xyzw;
+ particle.vUp = CurRotatemat[1].xyzw;
+ particle.vLook = CurRotatemat[2].xyzw;
+
+
+ }
+
+ if (isSizeMove == true)
+ {
+ float3 CurLength =
+ {
+ length(particle.vRight),
+ length(particle.vUp),
+ length(particle.vLook),
+ };
+
+ float fTime = (particle.vLifeTime.x / particle.vLifeTime.y);
+
+ float fRatio = 1 - (1 - fTime * fTime);
+
+ float fDrag = particleValue.fSizeDrag;
+
+ if (particleValue.fSizeDrag < FLT_EPSILON5)
+ fDrag = 1;
+
+ //fDrag *= fRatio;
+
+ CurLength += particleValue.vDeltaSize * fTimeDelta * fDrag;
+
+ if (CurLength.x < FLT_EPSILON5)
+ CurLength.x = FLT_EPSILON5;
+
+ if (CurLength.y < FLT_EPSILON5)
+ CurLength.y = FLT_EPSILON5;
+
+ if (CurLength.z < FLT_EPSILON5)
+ CurLength.z = FLT_EPSILON5;
+
+ particle.vRight = normalize(particle.vRight) * CurLength.x;
+ particle.vUp = normalize(particle.vUp) * CurLength.y;
+ particle.vLook = normalize(particle.vLook) * CurLength.z;
+
+ }
//애니메이션 속도 , 인덱스
diff --git a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
index a2e9948d9..3d44b170e 100644
--- a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp
@@ -278,8 +278,11 @@ void CInstance_Model::Drop(_float fTimeDelta)
pDesc->isLoop = m_InstanceDesc.isLoop;
pDesc->isDrop = m_InstanceDesc.isDrop;
pDesc->isTurn = m_InstanceDesc.isTurn;
+ pDesc->isAxisTurn = m_InstanceDesc.isAxisTurn;
pDesc->isMoveForward = m_InstanceDesc.isMoveForward;
pDesc->isSinWave = m_InstanceDesc.isSinWave;
+ pDesc->isPivotMove = m_InstanceDesc.isPivotMove;
+ pDesc->isSizeLerp = m_InstanceDesc.isSizeLerp;
m_pContext->Unmap(m_pConstantBuffer, 0);
}
@@ -409,6 +412,31 @@ void CInstance_Model::Instane_Buffer_ReStruct()
pParticleValues[i].vDeltaAngle = vDeltaAngle;
+ _float3 vDeltaAxisAngle = _float3(
+ m_pGameInstance->Random_Float(m_InstanceDesc.vDeltaAxisAngleMin.x, m_InstanceDesc.vDeltaAxisAngleMax.x),
+ m_pGameInstance->Random_Float(m_InstanceDesc.vDeltaAxisAngleMin.y, m_InstanceDesc.vDeltaAxisAngleMax.y),
+ m_pGameInstance->Random_Float(m_InstanceDesc.vDeltaAxisAngleMin.z, m_InstanceDesc.vDeltaAxisAngleMax.z)
+ );
+
+ pParticleValues[i].vDeltaAxisAngle = vDeltaAxisAngle;
+
+ _float3 vPivot = _float3(
+ m_pGameInstance->Random_Float(m_InstanceDesc.vPivotMin.x, m_InstanceDesc.vPivotMax.x),
+ m_pGameInstance->Random_Float(m_InstanceDesc.vPivotMin.y, m_InstanceDesc.vPivotMax.y),
+ m_pGameInstance->Random_Float(m_InstanceDesc.vPivotMin.z, m_InstanceDesc.vPivotMax.z)
+ );
+
+ pParticleValues[i].vPivot = vPivot;
+
+ _float3 vSizeLerp = _float3(
+ m_InstanceDesc.vDeltaSize.x,
+ m_InstanceDesc.vDeltaSize.y,
+ m_InstanceDesc.vDeltaSize.z
+ );
+
+ pParticleValues[i].vDeltaSize = vSizeLerp;
+
+
//라이프 타임 설정
pVertices[i].vLifeTime = _float2(0.0f, m_pGameInstance->Random_Float(m_InstanceDesc.vLifeTime.x, m_InstanceDesc.vLifeTime.y));
@@ -421,6 +449,9 @@ void CInstance_Model::Instane_Buffer_ReStruct()
pParticleValues[i].fRotaionSpeed = m_pGameInstance->Random_Float(m_InstanceDesc.vRotationSpeed.x, m_InstanceDesc.vRotationSpeed.y);
pParticleValues[i].vAniIndex = _float2(0.f, m_InstanceDesc.vAniIndex.y);
pParticleValues[i].fGravity = m_pGameInstance->Random_Float(m_InstanceDesc.vGravity.x, m_InstanceDesc.vGravity.y);
+ pParticleValues[i].fDrag = m_pGameInstance->Random_Float(m_InstanceDesc.vDrag.x, m_InstanceDesc.vDrag.y);
+ pParticleValues[i].fSizeDrag = m_pGameInstance->Random_Float(m_InstanceDesc.vSizeDrag.x, m_InstanceDesc.vSizeDrag.y);
+
memcpy(&pParticleValues[i].vOriginRight, SRMatrix.m[0], sizeof(_float4));
memcpy(&pParticleValues[i].vOriginUp, SRMatrix.m[1], sizeof(_float4));
@@ -533,6 +564,24 @@ void CInstance_Model::Describe_Entity()
Instane_Buffer_ReStruct();
}
+ if (GUI::Checkbox("AxisTurn", &m_InstanceDesc.isAxisTurn))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
+ if (GUI::Checkbox("PivotMove", &m_InstanceDesc.isPivotMove))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
+ if (GUI::Checkbox("SizeLerp", &m_InstanceDesc.isSizeLerp))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
+
+
+
if (ImGui::DragFloat3("SizeMin", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeMin)))
{
Instane_Buffer_ReStruct();
@@ -633,7 +682,44 @@ void CInstance_Model::Describe_Entity()
{
Instane_Buffer_ReStruct();
}
-
+
+
+ if (ImGui::DragFloat3("DeltaAxisAngleMin", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAxisAngleMin)))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
+ if (ImGui::DragFloat3("DeltaAxisAngleMax", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAxisAngleMax)))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
+
+ if (ImGui::DragFloat3("PivotMin", reinterpret_cast<_float*>(&m_InstanceDesc.vPivotMin)))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
+ if (ImGui::DragFloat3("PivotMax", reinterpret_cast<_float*>(&m_InstanceDesc.vPivotMax)))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
+ if (ImGui::DragFloat2("Drag", reinterpret_cast<_float*>(&m_InstanceDesc.vDrag)))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
+ if (ImGui::DragFloat3("LerpSizeAmount", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaSize)))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
+ if (ImGui::DragFloat2("Size Drag", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeDrag)))
+ {
+ Instane_Buffer_ReStruct();
+ }
+
ImGui::PopItemWidth();
ImGui::TreePop();
diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp
index 24638f611..452e704f4 100644
--- a/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp
+++ b/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp
@@ -115,11 +115,6 @@ HRESULT CVIBuffer_UI_Instance::Initialize_Prototype(const INSTANCE_DESC* pInstan
ZeroMemory(m_fPosition, sizeof(_float2) * m_iNumInstance);
- for (size_t i = 0; i < m_iNumInstance; ++i)
- {
- m_pInstanceVertices[i].fPos = _float2(pDesc->vPsition.x, pDesc->vPsition.y);
- }
-
m_InstanceInitialDesc.pSysMem = m_pInstanceVertices;
#pragma endregion
@@ -205,6 +200,31 @@ void CVIBuffer_UI_Instance::Set_SizeY(_float fSizeY)
m_pContext->Unmap(m_pVBInstance, 0);
}
+void CVIBuffer_UI_Instance::Set_ImageUV(UI_ATLAS_DESC* AtlasUV)
+{
+ 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 = 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;
+ }
+ }
+
+ m_pContext->Unmap(m_pVBInstance, 0);
+}
+
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);
@@ -239,6 +259,7 @@ void CVIBuffer_UI_Instance::Free()
if (false == m_isCloned)
{
Safe_Delete_Array(m_pInstanceVertices);
+ Safe_Delete_Array(m_fPosition);
}
}
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Struct.h b/Jusin154_Team3D/Engine/Public/Engine_Struct.h
index f2cc2edd5..d1363daca 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Struct.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Struct.h
@@ -192,6 +192,8 @@ typedef struct tagVertexInstance_UI
{
_float2 fSize = {};
_float2 fPos = {};
+ _float2 fUVStart = {};
+ _float2 fUVEnd = {};
}VTX_INSTANCE_UI;
typedef struct tagVertexBlock
@@ -206,7 +208,6 @@ typedef struct tagVertexBlock
{ "NORMAL", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 12, D3D11_INPUT_PER_VERTEX_DATA, 0 },
{ "TEXCOORD", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 24, D3D11_INPUT_PER_VERTEX_DATA, 0 },
};
-
}VTXBLOCK;
typedef struct tagVertexPosition {
@@ -323,20 +324,23 @@ typedef struct tagVertexModelInstanceParticleDesc
typedef struct tagVertexInstance_UIDesc
{
- static constexpr unsigned int iNumElements = {4};
+ static constexpr unsigned int iNumElements = {6};
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", 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 }
};
}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 = { };
_uint iSubKind = UINT_MAX;
diff --git a/Jusin154_Team3D/Engine/Public/Instance_Model.h b/Jusin154_Team3D/Engine/Public/Instance_Model.h
index d49ced981..8a9f222d9 100644
--- a/Jusin154_Team3D/Engine/Public/Instance_Model.h
+++ b/Jusin154_Team3D/Engine/Public/Instance_Model.h
@@ -41,6 +41,18 @@ class ENGINE_DLL CInstance_Model final : public CComponent
_float3 vDeltaAngleMin = {};
_float3 vDeltaAngleMax = {};
+ _bool isAxisTurn;
+ _float3 vDeltaAxisAngleMin = {};
+ _float3 vDeltaAxisAngleMax = {};
+
+ _bool isPivotMove = {};
+ _float2 vDrag = {};
+ _float3 vPivotMin = {};
+ _float3 vPivotMax = {};
+
+ _bool isSizeLerp = {};
+ _float3 vDeltaSize = {};
+ _float2 vSizeDrag = {};
}INSTANCE_DESC;
@@ -79,6 +91,15 @@ class ENGINE_DLL CInstance_Model final : public CComponent
_float3 vDeltaAngleMin = {};
_float3 vDeltaAngleMax = {};
+ _bool isAxisTurn;
+ _float3 vDeltaAxisAngleMin = {};
+ _float3 vDeltaAxisAngleMax = {};
+
+ _bool isPivotMove = {};
+ _float2 vDrag = {};
+ _float3 vPivotMin = {};
+ _float3 vPivotMax = {};
+
}PRE_INSTANCE_DESC;
typedef struct tagCSParticleDesc
@@ -91,9 +112,9 @@ class ENGINE_DLL CInstance_Model final : public CComponent
_int isSinWave = {};
_int isTurn = {};
- _int isPadding1 = {};
- _int isPadding2 = {};
- _int isPadding3 = {};
+ _int isAxisTurn = {};
+ _int isPivotMove = {};
+ _int isSizeLerp = {};
_float fTimeDelta = {};
_float fPadding2 = {};
@@ -124,6 +145,14 @@ class ENGINE_DLL CInstance_Model final : public CComponent
_float3 vSinAmount = {};
_float3 vDeltaAngle = {};
+ _float3 vDeltaAxisAngle = {};
+
+ _float fDrag;
+ _float3 vPivot = {};
+
+ _float fSizeDrag = {};
+ _float3 vDeltaSize = {};
+
}CS_PARTICLE_VALUE_DESC;
diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h b/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h
index 40dcfb8ae..44c73d40f 100644
--- a/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h
+++ b/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h
@@ -10,6 +10,11 @@ class ENGINE_DLL CVIBuffer_UI_Instance final : public CVIBuffer_Instance
typedef struct tagUIInstanceDesc final : public CVIBuffer_Instance::INSTANCE_DESC
{
}UI_INSTANCE_DESC;
+ typedef struct tagUIAtlasDesc
+ {
+ _float2 fUVStart{};
+ _float2 fUVEnd{};
+ }UI_ATLAS_DESC;
private:
CVIBuffer_UI_Instance(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CVIBuffer_UI_Instance(const CVIBuffer_UI_Instance& Prototype);
@@ -25,6 +30,7 @@ class ENGINE_DLL CVIBuffer_UI_Instance final : public CVIBuffer_Instance
virtual void Set_SizeX(_float fSizeX);
virtual void Set_SizeY(_float fSizeY);
virtual void Set_Cloned(_bool isCloned) { m_isCloned = isCloned; }
+ virtual void Set_ImageUV(UI_ATLAS_DESC* AtlasUV = nullptr);
private:
VTX_INSTANCE_UI* m_pInstanceVertices = { nullptr };