[add] Outline

This commit is contained in:
kimnuri
2025-12-29 20:15:08 +09:00
parent 78271cd12b
commit 4fc045e9e2
15 changed files with 63 additions and 575 deletions
@@ -332,8 +332,6 @@ call Update_Resources.bat
<ClInclude Include="..\Public\Monster.h" />
<ClInclude Include="..\Public\NoMountIcon.h" />
<ClInclude Include="..\Public\PhysXEffectHitBox.h" />
<ClInclude Include="..\Public\Dummy_PhysXPlayable.h" />
<ClInclude Include="..\Public\Dummy_PhysXWall.h" />
<ClInclude Include="..\Public\EffectParts.h" />
<ClInclude Include="..\Public\EffectObject.h" />
<ClInclude Include="..\Public\Effect_Container.h" />
@@ -583,8 +581,6 @@ call Update_Resources.bat
<ClCompile Include="..\Private\CamPosition_Shoulder.cpp" />
<ClCompile Include="..\Private\CamPosition_Socket.cpp" />
<ClCompile Include="..\Private\CamPosition_Target.cpp" />
<ClCompile Include="..\Private\Dummy_PhysXPlayable.cpp" />
<ClCompile Include="..\Private\Dummy_PhysXWall.cpp" />
<ClCompile Include="..\Private\EffectParts.cpp" />
<ClCompile Include="..\Private\EffectObject.cpp" />
<ClCompile Include="..\Private\Effect_Container.cpp" />
@@ -79,12 +79,6 @@
<ClInclude Include="..\Public\Broom.h">
<Filter>02.GameObjects\Item\Broom</Filter>
</ClInclude>
<ClInclude Include="..\Public\Dummy_PhysXWall.h">
<Filter>02.GameObjects\PhysX</Filter>
</ClInclude>
<ClInclude Include="..\Public\Dummy_PhysXPlayable.h">
<Filter>02.GameObjects\PhysX</Filter>
</ClInclude>
<ClInclude Include="..\Public\State_Root.h">
<Filter>04.Mechanic\State</Filter>
</ClInclude>
@@ -1661,12 +1655,6 @@
<ClCompile Include="..\Private\Broom.cpp">
<Filter>02.GameObjects\Item\Broom</Filter>
</ClCompile>
<ClCompile Include="..\Private\Dummy_PhysXWall.cpp">
<Filter>02.GameObjects\PhysX</Filter>
</ClCompile>
<ClCompile Include="..\Private\Dummy_PhysXPlayable.cpp">
<Filter>02.GameObjects\PhysX</Filter>
</ClCompile>
<ClCompile Include="..\Private\State_Root.cpp">
<Filter>04.Mechanic\State</Filter>
</ClCompile>
@@ -2295,7 +2283,6 @@
<ClCompile Include="..\Private\Camera_Model.cpp">
<Filter>02.GameObjects\Cameras\Camera_Model</Filter>
</ClCompile>
<ClCompile Include="..\Private\PlayerRobe.cpp" />
<ClCompile Include="..\Private\Goblin_Assassin.cpp">
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Assassin</Filter>
</ClCompile>
@@ -2311,6 +2298,9 @@
<ClCompile Include="..\Private\State_Dash.cpp">
<Filter>04.Mechanic\State\Movement\Dash</Filter>
</ClCompile>
<ClCompile Include="..\Private\PlayerRobe.cpp">
<Filter>02.GameObjects\Player\Robe</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\Private\Goblin_States.cpp">
@@ -1,232 +0,0 @@
#include "pch.h"
#include "Dummy_PhysXPlayable.h"
#include "GameInstance.h"
CDummy_PhysXPlayable::CDummy_PhysXPlayable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext):
CGameObject(pDevice, pContext)
{
}
CDummy_PhysXPlayable::CDummy_PhysXPlayable(const CDummy_PhysXPlayable& rhs):
CGameObject(rhs)
{
}
void CDummy_PhysXPlayable::Priority_Update(_float fTimeDelta)
{
m_pTransformCom->RewindMomentum();
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position());
}
void CDummy_PhysXPlayable::Update(_float fTimeDelta)
{
if (m_pGameInstance->Key_Pressing(DIK_UPARROW)) {
m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, 0.f, 1.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
}
if (m_pGameInstance->Key_Pressing(DIK_LEFT)) {
m_pTransformCom->AccumulateMomentum(XMVectorSet(-1.f, 0.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
}
if (m_pGameInstance->Key_Pressing(DIK_DOWN)) {
m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, 0.f, -1.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
}
if (m_pGameInstance->Key_Pressing(DIK_RIGHT)) {
m_pTransformCom->AccumulateMomentum(XMVectorSet(1.f, 0.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
}
if (m_pGameInstance->Key_Pressing(DIK_LCONTROL)) {
if (m_pGameInstance->Key_Pressing(DIK_SPACE)) {
m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, 10.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
}
if (m_pGameInstance->Key_Pressing(DIK_C)) {
m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -10.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
}
if (m_pGameInstance->Key_Down(DIK_V)) {
m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
}
else {
if (m_pGameInstance->Key_Down(DIK_V)) {
m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
}
m_pCharacter_Controller->Move(fTimeDelta);
}
void CDummy_PhysXPlayable::Late_Update(_float fTimeDelta)
{
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
}
}
HRESULT CDummy_PhysXPlayable::Render()
{
//if (FAILED(Bind_ShaderResources())) {
// return E_FAIL;
//}
//if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) {
// return E_FAIL;
//}
//if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) {
// return E_FAIL;
//}
//if (FAILED(m_pModelCom->Render(0))) {
// return E_FAIL;
//}
#ifdef _DEBUG
if (FAILED(m_pCharacter_Controller->Render())) {
return E_FAIL;
}
#endif // _DEBUG
return S_OK;
}
HRESULT CDummy_PhysXPlayable::Initialize_Prototype()
{
return S_OK;
}
HRESULT CDummy_PhysXPlayable::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg))) {
return E_FAIL;
}
if (FAILED(Ready_Components(pArg))) {
return E_FAIL;
}
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
return S_OK;
}
HRESULT CDummy_PhysXPlayable::Ready_Components(void* pArg)
{
CTransform::TRANSFORM_DESC TransformDesc{};
TransformDesc.fRadius = 100.f;
TransformDesc.fRotationPerSec = XMConvertToRadians(60.f);
TransformDesc.fSpeedPerSec = 15.f;
if (FAILED(__super::Ready_Components(&TransformDesc))) {
return E_FAIL;
}
PHYSXDUMMY_DESC* pDesc = static_cast<PHYSXDUMMY_DESC*>(pArg);
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPos), 1.f));
m_pTransformCom->Rotation(pDesc->vRotRPY.x, pDesc->vRotRPY.y, pDesc->vRotRPY.z);
{ // CCT
CCharacter_Controller::Character_Controller_DESC Desc{};
Desc.iSubKind = pDesc->iSubKind;
Desc.pTransform = m_pTransformCom;
Desc.eBodyType = ACTOR::CAPSULE;
Desc.fContactOffset = 0.001f;
Desc.fMaterial = { 0.5f, 0.5f, 0.6f };
Desc.bAutoStepping = { false };
Desc.fStepOffset = { 0.02f };
Desc.fRadius = 0.5f;
Desc.fHeight = 1.0f;
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Playable_HitReport::Create();
Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_Playable_Behavior::Create();
Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY;
Desc.fWalkableSlope = 45.f;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) {
return E_FAIL;
}
}
m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION));
{ // DO
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = pDesc->iSubKind;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
reinterpret_cast<CComponent**>(&m_pShaderCom)))){
return E_FAIL;
}
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Box"), (CComponent**)&m_pModelCom))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CDummy_PhysXPlayable::Bind_ShaderResources()
{
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
return E_FAIL;
}
return S_OK;
}
CDummy_PhysXPlayable* CDummy_PhysXPlayable::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CDummy_PhysXPlayable* pInstance = new CDummy_PhysXPlayable(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CDummy_PhysXPlayable");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CDummy_PhysXPlayable::Clone(void* pArg, CGameObject* pOwner)
{
CDummy_PhysXPlayable* pInstance = new CDummy_PhysXPlayable(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CDummy_PhysXPlayable");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CDummy_PhysXPlayable::Free()
{
__super::Free();
if (nullptr != m_pCallBack_Behavior) {
m_pCallBack_Behavior->Finalize();
}
if (nullptr != m_pCallBack_HitReport) {
m_pCallBack_HitReport->Finalize();
}
SAFE_RELEASE(m_pCharacter_Controller);
SAFE_RELEASE(m_pRigidBody);
Safe_Delete(m_pCallBack_Behavior);
Safe_Delete(m_pCallBack_HitReport);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pModelCom);
}
#ifdef _DEBUG
void CDummy_PhysXPlayable::Describe_Entity()
{
m_pCharacter_Controller->Describe_Entity();
}
#endif // _DEBUG
@@ -1,170 +0,0 @@
#include "pch.h"
#include "Dummy_PhysXWall.h"
#include "GameInstance.h"
CDummy_PhysXWall::CDummy_PhysXWall(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject{ pDevice, pContext }
{
}
CDummy_PhysXWall::CDummy_PhysXWall(const CDummy_PhysXWall& rhs)
: CGameObject(rhs)
{
}
HRESULT CDummy_PhysXWall::Initialize_Prototype()
{
return S_OK;
}
HRESULT CDummy_PhysXWall::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg))) {
return E_FAIL;
}
if (FAILED(Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
void CDummy_PhysXWall::Priority_Update(_float fTimeDelta)
{
}
void CDummy_PhysXWall::Update(_float fTimeDelta)
{
}
void CDummy_PhysXWall::Late_Update(_float fTimeDelta)
{
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
}
HRESULT CDummy_PhysXWall::Render()
{
//if (FAILED(Bind_ShaderResources())) {
// return E_FAIL;
//}
//if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) {
// return E_FAIL;
//}
//if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) {
// return E_FAIL;
//}
//if (FAILED(m_pModelCom->Render(0))) {
// return E_FAIL;
//}
#ifdef _DEBUG
if (FAILED(m_pRigidBody->Render())) {
return E_FAIL;
}
#endif // _DEBUG
return S_OK;
}
HRESULT CDummy_PhysXWall::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
PHYSXDUMMY_DESC* pPhysXDummyDesc = static_cast<PHYSXDUMMY_DESC*>(pArg);
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pPhysXDummyDesc->vPos), 1.f));
m_pTransformCom->Rotation(pPhysXDummyDesc->vRotRPY.x, pPhysXDummyDesc->vRotRPY.y, pPhysXDummyDesc->vRotRPY.z);
{ // RIGID_BODY
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = pPhysXDummyDesc->iSubKind;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
}
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
return E_FAIL;
}
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Box"), (CComponent**)&m_pModelCom))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CDummy_PhysXWall::Bind_ShaderResources()
{
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
return E_FAIL;
}
return S_OK;
}
CDummy_PhysXWall* CDummy_PhysXWall::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CDummy_PhysXWall* pInstance = new CDummy_PhysXWall(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CDummy_PhysXWall");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CDummy_PhysXWall::Clone(void* pArg, CGameObject* pOwner)
{
CDummy_PhysXWall* pInstance = new CDummy_PhysXWall(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CDummy_PhysXWall");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CDummy_PhysXWall::Free()
{
//if (nullptr != m_pRigidBody) {
// m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
//}
__super::Free();
SAFE_RELEASE(m_pRigidBody);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pModelCom);
}
#ifdef _DEBUG
void CDummy_PhysXWall::Describe_Entity()
{
}
#endif // _DEBUG
+16 -1
View File
@@ -130,7 +130,22 @@ HRESULT CLevel_Field::Ready_Lights()
{
CLight_Main* pLight = { nullptr };
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLight_Main>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT,nullptr, nullptr, &pLight))) {
LIGHT_DESC Desc = {};
if (m_isDay)
{
Desc.vDiffuse = _float4(0.6529f, 0.6157f, 0.7843f, 1.0f);
Desc.vAmbient = _float4(0.6275f, 0.6275f, 0.6275f, 0.0314f);
Desc.vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.05f);
}
else
{
Desc.vDiffuse = _float4(0.0471f, 0.0745f, 0.1294f, 0.2549f);
Desc.vAmbient = _float4(0.1686f, 0.1765f, 0.1373f, 0.0f);
Desc.vSpecular = _float4(0.0f, 0.0f, 0.0f, 0.0f);
}
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLight_Main>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc, nullptr, &pLight))) {
return E_FAIL;
}
@@ -10,8 +10,6 @@
#include "Layer.h"
#include "SkyBox.h"
#include "Broom.h"
#include "Dummy_PhysXWall.h"
#include "Dummy_PhysXPlayable.h"
#include "Terrain.h"
#include "EffectPool.h"
#include "InstancedProp.h"
@@ -656,7 +654,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
#endif //
#ifdef 기무리
isLoad_NPC = false;
isLoad_NPC = true;
#endif //
#ifdef 인혁
@@ -726,15 +724,6 @@ HRESULT CLevel_GamePlay::Ready_Layer_SkyBox(const _wstring& strLayerTag)
return E_FAIL;
}
CDummy_PhysXWall::PHYSXDUMMY_DESC Desc{};
Desc.vPos = { 0.f, 0.f, 0.f };
Desc.vRotRPY = { 0.f, m_pGameInstance->Random_Float(0.f, XM_2PI), 0.f };
Desc.iSubKind = ENUM_CLASS(PXOBJECT::WALL);
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummy_PhysXWall>(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) {
return E_FAIL;
}
return S_OK;
}
@@ -749,7 +738,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
#endif //
#ifdef 기무리
isLoad_Monster = false;
isLoad_Monster = true;
#endif //
#ifdef 인혁
+2 -14
View File
@@ -139,9 +139,6 @@
#pragma endregion
#pragma region PHYSX
#include "Dummy_PhysXWall.h"
#include "Dummy_PhysXPlayable.h"
#include "PhysXEffectHitBox.h"
#pragma endregion
@@ -377,8 +374,8 @@ HRESULT CLoader::Loading_For_GamePlay()
isLoad_Background = true;
isLoad_Hogwart = false;
isLoad_UI_SEQUANTIAL = false;
isLoad_NPC = false;
isLoad_Monster = false;
isLoad_NPC = true;
isLoad_Monster = true;
#endif //
#ifdef 인혁
isLoad_Background = false;
@@ -2915,15 +2912,6 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Prototype<CBroomRaceManager>(g_iStaticLevel, CBroomRaceManager::Create(m_pDevice, m_pContext))))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_Prototype<CDummy_PhysXWall>(g_iStaticLevel, CDummy_PhysXWall::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CDummy_PhysXPlayable>(g_iStaticLevel, CDummy_PhysXPlayable::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CPhysXEffectHitBox>(g_iStaticLevel, CPhysXEffectHitBox::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
@@ -524,6 +524,9 @@ HRESULT CRanrok::Render_Blend()
}
}
if (true == m_bDrawOutLine) {
Render_OutLine();
}
return S_OK;
}
HRESULT CRanrok::Render_OutLine()
@@ -1,54 +0,0 @@
#pragma once
#include "Client_Define.h"
#include "GameObject.h"
#include "CallBack_Playable_Behavior.h"
#include "CallBack_Playable_HitReport.h"
NS_BEGIN(Client)
class CDummy_PhysXPlayable final : public CGameObject
{
public:
typedef struct tagPhysXDummyDesc
{
_float3 vPos = { };
_float3 vRotRPY = { };
_uint iSubKind = { };
}PHYSXDUMMY_DESC;
private:
CDummy_PhysXPlayable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CDummy_PhysXPlayable(const CDummy_PhysXPlayable& rhs);
virtual ~CDummy_PhysXPlayable() = default;
public:
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
private:
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
CModel* m_pModelCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CCallBack_Playable_Behavior* m_pCallBack_Behavior = { nullptr };
CCallBack_Playable_HitReport* m_pCallBack_HitReport = { nullptr };
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Bind_ShaderResources() override;
public:
static CDummy_PhysXPlayable* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -1,51 +0,0 @@
#pragma once
#include "Client_Define.h"
#include "GameObject.h"
NS_BEGIN(Client)
class CDummy_PhysXWall final : public CGameObject
{
public:
typedef struct tagPhysXDummyDesc
{
_float3 vPos = { };
_float3 vRotRPY = { };
_uint iSubKind = { };
}PHYSXDUMMY_DESC;
private:
CDummy_PhysXWall(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CDummy_PhysXWall(const CDummy_PhysXWall& rhs);
virtual ~CDummy_PhysXWall() = default;
public:
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
private:
CRigidBody* m_pRigidBody = { nullptr };
const PSX::PxRigidDynamic* m_pActor = { nullptr };
CModel* m_pModelCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Bind_ShaderResources() override;
public:
static CDummy_PhysXWall* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
@@ -15,6 +15,7 @@ class CLevel_Field final : public CLevel
virtual void Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
_bool m_isDay = { true };
private:
class CInfoInstance* m_pInfoInstance = { nullptr };
@@ -86,7 +86,7 @@
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_HUM_Head_Teeth_SRXO" Extension=".dds"/>
</MI_HUM_N_Heads_Teeth>
<MI_HUM_N_Heads_Eyelash ShaderIndex = "36" OutLineWrite="36">
<MI_HUM_N_Heads_Eyelash ShaderIndex = "25" OutLineWrite="36">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_F_Hair_STUHair18_PrincessLong_DAO_MSK" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
@@ -115,7 +115,7 @@
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HUM_N_Heads_Eyelash>
<MI_HUM_N_Heads_Eye ShaderIndex = "37" OutLineWrite="37">
<MI_HUM_N_Heads_Eye ShaderIndex = "26" OutLineWrite="37">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Poltergeist_Eye_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
@@ -173,7 +173,7 @@
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_Adult_F_Arms_Ivory_SRXO" Extension=".dds"/>
</MI_HUM_F_Body_Arms01>
<MI_HUM_F_Hair_Kit ShaderIndex = "34" OutLineWrite="34">
<MI_HUM_F_Hair_Kit ShaderIndex = "23" OutLineWrite="34">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_F_Hair_STUHair18_PrincessLong_DAO_MSK" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
@@ -231,7 +231,7 @@
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_ClothSim>
<M_HUM_F_Lower_ArcanePants01_Long_RonanAvatar ShaderIndex = "35" OutLineWrite="35">
<M_HUM_F_Lower_ArcanePants01_Long_RonanAvatar ShaderIndex = "24" OutLineWrite="35">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_SRO" Extension=".dds"/>
@@ -260,7 +260,7 @@
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</M_HUM_F_Lower_ArcanePants01_Long_RonanAvatar>
<MI_HUM_F_Shoes_DarkArts01_Short_RonanAvatar ShaderIndex = "35" OutLineWrite="35">
<MI_HUM_F_Shoes_DarkArts01_Short_RonanAvatar ShaderIndex = "24" OutLineWrite="35">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_SRO" Extension=".dds"/>
@@ -289,7 +289,7 @@
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HUM_F_Shoes_DarkArts01_Short_RonanAvatar>
<MI_HUM_F_Upp_StuUni01 ShaderIndex = "35" OutLineWrite="35">
<MI_HUM_F_Upp_StuUni01 ShaderIndex = "24" OutLineWrite="35">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_F_Upp_StuUni01_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="T_HUM_F_Upp_StuUni01_SRO" Extension=".dds"/>
@@ -318,7 +318,7 @@
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HUM_F_Upp_StuUni01>
<MI_HUM_M_Robe_RelicRobeGry ShaderIndex = "38" OutLineWrite="38">
<MI_HUM_M_Robe_RelicRobeGry ShaderIndex = "27" OutLineWrite="38">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_M_Robe_RelicRobeGry_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
@@ -306,10 +306,12 @@ struct PS_OUT_BLEND
};
struct PS_OUT_OUTLINE
{
float4 vOutLine : SV_TARGET0;
float4 vAlbedo : SV_TARGET0;
float4 vNormal : SV_TARGET1;
float4 vDepth : SV_TARGET2;
float2 vVelocityUV : SV_TARGET3;
float4 vColor : SV_Target3;
float4 vSurface : SV_Target4;
float2 vVelocityUV : SV_TARGET5;
};
PS_OUT_OUTLINE PS_MAIN_OUTLINE_READ(PS_IN In)
@@ -327,12 +329,14 @@ PS_OUT_OUTLINE PS_MAIN_OUTLINE_READ(PS_IN In)
float fRim = saturate((1.0f - fNdotV) * g_fOutLineScale);
fRim = pow(fRim, g_fOutLinePower);
Out.vOutLine = float4(g_vOutLineColor.rgb, fRim);
Out.vAlbedo = float4(g_vOutLineColor.rgb, fRim);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
(float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 0.f);
Out.vSurface = float4(0.5f, 1.f, 1.f, 0.f);
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
return Out;
@@ -450,10 +450,12 @@ struct PS_IN_OUTLINE
};
struct PS_OUT_OUTLINE
{
float4 vOutLine : SV_TARGET0;
float4 vAlbedo : SV_TARGET0;
float4 vNormal : SV_TARGET1;
float4 vDepth : SV_TARGET2;
float2 vVelocityUV : SV_TARGET3;
float4 vColor : SV_Target3;
float4 vSurface : SV_Target4;
float2 vVelocityUV : SV_TARGET5;
};
PS_OUT_OUTLINE PS_MAIN_OUTLINE(PS_IN_OUTLINE In)
@@ -470,13 +472,15 @@ PS_OUT_OUTLINE PS_MAIN_OUTLINE(PS_IN_OUTLINE In)
float fNdotV = saturate(dot(vNormal, vToView));
float fRim = saturate((1.0f - fNdotV) * g_fOutLineScale);
fRim = pow(fRim, g_fOutLinePower);
Out.vOutLine = float4(g_vOutLineColor.rgb, fRim);
Out.vAlbedo = float4(g_vOutLineColor.rgb, fRim);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
(float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 0.f);
Out.vSurface = float4(0.5f, 1.f, 1.f, 0.f);
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
return Out;
@@ -672,10 +672,12 @@ struct PS_IN_OUTLINE
};
struct PS_OUT_OUTLINE
{
float4 vOutLine : SV_TARGET0;
float4 vAlbedo : SV_TARGET0;
float4 vNormal : SV_TARGET1;
float4 vDepth : SV_TARGET2;
float2 vVelocityUV : SV_TARGET3;
float4 vColor : SV_Target3;
float4 vSurface : SV_Target4;
float2 vVelocityUV : SV_TARGET5;
};
PS_OUT_OUTLINE PS_MAIN_OUTLINE(PS_IN_OUTLINE In)
@@ -684,6 +686,7 @@ PS_OUT_OUTLINE PS_MAIN_OUTLINE(PS_IN_OUTLINE In)
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
float3 vToView = normalize(g_vCamPosition.xyz - In.vWorldPos.xyz);
@@ -691,15 +694,17 @@ PS_OUT_OUTLINE PS_MAIN_OUTLINE(PS_IN_OUTLINE In)
float fNdotV = saturate(dot(vNormal, vToView));
float fRim = saturate((1.0f - fNdotV) * g_fOutLineScale);
fRim = pow(fRim, g_fOutLinePower);
Out.vOutLine = float4(g_vOutLineColor.rgb, fRim);
Out.vAlbedo = float4(g_vOutLineColor.rgb, fRim);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
AI_TEXTURE_TYPE_METALNESS, // 서페이스 파라미터
1.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
(float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 0.f);
Out.vSurface = float4(0.5f, 1.f, 1.f, 0.f);
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
return Out;
}