commit
This commit is contained in:
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -578,4 +578,60 @@ float3 DownSampleFast(Texture2D SrcTexture2D, float2 vCenterTexcoord, float2 vSr
|
||||
return vCenterColor * 0.25f + (fLTColor + fRTColor + fLBColor + fRBColor) * 0.0625f + (fTColor + fLColor + fRColor + fBColor) * 0.125f;
|
||||
}
|
||||
|
||||
float4x4 Inverse4x4(float4x4 m)
|
||||
{
|
||||
float a00 = m[0][0], a01 = m[0][1], a02 = m[0][2], a03 = m[0][3];
|
||||
float a10 = m[1][0], a11 = m[1][1], a12 = m[1][2], a13 = m[1][3];
|
||||
float a20 = m[2][0], a21 = m[2][1], a22 = m[2][2], a23 = m[2][3];
|
||||
float a30 = m[3][0], a31 = m[3][1], a32 = m[3][2], a33 = m[3][3];
|
||||
|
||||
float b00 = a00 * a11 - a01 * a10;
|
||||
float b01 = a00 * a12 - a02 * a10;
|
||||
float b02 = a00 * a13 - a03 * a10;
|
||||
float b03 = a01 * a12 - a02 * a11;
|
||||
float b04 = a01 * a13 - a03 * a11;
|
||||
float b05 = a02 * a13 - a03 * a12;
|
||||
float b06 = a20 * a31 - a21 * a30;
|
||||
float b07 = a20 * a32 - a22 * a30;
|
||||
float b08 = a20 * a33 - a23 * a30;
|
||||
float b09 = a21 * a32 - a22 * a31;
|
||||
float b10 = a21 * a33 - a23 * a31;
|
||||
float b11 = a22 * a33 - a23 * a32;
|
||||
|
||||
float det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;
|
||||
|
||||
// 역행렬이 존재하지 않는 경우 (det ≈ 0)
|
||||
if (abs(det) < 1e-6)
|
||||
return float4x4(1, 0, 0, 0,
|
||||
0, 1, 0, 0,
|
||||
0, 0, 1, 0,
|
||||
0, 0, 0, 1); // fallback: 단위행렬
|
||||
|
||||
float invDet = 1.0 / det;
|
||||
|
||||
float4x4 inv;
|
||||
inv[0][0] = (a11 * b11 - a12 * b10 + a13 * b09) * invDet;
|
||||
inv[0][1] = (-a01 * b11 + a02 * b10 - a03 * b09) * invDet;
|
||||
inv[0][2] = (a31 * b05 - a32 * b04 + a33 * b03) * invDet;
|
||||
inv[0][3] = (-a21 * b05 + a22 * b04 - a23 * b03) * invDet;
|
||||
|
||||
inv[1][0] = (-a10 * b11 + a12 * b08 - a13 * b07) * invDet;
|
||||
inv[1][1] = (a00 * b11 - a02 * b08 + a03 * b07) * invDet;
|
||||
inv[1][2] = (-a30 * b05 + a32 * b02 - a33 * b01) * invDet;
|
||||
inv[1][3] = (a20 * b05 - a22 * b02 + a23 * b01) * invDet;
|
||||
|
||||
inv[2][0] = (a10 * b10 - a11 * b08 + a13 * b06) * invDet;
|
||||
inv[2][1] = (-a00 * b10 + a01 * b08 - a03 * b06) * invDet;
|
||||
inv[2][2] = (a30 * b04 - a31 * b02 + a33 * b00) * invDet;
|
||||
inv[2][3] = (-a20 * b04 + a21 * b02 - a23 * b00) * invDet;
|
||||
|
||||
inv[3][0] = (-a10 * b09 + a11 * b07 - a12 * b06) * invDet;
|
||||
inv[3][1] = (a00 * b09 - a01 * b07 + a02 * b06) * invDet;
|
||||
inv[3][2] = (-a30 * b03 + a31 * b01 - a32 * b00) * invDet;
|
||||
inv[3][3] = (a20 * b03 - a21 * b01 + a22 * b00) * invDet;
|
||||
|
||||
return inv;
|
||||
}
|
||||
|
||||
|
||||
#endif // ENGINE_SHADER_FUNCTIONS_HLSLI
|
||||
|
||||
@@ -56,7 +56,11 @@ struct ParticleValue
|
||||
float fRotateAttenuation;
|
||||
float fRotateAttDelay;
|
||||
|
||||
float3 vWolrdOffset;
|
||||
float fLoopCount; /* 현재 몇번째 루프중인지 */
|
||||
|
||||
row_major matrix PreWorldMatrix;
|
||||
//row_major matrix LocalMatrixInv;
|
||||
};
|
||||
|
||||
|
||||
@@ -93,8 +97,8 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
|
||||
bool isNoPos;
|
||||
|
||||
bool isNoResetTime;
|
||||
bool isPadding0;
|
||||
bool isPadding1;
|
||||
bool isLocal_Located_Not_TakeDelay;
|
||||
bool isCompute_LocalInverse;
|
||||
bool isPadding2;
|
||||
|
||||
float fTimeDelta;
|
||||
@@ -108,8 +112,6 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
|
||||
float2 vScreenSize;
|
||||
float fPadding0;
|
||||
float fPadding1;
|
||||
|
||||
|
||||
}
|
||||
|
||||
//내가 몇개의 스레드를 사용할 것인지 지정하는데
|
||||
@@ -126,6 +128,47 @@ void CS_MAIN(
|
||||
float fGravity = particleValue.fGravity;
|
||||
float fOnlyDropY = 0.f;
|
||||
float fRatio = particle.vLifeTime.x / particle.vLifeTime.y;
|
||||
bool _isLocal_Located_Not_TakeDelay = isLocal_Located_Not_TakeDelay;
|
||||
|
||||
if (particleValue.fLoopCount == 0.f) /* 첫 루프에는 딜레이에 따른 위치를 설정받지 않도록함 */
|
||||
{
|
||||
_isLocal_Located_Not_TakeDelay = false;
|
||||
}
|
||||
|
||||
if (_isLocal_Located_Not_TakeDelay == true && particleValue.vDelay.x <= FLT_EPSILON5)
|
||||
{
|
||||
|
||||
if (isNoWorld)
|
||||
{
|
||||
row_major float4x4 CurMat = { particle.vRight, particle.vUp, particle.vLook, particle.vTranslation };
|
||||
|
||||
|
||||
CurMat = mul(CurMat, WorldMatrix);
|
||||
|
||||
particle.vRight = CurMat[0].xyzw;
|
||||
particle.vUp = CurMat[1].xyzw;
|
||||
particle.vLook = CurMat[2].xyzw;
|
||||
particle.vTranslation = CurMat[3].xyzw;
|
||||
|
||||
/* 월드 오프셋 */
|
||||
|
||||
particle.vTranslation += CurMat[0] * particleValue.vWolrdOffset.x;
|
||||
particle.vTranslation += CurMat[1] * particleValue.vWolrdOffset.y;
|
||||
particle.vTranslation += CurMat[2] * particleValue.vWolrdOffset.z;
|
||||
|
||||
}
|
||||
|
||||
if (isNoPos)
|
||||
{
|
||||
particle.vTranslation.xyz += WorldMatrix[3].xyz;
|
||||
|
||||
/* 월드 오프셋 */
|
||||
|
||||
particle.vTranslation += WorldMatrix[0] * particleValue.vWolrdOffset.x;
|
||||
particle.vTranslation += WorldMatrix[1] * particleValue.vWolrdOffset.y;
|
||||
particle.vTranslation += WorldMatrix[2] * particleValue.vWolrdOffset.z;
|
||||
}
|
||||
}
|
||||
|
||||
particleValue.vDelay.x += fTimeDelta;
|
||||
|
||||
@@ -138,7 +181,7 @@ void CS_MAIN(
|
||||
return;
|
||||
}
|
||||
|
||||
if (particle.vLifeTime.x <= FLT_EPSILON5)
|
||||
if (particle.vLifeTime.x <= FLT_EPSILON5 && _isLocal_Located_Not_TakeDelay == false)
|
||||
{
|
||||
if (isNoWorld)
|
||||
{
|
||||
@@ -150,12 +193,25 @@ void CS_MAIN(
|
||||
particle.vRight = CurMat[0].xyzw;
|
||||
particle.vUp = CurMat[1].xyzw;
|
||||
particle.vLook = CurMat[2].xyzw;
|
||||
particle.vTranslation = CurMat[3].xyzw;
|
||||
particle.vTranslation = CurMat[3].xyzw ;
|
||||
|
||||
/* 월드 오프셋 */
|
||||
|
||||
particle.vTranslation += CurMat[0] * particleValue.vWolrdOffset.x;
|
||||
particle.vTranslation += CurMat[1] * particleValue.vWolrdOffset.y;
|
||||
particle.vTranslation += CurMat[2] * particleValue.vWolrdOffset.z;
|
||||
|
||||
}
|
||||
|
||||
if (isNoPos)
|
||||
{
|
||||
particle.vTranslation.xyz += WorldMatrix[3].xyz;
|
||||
|
||||
/* 월드 오프셋 */
|
||||
|
||||
particle.vTranslation += WorldMatrix[0] * particleValue.vWolrdOffset.x;
|
||||
particle.vTranslation += WorldMatrix[1] * particleValue.vWolrdOffset.y;
|
||||
particle.vTranslation += WorldMatrix[2] * particleValue.vWolrdOffset.z;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -185,6 +241,7 @@ void CS_MAIN(
|
||||
}
|
||||
|
||||
//초기화
|
||||
particleValue.fLoopCount += 1.f;
|
||||
particle.vRight = particleValue.vOriginRight;
|
||||
particle.vUp = particleValue.vOriginUp;
|
||||
particle.vLook = particleValue.vOriginLook;
|
||||
@@ -580,6 +637,21 @@ void CS_MAIN(
|
||||
particleValue.vDissolveUVMoveTime.x = 0.f;
|
||||
}
|
||||
|
||||
//if (isCompute_LocalInverse == true)
|
||||
//{
|
||||
// row_major float4x4 CurMat = { particle.vRight, particle.vUp, particle.vLook, particle.vTranslation };
|
||||
|
||||
|
||||
// CurMat = mul(CurMat, WorldMatrix);
|
||||
|
||||
// particle.vRight = CurMat[0].xyzw;
|
||||
// particle.vUp = CurMat[1].xyzw;
|
||||
// particle.vLook = CurMat[2].xyzw;
|
||||
// particle.vTranslation = CurMat[3].xyzw;
|
||||
|
||||
// particleValue.LocalMatrixInv = Inverse4x4(CurMat); /* 데칼 메쉬만 인스턴스당 1번 수행할거임 */
|
||||
//}
|
||||
|
||||
//아웃풋 대입
|
||||
|
||||
g_VBInstanceOutput[iIndex] = particle;
|
||||
|
||||
@@ -20,38 +20,42 @@ struct ParticleValue
|
||||
|
||||
|
||||
float2 vAniIndex;
|
||||
float fGravity;
|
||||
float fGravity;
|
||||
|
||||
float3 vSinAmount;
|
||||
float3 vSinAmount;
|
||||
float3 vDeltaAngle;
|
||||
float3 vDeltaAxisAngle;
|
||||
|
||||
float fDrag;
|
||||
float fDrag;
|
||||
float3 vPivot;
|
||||
|
||||
float fSizeDrag;
|
||||
float fSizeDrag;
|
||||
float3 vDeltaSize;
|
||||
float2 vDelay;
|
||||
|
||||
|
||||
bool isCompareStop;
|
||||
bool isCompareStop;
|
||||
float fCollisionTime;
|
||||
float fDropAttenuation;
|
||||
float fDropAttenuation;
|
||||
|
||||
float3 vVelocity;
|
||||
float fAcceleration;
|
||||
float fAcceleration;
|
||||
|
||||
bool isStop;
|
||||
bool isStop;
|
||||
|
||||
float fRotateAttenuation;
|
||||
float fRotateAttDelay;
|
||||
float fRotateAttenuation;
|
||||
float fRotateAttDelay;
|
||||
|
||||
float3 vWolrdOffset;
|
||||
float fLoopCount; /* 현재 몇번째 루프중인지 */
|
||||
|
||||
row_major matrix PreWorldMatrix;
|
||||
//row_major matrix LocalMatrixInv;
|
||||
};
|
||||
|
||||
|
||||
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
||||
matrix g_ProjMatrixInv, g_ViewMatrixInv;
|
||||
matrix g_WorldMatrixInv, g_ProjMatrixInv, g_ViewMatrixInv;
|
||||
|
||||
matrix g_PrevWorldMatrix, g_PrevViewMatrix, g_PrevProjMatrix;
|
||||
|
||||
@@ -70,12 +74,16 @@ Texture2D g_DepthStencilTexture : register(t7);
|
||||
Texture2D g_DistortionTexture : register(t8);
|
||||
Texture2D g_DepthTexture : register(t9);
|
||||
Texture2D g_SurfaceParamsTexture : register(t10);
|
||||
//Texture2D g_NormalMapTexture : register(t11);
|
||||
|
||||
|
||||
float4 g_vCamPosition;
|
||||
float g_fFar;
|
||||
float g_fUsingSurfaceParams;
|
||||
float g_fMBIntensity = 1.f;
|
||||
float g_fUsingSurfaceParams;
|
||||
float g_fMBIntensity = 1.f;
|
||||
|
||||
float g_fWinSizeX;
|
||||
float g_fWinSizeY;
|
||||
|
||||
/* 디퓨즈 */
|
||||
vector g_vColor;
|
||||
@@ -262,6 +270,14 @@ struct PS_BLUR_MESH_IN
|
||||
float4 vPrevProjPos : TEXCOORD5;
|
||||
};
|
||||
|
||||
struct PS_OUT_DELCAL
|
||||
{
|
||||
float4 vAlbedo : SV_TARGET0;
|
||||
float4 vNormal : SV_TARGET1;
|
||||
float4 vSurface : SV_Target2;
|
||||
};
|
||||
|
||||
|
||||
VS_BULR_MESH_OUT VS_MAIN(VS_IN In, uint iGPUIndex : SV_InstanceID)
|
||||
{
|
||||
VS_BULR_MESH_OUT Out = (VS_BULR_MESH_OUT) 0;
|
||||
@@ -904,6 +920,57 @@ float4 SoftEffect(PS_IN In, float4 vMtrlDiffuse)
|
||||
|
||||
}
|
||||
|
||||
float2 ComputeDecal(float4 vPosition , float4x4 LocalMatrixInv)
|
||||
{
|
||||
float2 vDecalUV;
|
||||
float2 vDepthUV;
|
||||
|
||||
//vDepthUV.x = vPosition.x / g_fWinSizeX;
|
||||
//vDepthUV.y = vPosition.y / g_fWinSizeY;
|
||||
|
||||
//float4 vDepthDesc = g_DepthTexture.Sample(DefaultSampler, vDepthUV);
|
||||
//float3 vNormalDesc = g_NormalMapTexture.Sample(DefaultSampler, vDepthUV).xyz;
|
||||
//vNormalDesc = normalize(vNormalDesc * 2.f - 1.f);
|
||||
|
||||
//float fViewZ = vDepthDesc.y * g_fFar;
|
||||
|
||||
//float4 vPos;
|
||||
|
||||
//vPos.x = vDepthUV.x * 2.f - 1.f;
|
||||
//vPos.y = vDepthUV.y * -2.f + 1.f;
|
||||
//vPos.z = vDepthDesc.x;
|
||||
//vPos.w = 1.f;
|
||||
|
||||
//float4 vViewPos = mul(vPos, g_ProjMatrixInv);
|
||||
//vViewPos /= vViewPos.w;
|
||||
|
||||
//float4 vWorldPos = mul(vViewPos, g_ViewMatrixInv);
|
||||
|
||||
//vector vLocalPos = mul(vWorldPos, LocalMatrixInv);
|
||||
|
||||
//float3 ObjectAbsPos = abs(vLocalPos.xyz);
|
||||
|
||||
//clip(0.5f - ObjectAbsPos);
|
||||
|
||||
//float3 vAbsNormal = abs(vNormalDesc);
|
||||
|
||||
//int iAxisIndex = 0;
|
||||
|
||||
//if (vAbsNormal.y > vAbsNormal.x && vAbsNormal.y > vAbsNormal.z)
|
||||
// iAxisIndex = 1;
|
||||
//else if (vAbsNormal.z > vAbsNormal.x && vAbsNormal.z > vAbsNormal.y)
|
||||
// iAxisIndex = 2;
|
||||
|
||||
//if (0 == iAxisIndex)
|
||||
// vDecalUV = vLocalPos.zy + 0.5f * 2.f;
|
||||
//else if (1 == iAxisIndex)
|
||||
// vDecalUV = vLocalPos.xz + 0.5f * 2.f;
|
||||
//else
|
||||
// vDecalUV = vLocalPos.xy + 0.5f * 2.f;
|
||||
|
||||
return vDecalUV;
|
||||
}
|
||||
|
||||
PS_NOMAL_OUT PS_MAIN(PS_BLUR_MESH_IN In)
|
||||
{
|
||||
PS_IN PS_In;
|
||||
@@ -1331,6 +1398,97 @@ PS_BLUR_MESH_OUT PS_BLUR_MESH(PS_BLUR_MESH_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
|
||||
PS_OUT_DELCAL PS_DECAL(PS_BLUR_MESH_IN In)
|
||||
{
|
||||
PS_IN PS_In;
|
||||
PS_OUT_DELCAL Out;
|
||||
|
||||
PS_In.vPosition = In.vPosition;
|
||||
PS_In.vNormal = In.vNormal;
|
||||
PS_In.vTangent = In.vTangent;
|
||||
PS_In.vBinormal = In.vBinormal;
|
||||
PS_In.vTexcoord = In.vTexcoord;
|
||||
PS_In.vLifeTime = In.vLifeTime;
|
||||
PS_In.vWorldPos = In.vWorldPos;
|
||||
PS_In.vProjPos = In.vProjPos;
|
||||
PS_In.iGPUIndex = In.iGPUIndex;
|
||||
|
||||
vector vMtrlDiffuse;
|
||||
|
||||
//PS_In.vTexcoord = ComputeDecal(In.vPosition, g_ParticleValue[In.iGPUIndex].LocalMatrixInv);
|
||||
|
||||
float4 vSurface = g_SurfaceParamsTexture.Sample(DefaultSampler, PS_In.vTexcoord);
|
||||
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, PS_In.vTexcoord);
|
||||
|
||||
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal.rgb);
|
||||
|
||||
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
|
||||
|
||||
|
||||
float fSurfaceParam = g_fUsingSurfaceParams;
|
||||
if (true == AlmostEqual7(g_fUsingSurfaceParams, 0.f))
|
||||
{
|
||||
fSurfaceParam = 0;
|
||||
}
|
||||
|
||||
vMtrlDiffuse = DrawEffect(PS_In);
|
||||
|
||||
vMtrlDiffuse.rgb += EmissiveDraw(PS_In, vMtrlDiffuse).rgb;
|
||||
|
||||
vMtrlDiffuse += RimLight(PS_In);
|
||||
|
||||
vSurface.b = 0.5f;
|
||||
|
||||
|
||||
Out.vAlbedo = vMtrlDiffuse;
|
||||
Out.vSurface = vSurface;
|
||||
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT PS_DECAL_WB(PS_BLUR_MESH_IN In)
|
||||
{
|
||||
PS_IN PS_In;
|
||||
PS_OUT Out;
|
||||
|
||||
PS_In.vPosition = In.vPosition;
|
||||
PS_In.vNormal = In.vNormal;
|
||||
PS_In.vTangent = In.vTangent;
|
||||
PS_In.vBinormal = In.vBinormal;
|
||||
PS_In.vTexcoord = In.vTexcoord;
|
||||
PS_In.vLifeTime = In.vLifeTime;
|
||||
PS_In.vWorldPos = In.vWorldPos;
|
||||
PS_In.vProjPos = In.vProjPos;
|
||||
PS_In.iGPUIndex = In.iGPUIndex;
|
||||
|
||||
vector vMtrlDiffuse;
|
||||
|
||||
//PS_In.vTexcoord = ComputeDecal(In.vPosition, g_ParticleValue[In.iGPUIndex].LocalMatrixInv);
|
||||
vMtrlDiffuse = DrawEffect(PS_In);
|
||||
|
||||
vMtrlDiffuse = SoftEffect(PS_In, vMtrlDiffuse);
|
||||
|
||||
//int2 iTexel = int2(In.vPosition.xy);
|
||||
|
||||
//float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r;
|
||||
|
||||
//float fbias = 0.000005f;
|
||||
|
||||
//if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
|
||||
// discard;
|
||||
|
||||
vMtrlDiffuse.rgb += EmissiveDraw(PS_In, vMtrlDiffuse).rgb;
|
||||
|
||||
vMtrlDiffuse += RimLight(PS_In);
|
||||
|
||||
|
||||
Out = BlendedWeight(vMtrlDiffuse, In.vProjPos.w);
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
technique11 DefaultTechnique
|
||||
{
|
||||
//0
|
||||
@@ -1582,12 +1740,44 @@ technique11 DefaultTechnique
|
||||
pass Default_NonPos
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetDepthStencilState(DSS_None, 0);
|
||||
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN_NO_POS();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_MAIN();
|
||||
}
|
||||
//24
|
||||
pass NonWB_NonPos
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN_NO_POS();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_NON_NORMALMAP();
|
||||
}
|
||||
|
||||
//25
|
||||
pass Decal
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
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_DECAL();
|
||||
}
|
||||
|
||||
//26
|
||||
pass Decal_WB
|
||||
{
|
||||
SetRasterizerState(RS_Nocull);
|
||||
SetDepthStencilState(DSS_Effect, 0);
|
||||
SetBlendState(BS_WB_Acc, 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_DECAL_WB();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -204,6 +204,7 @@ call Update_Shaders.bat
|
||||
<ClInclude Include="..\public\Quest_Status.h" />
|
||||
<ClInclude Include="..\Public\Ranrok.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Breath.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Point.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_FireBall.h" />
|
||||
<ClInclude Include="..\Public\Skill_Data.h" />
|
||||
<ClInclude Include="..\public\SpellLearn_Booster.h" />
|
||||
@@ -453,6 +454,7 @@ call Update_Shaders.bat
|
||||
<ClCompile Include="..\private\Quest_Status.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Point.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_FireBall.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_States.cpp" />
|
||||
<ClCompile Include="..\Private\Skill_Data.cpp" />
|
||||
|
||||
@@ -682,6 +682,9 @@
|
||||
<Filter Include="02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Breath">
|
||||
<UniqueIdentifier>{fbf574e7-159e-43c3-914d-6a200383a45c}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Point">
|
||||
<UniqueIdentifier>{837e0b65-8ea3-41c5-8176-defa6e0cf3a4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Editor.h">
|
||||
@@ -1383,6 +1386,9 @@
|
||||
<ClInclude Include="..\Public\Ranrok_Breath.h">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Breath</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Point.h">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Point</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Editor.ico">
|
||||
@@ -2089,6 +2095,9 @@
|
||||
<ClCompile Include="..\Private\Ranrok_Breath.cpp">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Breath</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Point.cpp">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Point</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Editor.rc">
|
||||
|
||||
@@ -456,7 +456,8 @@ void CEditEffect::Describe_Entity()
|
||||
|
||||
const char* pEffectType[] = { "EFFECT" , "TRAIL" };
|
||||
const char* pShaderPass[] = { "DEFAULT" , "NON_NOMALMAP" , "BLUR" , "WEIGHTBLEND" , "NON_WORLD" , "NON_WORLD_BLUR", "BLEND", "BLEND_NOWORLD", "BLOOM" ,"BLOOM_NOWORLD" ,"BLUR_NO_EMMISVE",
|
||||
"BLUR_NO_WORLD_NO_EMISSIVE","WEIGHTBLEND_FOR_BLEND" , "DEPTH_STOP" , "WB_CULLING", "SCREEN_FX" , "DISTORTION" ,"NONPOS" , "NONPOS_BLUR" , "BULR_MESH" , "BLUR_CULLING" ,"BLUR_CULLING_NO_EMISSIVE" , "BLOOM_CULLING" , "DEFAULT_NONPOS"};
|
||||
"BLUR_NO_WORLD_NO_EMISSIVE","WEIGHTBLEND_FOR_BLEND" , "DEPTH_STOP" , "WB_CULLING", "SCREEN_FX" , "DISTORTION" ,"NONPOS" , "NONPOS_BLUR" , "BULR_MESH" , "BLUR_CULLING" ,"BLUR_CULLING_NO_EMISSIVE" ,
|
||||
"BLOOM_CULLING" , "DEFAULT_NONPOS" , "NONWB_NONPOS", "DECAL", "DECAL_WB"};
|
||||
|
||||
const char* pBloomType[] = { "NONE" , "BASIC" , "MUILTY"};
|
||||
_int iCurrentItem = static_cast<_int>(m_EffectInfo.eRenderOrder);
|
||||
|
||||
@@ -100,7 +100,8 @@ HRESULT CEffectObject::Render_Blur()
|
||||
}
|
||||
}
|
||||
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONPOS || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT_NONPOS)
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONPOS || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT_NONPOS
|
||||
|| m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONWB_NONPOS)
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::NONPOS_BLUR;
|
||||
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::WB_CULLING)
|
||||
@@ -830,8 +831,24 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Depth"), m_pShaderCom, "g_DepthTexture"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_NormalCopy"), m_pShaderCom, "g_NormalMapTexture"))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
}
|
||||
|
||||
//_float2 vViewPortSize = m_pGameInstance->Get_ViewPortSize();
|
||||
|
||||
//if (FAILED(m_pShaderCom->Bind_RawValue("g_fWinSizeX", &vViewPortSize.x, sizeof(_float)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
//if (FAILED(m_pShaderCom->Bind_RawValue("g_fWinSizeY", &vViewPortSize.y, sizeof(_float)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "Blink.h"
|
||||
#include "Ranrok_FireBall.h"
|
||||
#include "Ranrok_Breath.h"
|
||||
#include "Ranrok_Point.h"
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -333,11 +334,19 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_POINT, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_Point* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Point>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg)
|
||||
HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg , CEffect_Container** ppOut)
|
||||
{
|
||||
if (pOwner == nullptr)
|
||||
return S_OK;
|
||||
@@ -352,6 +361,11 @@ HRESULT CEffectPool::Use_Skill(SKILL_TYPE eType, CGameObject* pOwner, void* pArg
|
||||
m_ActiveEffectList.push_back(pSkill);
|
||||
Safe_AddRef(pSkill);
|
||||
|
||||
if (nullptr != ppOut) {
|
||||
*ppOut = pSkill;
|
||||
SAFE_ADDREF(pSkill);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -328,6 +328,7 @@ HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
m_bVisible = true;
|
||||
m_isCollisionEnter = false;
|
||||
m_bHit = false;
|
||||
m_isStop = false;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -346,6 +347,21 @@ void CEffect_Container::Reset_Light()
|
||||
|
||||
}
|
||||
|
||||
void CEffect_Container::Setting_Pos(_fvector vPos)
|
||||
{
|
||||
for (auto& iter : m_PartObjects)
|
||||
{
|
||||
CTransform* pTransform = iter.second->Get_Component<CTransform>();
|
||||
|
||||
if (pTransform == nullptr)
|
||||
continue;
|
||||
|
||||
pTransform->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
m_isStop = true;
|
||||
}
|
||||
|
||||
|
||||
HRESULT CEffect_Container::Ready_Components(void* pArg)
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ CEffect_Editor::CEffect_Editor(const CEffect_Editor& rhs)
|
||||
HRESULT CEffect_Editor::Initialize_Prototype()
|
||||
{
|
||||
|
||||
ReadMaterials("../Bin/Resources/VFX/Particles/Magic/Stupify");
|
||||
ReadMaterials("../Bin/Resources/VFX/Niagara/AncientMagic/ConjuredDragon");
|
||||
|
||||
|
||||
for (auto iter : m_MatFiles)
|
||||
|
||||
@@ -195,6 +195,7 @@
|
||||
#include "Blink.h"
|
||||
#include "Ranrok_FireBall.h"
|
||||
#include "Ranrok_Breath.h"
|
||||
#include "Ranrok_Point.h"
|
||||
#pragma endregion
|
||||
|
||||
#pragma region PHYSX_HEADER
|
||||
@@ -1803,6 +1804,10 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Point>(NEXT_LEVEL, CRanrok_Point::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_GameObject_Wand */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CWand>(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
#include "TrailObject.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
|
||||
#include "Ranrok_Point.h"
|
||||
|
||||
#pragma region STATE
|
||||
#include "State_Idle.h"
|
||||
#include "State_Move.h"
|
||||
@@ -156,6 +158,9 @@ void CRanrok::Late_Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
@@ -367,6 +372,7 @@ HRESULT CRanrok::Ready_Components()
|
||||
|
||||
HRESULT CRanrok::Ready_Parts()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -512,8 +518,6 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
_vector CurPos = m_pCharacter_Controller->Get_Position();
|
||||
_vector vLook = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
|
||||
_float Speed = 50.f;
|
||||
|
||||
_vector toTarget = Target - CurPos;
|
||||
_float fDist = XMVectorGetX(XMVector3Length(toTarget));
|
||||
|
||||
@@ -553,9 +557,9 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
|
||||
_vector LerpTarget = XMVectorLerp(Target, NextTarget, 0.5f);
|
||||
|
||||
m_pTransformCom->LookAt_Lerp(LerpTarget, fTimeDelta,2.f);
|
||||
m_pTransformCom->LookAt_Lerp(LerpTarget, fTimeDelta, 2.5f);
|
||||
|
||||
m_pCharacter_Controller->Set_Position(CurPos + vLook * Speed * fTimeDelta);
|
||||
m_pCharacter_Controller->Set_Position(CurPos + vLook * m_fTuckedSpeed * fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Load_RanrokPos(const _char* pFilePath)
|
||||
@@ -637,6 +641,8 @@ void CRanrok::Free()
|
||||
SAFE_RELEASE(m_pCharacter_Controller);
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pEffectPool);
|
||||
SAFE_RELEASE(m_pRanrok_Point);
|
||||
|
||||
Safe_Delete(m_pCallBack_Behavior);
|
||||
Safe_Delete(m_pCallBack_HitReport);
|
||||
}
|
||||
@@ -647,6 +653,8 @@ void CRanrok::Describe_Entity()
|
||||
__super::Describe_Entity();
|
||||
|
||||
m_pTransformCom->Describe_Entity();
|
||||
|
||||
GUI::DragFloat("Tucked Speed", &m_fTuckedSpeed);
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -0,0 +1,225 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_Point.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EditEffect.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_Point::CRanrok_Point(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_Point::CRanrok_Point(const CRanrok_Point& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Point::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Point::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPoint")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"RanrokPoint";
|
||||
|
||||
|
||||
m_pGooRod_0 = Get_PartObject<CEditEffect>("GooRod_0");
|
||||
m_pSmoke = Get_PartObject<CEditEffect>("Smoke");
|
||||
m_pSpread_PT = Get_PartObject<CEditEffect>("Spread_PT");
|
||||
|
||||
SAFE_ADDREF(m_pGooRod_0);
|
||||
SAFE_ADDREF(m_pSmoke);
|
||||
SAFE_ADDREF(m_pSpread_PT);
|
||||
|
||||
m_fDuration = 30.f;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_Point::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Point::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
/* PJ 월드 구성하기 */
|
||||
if (m_isStop == false)
|
||||
{
|
||||
/* 초기 방향 */
|
||||
|
||||
XMStoreFloat3(&m_vLook, m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK));
|
||||
|
||||
_vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vLook));
|
||||
_vector vLook = XMVector3Normalize(XMVector3Cross(vRight, XMVectorSet(0.f, 1.f, 0.f, 0.f)));
|
||||
_vector vUp = XMVector3Normalize(XMVector3Cross(vLook, vRight));
|
||||
_vector vPos = m_pOwner->Get_WorldPostion();
|
||||
|
||||
_matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
|
||||
|
||||
m_pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
m_pGooRod_0->Get_Component<CTransform>()->Set_WorldMatrix(PJ_WorldMat);
|
||||
m_pSpread_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Point::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Point::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
/* 초기 방향 */
|
||||
XMStoreFloat3(&m_vLook, m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK));
|
||||
|
||||
/* PJ 월드 구성하기 */
|
||||
|
||||
|
||||
_vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vLook));
|
||||
_vector vLook = XMVector3Normalize(XMVector3Cross(vRight, XMVectorSet(0.f, 1.f, 0.f, 0.f)));
|
||||
_vector vUp = XMVector3Normalize(XMVector3Cross(vLook, vRight));
|
||||
_vector vPos = m_pOwner->Get_WorldPostion();
|
||||
|
||||
_matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
|
||||
|
||||
|
||||
m_pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
m_pSpread_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
m_pGooRod_0->Get_Component<CTransform>()->Set_WorldMatrix(PJ_WorldMat);
|
||||
|
||||
m_pSmoke->Set_Visible(true);
|
||||
m_pGooRod_0->Set_Visible(true);
|
||||
m_pSpread_PT->Set_Visible(true);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Point::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Point::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_Point* CRanrok_Point::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_Point* pInstance = new CRanrok_Point(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_Point");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_Point::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_Point* pInstance = new CRanrok_Point(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_Point");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_Point::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Point::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
SAFE_RELEASE(m_pGooRod_0);
|
||||
SAFE_RELEASE(m_pSmoke);
|
||||
SAFE_RELEASE(m_pSpread_PT);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_Point::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_Point::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -661,6 +661,12 @@ void CRanrok::Behavior_TuckedEnter()
|
||||
//}
|
||||
pairAnimInfo = m_Animation[STATEANIM::FLY];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_bVisible = false;
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_POINT, this, nullptr , &m_pRanrok_Point);
|
||||
}, 0.1f);
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
|
||||
@@ -687,6 +693,11 @@ HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
|
||||
|
||||
void CRanrok::Behavior_TuckedExit()
|
||||
{
|
||||
/* 이펙트를 서서히 사라지게 하기위해 도착 이후에 나오는 이펙트를 아래로 떨굼 */
|
||||
m_pRanrok_Point->Setting_Pos(XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
SAFE_RELEASE(m_pRanrok_Point);
|
||||
|
||||
|
||||
m_pFSM->Disable_State(FSMSTATE::TUCKED);
|
||||
m_bTucked = false;
|
||||
m_bVisible = true;
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Editor
|
||||
SPELL_LEARN, SPELLLEARNCOLOR, SPELLLEARNBOOSTER, NPCINTERACTION, CANVASFADE,
|
||||
ENEMY_DETECTION, INTERACTION_OBJECT, INTERACTION_NPC, END
|
||||
};
|
||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX , DISTORTION , NONPOS , NONPOS_BLUR, BLUR_MESH, BLUR_CULLING , BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING , DEFAULT_NONPOS , END };
|
||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX , DISTORTION , NONPOS , NONPOS_BLUR, BLUR_MESH, BLUR_CULLING , BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING , DEFAULT_NONPOS , NONWB_NONPOS, DECAL, DECAL_WB, END };
|
||||
|
||||
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace Editor
|
||||
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE,
|
||||
|
||||
STUN,
|
||||
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH,
|
||||
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT,
|
||||
END
|
||||
};
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ class CEffectPool final : public CGameObject
|
||||
virtual HRESULT Render() override;
|
||||
public:
|
||||
HRESULT Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPrototypeLevel, _uint iCloneLevel , function<class CEffect_Container*(_uint , _uint)> AddPrototypeEvent);
|
||||
HRESULT Use_Skill(SKILL_TYPE eType , CGameObject* pOwner, void* pArg = nullptr);
|
||||
HRESULT Use_Skill(SKILL_TYPE eType , CGameObject* pOwner, void* pArg = nullptr, CEffect_Container** ppOut = nullptr);
|
||||
public:
|
||||
#ifdef _DEBUG
|
||||
HRESULT Reset_Pool();
|
||||
|
||||
@@ -26,6 +26,7 @@ class CEffect_Container abstract : public CContainerObject
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr);
|
||||
void Reset_Light();
|
||||
_uint Get_SkillType() const { return m_iSkillType; }
|
||||
void Setting_Pos(_fvector vPos);
|
||||
protected:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
@@ -52,6 +53,7 @@ class CEffect_Container abstract : public CContainerObject
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
_bool m_isLoop = {};
|
||||
_bool m_isStop = {};
|
||||
|
||||
_float m_fAccTime = {};
|
||||
_float m_fPreAccTime = {};
|
||||
|
||||
@@ -100,7 +100,7 @@ class CRanrok final : public CMonster
|
||||
_bool m_bHoverDash = { false };
|
||||
_vector m_vMoveDir = XMVectorZero();
|
||||
|
||||
|
||||
class CEffect_Container* m_pRanrok_Point = { nullptr };
|
||||
|
||||
vector<vector<_vector>> m_Points;
|
||||
_int m_iCurrentPoint = 0;
|
||||
@@ -111,6 +111,7 @@ class CRanrok final : public CMonster
|
||||
_float m_fAroundRadius = 40.f;
|
||||
_float m_fAroundTime = {};
|
||||
_float m_fRushTime = {};
|
||||
_float m_fTuckedSpeed = { 75.f};
|
||||
|
||||
|
||||
void Behavior_IdleEnter();
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CRanrok_Point final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_Point(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_Point(const CRanrok_Point& rhs);
|
||||
virtual ~CRanrok_Point() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEditEffect* m_pGooRod_0 = { nullptr };
|
||||
class CEditEffect* m_pSmoke = { nullptr };
|
||||
class CEditEffect* m_pSpread_PT = { nullptr };
|
||||
|
||||
_float3 m_vLook = {};
|
||||
_float m_fLinearSpeed = 0.8f;
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CRanrok_Point* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
Reference in New Issue
Block a user