Merge pull request #578 from SpicyGangjeong/Develope

Follow
This commit is contained in:
hyunbin14
2025-12-28 11:52:12 +09:00
committed by GitHub
47 changed files with 497 additions and 217 deletions
@@ -1892,13 +1892,13 @@ PS_OUT PS_SpellLearnBooster(PS_IN In)
float4 tex3 = g_Texture3.Sample(DefaultSampler, In.vTexcoord);
Color = lerp(Color, tex3, tex3.a);
}
}
else if (g_iBoosterOn == 0 && g_iBoosterOff != 0)
{
float4 tex2 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
tex2.rgb *= float3(1.f, 0.f, 0.f);
Color = tex;
Color = tex;
Color = lerp(Color, tex2, tex2.a);
}
@@ -2259,23 +2259,21 @@ PS_OUT PS_Interaction_Npc(PS_IN In)
float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv);
Color = tex1;
if (g_iHover != 0)
{
float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
if (inside1)
{
float2 startUV = g_fImageUV.xy;
float2 endUV = g_fImageUV.zw;
float2 atlasUV = atlasUV = startUV + texlocal1 * (endUV - startUV);
float4 tex2 = g_Texture1.Sample(DefaultSampler, atlasUV);
Color = lerp(Color, tex2, tex2.a);
}
float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
if (inside1)
{
float2 startUV = g_fImageUV.xy;
float2 endUV = g_fImageUV.zw;
float2 atlasUV = atlasUV = startUV + texlocal1 * (endUV - startUV);
float4 tex2 = g_Texture1.Sample(DefaultSampler, atlasUV);
Color = lerp(Color, tex2, tex2.a);
}
Color.a *= Alpha;
@@ -170,6 +170,7 @@ call Update_Resources.bat
<ClInclude Include="..\Public\Ranrok_FireBall.h" />
<ClInclude Include="..\Public\CamPosition_AI.h" />
<ClInclude Include="..\public\Dialogue.h" />
<ClInclude Include="..\public\Dialogue_Data.h" />
<ClInclude Include="..\public\Dialogue_Font.h" />
<ClInclude Include="..\public\NPCInteraction.h" />
<ClInclude Include="..\public\PointLight.h" />
@@ -412,6 +413,7 @@ call Update_Resources.bat
<ClCompile Include="..\Private\Ranrok_FireBall.cpp" />
<ClCompile Include="..\Private\CamPosition_AI.cpp" />
<ClCompile Include="..\private\Dialogue.cpp" />
<ClCompile Include="..\private\Dialogue_Data.cpp" />
<ClCompile Include="..\private\Dialogue_Font.cpp" />
<ClCompile Include="..\private\NPCInteraction.cpp" />
<ClCompile Include="..\private\PointLight.cpp" />
@@ -745,6 +745,9 @@
</ClInclude>
<ClInclude Include="..\Public\CamPosition_AI.h">
<Filter>02.GameObjects\Cameras\CameraPosition\AI</Filter>
</ClInclude>
<ClInclude Include="..\public\Dialogue_Data.h">
<Filter>04.Mechanic\Dialogue\Dialogue_Data</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
@@ -1550,6 +1553,9 @@
</Filter>
<Filter Include="02.GameObjects\Cameras\CameraPosition\AI">
<UniqueIdentifier>{a24f4687-f540-44e5-ae47-fe176c4c9042}</UniqueIdentifier>
</Filter>
<Filter Include="04.Mechanic\Dialogue\Dialogue_Data">
<UniqueIdentifier>{b03591a7-a14e-425a-8a3f-2a6a054c884a}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
@@ -2243,6 +2249,9 @@
</ClCompile>
<ClCompile Include="..\Private\CamPosition_AI.cpp">
<Filter>02.GameObjects\Cameras\CameraPosition\AI</Filter>
</ClCompile>
<ClCompile Include="..\private\Dialogue_Data.cpp">
<Filter>04.Mechanic\Dialogue\Dialogue_Data</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
@@ -0,0 +1,102 @@
#include "pch.h"
#include "Dialogue_Data.h"
#include "GameObject.h"
#include "tinyxml2.h"
#include "InfoInstance.h"
CDialogue_Data::CDialogue_Data()
:m_pInfoInstance(CInfoInstance::GetInstance())
{
}
HRESULT CDialogue_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
{
Load_SpellInfo("../Bin/Resources/Data/UI/Dialogue/Dialogue.xml");
return S_OK;
}
void CDialogue_Data::Update(_float fTimeDelta)
{
}
HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath)
{
tinyxml2::XMLDocument doc;
if (doc.LoadFile(pFilePath) != tinyxml2::XML_SUCCESS)
return E_FAIL;
tinyxml2::XMLElement* pDialogueInfo = doc.FirstChildElement("DialogueInfo");
if (!pDialogueInfo) return E_FAIL;
tinyxml2::XMLElement* pDialogue = pDialogueInfo->FirstChildElement("Dialogue");
while (pDialogue)
{
NpcDialogue npc{};
pDialogue->QueryIntAttribute("NpcID", &npc.iNpcID);
tinyxml2::XMLElement* pLine = pDialogue->FirstChildElement("Line");
while (pLine)
{
DialogueInfo line{};
pLine->QueryIntAttribute("ID", &line.iLineID);
int type = 0;
pLine->QueryIntAttribute("Type", &type);
line.bType = (type == 1);
const char* text = pLine->Attribute("Text");
if (text) line.pText = CMyTools::ToWstring(text);
pLine->QueryIntAttribute("NextText", &line.NextTextID);
// 선택지 처리
tinyxml2::XMLElement* pChoice = pLine->FirstChildElement("Choice");
while (pChoice)
{
DialogueChoice choice{};
int choiceType = 0;
pChoice->QueryIntAttribute("Type", &choiceType);
choice.eType = choiceType;
const char* choiceText = pChoice->Attribute("Text");
if (choiceText) choice.pText = CMyTools::ToWstring(choiceText);
pChoice->QueryIntAttribute("NextText", &choice.NextTypeID);
line.ChoiceInfo.push_back(choice);
pChoice = pChoice->NextSiblingElement("Choice");
}
npc.Info.push_back(line);
pLine = pLine->NextSiblingElement("Line");
}
m_DialogueInfo.push_back(npc);
pDialogue = pDialogue->NextSiblingElement("Dialogue");
}
return S_OK;
}
const NPCDIALOGUEINFO& CDialogue_Data::Get_Info(_uint DialogueID) const
{
return m_DialogueInfo[DialogueID];
}
CDialogue_Data* CDialogue_Data::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CDialogue_Data* pInstance = new CDialogue_Data();
if (FAILED(pInstance->Initialize(pDevice, pContext)))
{
MSG_BOX("Failed to Created : CDialogue_Data");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CDialogue_Data::Free()
{
__super::Free();
}
@@ -368,7 +368,7 @@ HRESULT CInfoInstance::Initialize_Information(ID3D11Device* pDevice, ID3D11Devic
if (FAILED(Stat_FileLoad("../Bin/Resources/Data/Stat/Stat.xml"))) {
return E_FAIL;
}
if (FAILED(Stat_FileLoad("../Bin/Resources/Data/Stat/NpcStat.xml"))) {
if (FAILED(NPC_FileLoad("../Bin/Resources/Data/Stat/NpcStat.xml"))) {
return E_FAIL;
}
#pragma endregion
@@ -619,15 +619,19 @@ HRESULT CLevel_GamePlay::Ready_Layer_Item(const _wstring& strLayerTag)
HRESULT CLevel_GamePlay::Ready_Layer_RaceRing(const _wstring& strLayerTag)
{
#ifdef Bin
for (_uint i = 0; i < 10; ++i) {
CRaceRing::RACERING_DESC RaceRingDesc {};
CRaceRing::RACERING_DESC RaceRingDesc{};
RaceRingDesc.pBroomRaceManager = m_pBroomRaceManager;
RaceRingDesc.iIndex = i;
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRaceRing>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &RaceRingDesc))) {
return E_FAIL;
}
}
#endif // Bin
return S_OK;
}
@@ -101,9 +101,9 @@ HRESULT CLoding_Panel::Render()
if (FAILED(m_pVIBufferCom->Render())) {
return E_FAIL;
}
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("<- N M ->."), _float2(100.f, 750.f));
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("<- N M ->."), _float2(50.f, 850.f));
m_pGameInstance->Render_Text(TEXT("Font_size20"), ToolTip[m_iToolTip_Count].c_str(), _float2(100.f, 800.f));
m_pGameInstance->Render_Text(TEXT("Font_size20"), ToolTip[m_iToolTip_Count].c_str(), _float2(50.f, 900.f));
return S_OK;
}
@@ -82,11 +82,6 @@ void CNPCInteraction::NpcInfo(_wstring Name)
m_NpcName = Name;
}
void CNPCInteraction::Interaction(_bool bInteraction)
{
m_bInteraction = bInteraction;
}
void CNPCInteraction::Priority_Update(_float fTimeDelta)
{
@@ -169,15 +164,12 @@ HRESULT CNPCInteraction::Render()
m_NpcName.c_str(),
m_vFontPosition);
if (m_bInteraction == true)
{
m_pGameInstance->Perspective_Render_Text(
m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW),
m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ),
TEXT("Font_size15"),
TEXT("대화하기"),
m_vPosition);
}
m_pGameInstance->Perspective_Render_Text(
m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW),
m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ),
TEXT("Font_size15"),
TEXT("대화하기"),
m_vPosition);
return S_OK;
@@ -243,10 +235,6 @@ HRESULT CNPCInteraction::Bind_ShaderResources()
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bInteraction, sizeof(_bool))))
{
return E_FAIL;
}
return S_OK;
}
@@ -33,20 +33,6 @@ void CNPC_Ollivander::Update(_float fTimeDelta)
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
if (false == m_bHasInteracted)
{
if (true == InteractWithPlayer()) {
m_vEnteringTimer.x += fTimeDelta;
if (m_vEnteringTimer.x > m_vEnteringTimer.y) {
m_vEnteringTimer.x -= m_vEnteringTimer.y;
m_bHasInteracted = true;
// Active();
}
}
}
if (false == m_bEntered)
{
if (true == CastToPlayer()) {
@@ -54,7 +40,6 @@ void CNPC_Ollivander::Update(_float fTimeDelta)
if (m_vEnteringTimer.x > m_vEnteringTimer.y) {
m_vEnteringTimer.x -= m_vEnteringTimer.y;
m_bEntered = true;
m_bHasInteracted = false;
// Active();
}
#ifdef _DEBUG
@@ -73,7 +58,6 @@ void CNPC_Ollivander::Update(_float fTimeDelta)
if (m_vEnteringTimer.x > m_vEnteringTimer.y) {
m_vEnteringTimer.x -= m_vEnteringTimer.y;
m_bEntered = false;
m_bHasInteracted = false;
// DeActive(), Ready To Enter;
}
#ifdef _DEBUG
@@ -116,9 +100,8 @@ void CNPC_Ollivander::Update(_float fTimeDelta)
}
m_pNPCInteraction->Set_Visible(m_bEntered);
m_pNPCInteraction->Interaction(m_bHasInteracted);
if (m_bHasInteracted == true)
if (m_bEntered == true)
{
if (m_pGameInstance->Key_Down(DIK_F))
{
@@ -253,19 +236,6 @@ _bool CNPC_Ollivander::CastToPlayer()
return false;
}
_bool CNPC_Ollivander::InteractWithPlayer()
{
_vector vCurrentPos = m_pTransformCom->Get_State(STATE::POSITION);
_vector vTargetPos = {};
pair<CUnit*, CTransform*> pairAllyInfo = m_pInfoInstance->Get_NearestPlayerAlly(m_pTransformCom->Get_State(STATE::POSITION));
vTargetPos = pairAllyInfo.second->Get_State(STATE::POSITION);
_float fLength = XMVectorGetX(XMVector4Length(vTargetPos - vCurrentPos));
if (fLength < m_fInteractionDistance) {
return true;
}
return false;
}
HRESULT CNPC_Ollivander::Initialize_Prototype()
{
return S_OK;
@@ -337,15 +307,15 @@ HRESULT CNPC_Ollivander::Ready_Components(void* pArg)
m_pCharacter_Controller->SetGravity(true);
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("OLLIVENDER"), (CComponent**)&m_pStat))) {
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("OLLIVENDER"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNPCInteraction>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, nullptr, this, &m_pNPCInteraction))) {
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNPCInteraction>(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, &m_pNPCInteraction))) {
return E_FAIL;
}
m_pNPCInteraction->NpcInfo(m_pStat->Get_Stat().pNpc_Name);
m_pNPCInteraction->NpcInfo(m_pNpcStat->Get_Stat().pNpc_Name);
return S_OK;
}
@@ -379,7 +349,7 @@ void CNPC_Ollivander::Free()
__super::Free();
SAFE_RELEASE(m_pCharacter_Controller);
SAFE_RELEASE(m_pStat);
SAFE_RELEASE(m_pNpcStat);
if (nullptr != m_pInfoInstance) {
CInfoInstance* pInfo = m_pInfoInstance;
m_pInfoInstance = nullptr;
@@ -2706,7 +2706,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
Add_Event(AnimIndex,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::TRANSFORMATION_SIDE, Get_PartObject<CWand>()); },
0.f);
Info.pText = TEXT("봄바르다");
Info.pText = TEXT("베라베르토!");
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
break;
+4 -2
View File
@@ -160,9 +160,11 @@ void CRanrok::Late_Update(_float fTimeDelta)
if (!m_pFSM->IsEnable(FSMSTATE::TUCKED))
{
if (true == m_bLookAt) {
/* if (true == m_bLookAt) {
m_pTransformCom->LookAt_Horizontal_Lerp(XMLoadFloat4(&m_vTargetPos), fTimeDelta, 3.f);
}
}*/
m_pModelCom->Set_TargetPos((XMLoadFloat4(&m_vTargetPos)));
}
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
@@ -134,7 +134,7 @@ HRESULT CRanrok_FireBall::Pre_Setting(CGameObject* pObject, void* pArg)
XMStoreFloat4(&m_vStartPos, vStartPos);
/* 플레이어 위치 받기 */
CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
if (pPlayer == nullptr)
return E_FAIL;
@@ -289,25 +289,20 @@ void CRanrok::Behavior_FireBreathEnter()
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_WINDUP_A];
Add_Event(pairAnimInfo.first,
[&]() {
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_A];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)];
m_bLookAt = false;
}, 0.95f);
[&]() { pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_A];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)];
m_pModelCom->Play_HeadBone(true); },
0.95f);
Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first,
[&]() {
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_bLookAt = true;
}, 0.95f);
[&]() { pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); },
0.95f);
Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first,
[this]() {
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
}, 0.1f);
}
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
{
@@ -321,9 +316,25 @@ HRESULT CRanrok::Behavior_FireBreathExitCheck(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo = {};
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
if (m_pModelCom->Get_PlayHeadBone())
{
m_fHeadAimWeight += fTimeDelta;
if (m_fHeadAimWeight >= 1.f)
{
m_fHeadAimWeight = 1.f;
}
m_pModelCom->Set_HeadAimWeight(m_fHeadAimWeight);
}
if (iCurrAnimIndex == m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A].first)
{
m_fHeadAimWeight -= fTimeDelta*2.f;
m_pModelCom->Set_HeadAimWeight(m_fHeadAimWeight);
}
if (m_pModelCom->IsFinishedAnim())
{
m_pModelCom->Play_HeadBone(false);
if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR))
{
m_pFSM->Change_State(FSMSTATE::IDLEBREAK);
@@ -341,6 +352,7 @@ HRESULT CRanrok::Behavior_FireBreathExitCheck(_float fTimeDelta)
void CRanrok::Behavior_FireBreathExit()
{
m_pFSM->Disable_State(FSMSTATE::FIREBREATH);
m_fHeadAimWeight = 0.f;
}
void CRanrok::Behavior_FireSweepEnter()
@@ -355,8 +367,8 @@ void CRanrok::Behavior_FireSweepEnter()
[&]() { pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_A];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)];
m_bLookAt = false;
}, 0.95f);
m_pModelCom->Play_HeadBone(true); },
0.95f);
Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_COOLDOWN_A];
@@ -389,8 +401,25 @@ HRESULT CRanrok::Behavior_FireSweepExitCheck(_float fTimeDelta)
pair<_uint, _bool> pairAnimInfo = {};
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
if (m_pModelCom->Get_PlayHeadBone())
{
m_fHeadAimWeight += fTimeDelta;
if (m_fHeadAimWeight >= 1.f)
{
m_fHeadAimWeight = 1.f;
}
m_pModelCom->Set_HeadAimWeight(m_fHeadAimWeight);
}
if (iCurrAnimIndex == m_Animation[STATEANIM::FIRESWEEP_COOLDOWN_A].first)
{
m_fHeadAimWeight -= fTimeDelta * 2.f;
m_pModelCom->Set_HeadAimWeight(m_fHeadAimWeight);
}
if (m_pModelCom->IsFinishedAnim())
{
m_pModelCom->Play_HeadBone(false);
if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR))
{
m_pFSM->Change_State(FSMSTATE::IDLEBREAK);
@@ -408,6 +437,7 @@ HRESULT CRanrok::Behavior_FireSweepExitCheck(_float fTimeDelta)
void CRanrok::Behavior_FireSweepExit()
{
m_pFSM->Disable_State(FSMSTATE::FIRESWEEP);
m_fHeadAimWeight = 0.f;
}
void CRanrok::Behavior_FireBallEnter()
@@ -37,6 +37,28 @@ namespace Client
_float fVidio{};
}SPELL_INFO;
typedef struct DialogueChoice
{
_int eType = {false};
_wstring pText;
_int NextTypeID{};
}DIALOGUECHOICEINFO;
typedef struct DialogueInfo
{
_int iLineID{};
_bool bType = {false};
_wstring pText;
_int NextTextID{};
vector<DIALOGUECHOICEINFO> ChoiceInfo;
}CURRENTDIALOGUEINFO;
typedef struct NpcDialogue
{
_int iNpcID{};
vector<CURRENTDIALOGUEINFO> Info;
}NPCDIALOGUEINFO;
typedef struct tagLockOnInfo {
CUnit* pUnit = { nullptr };
class CMapElement_Interactable* pInteractive = { nullptr };
@@ -0,0 +1,45 @@
#pragma once
#include "Client_Define.h"
#include "Base.h"
NS_BEGIN(Engine)
class CGameInstance;
class CUIObject;
NS_END
NS_BEGIN(Client)
class CDialogue_Data final : public CBase
{
public:
private:
CDialogue_Data();
~CDialogue_Data() = default;
public:
void Update(_float fTimeDelta);
public:
HRESULT Load_SpellInfo(const _char* pFilePath);
public:
const NPCDIALOGUEINFO& Get_Info(_uint DialogueID) const;
private:
CInfoInstance* m_pInfoInstance = { nullptr };
_int m_iDialogue_Count{};
vector<NPCDIALOGUEINFO> m_DialogueInfo;
private:
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
public:
static CDialogue_Data* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
};
NS_END
@@ -32,7 +32,6 @@ class CNPCInteraction final : public CGameObject
public:
void NpcInfo(_wstring Name);
void Interaction(_bool bInteraction);
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
@@ -41,8 +40,6 @@ class CNPCInteraction final : public CGameObject
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
_bool m_bInteraction = {false};
_vector m_vFontPosition{};
_vector m_vFontPosition1{};
@@ -32,21 +32,18 @@ class CNPC_Ollivander final : public CUnit
CUnit* m_pPlayerAllyUnit = { nullptr };
CNPC_Ollivander* m_pNPC_Ollivander = { nullptr };
class CNPCInteraction* m_pNPCInteraction = { nullptr };
class CNPCInteraction* m_pNPCInteraction = { nullptr };
CNPCStat* m_pStat = { nullptr };
_bool m_bEntered = { false };
_bool m_bHasInteracted = { false };
_float2 m_vEnteringTimer = { 0.f, 1.f };
_float m_fEncounterDistance = { 10.f };
_float m_fInteractionDistance = { 3.f };
CNPCStat* m_pNpcStat = { nullptr };
_bool m_bEntered = { false };
_float2 m_vEnteringTimer = { 0.f, 1.f };
_float m_fEncounterDistance = { 3.f };
protected:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
HRESULT Ready_Components(void* pArg);
HRESULT Bind_ShaderResources() override;
_bool CastToPlayer();
_bool InteractWithPlayer();
public:
static CNPC_Ollivander* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+1
View File
@@ -112,6 +112,7 @@ class CRanrok final : public CMonster
_float m_fAroundRadius = 40.f;
_float m_fAroundTime = {};
_float m_fRushTime = {};
_float m_fHeadAimWeight = {};
void Behavior_IdleEnter();
@@ -1,6 +1,11 @@
<Dialogue>
<Npc NpcName="Ollivander" NpcID="0" >
<Text ID="0" Size="0" NpcName="올리벤더:" Text="반갑네 친구 나는 올리벤더 라고 하네"></Text>
<Text ID="1" Size="0" NpcName="올리벤더:" Text="나는 여기서 지팡이를 팔고있어"></Text>
</Npc>
</Dialogue>
<DialogueInfo>
<Dialogue NpcID="0">
<Line ID="0000" Type="0" Text="반갑네 친구 나는 올리벤더 라고 하네" NextText="0001"> </Line>
<Line ID="0001" Type="0" Text="나는 여기서 지팡이를 팔고있어" NextText="0002"> </Line>
<Line ID="0002" Type="1" Text="뭐 필요한게 있나?" >
<Choice Type="1" Text="상점 이용하기" NextText="-1" />
<Choice Type="2" Text="퀘스트 확인하기" NextText="-1" />
<Choice Type="0" Text="다른일 하러가기" NextText="-1" />
</Line>
</Dialogue>
</DialogueInfo>
@@ -1,4 +1,4 @@
<StatInfo>
<OLLIVENDER Name="올리벤더" TAG="1" SizeX="256"/>
<OLLIVENDER ID="0" Name="올리벤더" TAG="1" SizeX="256"/>
</StatInfo>
@@ -1313,7 +1313,7 @@ technique11 DefaultTechnique
pass DebugPass // 0
{
SetRasterizerState(RS_Default);
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();
GeometryShader = NULL;
@@ -42,7 +42,12 @@ cbuffer AnimCB : register(b0)
float BlendRatio;
int RootBoneIndex;
float3 _pad0;
int PlayHeadBone;
int HeadBoneIndex;
float HeadAimWeight;
float3 TargetDir_Local;
float padding;
row_major float4x4 PreTransformMatrix;
float4 RootInitRot;
@@ -163,6 +168,37 @@ void DecomposeAffine_RowMajor(row_major float4x4 M, out float3 S, out float4 R,
R = QuatNormalize(q);
}
row_major float4x4 ApplyHeadAim(uint bone, row_major float4x4 M)
{
if (PlayHeadBone != 1)
return M;
if (bone != HeadBoneIndex)
return M;
if (HeadAimWeight <= 0.f)
return M;
float3 curFwd = normalize(float3(M._31, M._32, M._33));
float3 target = normalize(TargetDir_Local);
float d = dot(curFwd, target);
float3 axis = cross(curFwd, target);
float axisLen = length(axis);
if (axisLen <= EPS)
return M;
axis /= axisLen;
float angle = acos(saturate(d));
angle *= saturate(HeadAimWeight);
float4 qAim = float4(axis * sin(angle * 0.5f), cos(angle * 0.5f));
qAim = QuatNormalize(qAim);
row_major float4x4 AimM = MakeAffine(float3(1, 1, 1), qAim, float3(0, 0, 0));
return mul(AimM, M);
}
uint FindKeyIndexCur(uint start, uint count, float t)
{
@@ -274,55 +310,36 @@ void SampleLocalTRS_Prev(uint bone, float t, out float3 S, out float4 R, out flo
row_major float4x4 SampleBlendedLocal(uint bone)
{
if (PrevAnimIndex == -1)
float3 S;
float4 R;
float3 T;
if (PrevAnimIndex == -1 || CurrentAnimIndex == PrevAnimIndex)
{
float3 S;
float4 R;
float3 T;
SampleLocalTRS_Cur(bone, CurrentTime, S, R, T);
if (bone == RootBoneIndex)
{
T = 0;
R = RootInitRot;
}
return MakeAffine(S, R, T);
}
if (CurrentAnimIndex == PrevAnimIndex)
{
float3 S;
float4 R;
float3 T;
SampleLocalTRS_Cur(bone, CurrentTime, S, R, T);
if (bone == RootBoneIndex)
{
T = 0;
R = RootInitRot;
}
return MakeAffine(S, R, T);
row_major float4x4 M = MakeAffine(S, R, T);
return ApplyHeadAim(bone, M);
}
float br = saturate(BlendRatio);
float3 sA, sB, tA, tB;
float4 rA, rB;
float prevT = PrevTime;
if (BlendRatio < 1e-4f)
{
prevT = CurrentTime;
}
float prevT = (BlendRatio < 1e-4f) ? CurrentTime : PrevTime;
SampleLocalTRS_Prev(bone, prevT, sA, rA, tA);
SampleLocalTRS_Cur(bone, CurrentTime, sB, rB, tB);
float3 S = lerp(sA, sB, br);
float3 T = lerp(tA, tB, br);
float4 R = QuatSlerp(rA, rB, br);
S = lerp(sA, sB, br);
T = lerp(tA, tB, br);
R = QuatSlerp(rA, rB, br);
if (bone == RootBoneIndex)
{
@@ -330,9 +347,11 @@ row_major float4x4 SampleBlendedLocal(uint bone)
R = RootInitRot;
}
return MakeAffine(S, R, T);
row_major float4x4 M = MakeAffine(S, R, T);
return ApplyHeadAim(bone, M);
}
[numthreads(256, 1, 1)]
void CS_LOCAL(uint3 DTid : SV_DispatchThreadID)
{
@@ -24,7 +24,13 @@ cbuffer AnimCB : register(b0)
float BlendRatio;
int RootBoneIndex;
float3 _pad0;
int PlayHeadBone;
int HeadBoneIndex;
float HeadAimWeight;
float3 TargetDir_Local;
float padding;
row_major float4x4 PreTransformMatrix;
float4 RootInitRot;
@@ -1892,13 +1892,13 @@ PS_OUT PS_SpellLearnBooster(PS_IN In)
float4 tex3 = g_Texture3.Sample(DefaultSampler, In.vTexcoord);
Color = lerp(Color, tex3, tex3.a);
}
}
else if (g_iBoosterOn == 0 && g_iBoosterOff != 0)
{
float4 tex2 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
tex2.rgb *= float3(1.f, 0.f, 0.f);
Color = tex;
Color = tex;
Color = lerp(Color, tex2, tex2.a);
}
@@ -2259,23 +2259,21 @@ PS_OUT PS_Interaction_Npc(PS_IN In)
float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv);
Color = tex1;
if (g_iHover != 0)
{
float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
if (inside1)
{
float2 startUV = g_fImageUV.xy;
float2 endUV = g_fImageUV.zw;
float2 atlasUV = atlasUV = startUV + texlocal1 * (endUV - startUV);
float4 tex2 = g_Texture1.Sample(DefaultSampler, atlasUV);
Color = lerp(Color, tex2, tex2.a);
}
float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1;
bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f);
if (inside1)
{
float2 startUV = g_fImageUV.xy;
float2 endUV = g_fImageUV.zw;
float2 atlasUV = atlasUV = startUV + texlocal1 * (endUV - startUV);
float4 tex2 = g_Texture1.Sample(DefaultSampler, atlasUV);
Color = lerp(Color, tex2, tex2.a);
}
Color.a *= Alpha;
Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

@@ -102,6 +102,7 @@ HRESULT CLevel_EffectViewer::Initialize()
//m_PlaneData.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
//m_pGameInstance->Add_Editor_Plane(m_PlaneData);
m_pGameInstance->Setting_Volumetirc(0.5f, 0.064f, 0.902f, 2.0f);
return S_OK;
}
@@ -155,7 +156,7 @@ HRESULT CLevel_EffectViewer::Ready_Layer_Light()
return E_FAIL;
}
_float4 vDiffuse = _float4(0.745f, 0.797f, 0.8f, 0.f);
_float4 vDiffuse = _float4(0.607f, 0.658f, 0.698f, 0.f);
_float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f);
_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
@@ -1313,7 +1313,7 @@ technique11 DefaultTechnique
pass DebugPass // 0
{
SetRasterizerState(RS_Default);
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();
GeometryShader = NULL;
@@ -42,7 +42,12 @@ cbuffer AnimCB : register(b0)
float BlendRatio;
int RootBoneIndex;
float3 _pad0;
int PlayHeadBone;
int HeadBoneIndex;
float HeadAimWeight;
float3 TargetDir_Local;
float padding;
row_major float4x4 PreTransformMatrix;
float4 RootInitRot;
@@ -163,6 +168,37 @@ void DecomposeAffine_RowMajor(row_major float4x4 M, out float3 S, out float4 R,
R = QuatNormalize(q);
}
row_major float4x4 ApplyHeadAim(uint bone, row_major float4x4 M)
{
if (PlayHeadBone != 1)
return M;
if (bone != HeadBoneIndex)
return M;
if (HeadAimWeight <= 0.f)
return M;
float3 curFwd = normalize(float3(M._31, M._32, M._33));
float3 target = normalize(TargetDir_Local);
float d = dot(curFwd, target);
float3 axis = cross(curFwd, target);
float axisLen = length(axis);
if (axisLen <= EPS)
return M;
axis /= axisLen;
float angle = acos(saturate(d));
angle *= saturate(HeadAimWeight);
float4 qAim = float4(axis * sin(angle * 0.5f), cos(angle * 0.5f));
qAim = QuatNormalize(qAim);
row_major float4x4 AimM = MakeAffine(float3(1, 1, 1), qAim, float3(0, 0, 0));
return mul(AimM, M);
}
uint FindKeyIndexCur(uint start, uint count, float t)
{
@@ -274,55 +310,36 @@ void SampleLocalTRS_Prev(uint bone, float t, out float3 S, out float4 R, out flo
row_major float4x4 SampleBlendedLocal(uint bone)
{
if (PrevAnimIndex == -1)
float3 S;
float4 R;
float3 T;
if (PrevAnimIndex == -1 || CurrentAnimIndex == PrevAnimIndex)
{
float3 S;
float4 R;
float3 T;
SampleLocalTRS_Cur(bone, CurrentTime, S, R, T);
if (bone == RootBoneIndex)
{
T = 0;
R = RootInitRot;
}
return MakeAffine(S, R, T);
}
if (CurrentAnimIndex == PrevAnimIndex)
{
float3 S;
float4 R;
float3 T;
SampleLocalTRS_Cur(bone, CurrentTime, S, R, T);
if (bone == RootBoneIndex)
{
T = 0;
R = RootInitRot;
}
return MakeAffine(S, R, T);
row_major float4x4 M = MakeAffine(S, R, T);
return ApplyHeadAim(bone, M);
}
float br = saturate(BlendRatio);
float3 sA, sB, tA, tB;
float4 rA, rB;
float prevT = PrevTime;
if (BlendRatio < 1e-4f)
{
prevT = CurrentTime;
}
float prevT = (BlendRatio < 1e-4f) ? CurrentTime : PrevTime;
SampleLocalTRS_Prev(bone, prevT, sA, rA, tA);
SampleLocalTRS_Cur(bone, CurrentTime, sB, rB, tB);
float3 S = lerp(sA, sB, br);
float3 T = lerp(tA, tB, br);
float4 R = QuatSlerp(rA, rB, br);
S = lerp(sA, sB, br);
T = lerp(tA, tB, br);
R = QuatSlerp(rA, rB, br);
if (bone == RootBoneIndex)
{
@@ -330,9 +347,11 @@ row_major float4x4 SampleBlendedLocal(uint bone)
R = RootInitRot;
}
return MakeAffine(S, R, T);
row_major float4x4 M = MakeAffine(S, R, T);
return ApplyHeadAim(bone, M);
}
[numthreads(256, 1, 1)]
void CS_LOCAL(uint3 DTid : SV_DispatchThreadID)
{
@@ -24,7 +24,13 @@ cbuffer AnimCB : register(b0)
float BlendRatio;
int RootBoneIndex;
float3 _pad0;
int PlayHeadBone;
int HeadBoneIndex;
float HeadAimWeight;
float3 TargetDir_Local;
float padding;
row_major float4x4 PreTransformMatrix;
float4 RootInitRot;
@@ -1296,6 +1296,11 @@ _float CGameInstance::FontSizeX(const _wstring& strFontTag, const _tchar* pText)
return m_pFont_Manager->FontSizeX(strFontTag, pText);
}
#pragma endregion
#pragma region VOLUMETRIC
ID3D11ShaderResourceView* CGameInstance::Get_VolumeSRV()
{
return m_pVolumetric->Get_VolumeSRV();
@@ -1306,8 +1311,12 @@ _float* CGameInstance::Get_DepthPackExponentPtr()
return m_pVolumetric->Get_DepthPackExponentPtr();
}
#pragma endregion
void CGameInstance::Setting_Volumetirc(_float fDensity, _float fLightIntensity, _float fAsymmetryParameter, _float fDepthPackExponent)
{
m_pVolumetric->Setting_Volumetirc(fDensity , fLightIntensity , fAsymmetryParameter, fDepthPackExponent);
}
#pragma endregion
void CGameInstance::Release_Engine()
{
SAFE_RELEASE(m_pThreadHolder);
+23
View File
@@ -1341,6 +1341,10 @@ void CModel::InItialize_BoneIndex()
{
m_iBoneIndex[ENUM_CLASS(BLEND_BONE::NECK)] = i;
}
if (m_Bones[i]->Compare_Name("head"))
{
m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HEAD)] = i;
}
}
}
@@ -1685,6 +1689,8 @@ void CModel::ComputeAnimation(_uint AnimIndex,_uint MeshIndex)
void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex)
{
D3D11_MAPPED_SUBRESOURCE ConstantSubResource = {};
auto* anim = m_Animations[AnimIndex];
@@ -1702,6 +1708,23 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex)
pDesc->PrevTime = m_Animations[m_iPreAnimIndex]->Get_CurrentTrackPosition();
pDesc->BlendRatio = m_fRatio;
pDesc->RootBoneIndex = m_iRootBoneIndex;
pDesc->PlayHeadBone = m_bHeadBone;
pDesc->HeadBoneIndex = m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HEAD)];
pDesc->HeadAimWeight = m_fHeadAimWeight;
if (m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HEAD)] != -1)
{
_vector dirWS = XMVector3Normalize(m_vTargetPos - m_pTransform->Get_State(STATE::POSITION));
_matrix worldInv = m_pTransform->Get_WorldMatrixInv();
_vector dirLocal =XMVector3Normalize(XMVector3TransformNormal(dirWS, worldInv));
XMStoreFloat3(&pDesc->TargetDir_Local, dirLocal);
}
else {
pDesc->TargetDir_Local = _float3(0.f, 0.f, 0.f);
}
pDesc->padding = 0.f;
pDesc->PreTransformMatrix = m_PreTransformMatrix;
pDesc->RootInitRot = m_vInitialRootRot;
m_pContext->Unmap(m_pConstantBuffer, 0);
+3 -2
View File
@@ -16,9 +16,10 @@ CNPCStat::CNPCStat(const CNPCStat& rhs)
HRESULT CNPCStat::Initialize_Prototype(tinyxml2::XMLNode* pChild)
{
auto pElement = pChild->ToElement();
pElement->QueryIntAttribute("ID", &m_NpcInfo.iID);
m_NpcInfo.pNpc_Name = CMyTools::ToWstring(pElement->Attribute("Name"));
pElement->QueryIntAttribute("OBJECTID", &m_NpcInfo.iNpcType);
pElement->QueryFloatAttribute("HP", &m_NpcInfo.fFontPos);
pElement->QueryIntAttribute("TAG", &m_NpcInfo.iNpcType);
pElement->QueryFloatAttribute("SizeX", &m_NpcInfo.fFontPos);
return S_OK;
}
@@ -142,6 +142,14 @@ HRESULT CVolumetric::Dispatch()
}
void CVolumetric::Setting_Volumetirc(_float fDensity, _float fLightIntensity, _float fAsymmetryParameter, _float fDepthPackExponent)
{
m_fDensity = fDensity;
m_fLightIntensity = fLightIntensity;
m_fAsymmetryParameter = fAsymmetryParameter;
m_fDepthPackExponent = fDepthPackExponent;
}
CVolumetric* CVolumetric::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CVolumetric* pInstance = new CVolumetric(pDevice, pContext);
+1 -1
View File
@@ -8,7 +8,7 @@ enum class COLLIDER { AABB, OBB, SPHERE, END };
enum class RENDER {PRIORITY, SHADOW_NEAR, NONBLEND, DECAL, BLUR, NONLIGHT, EFFECT ,BLEND, BLOOM, DISTORTION, BULR_MESH ,UI, OCCLUSION, SHADOW_MIDDLE, PRESHADOW, UI_OVERLAY ,END };
enum class RAY { LOCAL, WORLD, END };
enum class ACTOR { BOX, CAPSULE, SPHERE, PLANE, TRIANGLEMESH, HEIGHTFIELD, END };
enum class BLEND_BONE{SPINE,SHOULDER_L,SHOULDER_R,NECK,SHOULDER_NECK_L, SHOULDER_NECK_R,END};
enum class BLEND_BONE{SPINE,SHOULDER_L,SHOULDER_R,NECK,SHOULDER_NECK_L, SHOULDER_NECK_R,HEAD,END};
enum class STAT { NAME, CURRENTHP, MAXHP, TARGETHP, MELEE, MAGIC, DEFENSE, SPEED, AGILITY, LEVEL, EXPERIENCE, MAX_EXPERIENCE, GOLD, END };
//enum class CONDITION { POISON, HPREGENERATION, PANIC, GRAP, END };
enum class SHADOW : _ubyte {
+3 -2
View File
@@ -267,8 +267,9 @@ class ENGINE_DLL CGameInstance final : public CBase
#pragma endregion
#pragma region VOLUMETRIC
ID3D11ShaderResourceView* Get_VolumeSRV();
_float* Get_DepthPackExponentPtr();
ID3D11ShaderResourceView* Get_VolumeSRV();
_float* Get_DepthPackExponentPtr();
void Setting_Volumetirc(_float fDensity, _float fLightIntensity, _float fAsymmetryParameter, _float fDepthPackExponent);
#pragma endregion
+26 -12
View File
@@ -20,7 +20,12 @@ class ENGINE_DLL CModel final : public CComponent
_float BlendRatio;
_int RootBoneIndex;
_float3 padding;
_int PlayHeadBone;
_int HeadBoneIndex;
_float HeadAimWeight;
_float3 TargetDir_Local;
_float padding;
_float4x4 PreTransformMatrix;
_float4 RootInitRot;
@@ -43,6 +48,11 @@ class ENGINE_DLL CModel final : public CComponent
virtual HRESULT Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation);
MODEL Get_Type() { return m_eType; }
void Set_Temp(_bool Temp) { m_bTemp = Temp; }
void Set_TargetPos(_vector vTargetPos) { m_vTargetPos = vTargetPos; }
void Set_HeadPos(_vector vHeadPos) { m_vHeadPos = vHeadPos; }
void Play_HeadBone(_bool bPlay) { m_bHeadBone = bPlay; }
void Set_HeadAimWeight(_float fWeight) { m_fHeadAimWeight = fWeight; }
_bool Get_PlayHeadBone() const { return m_bHeadBone; }
#pragma endregion
#pragma region Animation
_bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr); // 애니메이션에 델타타임을 넣어줌
@@ -164,7 +174,7 @@ class ENGINE_DLL CModel final : public CComponent
_float m_fRatio = {};
_int m_iCurrSecondAnimIndex = { -1 };
_int m_iBoneIndex[ENUM_CLASS(BLEND_BONE::END)] = { -1,-1,-1,-1,-1,-1 };
_int m_iBoneIndex[ENUM_CLASS(BLEND_BONE::END)] = { -1,-1,-1,-1,-1,-1,-1 };
vector<vector<_uint>> m_BoneMask;
vector<_bool> m_CPUBoneMask;
@@ -185,16 +195,20 @@ class ENGINE_DLL CModel final : public CComponent
_int m_iIndexAnimPlayableMesh = { -1 };
_vector m_vector[3];
vector<_uint> m_iBoneMask;
_bool m_bInitialRootPos = { false };
_bool m_bInitialRootRotSaved = { false };
_bool m_bLoopRestarted = false;
_bool m_bIsSecondFinishedAnim = { false };
_bool m_bIsSecondLoop = { false };
_bool m_bRatio = { false };
_bool m_bRootBone = {};
_float4x4 m_RootMatrix = {};
_bool m_bTemp = {false};
vector<_uint> m_iBoneMask;
_bool m_bInitialRootPos = { false };
_bool m_bInitialRootRotSaved = { false };
_bool m_bLoopRestarted = false;
_bool m_bIsSecondFinishedAnim = { false };
_bool m_bIsSecondLoop = { false };
_bool m_bRatio = { false };
_bool m_bRootBone = {};
_float4x4 m_RootMatrix = {};
_bool m_bTemp = {false};
_vector m_vTargetPos = XMVectorZero();
_vector m_vHeadPos = XMVectorZero();
_bool m_bHeadBone = { false };
_float m_fHeadAimWeight = { 0.f };
private:
+1
View File
@@ -8,6 +8,7 @@ class ENGINE_DLL CNPCStat final : public CComponent
{
typedef struct tagNpcInfo
{
_int iID{};
_wstring pNpc_Name;
_int iNpcType{};
_float fFontPos{};
@@ -47,6 +47,8 @@ class CVolumetric final : public CBase
ID3D11ShaderResourceView* Get_VolumeSRV() { return m_pAccVolumeSRV; }
_float* Get_DepthPackExponentPtr() { return &m_fDepthPackExponent; }
void Setting_Volumetirc(_float fDensity , _float fLightIntensity, _float fAsymmetryParameter , _float fDepthPackExponent);
private:
class CGameInstance* m_pGameInstance = { nullptr };
ID3D11Device* m_pDevice = { nullptr };