@@ -50,7 +50,7 @@ RWStructuredBuffer<ParticleValue> g_ParticleValueOutput : register(u1);
|
|||||||
|
|
||||||
cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐이더 바인딩할때 인덱스가 동일해야함
|
cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐이더 바인딩할때 인덱스가 동일해야함
|
||||||
{
|
{
|
||||||
row_major matrix CamViewInvMatrix;
|
row_major matrix WorldMatrix;
|
||||||
|
|
||||||
bool isLoop; // 상수 버퍼에서 불값은 4바이트로 처리되기 때문에 반드시 클라에서는 int형으로 선언해라
|
bool isLoop; // 상수 버퍼에서 불값은 4바이트로 처리되기 때문에 반드시 클라에서는 int형으로 선언해라
|
||||||
bool isDrop;
|
bool isDrop;
|
||||||
@@ -61,6 +61,11 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
|
|||||||
bool isAxisTurn;
|
bool isAxisTurn;
|
||||||
bool isPivotMove;
|
bool isPivotMove;
|
||||||
bool isSizeMove;
|
bool isSizeMove;
|
||||||
|
|
||||||
|
bool isNoWorld;
|
||||||
|
bool isPadding0;
|
||||||
|
bool isPadding1;
|
||||||
|
bool isPadding2;
|
||||||
|
|
||||||
float fTimeDelta;
|
float fTimeDelta;
|
||||||
float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
||||||
@@ -84,14 +89,30 @@ void CS_MAIN(
|
|||||||
|
|
||||||
if (particleValue.vDelay.x < particleValue.vDelay.y)
|
if (particleValue.vDelay.x < particleValue.vDelay.y)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
g_VBInstanceOutput[iIndex] = particle;
|
g_VBInstanceOutput[iIndex] = particle;
|
||||||
g_ParticleValueOutput[iIndex] = particleValue;
|
g_ParticleValueOutput[iIndex] = particleValue;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 라이프타임 움직임
|
if (particle.vLifeTime.x <= FLT_EPSILON5)
|
||||||
|
{
|
||||||
|
if (isNoWorld)
|
||||||
|
{
|
||||||
|
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.vLifeTime.x += fTimeDelta;
|
particle.vLifeTime.x += fTimeDelta;
|
||||||
|
|
||||||
if (particle.vLifeTime.x >= particle.vLifeTime.y)
|
if (particle.vLifeTime.x >= particle.vLifeTime.y)
|
||||||
@@ -100,7 +121,6 @@ void CS_MAIN(
|
|||||||
{
|
{
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
//초기화
|
//초기화
|
||||||
particle.vRight = particleValue.vOriginRight;
|
particle.vRight = particleValue.vOriginRight;
|
||||||
particle.vUp = particleValue.vOriginUp;
|
particle.vUp = particleValue.vOriginUp;
|
||||||
@@ -111,6 +131,8 @@ void CS_MAIN(
|
|||||||
particleValue.vAniIndex.x = 0.f;
|
particleValue.vAniIndex.x = 0.f;
|
||||||
particleValue.vDelay.x = 0.f;
|
particleValue.vDelay.x = 0.f;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
g_VBInstanceOutput[iIndex] = particle;
|
g_VBInstanceOutput[iIndex] = particle;
|
||||||
g_ParticleValueOutput[iIndex] = particleValue;
|
g_ParticleValueOutput[iIndex] = particleValue;
|
||||||
|
|
||||||
@@ -239,6 +261,7 @@ void CS_MAIN(
|
|||||||
particle.vLook = normalize(particle.vLook) * CurLength.z;
|
particle.vLook = normalize(particle.vLook) * CurLength.z;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//애니메이션 속도 , 인덱스
|
//애니메이션 속도 , 인덱스
|
||||||
|
|
||||||
|
|||||||
@@ -102,12 +102,18 @@ HRESULT CBombard::Ready_Child()
|
|||||||
CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
|
CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{};
|
||||||
|
|
||||||
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||||
|
_vector vOwnerLook = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||||
|
|
||||||
|
_float3 vDir = {};
|
||||||
|
|
||||||
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
|
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
|
||||||
|
|
||||||
|
XMStoreFloat3(&vDir, vOwnerLook * 2.f);
|
||||||
|
|
||||||
|
|
||||||
Desc.vRotRPY = { 0.f, 0.f, 0.f };
|
Desc.vRotRPY = { 0.f, 0.f, 0.f };
|
||||||
Desc.iSubKind = 70;
|
Desc.iSubKind = 70;
|
||||||
Desc.vDeltaPos = { 0.f, 0.f, 2.f };
|
Desc.vDeltaPos = vDir;
|
||||||
Desc.vLifeTime = { 0.f, 2.f };
|
Desc.vLifeTime = { 0.f, 2.f };
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPhysXEffectHitBox>(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this , &m_pPhysHitBox))) {
|
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPhysXEffectHitBox>(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this , &m_pPhysHitBox))) {
|
||||||
|
|||||||
@@ -36,15 +36,18 @@ HRESULT CEffectObject::Render()
|
|||||||
for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++)
|
for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP)))) {
|
|
||||||
|
if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(m_EffectInfo.eShaderPass)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1)))
|
if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
|
|
||||||
return E_FAIL;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -76,11 +79,23 @@ HRESULT CEffectObject::Render_Blur()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SHADER_PASS_INSTANCE_MODEL BlurPass = {};
|
||||||
|
|
||||||
|
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD)
|
||||||
|
{
|
||||||
|
BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR_NO_WORLD;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR;
|
||||||
|
}
|
||||||
|
|
||||||
for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++)
|
for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_INSTANCE_MODEL::BLUR)))) {
|
|
||||||
|
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(BlurPass)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -96,8 +111,6 @@ HRESULT CEffectObject::Render_Blur()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -461,6 +474,12 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (FAILED(m_pShaderCom->Bind_RawValue("g_isEmissiveDissolveReverse", &m_EffectInfo.isEmissiveDissolveReverse, sizeof(_bool)))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vColor", &m_EffectInfo.vColor, sizeof(_float4)))) {
|
if (FAILED(m_pShaderCom->Bind_RawValue("g_vColor", &m_EffectInfo.vColor, sizeof(_float4)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -498,7 +517,7 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVCutting", &m_EffectInfo.vUVCutting, sizeof(_float2)))) {
|
if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVCutting", &m_EffectInfo.vUVCutting, sizeof(_float2)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -281,6 +281,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Wand_Model"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Wand_Model"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixIdentity()))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixIdentity()))))
|
||||||
|
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"),
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ void CPlayer::Late_Update(_float fTimeDelta)
|
|||||||
{
|
{
|
||||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position());
|
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position());
|
||||||
|
|
||||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
|
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||||
|
|
||||||
__super::Late_Update(fTimeDelta);
|
__super::Late_Update(fTimeDelta);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -525,7 +525,20 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
|
|||||||
switch (m_eSpell)
|
switch (m_eSpell)
|
||||||
{
|
{
|
||||||
case STATEANIM::ACCIO:
|
case STATEANIM::ACCIO:
|
||||||
|
{
|
||||||
|
/* TODO 임시 방편 */
|
||||||
pairAnimInfo = m_Animation[STATEANIM::ACCIO];
|
pairAnimInfo = m_Animation[STATEANIM::ACCIO];
|
||||||
|
|
||||||
|
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||||
|
|
||||||
|
PartsDesc.pParentTransform = m_pTransformCom;
|
||||||
|
|
||||||
|
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBombard>(NEXT_LEVEL, NEXT_LEVEL, TEXT("Layer_Effect"), &PartsDesc, this, nullptr))) {
|
||||||
|
assert(false);
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case STATEANIM::DESCENDO:
|
case STATEANIM::DESCENDO:
|
||||||
pairAnimInfo = m_Animation[STATEANIM::DESCENDO];
|
pairAnimInfo = m_Animation[STATEANIM::DESCENDO];
|
||||||
@@ -635,7 +648,7 @@ void CPlayer::Add_FSM()
|
|||||||
|
|
||||||
void CPlayer::Set_Anim()
|
void CPlayer::Set_Anim()
|
||||||
{
|
{
|
||||||
m_Animation[STATEANIM::IDLE] = { 266,true };
|
m_Animation[STATEANIM::IDLE] = { 817,true };
|
||||||
m_Animation[STATEANIM::IDLE_TURN_L] = { 270,false };
|
m_Animation[STATEANIM::IDLE_TURN_L] = { 270,false };
|
||||||
m_Animation[STATEANIM::IDLE_TURN_R] = { 430,false };
|
m_Animation[STATEANIM::IDLE_TURN_R] = { 430,false };
|
||||||
m_Animation[STATEANIM::IDLE_TURN_BWD] = { 268,false };
|
m_Animation[STATEANIM::IDLE_TURN_BWD] = { 268,false };
|
||||||
|
|||||||
@@ -42,14 +42,6 @@ void CTrailObject::Update(_float fTimeDelta)
|
|||||||
if (m_bVisible == false)
|
if (m_bVisible == false)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
||||||
m_CombinedMat = m_pParentTransformCom->Get_XMWorldMatrix();
|
|
||||||
|
|
||||||
m_CombinedMat.r[3] += m_vOffset;
|
|
||||||
|
|
||||||
m_pTrailCom->Trail_Update(fTimeDelta, m_CombinedMat);
|
|
||||||
|
|
||||||
|
|
||||||
if (m_TrailInfo.vDistortionTime.y == 0)
|
if (m_TrailInfo.vDistortionTime.y == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -63,6 +55,7 @@ void CTrailObject::Update(_float fTimeDelta)
|
|||||||
|
|
||||||
void CTrailObject::Late_Update(_float fTimeDelta)
|
void CTrailObject::Late_Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (m_bVisible == false)
|
if (m_bVisible == false)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -104,6 +97,11 @@ HRESULT CTrailObject::Ready_Components(void* pArg)
|
|||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CTrailObject::Trail_Update(_fmatrix WorldMat , _float fTimeDelta)
|
||||||
|
{
|
||||||
|
m_pTrailCom->Trail_Update(fTimeDelta, WorldMat);
|
||||||
|
}
|
||||||
|
|
||||||
HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
|
HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
|
||||||
{
|
{
|
||||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||||
@@ -299,6 +297,7 @@ void CTrailObject::Free()
|
|||||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||||
SAFE_RELEASE(m_pMasking_TextureCom);
|
SAFE_RELEASE(m_pMasking_TextureCom);
|
||||||
SAFE_RELEASE(m_pNoise_TextureCom);
|
SAFE_RELEASE(m_pNoise_TextureCom);
|
||||||
|
SAFE_RELEASE(m_pDistortion_TextureCom);
|
||||||
SAFE_RELEASE(m_pShaderCom);
|
SAFE_RELEASE(m_pShaderCom);
|
||||||
SAFE_RELEASE(m_pTrailCom);
|
SAFE_RELEASE(m_pTrailCom);
|
||||||
}
|
}
|
||||||
@@ -306,18 +305,7 @@ void CTrailObject::Free()
|
|||||||
|
|
||||||
void CTrailObject::Describe_Entity()
|
void CTrailObject::Describe_Entity()
|
||||||
{
|
{
|
||||||
GUI::Begin("VALUE");
|
|
||||||
|
|
||||||
_float4 vValue = {};
|
|
||||||
|
|
||||||
XMStoreFloat4(&vValue, m_vOffset);
|
|
||||||
|
|
||||||
if (GUI::InputFloat4("OFFSET", (_float*)&vValue))
|
|
||||||
{
|
|
||||||
m_vOffset = XMLoadFloat4(&vValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
GUI::End();
|
|
||||||
}
|
}
|
||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
|
|
||||||
@@ -325,12 +313,10 @@ void CTrailObject::Describe_Entity()
|
|||||||
HRESULT CTrailObject::Bind_ShaderResources()
|
HRESULT CTrailObject::Bind_ShaderResources()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
if (FAILED(m_pTrailCom->Bind_Resources()))
|
if (FAILED(m_pTrailCom->Bind_Resources()))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||||
{
|
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -408,6 +394,7 @@ HRESULT CTrailObject::Bind_ShaderResources()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* 이미시브 */
|
/* 이미시브 */
|
||||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vEmissive", &m_TrailInfo.vEmissive, sizeof(_float4)))) {
|
if (FAILED(m_pShaderCom->Bind_RawValue("g_vEmissive", &m_TrailInfo.vEmissive, sizeof(_float4)))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
@@ -457,7 +444,7 @@ HRESULT CTrailObject::Bind_ShaderResources()
|
|||||||
|
|
||||||
if (m_pDistortion_TextureCom != nullptr)
|
if (m_pDistortion_TextureCom != nullptr)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pMasking_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DistortionTexture", 0))) {
|
if (FAILED(m_pDistortion_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DistortionTexture", 0))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include "GameInstance.h"
|
#include "GameInstance.h"
|
||||||
#include "TrailObject.h"
|
#include "TrailObject.h"
|
||||||
|
#include "EffectParts.h"
|
||||||
|
|
||||||
CWand::CWand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CWand::CWand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
: CPartObject(pDevice, pContext)
|
: CPartObject(pDevice, pContext)
|
||||||
@@ -36,15 +37,23 @@ HRESULT CWand::Initialize(void* pArg)
|
|||||||
|
|
||||||
PartsDesc.pParentTransform = m_pTransformCom;
|
PartsDesc.pParentTransform = m_pTransformCom;
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTrailObject>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Trail"), &PartsDesc, this , &pTrail))) {
|
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTrailObject>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Trail"), &PartsDesc, this , &m_pTrail))) {
|
||||||
assert(false);
|
assert(false);
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(pTrail->Load_Trail("../Bin/Resources/Data/Effect/Decendo/Proj_Trail" , static_cast<LEVEL>(NEXT_LEVEL))))
|
if (FAILED(m_pTrail->Load_Trail("../Bin/Resources/Data/Effect/Trail/Bombard_Trail" , static_cast<LEVEL>(NEXT_LEVEL))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
pTrail->Set_Target(m_pModelCom->Get_BoneMatrixPtr("root" ), XMVectorSet(0.f, 1.f, 0.f , 0.f));
|
|
||||||
|
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffectParts>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Trail"), &PartsDesc, this, &m_pEffectParts))) {
|
||||||
|
assert(false);
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_pEffectParts->Load("../Bin/Resources/Data/Effect/Lumos/Lumos", static_cast<LEVEL>(NEXT_LEVEL));
|
||||||
|
|
||||||
|
m_pEffectParts->Set_Visible(true);
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
@@ -58,15 +67,33 @@ void CWand::Priority_Update(_float fTimeDelta)
|
|||||||
for (int i = 0; i < 3; ++i) {
|
for (int i = 0; i < 3; ++i) {
|
||||||
socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]);
|
socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr()));
|
m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr()));
|
||||||
|
|
||||||
|
Describe_Entity();
|
||||||
|
|
||||||
|
|
||||||
//_float3 Scale = _float3(10.f, 10.f, 10.f);
|
|
||||||
//m_pTransformCom->Set_Scale(Scale);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CWand::Update(_float fTimeDelta)
|
void CWand::Update(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
//m_pTrail->Trail_Update(CombinedMat, fTimeDelta);
|
||||||
|
|
||||||
|
|
||||||
|
m_pModelCom->Combined_BoneMatrix();
|
||||||
|
|
||||||
|
_matrix BoneMatrix = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("Effect"));
|
||||||
|
|
||||||
|
BoneMatrix = BoneMatrix * m_pTransformCom->Get_XMWorldMatrix();
|
||||||
|
|
||||||
|
|
||||||
|
BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[0]) * m_vOffset.x;
|
||||||
|
BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[1]) * m_vOffset.y;
|
||||||
|
BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[2]) * m_vOffset.z;
|
||||||
|
|
||||||
|
m_pEffectParts->Get_Component<CTransform>()->Set_WorldMatrix(BoneMatrix);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CWand::Late_Update(_float fTimeDelta)
|
void CWand::Late_Update(_float fTimeDelta)
|
||||||
@@ -175,11 +202,22 @@ void CWand::Free()
|
|||||||
|
|
||||||
SAFE_RELEASE(m_pShaderCom);
|
SAFE_RELEASE(m_pShaderCom);
|
||||||
SAFE_RELEASE(m_pModelCom);
|
SAFE_RELEASE(m_pModelCom);
|
||||||
|
SAFE_RELEASE(m_pEffectParts);
|
||||||
|
SAFE_RELEASE(m_pTrail);
|
||||||
}
|
}
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
|
|
||||||
void CWand::Describe_Entity()
|
void CWand::Describe_Entity()
|
||||||
{
|
{
|
||||||
|
GUI::Begin("VALUE");
|
||||||
|
|
||||||
|
_float4 vValue = {};
|
||||||
|
|
||||||
|
if (GUI::InputFloat3("OFFSET", (_float*)&m_vOffset))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
GUI::End();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace Client
|
|||||||
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, END };
|
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, END };
|
||||||
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
|
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
|
||||||
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR, END };
|
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR, END };
|
||||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, END };
|
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, BLUR_NO_WORLD, END };
|
||||||
enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, END };
|
enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, END };
|
||||||
|
|
||||||
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
|
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class CEffectObject abstract : public CPartObject
|
|||||||
_bool isMaskUVMove = {};
|
_bool isMaskUVMove = {};
|
||||||
_bool isBlur = {};
|
_bool isBlur = {};
|
||||||
_bool isBillboard = {};
|
_bool isBillboard = {};
|
||||||
|
|
||||||
|
|
||||||
_float4 vEmissive = { 0.f ,0.f ,0.f ,0.f };
|
_float4 vEmissive = { 0.f ,0.f ,0.f ,0.f };
|
||||||
_float fDiffuseAlpha = { 1.f };
|
_float fDiffuseAlpha = { 1.f };
|
||||||
@@ -73,17 +73,19 @@ class CEffectObject abstract : public CPartObject
|
|||||||
_bool isNoiseAlpha = { false };
|
_bool isNoiseAlpha = { false };
|
||||||
_bool isNomalDissolve = {};
|
_bool isNomalDissolve = {};
|
||||||
|
|
||||||
_float fSoftenExp = { 1.31429f };
|
_float fSoftenExp = { 1.31429f };
|
||||||
_float fSoftStrength = {};
|
_float fSoftStrength = {};
|
||||||
_float fCoreBoost = {};
|
_float fCoreBoost = {};
|
||||||
_float fRadius = {};
|
_float fRadius = {};
|
||||||
|
|
||||||
_float fSoftMaskEdge = {};
|
_float fSoftMaskEdge = {};
|
||||||
_float fSoftMask = {};
|
_float fSoftMask = {};
|
||||||
|
|
||||||
_bool isEmissiveDissolveReverse = { false };
|
_bool isEmissiveDissolveReverse = { false };
|
||||||
_bool isOnlyBlur = { false };
|
_bool isOnlyBlur = { false };
|
||||||
|
|
||||||
|
SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP };
|
||||||
|
|
||||||
}EFFECT_INFO;
|
}EFFECT_INFO;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -68,15 +68,9 @@ class CTrailObject final : public CPartObject
|
|||||||
virtual void Late_Update(_float fTimeDelta) override;
|
virtual void Late_Update(_float fTimeDelta) override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
void Trail_Update(_fmatrix WorldMat, _float fTimeDelta);
|
||||||
HRESULT Load_Trail(const _char* pPath, LEVEL eLevel);
|
HRESULT Load_Trail(const _char* pPath, LEVEL eLevel);
|
||||||
void Set_Target(const _float4x4* pMatrix , _fvector v0ffset) {
|
|
||||||
|
|
||||||
if (pMatrix != nullptr)
|
|
||||||
{
|
|
||||||
m_pParantsMatrix = pMatrix;
|
|
||||||
m_vOffset = v0ffset;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HRESULT Bind_ShaderResources() override;
|
HRESULT Bind_ShaderResources() override;
|
||||||
@@ -100,7 +94,7 @@ class CTrailObject final : public CPartObject
|
|||||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||||
CTexture* m_pNoise_TextureCom = { nullptr };
|
CTexture* m_pNoise_TextureCom = { nullptr };
|
||||||
CTexture* m_pMasking_TextureCom = { nullptr };
|
CTexture* m_pMasking_TextureCom = { nullptr };
|
||||||
CTexture* m_pDistortion_TextureCom = { nullptr };
|
CTexture* m_pDistortion_TextureCom = { nullptr };
|
||||||
|
|
||||||
CShader* m_pShaderCom = { nullptr };
|
CShader* m_pShaderCom = { nullptr };
|
||||||
CTrail* m_pTrailCom = { nullptr };
|
CTrail* m_pTrailCom = { nullptr };
|
||||||
@@ -114,10 +108,6 @@ class CTrailObject final : public CPartObject
|
|||||||
_string m_strName = {};
|
_string m_strName = {};
|
||||||
|
|
||||||
TRAIL_INFO m_TrailInfo = {};
|
TRAIL_INFO m_TrailInfo = {};
|
||||||
|
|
||||||
const _float4x4* m_pParantsMatrix = {};
|
|
||||||
_vector m_vOffset = {};
|
|
||||||
_matrix m_CombinedMat = {};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
NS_END
|
NS_END
|
||||||
|
|||||||
@@ -30,7 +30,10 @@ class CWand final : public CPartObject
|
|||||||
CShader* m_pShaderCom = { nullptr };
|
CShader* m_pShaderCom = { nullptr };
|
||||||
CModel* m_pModelCom = { nullptr };
|
CModel* m_pModelCom = { nullptr };
|
||||||
|
|
||||||
class CTrailObject* pTrail = { nullptr };
|
class CTrailObject* m_pTrail = { nullptr };
|
||||||
|
class CEffectParts* m_pEffectParts = { nullptr };
|
||||||
|
|
||||||
|
_float3 m_vOffset = {};
|
||||||
private:
|
private:
|
||||||
HRESULT Ready_Components();
|
HRESULT Ready_Components();
|
||||||
HRESULT Bind_ShaderResources();
|
HRESULT Bind_ShaderResources();
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
Binary file not shown.
Binary file not shown.
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.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user