Compare commits
13
Commits
Develope
...
Port_NuriKim
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9f9509b99 | ||
|
|
f593a52f8d | ||
|
|
2f4a475699 | ||
|
|
713eb3e81f | ||
|
|
d7a276bb83 | ||
|
|
d23dfb722b | ||
|
|
8f47add992 | ||
|
|
782c0000ff | ||
|
|
1c5764a4ce | ||
|
|
f03d4e9a0a | ||
|
|
5f5b61ef53 | ||
|
|
94de3a4dfa | ||
|
|
a5941affee |
+1
-1
@@ -39,4 +39,4 @@ enc_temp_folder/
|
||||
Jusin154_Team3D/Client/Bin/Resources/
|
||||
|
||||
# Imgui 임시 파일
|
||||
imgui.ini
|
||||
imgui.ini
|
||||
|
||||
@@ -71,7 +71,6 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (FAILED(pGameInstance->Add_Timer(TEXT("Timer_PriorityUpdate")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -99,7 +98,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
|
||||
if (FAILED(pGameInstance->Add_Timer(TEXT("Timer_FrameCount")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
|
||||
_float fTimeAcc = { };
|
||||
@@ -124,26 +123,18 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
|
||||
|
||||
if (fTimeAcc >= 1.f / 60.f)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
pGameInstance->Compute_TimeDelta(TEXT("Timer_FrameCount"));
|
||||
#endif // _DEBUG
|
||||
|
||||
pGameInstance->Compute_TimeDelta(TEXT("Timer_60"));
|
||||
|
||||
#ifdef _DEBUG
|
||||
pMainApp->Update(1.f / 60.f);
|
||||
#endif // _DEBUG
|
||||
#ifndef _DEBUG
|
||||
_float fFrameTime = min(pGameInstance->Get_TimeDelta(TEXT("Timer_60")), fMaxTimer);
|
||||
pMainApp->Update(fFrameTime);
|
||||
#endif
|
||||
|
||||
pMainApp->Render();
|
||||
|
||||
fTimeAcc = 0.f;
|
||||
#ifdef _DEBUG
|
||||
pGameInstance->Compute_TimeDelta(TEXT("Timer_FrameCount"));
|
||||
pMainApp->Compute_FrameCount();
|
||||
#endif // _DEBUG
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
|
||||
|
||||
void CBroomRacerAI::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,14 +34,17 @@ void CBuildingContainer::Update(_float fTimeDelta)
|
||||
|
||||
void CBuildingContainer::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
const _float fDepthOcclusionThreshold = m_pGameInstance->Get_DepthOcclusionThreshold();
|
||||
|
||||
if (m_pGameInstance->IsIn_WorldFrustum(XMVectorSetW(XMLoadFloat3(&m_vExtentWorldPosition), 1.f), m_fRadius)) {
|
||||
if (m_fCamDepth > 300.f)
|
||||
if (m_fCamDepth > fDepthOcclusionThreshold)
|
||||
{
|
||||
if (m_pOcclusionQueryCom->isDraw())
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
else
|
||||
else {
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::OCCLUSION, this);
|
||||
|
||||
|
||||
@@ -17,11 +17,11 @@ CCamera_Model::CCamera_Model(const CCamera_Model& rhs)
|
||||
|
||||
void CCamera_Model::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
_float3 vCamPos = {};
|
||||
_float3 vCamMomentum = {};
|
||||
XMStoreFloat3(&vCamPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
XMStoreFloat3(&vCamMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
XMStoreFloat3(&vCamMomentum, m_pTransformCom->Get_CurrentVelocity());
|
||||
#ifdef _DEBUG
|
||||
GUI::Text("Cam_Model Coord %.2f, %.2f, %.2f", vCamPos.x, vCamPos.y, vCamPos.z);
|
||||
GUI::Text("v %.2f, %.2f, %.2f", vCamPos.x, vCamPos.y, vCamPos.z);
|
||||
|
||||
@@ -36,7 +36,7 @@ HRESULT CEffectParts::Initialize(void* pArg)
|
||||
void CEffectParts::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_EffectInfo.isMotionBlur == true)
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
}
|
||||
|
||||
void CEffectParts::Update(_float fTimeDelta)
|
||||
|
||||
@@ -57,7 +57,7 @@ HRESULT CElf::Initialize(void* pArg)
|
||||
|
||||
void CElf::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
m_iEntered -= 1;
|
||||
if (m_iEntered < 0) {
|
||||
m_iEntered = 0;
|
||||
@@ -507,7 +507,7 @@ HRESULT CElf::Ready_Components(void* pArg)
|
||||
{ // DO
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::OLLIVANDER);
|
||||
Desc.bAutoOwnerTranslation = false;
|
||||
Desc.bAutoTranslation = false;
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_NPC_HITBOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -580,7 +580,7 @@ void CElf::Describe_Entity()
|
||||
}
|
||||
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentVelocity());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
|
||||
if (GUI::Button("Move To Player"))
|
||||
|
||||
@@ -680,7 +680,7 @@ void CGoblin::Describe_Entity()
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentVelocity());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
|
||||
_float3 Pos;
|
||||
|
||||
@@ -780,7 +780,7 @@ void CGoblin_Assassin::Describe_Entity()
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentVelocity());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
|
||||
_float3 Pos;
|
||||
|
||||
@@ -375,7 +375,7 @@ HRESULT CGoblin_Assassin::Behavior_DashExitCheck(_float fTimeDelta)
|
||||
_float4 RootMomentum = m_pModelCom->Get_RootBoneMomentum();
|
||||
_vector RootDelta = XMLoadFloat4(&RootMomentum);
|
||||
_float dashDist = XMVectorGetX(XMVector3Length(RootDelta));
|
||||
m_pTransformCom->AccumulateMomentum(XMLoadFloat4(&m_vDashDir) * dashDist * 1.5f);
|
||||
m_pTransformCom->AccumulateVelocity(XMLoadFloat4(&m_vDashDir) * dashDist * 1.5f);
|
||||
|
||||
if (fRatio >= 0.7f)
|
||||
{
|
||||
@@ -974,7 +974,7 @@ void CGoblin_Assassin::HitState_Behavior(_float fTimeDelta)
|
||||
_float ease = 1.f - (t * t);
|
||||
_vector Force = vPlayerLook * fTimeDelta * 6.f * ease;
|
||||
|
||||
m_pTransformCom->AccumulateMomentum(Force);
|
||||
m_pTransformCom->AccumulateVelocity(Force);
|
||||
pairAnimInfo = m_Animation[STATEANIM::TUMBLE];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.6f, false, 0.8f);
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ void CGoblin_BattleAxe::Priority_Update(_float fTimeDelta)
|
||||
XMStoreFloat4(&m_vStartGripPos, Get_WorldPostion());
|
||||
}
|
||||
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
_matrix socketMatrix = {};
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ HRESULT CGoblin_Dagger::Initialize(void* pArg)
|
||||
|
||||
void CGoblin_Dagger::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
XMStoreFloat4(&m_vStartPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
if (m_bAttach)
|
||||
|
||||
@@ -563,7 +563,7 @@ void CGoblin_Mage::Describe_Entity()
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentVelocity());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
|
||||
_float3 Pos;
|
||||
|
||||
@@ -859,7 +859,7 @@ void CGoblin_Mage::HitState_Behavior(_float fTimeDelta)
|
||||
_float ease = 1.f - (t * t);
|
||||
_vector Force = vPlayerLook * fTimeDelta * 6.f * ease;
|
||||
|
||||
m_pTransformCom->AccumulateMomentum(Force);
|
||||
m_pTransformCom->AccumulateVelocity(Force);
|
||||
pairAnimInfo = m_Animation[STATEANIM::TUMBLE];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.6f, false, 0.8f);
|
||||
}
|
||||
|
||||
@@ -313,7 +313,7 @@ HRESULT CGoblin::Behavior_SwingExitCheck(_float fTimeDelta)
|
||||
vDistance = XMVector4Normalize(vDistance);
|
||||
_float step = dist - fDesiredRange;
|
||||
|
||||
m_pTransformCom->AccumulateMomentum(vDistance * step * fTimeDelta * 2.f);
|
||||
m_pTransformCom->AccumulateVelocity(vDistance * step * fTimeDelta * 2.f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -938,7 +938,7 @@ void CGoblin::HitState_Behavior(_float fTimeDelta)
|
||||
_float ease = 1.f - (t * t);
|
||||
_vector Force = vPlayerLook * fTimeDelta * 6.f * ease;
|
||||
|
||||
m_pTransformCom->AccumulateMomentum(Force);
|
||||
m_pTransformCom->AccumulateVelocity(Force);
|
||||
pairAnimInfo = m_Animation[STATEANIM::TUMBLE];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.6f, false, 0.8f);
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ HRESULT CGoblin_Sword::Initialize(void* pArg)
|
||||
|
||||
void CGoblin_Sword::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
XMStoreFloat4(&m_vStartPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ HRESULT CHuman_Duelist::Initialize(void* pArg)
|
||||
|
||||
void CHuman_Duelist::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
@@ -641,7 +641,7 @@ void CHuman_Duelist::Describe_Entity()
|
||||
}
|
||||
m_pCharacter_Controller->Describe_Entity();
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentVelocity());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
_char label[256];
|
||||
for (auto& iter : m_KeyFrames)
|
||||
|
||||
@@ -31,7 +31,7 @@ void CInfoInstance::Update(_float fTimeDelta)
|
||||
m_pInteractiveInfo->Update(fTimeDelta);
|
||||
m_pEffectInfo->Update(fTimeDelta);
|
||||
m_pCutSceneInfo->Update(fTimeDelta);
|
||||
}
|
||||
}
|
||||
|
||||
void CInfoInstance::Change_Level()
|
||||
{
|
||||
@@ -41,7 +41,6 @@ void CInfoInstance::Change_Level()
|
||||
m_pSkillInfo->Change_Level();
|
||||
m_pInteractiveInfo->Change_Level();
|
||||
m_pEffectInfo->Change_Level();
|
||||
// UI_Event.clear();
|
||||
m_pCutSceneInfo->Clear_AllEvents();
|
||||
}
|
||||
|
||||
|
||||
@@ -166,40 +166,6 @@ HRESULT CLevel_GamePlay::Initialize()
|
||||
|
||||
void CLevel_GamePlay::Update(_float fTimeDelta)
|
||||
{
|
||||
_bool bStartCinematic = { true };
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
bStartCinematic = false;
|
||||
#elif 진우
|
||||
bStartCinematic = true;
|
||||
#elif Bin
|
||||
bStartCinematic = false;
|
||||
#elif gimch
|
||||
bStartCinematic = true;
|
||||
#elif 나
|
||||
bStartCinematic = false;
|
||||
#endif
|
||||
#endif // _DEBUG
|
||||
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
if (m_pGameInstance->Key_Down(DIK_F5)) {
|
||||
m_pGameInstance->Toggle_RenderCollider();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (bStartCinematic && false == m_bIntroCinematic) {
|
||||
m_bIntroCinematic = true;
|
||||
bStartCinematic = false;
|
||||
_string strCutSceneName = "CarriageIntro";
|
||||
m_pInfoInstance->Active_Event(strCutSceneName);
|
||||
}
|
||||
if (m_pGameInstance->Key_Pressing(DIK_0)) {
|
||||
if (m_pGameInstance->Key_Up(DIK_1))
|
||||
{
|
||||
m_pGameInstance->Set_LevelToChange();
|
||||
}
|
||||
}
|
||||
|
||||
m_pInfoInstance->Update(fTimeDelta);
|
||||
|
||||
if (true == m_pGameInstance->Check_LevelShouldChange()) {
|
||||
@@ -208,7 +174,9 @@ void CLevel_GamePlay::Update(_float fTimeDelta)
|
||||
UI_STATE eState = UI_STATE::LEVELCHANGE;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Canvas_Change"), &eState);
|
||||
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::FIELD)))) {
|
||||
if (FAILED(m_pGameInstance->Change_Level(
|
||||
CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::FIELD)
|
||||
))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,8 +68,8 @@ void CMainApp::Update(_float fTimeDelta)
|
||||
ImGui_ImplDX11_NewFrame();
|
||||
ImGui_ImplWin32_NewFrame();
|
||||
GUI::NewFrame();
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Present_TimeCost();
|
||||
#ifdef _DEBUG
|
||||
GUI::Begin("SYSTEM", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
|
||||
GUI::SliderFloat("fTimeMult", &g_fTimeMult, 0.01f, 4.f);
|
||||
|
||||
@@ -236,7 +236,7 @@ HRESULT CMapElement_Chest::Ready_Components(void* pArg)
|
||||
// RIGID_BODY
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::BOX);
|
||||
Desc.bAutoOwnerTranslation = true;
|
||||
Desc.bAutoTranslation = true;
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HIDDEN_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ HRESULT CMapElement_Door::Ready_Components(void* pArg)
|
||||
{ // RIGID_BODY
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::DOOR);
|
||||
Desc.bAutoOwnerTranslation = false;
|
||||
Desc.bAutoTranslation = false;
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_DOOR"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -89,8 +89,8 @@ void CMapObject_Render::Late_Update(_float fTimeDelta)
|
||||
m_iNumMeshe = m_pModelComs[m_iLodIndex]->Get_NumMeshes();
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
}
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
}
|
||||
|
||||
HRESULT CMapObject_Render::Render()
|
||||
|
||||
@@ -34,7 +34,7 @@ HRESULT CMonster::Initialize(void* pArg)
|
||||
|
||||
void CMonster::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ HRESULT CNPC_EleazarFig::Initialize(void* pArg)
|
||||
|
||||
void CNPC_EleazarFig::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
m_iEntered -= 1;
|
||||
if (m_iEntered < 0) {
|
||||
m_iEntered = 0;
|
||||
@@ -304,7 +304,7 @@ HRESULT CNPC_EleazarFig::Ready_Components(void* pArg)
|
||||
{ // DO
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::ELEAZARFIG);
|
||||
Desc.bAutoOwnerTranslation = false;
|
||||
Desc.bAutoTranslation = false;
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_NPC_HITBOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ CNPC_Ollivander::CNPC_Ollivander(const CNPC_Ollivander& Prototype)
|
||||
|
||||
void CNPC_Ollivander::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
m_iEntered -= 1;
|
||||
if (m_iEntered < 0) {
|
||||
m_iEntered = 0;
|
||||
@@ -314,7 +314,7 @@ HRESULT CNPC_Ollivander::Ready_Components(void* pArg)
|
||||
{ // DO
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::OLLIVANDER);
|
||||
Desc.bAutoOwnerTranslation = false;
|
||||
Desc.bAutoTranslation = false;
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_NPC_HITBOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -33,12 +33,12 @@ HRESULT CPhysXEffectHitBox::Initialize(void* pArg)
|
||||
|
||||
void CPhysXEffectHitBox::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
}
|
||||
|
||||
void CPhysXEffectHitBox::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->AccumulateMomentum(XMLoadFloat3(&m_vDeltaPos));
|
||||
m_pTransformCom->AccumulateVelocity(XMLoadFloat3(&m_vDeltaPos));
|
||||
}
|
||||
|
||||
void CPhysXEffectHitBox::Late_Update(_float fTimeDelta)
|
||||
@@ -49,6 +49,7 @@ void CPhysXEffectHitBox::Late_Update(_float fTimeDelta)
|
||||
if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
|
||||
}
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
}
|
||||
|
||||
HRESULT CPhysXEffectHitBox::Render()
|
||||
|
||||
@@ -141,7 +141,7 @@ void CPlayer::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
ReLockOnTarget();
|
||||
SetGravity();
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
@@ -576,7 +576,7 @@ void CPlayer::Trigger(CTimeSocket& Socket)
|
||||
m_pTransformCom->Set_State(STATE::POSITION, vNewPos);
|
||||
m_pCharacter_Controller->Set_Position(vNewPos);
|
||||
m_pTransformCom->RotationQ(pContents->pxTransform.q);
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::TRANSLATION_LERP:
|
||||
{
|
||||
@@ -1196,7 +1196,7 @@ void CPlayer::Describe_Entity()
|
||||
m_pCharacter_Controller->Describe_Entity();
|
||||
GUI::Checkbox("Battle", &m_bDuel_ZOnlyMove);
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentVelocity());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
_char label[256];
|
||||
for (auto& iter : m_KeyFrames)
|
||||
|
||||
@@ -596,7 +596,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
}
|
||||
_vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
vLook = XMVector3Normalize(vLook);
|
||||
m_pTransformCom->AccumulateMomentum(vLook *fTimeDelta *0.8f);
|
||||
m_pTransformCom->AccumulateVelocity(vLook *fTimeDelta *0.8f);
|
||||
}
|
||||
else if (SUCCEEDED(InputMove())) {
|
||||
m_fMoveTime += fTimeDelta;
|
||||
|
||||
@@ -59,7 +59,7 @@ void CRandomNpc::Priority_Update(_float fTimeDelta)
|
||||
if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) {
|
||||
return;
|
||||
}
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
m_iEntered -= 1;
|
||||
if (m_iEntered < 0) {
|
||||
m_iEntered = 0;
|
||||
@@ -448,7 +448,7 @@ HRESULT CRandomNpc::Ready_Components(void* pArg)
|
||||
{ // DO
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::OLLIVANDER);
|
||||
Desc.bAutoOwnerTranslation = false;
|
||||
Desc.bAutoTranslation = false;
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_NPC_HITBOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -787,7 +787,7 @@ HRESULT CRanrok::Ready_SubParts()
|
||||
m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::TAIL2)] = m_pTail2_BoneMat = m_pModelCom->Get_BoneMatrixPtr("tail_12");
|
||||
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.bAutoOwnerTranslation = false;
|
||||
Desc.bAutoTranslation = false;
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::RANROK_BODY);
|
||||
for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROK_BODY"), (CComponent**)&m_pTargetableDO[i], &Desc))) {
|
||||
|
||||
@@ -803,7 +803,7 @@ HRESULT CRanrok::Behavior_RushExitCheck(_float fTimeDelta)
|
||||
vLook = XMVector3Normalize(vLook);
|
||||
_vector vPos = m_pCharacter_Controller->Get_Position();
|
||||
_vector vNextPos = vPos + vLook * 10.f * fTimeDelta;
|
||||
m_pTransformCom->AccumulateMomentum(vLook * 10.f * fTimeDelta);
|
||||
m_pTransformCom->AccumulateVelocity(vLook * 10.f * fTimeDelta);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ HRESULT CTerrain::Initialize(void* pArg)
|
||||
|
||||
void CTerrain::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
}
|
||||
|
||||
void CTerrain::Update(_float fTimeDelta)
|
||||
|
||||
@@ -32,15 +32,15 @@ HRESULT CTriggerBox::TryScanArea(_float fTimeDelta)
|
||||
HRESULT CTriggerBox::Render()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_Batch->Begin();
|
||||
//m_Batch->Begin();
|
||||
|
||||
_matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
|
||||
_matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
|
||||
_vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0xff0f0f, CMyTools::Saturate(m_vScanTimer.x / m_vScanTimer.y + 0.1f));
|
||||
m_pSubShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), ViewMatrix, ProjMatrix, vColor, nullptr, true);
|
||||
//_matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
|
||||
//_matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
|
||||
//_vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0xff0f0f, CMyTools::Saturate(m_vScanTimer.x / m_vScanTimer.y + 0.1f));
|
||||
//m_pSubShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), ViewMatrix, ProjMatrix, vColor, nullptr, true);
|
||||
|
||||
m_Batch->End();
|
||||
m_bRender = false;
|
||||
//m_Batch->End();
|
||||
//m_bRender = false;
|
||||
#endif // _DEBUG
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -55,7 +55,7 @@ HRESULT CTroll_Weapon::Initialize(void* pArg)
|
||||
|
||||
void CTroll_Weapon::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
_matrix socketMatrix = {};
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ HRESULT CWand::Initialize(void* pArg)
|
||||
|
||||
void CWand::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
|
||||
BIN
Binary file not shown.
Binary file not shown.
@@ -137,22 +137,8 @@ float2 UV_Cutting(float2 vUV, float2 vUVCutting, uint iCurrentFrame)
|
||||
//}
|
||||
|
||||
|
||||
// (Kd F(Lambert)) + (Ks F(cook-torrance))
|
||||
|
||||
//float LambertDiffuse(float c)
|
||||
//{
|
||||
// return c / PI;
|
||||
//}
|
||||
|
||||
// F(cook-torrance)
|
||||
// DFG / (4 (Wo dot N) (Wi dot N))
|
||||
|
||||
// D(distribution, NormalDistribution function), 표면의 거칠기에 영향을 받는 halfWay vector
|
||||
// G(Geometry, GeometryFunc), 에너지 보존법칙 적용
|
||||
// F(Fresnel-Fresnel equation), 표면 각도에 따른 반사율
|
||||
|
||||
// F->D
|
||||
float NDF_ggxtr(float3 vNormal, float3 vHalfWayVector, float fAlpha) // NormalDistributionGGXTR, (H, halfWay vector), (A, Roughness), (N, Normal)
|
||||
float NDF_ggxtr(float3 vNormal, float3 vHalfWayVector, float fAlpha)
|
||||
{
|
||||
float a2 = fAlpha * fAlpha;
|
||||
float NdotH = saturate(dot(vNormal, vHalfWayVector));
|
||||
@@ -166,28 +152,14 @@ float NDF_ggxtr(float3 vNormal, float3 vHalfWayVector, float fAlpha) // NormalDi
|
||||
}
|
||||
|
||||
// F->G
|
||||
// GschlickGGX(n, v, k)
|
||||
// k는 이하 두개 조명 조건에 따라 가변적임
|
||||
// Direct // Kdir -> ((a + 1) * (a + 1)) / 8 // direct lighting 추천
|
||||
// IBL Lighting // Kibl -> a * a / 2 // 이미지 기반 조명기법
|
||||
|
||||
float Geometry_SchlickGGX(float NdotV, float fK)
|
||||
float Geometry_SchlickGGX(float NdotV, float fk)
|
||||
{
|
||||
return NdotV / (NdotV * (1.0f - fK) + fK);
|
||||
return NdotV / (NdotV * (1.0f - fk) + fk);
|
||||
}
|
||||
|
||||
float Geometry_Smith(float3 vNormal, float3 vFromView, float3 vFromLight, float k)
|
||||
float Geometry_Smith(float3 vNormal, float NdotV, float NdotL, float fk)
|
||||
{
|
||||
// Geometry Obstruction
|
||||
// 철이 있는, 주로 튀어나온 장애물
|
||||
float NdotV = saturate(dot(vNormal, vFromView));
|
||||
|
||||
// Geometry Shadowing
|
||||
// 요가 있는, 주로 음푹 들어간 장애물 (그래서 셰도잉)
|
||||
float NdotL = saturate(dot(vNormal, vFromLight));
|
||||
|
||||
// 요철이 골고루 있다고 가정하고 적당히 섞음
|
||||
return Geometry_SchlickGGX(NdotV, k) * Geometry_SchlickGGX(NdotL, k);
|
||||
return Geometry_SchlickGGX(NdotV, fk) * Geometry_SchlickGGX(NdotL, fk);
|
||||
}
|
||||
|
||||
// F -> F
|
||||
@@ -217,16 +189,17 @@ PBR_LIGHT_OUT PBR_Lighting(
|
||||
return Out;
|
||||
}
|
||||
|
||||
float fAlpha = max(fRoughness * fRoughness, 0.04f);
|
||||
float k = ((fRoughness + 1.f) * (fRoughness + 1.f)) / 8.f;
|
||||
float r = max(fRoughness, 0.046);
|
||||
float fAlpha = r * r;
|
||||
float k = ((r + 1.f) * (r + 1.f)) / 8.f;
|
||||
|
||||
float D = NDF_ggxtr(vNormal, vHalfVector, fAlpha);
|
||||
float G = Geometry_Smith(vNormal, vToView, vToLight, k);
|
||||
float G = Geometry_Smith(vNormal, NdotV, NdotL, k);
|
||||
float3 F = Fresnel_Schlick(saturate(dot(vHalfVector, vToView)), vFO);
|
||||
|
||||
float3 vNumerator = D * G * F;
|
||||
float3 vNominator = D * G * F;
|
||||
float fDenominator = max(4.f * NdotL * NdotV, 1e-7);
|
||||
float3 specularBRDF = vNumerator / fDenominator;
|
||||
float3 specularBRDF = vNominator / fDenominator;
|
||||
|
||||
float3 kS = F;
|
||||
float3 kD = (1.f - kS) * (1.f -fMetallic);
|
||||
@@ -322,37 +295,28 @@ float3 DecodeNormalFromRG(Texture2D NormalMap, SamplerState Samp, float2 uv)
|
||||
return normalize(n);
|
||||
}
|
||||
|
||||
// BackGround ForeGround 합은 1
|
||||
float2 ComputeDepthWeights(float fCenterDepth, float fSampleDepth, float fDepthScale)
|
||||
{
|
||||
float delta = fSampleDepth - fCenterDepth;
|
||||
|
||||
// backgroundWeight: sample이 더 멀수록 증가
|
||||
float backgroundWeight = saturate(0.5f + fDepthScale * delta);
|
||||
float foregroundWeight = 1.0f - backgroundWeight;
|
||||
float fBackgroundWeight = saturate(0.5f + fDepthScale * delta);
|
||||
float fForegroundWeight = 1.0f - fBackgroundWeight;
|
||||
|
||||
return float2(backgroundWeight, foregroundWeight);
|
||||
return float2(fBackgroundWeight, fForegroundWeight);
|
||||
}
|
||||
float ComputeSpreadWeight(float fOffsetLength, float fSpreadLength, float fPixelToSampleUnitsScale)
|
||||
float ComputeSpreadWeight(float fStepOffset, float fSpreadLength, float fVelocityScale)
|
||||
{
|
||||
return saturate(fPixelToSampleUnitsScale * fSpreadLength - fOffsetLength + 1.f);
|
||||
return saturate(fVelocityScale * fSpreadLength - fStepOffset + 1.f);
|
||||
}
|
||||
// fCenterDepth : 현재 중심 픽셀의 깊이
|
||||
// fSampleDepth : 샘플 픽셀의 깊이
|
||||
// fOffsetLength : 중심에서 샘플까지의 거리
|
||||
// fCenterSpreadLength : 중심 픽셀의 블러 반경
|
||||
// fSampleSpreadLength : 샘플 픽셀의 블러 반경
|
||||
// fPixelToSampleUnitsScale : spread/offset 단위
|
||||
// fDepthScale : 깊이 차이에 얼마나 민감하게 전경/배경을 나눌지
|
||||
float SampleWeight(float fCenterDepth, float fSampleDepth, float fOffsetLength, float fCenterSpreadLength,
|
||||
float fSampleSpreadLength, float fPixelToSampleUnitsScale, float fDepthScale)
|
||||
float SampleWeight(float fCenterDepth, float fSampleDepth, float fStepOffset, float fCenterSpreadLength,
|
||||
float fSampleSpreadLength, float fVelocityScale, float fDepthScale)
|
||||
{
|
||||
float2 vDepthCompare = ComputeDepthWeights(fCenterDepth, fSampleDepth, fDepthScale);
|
||||
|
||||
float fSpreadCenter = ComputeSpreadWeight(fOffsetLength, fCenterSpreadLength, fPixelToSampleUnitsScale);
|
||||
float fSpreadSample = ComputeSpreadWeight(fOffsetLength, fSampleSpreadLength, fPixelToSampleUnitsScale);
|
||||
float fCenter = ComputeSpreadWeight(fStepOffset, fCenterSpreadLength, fVelocityScale);
|
||||
float fSample = ComputeSpreadWeight(fStepOffset, fSampleSpreadLength, fVelocityScale);
|
||||
|
||||
return vDepthCompare.x * fSpreadCenter + vDepthCompare.y * fSpreadSample;
|
||||
return vDepthCompare.x * fCenter + vDepthCompare.y * fSample;
|
||||
}
|
||||
|
||||
float4x4 RotateX(float fAngle)
|
||||
@@ -598,24 +562,26 @@ float4 BlendDiffuse(float4 vDiffuseA, Texture2D DiffuseBlendTexture, float2 vTex
|
||||
float2 CalcVelocityUV(float4 vCurrentProjPos, float4 vPreviousProjPos, float fIntensity = 1.f)
|
||||
{
|
||||
float2 vReturnVelocity = float2(0.5f, 0.5f);
|
||||
if (vCurrentProjPos.w <= FLT_EPSILON5 || vPreviousProjPos.w <= FLT_EPSILON5)
|
||||
{
|
||||
if (vCurrentProjPos.w <= FLT_EPSILON5 || vPreviousProjPos.w <= FLT_EPSILON5) {
|
||||
return vReturnVelocity;
|
||||
}
|
||||
|
||||
{
|
||||
float2 currentNDC = vCurrentProjPos.xy / vCurrentProjPos.w;
|
||||
float2 previousNDC = vPreviousProjPos.xy / vPreviousProjPos.w;
|
||||
|
||||
float2 currentNDC = vCurrentProjPos.xy / vCurrentProjPos.w;
|
||||
float2 previousNDC = vPreviousProjPos.xy / vPreviousProjPos.w;
|
||||
currentNDC.y *= -1.f;
|
||||
previousNDC.y *= -1.f;
|
||||
|
||||
currentNDC.y *= -1.f;
|
||||
previousNDC.y *= -1.f;
|
||||
float2 velocityUV = (currentNDC - previousNDC) * 0.5f;
|
||||
velocityUV *= fIntensity;
|
||||
velocityUV = clamp(velocityUV, -1.0f, 1.0f);
|
||||
|
||||
// UV 델타
|
||||
float2 velocityUV = (currentNDC - previousNDC) * 0.5f;
|
||||
velocityUV *= fIntensity;
|
||||
velocityUV = clamp(velocityUV, -1.0f, 1.0f);
|
||||
|
||||
return velocityUV * 0.5f + 0.5f; // 0 속도 -> 0.5
|
||||
vReturnVelocity = velocityUV * 0.5f + 0.5f;
|
||||
}
|
||||
return vReturnVelocity;
|
||||
}
|
||||
|
||||
float2 CalcVelocityUV(float4 vCurrentProjPos, float4 vPreviousProjPos)
|
||||
{
|
||||
return CalcVelocityUV(vCurrentProjPos, vPreviousProjPos, 1.0f);
|
||||
|
||||
@@ -101,6 +101,7 @@ vector g_vFogColor;
|
||||
float g_fDepthPackExponent;
|
||||
|
||||
Texture3D g_VolumeTexture;
|
||||
float g_fCascadeBlendRatio = 0.02f;
|
||||
|
||||
float g_fWeights_32[32] =
|
||||
{
|
||||
@@ -224,8 +225,8 @@ struct PS_OUT_DEBUG_MOTIONBLUR
|
||||
};
|
||||
struct PS_OUT_LIGHT
|
||||
{
|
||||
vector vShade : SV_TARGET0;
|
||||
vector vSpecular : SV_TARGET1;
|
||||
float4 vShade : SV_TARGET0;
|
||||
float4 vSpecular : SV_TARGET1;
|
||||
};
|
||||
struct PS_OUT_FLT4_SINGLE
|
||||
{
|
||||
@@ -269,33 +270,34 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In)
|
||||
|
||||
float2 vCenterUV = In.vTexcoord;
|
||||
float2 vFullResolutionTexelSize = 1.f / g_vResolution;
|
||||
float fCenterDepth = g_DepthTexture.Sample(PointSampler, vCenterUV).y;
|
||||
float2 vCenterVelo = g_VelocityTexture.Sample(PointSampler, vCenterUV).xy * 2.f - 1.f; // 0~1 -> -1~+1
|
||||
float2 vCenterVeloPixel = vCenterVelo * g_vResolution.xy;
|
||||
bool bBorrowedVelocityFromTile = false;
|
||||
float fCenterDepth = g_DepthTexture.Sample(PointSampler, vCenterUV).y * g_fFar;
|
||||
float2 vCenterVelocity = g_VelocityTexture.Sample(PointSampler, vCenterUV).xy * 2.f - 1.f; // 0~1 -> -1~+1
|
||||
float2 vCenterVeloPixel = vCenterVelocity * g_vResolution.xy;
|
||||
bool bBorrowedVelocity = false;
|
||||
|
||||
float2 vBlurVelo = vCenterVelo;
|
||||
float2 vBlurVeloPixel = vCenterVeloPixel; // 프레임당 픽셀 이동량
|
||||
float2 vBlurVelocity = vCenterVelocity;
|
||||
float2 vBlurVelocityPixel = vCenterVelocity * g_vResolution.xy; // 프레임당 픽셀 이동량
|
||||
|
||||
float fVelocityEpsilon = 0.5f;
|
||||
|
||||
if (length(vBlurVeloPixel) < fVelocityEpsilon)
|
||||
if (length(vBlurVelocityPixel) < fVelocityEpsilon)
|
||||
{
|
||||
// 사실상 정지해 있던 픽셀이면 텐트벨로시티맵에서 빌려옴
|
||||
vBlurVelo = g_TileVelocityTexture.Sample(PointSampler, vCenterUV).xy * 2.f - 1.f;
|
||||
vBlurVeloPixel = vBlurVelo * g_vResolution.xy;
|
||||
bBorrowedVelocityFromTile = true;
|
||||
vBlurVelocity = g_TileVelocityTexture.Sample(PointSampler, vCenterUV).xy * 2.f - 1.f;
|
||||
vBlurVelocityPixel = vBlurVelocity * g_vResolution.xy;
|
||||
bBorrowedVelocity = true;
|
||||
}
|
||||
|
||||
if (length(vBlurVeloPixel) < fVelocityEpsilon) {
|
||||
if (length(vBlurVelocityPixel) < fVelocityEpsilon)
|
||||
{
|
||||
// 텐트벨로시티맵에서 빌려온 픽셀또한 정지해 있었으면 원본 그대로 반환
|
||||
Out.vColor = g_ColorTexture.Sample(ClampLinearSampler, vCenterUV);
|
||||
Out.vVelocity = float2(0.5f, 0.5f);
|
||||
return Out;
|
||||
}
|
||||
float fPixelSpeed = length(vBlurVeloPixel);
|
||||
float fPixelSpeed = length(vBlurVelocityPixel);
|
||||
|
||||
float2 vBlurDirPixel = (vBlurVeloPixel / max(fPixelSpeed, FLT_EPSILON5));
|
||||
float2 vBlurDirPixel = (vBlurVelocityPixel / max(fPixelSpeed, FLT_EPSILON5));
|
||||
|
||||
// 픽셀의 속도로 블러 반경을 가변적으로 돌림
|
||||
float fBlurRadiusPixel = clamp(fPixelSpeed * 0.4f , 0.f, g_fMBMaxBlurRadius);
|
||||
@@ -308,39 +310,40 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In)
|
||||
float fSamplePixelSpeed = fBlurRadiusPixel / max((float) iMaxRadius, 1.f);
|
||||
|
||||
// 샘플유닛의 크기
|
||||
float fScalePixelToSampleUnit = (float) iMaxRadius / max(fBlurRadiusPixel, FLT_EPSILON5);
|
||||
float fScaleDepth = 0.5f / max(g_fMBSampleBias, FLT_EPSILON5);
|
||||
float fVelocityScale = (float) iMaxRadius / max(fBlurRadiusPixel, FLT_EPSILON5);
|
||||
float fDepthScale = 0.5f / max(g_fMBSampleBias, FLT_EPSILON5);
|
||||
float4 vAccColorSum = float4(0.f, 0.f, 0.f, 0.f);
|
||||
float2 vAccVeloSum = float2(0.f, 0.f);
|
||||
float fAccWeight = 0.f;
|
||||
|
||||
// 센터의 스프레드 길이
|
||||
float2 vReferenceVelocityPixel = bBorrowedVelocityFromTile ? vBlurVeloPixel : vCenterVeloPixel; // 빌린놈이면 빌린 타일이 속도 레퍼런스, 아니면 센터가 속도 레퍼런스가 됨
|
||||
float fCenterSpreadLengthPixel = clamp(abs(dot(vReferenceVelocityPixel, vBlurDirPixel)), 0.f, fBlurRadiusPixel); // fSampleSpreadLengthPixel 랑 비교하게 될 짝꿍
|
||||
float2 vReferenceVelocityPixel = bBorrowedVelocity ? vBlurVelocityPixel : vCenterVeloPixel; // 빌린놈이면 빌린 타일이 속도 레퍼런스, 아니면 센터가 속도 레퍼런스가 됨
|
||||
float fCurrentVelocityVector = clamp(abs(dot(vReferenceVelocityPixel, vBlurDirPixel)), 0.f, fBlurRadiusPixel); // fSampleSpreadLengthPixel 랑 비교하게 될 짝꿍
|
||||
|
||||
[loop]
|
||||
for (int iInterval = -iMaxRadius; iInterval <= iMaxRadius; ++iInterval) {
|
||||
float fOffset = (float) abs(iInterval);
|
||||
float2 vOffsetPixel = vBlurDirPixel * ((float) iInterval * fSamplePixelSpeed);
|
||||
for (int iStep = -iMaxRadius; iStep <= iMaxRadius; ++iStep)
|
||||
{
|
||||
float fOffset = (float) abs(iStep);
|
||||
float2 vOffsetPixel = vBlurDirPixel * ((float) iStep * fSamplePixelSpeed);
|
||||
float2 vSamplingUV = vCenterUV + vOffsetPixel * vFullResolutionTexelSize;
|
||||
if (false == IsValidUV(vSamplingUV)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
float fSampledDepth = g_DepthTexture.Sample(PointSampler, vSamplingUV).y;
|
||||
float2 vSampledVelo = g_VelocityTexture.Sample(PointSampler, vSamplingUV).xy * 2.f - 1.f;
|
||||
float2 vSampledVeloPixel = vSampledVelo * g_vResolution.xy;
|
||||
float fSampleDepth = g_DepthTexture.Sample(PointSampler, vSamplingUV).y * g_fFar;
|
||||
float2 vSampledVelocity = g_VelocityTexture.Sample(PointSampler, vSamplingUV).xy * 2.f - 1.f;
|
||||
float2 vSampledVelocityPixel = vSampledVelocity * g_vResolution.xy;
|
||||
|
||||
// 샘플의 스프레드 길이
|
||||
float fBlurSampleAccurate = abs(dot(vSampledVeloPixel, vBlurDirPixel));
|
||||
float fSampleSpreadLengthPixel = clamp(fBlurSampleAccurate, 0.f, fBlurRadiusPixel);
|
||||
if (true == bBorrowedVelocityFromTile)
|
||||
float fSampleVelocityVector = clamp(abs(dot(vSampledVelocityPixel, vBlurDirPixel)), 0.f, fBlurRadiusPixel);
|
||||
if (true == bBorrowedVelocity)
|
||||
{
|
||||
fSampleSpreadLengthPixel = max(fSampleSpreadLengthPixel, fCenterSpreadLengthPixel);
|
||||
fSampleVelocityVector = max(fSampleVelocityVector, fCurrentVelocityVector);
|
||||
}
|
||||
|
||||
// 샘플과 센터의 (깊이테스트 + 스프레드테스트)
|
||||
float fWeightCalculated = SampleWeight(fCenterDepth, fSampledDepth, fOffset, fCenterSpreadLengthPixel, fSampleSpreadLengthPixel, fScalePixelToSampleUnit, fScaleDepth);
|
||||
float fWeightCalculated = SampleWeight(fCenterDepth, fSampleDepth, fOffset,
|
||||
fCurrentVelocityVector, fSampleVelocityVector, fVelocityScale, fDepthScale);
|
||||
|
||||
if (fWeightCalculated <= 0.f) {
|
||||
continue;
|
||||
@@ -348,7 +351,7 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In)
|
||||
|
||||
float4 vSampledColor = g_ColorTexture.Sample(ClampLinearSampler, vSamplingUV);
|
||||
vAccColorSum += vSampledColor * fWeightCalculated;
|
||||
vAccVeloSum += vSampledVelo * fWeightCalculated;
|
||||
vAccVeloSum += vSampledVelocity * fWeightCalculated;
|
||||
fAccWeight += fWeightCalculated;
|
||||
}
|
||||
float4 vBlurredColor = vAccColorSum / max(fAccWeight, FLT_EPSILON5);
|
||||
@@ -455,10 +458,10 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
|
||||
|
||||
float2 uv = In.vTexcoord;
|
||||
|
||||
float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb;
|
||||
float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1.f);
|
||||
float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv);
|
||||
float fSSAO_AmbientOcclusion = g_SSAOInputTexture.Sample(DefaultSampler, uv).r;
|
||||
float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb;
|
||||
float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1.f);
|
||||
float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv);
|
||||
float fSSAO_AmbientOcclusion = g_SSAOInputTexture.Sample(DefaultSampler, uv).r;
|
||||
|
||||
float fViewZ = vDepth.y * g_fFar;
|
||||
|
||||
@@ -480,8 +483,8 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
|
||||
float fAttenuation = 1.f;
|
||||
|
||||
float fCameraDistance = length(g_vCamPosition.xyz - vWorldPosition.xyz);
|
||||
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
|
||||
float3 vToLight = normalize(-g_vLightDir.xyz); // 픽셀에서 라이트로
|
||||
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀 -> 카메라
|
||||
float3 vToLight = normalize(-g_vLightDir.xyz); // 픽셀 -> 라이트
|
||||
|
||||
if (g_bUsePhongShader)
|
||||
{
|
||||
@@ -490,8 +493,15 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
|
||||
|
||||
if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
|
||||
{
|
||||
Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
|
||||
Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
|
||||
float NdotL = saturate(dot(vNormal, vToLight));
|
||||
float3 vHalf = normalize(vToView + vToLight);
|
||||
float NdotH = saturate(dot(vNormal, vHalf));
|
||||
|
||||
float3 vDiffuse = g_vLightDiffuse.rgb * vAlbedo * NdotL;
|
||||
float3 vAmbient = fSSAO_AmbientOcclusion * g_vLightAmbient.rgb * g_vMtrlAmbient.rgb * vAlbedo;
|
||||
|
||||
Out.vShade = float4(vDiffuse + vAmbient, 1.f);
|
||||
Out.vSpecular = float4((g_vLightSpecular.rgb * g_vMtrlSpecular.rgb) * pow(NdotH, 50.f), 0.f);
|
||||
Out.vSpecular.a = 0.f;
|
||||
return Out;
|
||||
}
|
||||
@@ -500,16 +510,15 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
|
||||
|
||||
{ // 수치조정 // 디렉셔널
|
||||
float fMinRoughness = 0.05f;
|
||||
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
|
||||
fRoughness = saturate(saturate(fCameraDistance * 0.01f) * 0.1f + fRoughness); // 거리기반 러프니스 ( 대충 멀수록 반짝반짝한건 더 뭉개져서 표현 )
|
||||
vF0 = min(vF0, 0.9f); // 메탈릭 상한선
|
||||
fRoughness = max(fRoughness, fMinRoughness);
|
||||
fRoughness = saturate(saturate(fCameraDistance * 0.01f) * 0.1f + fRoughness);
|
||||
vF0 = min(vF0, 0.9f);
|
||||
}
|
||||
|
||||
|
||||
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, g_fLightIntensity, fAttenuation, vF0);
|
||||
PBR_Out.vShade *= fTotalOcclusion;
|
||||
|
||||
float3 vAmbient = g_vLightAmbient.rgb * fTotalOcclusion * fAttenuation;
|
||||
float3 vAmbient = g_vLightAmbient.rgb * vAlbedo * fTotalOcclusion * fAttenuation;
|
||||
float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
|
||||
float3 vFinalSpecular = clamp(PBR_Out.vSpecular, 0.f, g_fLightSpecularMaximum) * g_vLightSpecular.rgb;
|
||||
|
||||
@@ -576,8 +585,12 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
|
||||
|
||||
if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
|
||||
{
|
||||
Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
|
||||
Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
|
||||
float NdotL = saturate(dot(vNormal, vToLight));
|
||||
float3 vHalf = normalize(vToView + vToLight);
|
||||
float NdotH = saturate(dot(vNormal, vHalf));
|
||||
|
||||
Out.vShade = float4(g_vLightDiffuse.rgb * vAlbedo * NdotL * fAttenuation, 1.f);
|
||||
Out.vSpecular = float4((g_vLightSpecular.rgb * g_vMtrlSpecular.rgb) * pow(NdotH, 50.f) * fAttenuation, 0.f);
|
||||
Out.vSpecular.a = 0.f;
|
||||
return Out;
|
||||
}
|
||||
@@ -595,11 +608,9 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
|
||||
|
||||
PBR_Out.vShade *= fTotalOcclusion;
|
||||
|
||||
float3 vAmbient = g_vLightAmbient.rgb * fTotalOcclusion * fAttenuation;
|
||||
float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
|
||||
float3 vFinalSpecular = clamp(PBR_Out.vSpecular, 0.f, g_fLightSpecularMaximum) * g_vLightSpecular.rgb;
|
||||
|
||||
Out.vShade = float4(vFinalDiffuse, 1.f);
|
||||
Out.vShade = float4(PBR_Out.vShade, 1.f);
|
||||
Out.vSpecular = float4(vFinalSpecular, 0.f);
|
||||
|
||||
return Out;
|
||||
@@ -677,15 +688,19 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
|
||||
|
||||
if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
|
||||
{
|
||||
Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
|
||||
Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
|
||||
float NdotL = saturate(dot(vNormal, vToLight));
|
||||
float3 vHalf = normalize(vToView + vToLight);
|
||||
float NdotH = saturate(dot(vNormal, vHalf));
|
||||
|
||||
Out.vShade = float4(g_vLightDiffuse.rgb * vAlbedo * NdotL * fAttenuation, 1.f);
|
||||
Out.vSpecular = float4((g_vLightSpecular.rgb * g_vMtrlSpecular.rgb) * pow(NdotH, 50.f) * fAttenuation, 0.f);
|
||||
Out.vSpecular.a = 0.f;
|
||||
return Out;
|
||||
}
|
||||
|
||||
float fTotalOcclusion = saturate(fOcclusion * fSSAO_AmbientOcclusion);
|
||||
|
||||
{ // 수치조정 // 점광원
|
||||
{ // 수치조정 // 스포트
|
||||
float fMinRoughness = 0.05f;
|
||||
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
|
||||
fRoughness = saturate(saturate(fCameraDistance * 0.01f) * 0.1f + fRoughness); // 거리기반 러프니스 ( 대충 멀수록 반짝반짝한건 더 뭉개져서 표현 )
|
||||
@@ -696,11 +711,9 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
|
||||
|
||||
PBR_Out.vShade *= fTotalOcclusion;
|
||||
|
||||
float3 vAmbient = g_vLightAmbient.rgb * fTotalOcclusion * fAttenuation;
|
||||
float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
|
||||
float3 vFinalSpecular = clamp(PBR_Out.vSpecular, 0.f, g_fLightSpecularMaximum) * g_vLightSpecular.rgb;
|
||||
|
||||
Out.vShade = float4(vFinalDiffuse, 1.f);
|
||||
Out.vShade = float4(PBR_Out.vShade, 1.f);
|
||||
Out.vSpecular = float4(vFinalSpecular, 0.f);
|
||||
|
||||
return Out;
|
||||
@@ -792,12 +805,12 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In)
|
||||
|
||||
vPosition = mul(vPosition, g_invmatProj);
|
||||
vPosition = mul(vPosition, g_invMatView);
|
||||
vPreShadowPosition = vPosition;
|
||||
|
||||
/* (로컬위치 * 월드) -> (로컬위치 * 월드 * 광원의 뷰 * 광원의 투영 ) */
|
||||
float4 vNearShadowPos = vPosition;
|
||||
float4 vMiddleShadowPos = vPosition;
|
||||
float4 vFarShadowPos = vPosition;
|
||||
vPreShadowPosition = vPosition;
|
||||
{
|
||||
vNearShadowPos = mul(vNearShadowPos, g_LightViewMatrix_NEAR);
|
||||
vNearShadowPos = mul(vNearShadowPos, g_LightProjMatrix_NEAR);
|
||||
@@ -811,42 +824,22 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In)
|
||||
/* 광원의 NDC에서 샘플링 */
|
||||
float fVisibility_Dynamic_Near = ShadowVisibility_hwPCF(g_ShadowNearTexture, vNearShadowPos, g_vNearShadowResolution, g_vShadowBias.x, g_vShadowRadiusTexel.x);
|
||||
float fVisibility_Dynamic_Middle = ShadowVisibility_hwPCF(g_ShadowMiddleTexture, vMiddleShadowPos, g_vMiddleShadowResolution, g_vShadowBias.y, g_vShadowRadiusTexel.y);
|
||||
float fVisibility_Static = ShadowVisibility_hwPCF(g_PreShadowTexture, vPreShadowPosition, g_vPreShadowResolution, g_vShadowBias.w, g_vShadowRadiusTexel.w);
|
||||
float fVisibilityStatic = ShadowVisibility_hwPCF(g_PreShadowTexture, vPreShadowPosition, g_vPreShadowResolution, g_vShadowBias.w, g_vShadowRadiusTexel.w);
|
||||
|
||||
////////////////////////////
|
||||
// 케스케이드
|
||||
float fDepthRatio = saturate(vDepthDesc.y);
|
||||
|
||||
// 경계 블렌딩 폭. 경계 섞는 비중
|
||||
float fShadowCascadeBlendWidthRatio = 0.02f; // 2% 섞음
|
||||
float fCascadeBlend_Front = smoothstep(
|
||||
g_fCascadeSplitRatioNear - g_fCascadeBlendRatio,
|
||||
g_fCascadeSplitRatioNear + g_fCascadeBlendRatio, fDepthRatio);
|
||||
|
||||
// 경계 주변 부드럽게 할 비중
|
||||
float fCascadeBlend_NearToMiddle = smoothstep(g_fCascadeSplitRatioNear - fShadowCascadeBlendWidthRatio,
|
||||
g_fCascadeSplitRatioNear + fShadowCascadeBlendWidthRatio, fDepthRatio);
|
||||
//float fCascadeBlend_MiddleToFar = smoothstep(g_fCascadeSplitRatioFar - fShadowCascadeBlendWidthRatio,
|
||||
//g_fCascadeSplitRatioFar + fShadowCascadeBlendWidthRatio, fDepthRatio);
|
||||
|
||||
// Near -> Middle
|
||||
float fVisibilityDynamic = lerp(fVisibility_Dynamic_Near, fVisibility_Dynamic_Middle, fCascadeBlend_NearToMiddle);
|
||||
float fStaticShadowBlendWeight = smoothstep(
|
||||
g_fCascadeSplitRatioFar - g_fCascadeBlendRatio,
|
||||
g_fCascadeSplitRatioFar + g_fCascadeBlendRatio, fDepthRatio);
|
||||
|
||||
// 1번째 방법
|
||||
//Dynamic - > Static
|
||||
//부드럽게 전환
|
||||
|
||||
float fVisibilityCombinedLogical = min(fVisibilityDynamic, fVisibility_Static);
|
||||
float fStaticShadowBlendStartRatio = g_fCascadeSplitRatioFar;
|
||||
float fStaticShadowBlendWidthRatio = 0.05f;
|
||||
float fStaticShadowBlendEndRatio = min(1.0f, fStaticShadowBlendStartRatio + fStaticShadowBlendWidthRatio);
|
||||
float fStaticShadowBlendWeight = smoothstep(fStaticShadowBlendStartRatio, fStaticShadowBlendEndRatio, fDepthRatio);
|
||||
float fVisibilityCombined = lerp(fVisibilityDynamic, fVisibilityCombinedLogical, fStaticShadowBlendWeight);
|
||||
float fVisibilityDynamic = lerp(fVisibility_Dynamic_Near, fVisibility_Dynamic_Middle, fCascadeBlend_Front);
|
||||
fVisibilityStatic = lerp(1.0f, fVisibilityStatic, fStaticShadowBlendWeight);
|
||||
|
||||
// 2번째 방법
|
||||
// Dynamic * Static 항상 최소곱
|
||||
//float fVisibilityCombined = saturate(fVisibilityDynamic * fVisibility_Static);
|
||||
|
||||
// 3번째 방법
|
||||
// Dynamic , Static 최소값만 취함
|
||||
//float fVisibilityCombined = min(fVisibilityDynamic, fVisibility_Static);
|
||||
float fVisibilityCombined = fVisibilityDynamic * fVisibilityStatic;
|
||||
|
||||
// 최소 밝기
|
||||
float fShadowMultiplier = lerp(g_fMinShadowBrightness, 1.0f, saturate(fVisibilityCombined));
|
||||
@@ -1324,42 +1317,43 @@ PS_OUT_SSAO_AMBIENT_OCCLUSION PS_SSAO_AMBIENT_OCCLUSION(PS_IN In)
|
||||
vCenterViewPosition /= vCenterViewPosition.w;
|
||||
}
|
||||
float3 vNormal = normalize(g_NormalTexture.Sample(PointSampler, uv).xyz * 2.f - 1.f);
|
||||
float3 vCenterViewNormal = mul(vNormal, (float3x3)g_ViewMatrix);
|
||||
float3 vCenterNormal = mul(vNormal, (float3x3) g_ViewMatrix);
|
||||
|
||||
float2 vNoiseScale = g_vResolution / 4.f;
|
||||
float3 vNoise = g_SSAONoiseTexture.Sample(SSAODataSampler, uv * vNoiseScale).xyz;
|
||||
|
||||
float3 vTangent = normalize(vNoise - vCenterViewNormal * dot(vNoise, vCenterViewNormal));
|
||||
float3 vBiNormal = cross(vCenterViewNormal, vTangent);
|
||||
float3x3 toViewTBNMatrix = float3x3(vTangent, vBiNormal, vCenterViewNormal);
|
||||
float3 vTangent = normalize(vNoise - vCenterNormal * dot(vNoise, vCenterNormal));
|
||||
float3 vBiNormal = cross(vCenterNormal, vTangent);
|
||||
float3x3 TBNMatrix = float3x3(vTangent, vBiNormal, vCenterNormal);
|
||||
|
||||
float fOcclusion = 0.f;
|
||||
[loop]
|
||||
for (uint i = 0; i < g_iKernelSize; ++i)
|
||||
{
|
||||
float3 vViewSamplePosVec = mul(g_SamplePos[i].xyz, toViewTBNMatrix); // TANSPACE -> VIEW
|
||||
float4 vViewSamplePos = vCenterViewPosition + float4(vViewSamplePosVec * g_fSSAORadius, 0.f);
|
||||
float4 vNDCSampleOffset = mul(vViewSamplePos, g_ProjMatrix);
|
||||
float3 vSampleVector= mul(g_SamplePos[i].xyz, TBNMatrix);
|
||||
float4 vSampleViewPosition = vCenterViewPosition + float4(vSampleVector * g_fSSAORadius, 0.f);
|
||||
float4 vNDCSampleOffset = mul(vSampleViewPosition, g_ProjMatrix);
|
||||
vNDCSampleOffset /= vNDCSampleOffset.w;
|
||||
|
||||
float2 sampleUV;
|
||||
sampleUV.x = vNDCSampleOffset.x * 0.5f + 0.5f;
|
||||
sampleUV.y = vNDCSampleOffset.y * -0.5f + 0.5f;
|
||||
float2 vSampleUV;
|
||||
vSampleUV.x = vNDCSampleOffset.x * 0.5f + 0.5f;
|
||||
vSampleUV.y = vNDCSampleOffset.y * -0.5f + 0.5f;
|
||||
|
||||
if (sampleUV.x < 0 || sampleUV.x > 1
|
||||
|| sampleUV.y < 0 || sampleUV.y > 1) {
|
||||
if (vSampleUV.x < 0 || vSampleUV.x > 1
|
||||
|| vSampleUV.y < 0 || vSampleUV.y > 1)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
float fRecordedSampleViewPosDepth = g_DepthTexture.Sample(PointSampler, sampleUV).y * g_fFar;
|
||||
float fIsOccluded = (fRecordedSampleViewPosDepth < vViewSamplePos.z - g_fSSAO_BIAS) ? 1.0f : 0.0f;
|
||||
float fRecordedDepth = g_DepthTexture.Sample(PointSampler, vSampleUV).y * g_fFar;
|
||||
float fIsOccluded = (fRecordedDepth < vSampleViewPosition.z - g_fSSAO_BIAS) ? 1.0f : 0.0f;
|
||||
|
||||
float fRangeCheck = smoothstep(0.f, 1.f, g_fSSAORadius / abs(vViewSamplePos.z - fRecordedSampleViewPosDepth));
|
||||
float fRangeCheck = smoothstep(0.f, 1.f, g_fSSAORadius / abs(vSampleViewPosition.z - fRecordedDepth));
|
||||
fIsOccluded *= fRangeCheck;
|
||||
fOcclusion += fIsOccluded;
|
||||
}
|
||||
fOcclusion = saturate(1.f - (fOcclusion * g_fSSAOStrength / g_iKernelSize) * fRatio);
|
||||
Out.fOcclusion = fOcclusion ;
|
||||
Out.fOcclusion = fOcclusion;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -40,12 +40,12 @@ void CCallBack_Playable_HitReport::onShapeHit(const PSX::PxControllerShapeHit& h
|
||||
{
|
||||
case 23: // 무거운데 올라갈 수 있는 벽
|
||||
if (m_pGameInstance->Key_Pressing(DIK_E)) {
|
||||
pOwnerActorData->pOwner->Get_Component<CTransform>()->BookMomentum(fLength * XMVectorSet(0.f, 1.5f, 0.f, 0.f));
|
||||
pOwnerActorData->pOwner->Get_Component<CTransform>()->BookVelocity(fLength * XMVectorSet(0.f, 1.5f, 0.f, 0.f));
|
||||
}
|
||||
else if (m_pGameInstance->Key_Pressing(DIK_R)) {
|
||||
pOwnerActorData->pOwner->Get_Component<CTransform>()->BookMomentum(fLength * XMVectorSet(0.f, -1.f, 0.f, 0.f));
|
||||
pOwnerActorData->pOwner->Get_Component<CTransform>()->BookVelocity(fLength * XMVectorSet(0.f, -1.f, 0.f, 0.f));
|
||||
}
|
||||
//pOwnerActorData->pOwner->Get_Component<CTransform>()->BookMomentum(XMVectorSet(0.f, 0.5f * GRAVITY, 0.f, 0.f));
|
||||
//pOwnerActorData->pOwner->Get_Component<CTransform>()->BookVelocity(XMVectorSet(0.f, 0.5f * GRAVITY, 0.f, 0.f));
|
||||
break;
|
||||
case 24: // 문짝
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ HRESULT CDummyObject::Initialize(void* pArg)
|
||||
|
||||
void CDummyObject::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
}
|
||||
|
||||
void CDummyObject::Update(_float fTimeDelta)
|
||||
|
||||
@@ -34,12 +34,12 @@ HRESULT CDummy_PhysXEffectHitBox::Initialize(void* pArg)
|
||||
|
||||
void CDummy_PhysXEffectHitBox::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
}
|
||||
|
||||
void CDummy_PhysXEffectHitBox::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->AccumulateMomentum(XMLoadFloat3(&m_vDeltaPos));
|
||||
m_pTransformCom->AccumulateVelocity(XMLoadFloat3(&m_vDeltaPos));
|
||||
}
|
||||
|
||||
void CDummy_PhysXEffectHitBox::Late_Update(_float fTimeDelta)
|
||||
|
||||
@@ -16,7 +16,7 @@ CDummy_PhysXMonster::CDummy_PhysXMonster(const CDummy_PhysXMonster& rhs) :
|
||||
|
||||
void CDummy_PhysXMonster::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position());
|
||||
}
|
||||
|
||||
@@ -26,16 +26,16 @@ void CDummy_PhysXMonster::Update(_float fTimeDelta)
|
||||
GUI::Text("%f %f", m_vStunTimer.x, m_vStunTimer.y);
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
if (m_pGameInstance->Key_Pressing(DIK_UPARROW)) {
|
||||
m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, 0.f, 1.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
|
||||
m_pTransformCom->AccumulateVelocity(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);
|
||||
m_pTransformCom->AccumulateVelocity(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);
|
||||
m_pTransformCom->AccumulateVelocity(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);
|
||||
m_pTransformCom->AccumulateVelocity(XMVectorSet(1.f, 0.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
|
||||
}
|
||||
m_pCharacter_Controller->Move(fTimeDelta);
|
||||
m_vStunTimer.x = 0.f;
|
||||
|
||||
@@ -21,30 +21,30 @@ CDummy_PhysXPlayable::CDummy_PhysXPlayable(const CDummy_PhysXPlayable& rhs):
|
||||
|
||||
void CDummy_PhysXPlayable::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
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);
|
||||
m_pTransformCom->AccumulateVelocity(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);
|
||||
m_pTransformCom->AccumulateVelocity(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);
|
||||
m_pTransformCom->AccumulateVelocity(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);
|
||||
m_pTransformCom->AccumulateVelocity(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);
|
||||
m_pTransformCom->AccumulateVelocity(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);
|
||||
m_pTransformCom->AccumulateVelocity(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());
|
||||
@@ -56,7 +56,7 @@ void CDummy_PhysXPlayable::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY * fTimeDelta, 0.f, 0.f));
|
||||
m_pTransformCom->AccumulateVelocity(XMVectorSet(0.f, -GRAVITY * fTimeDelta, 0.f, 0.f));
|
||||
m_pCharacter_Controller->Move(fTimeDelta);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ HRESULT CEditEffect::Initialize(void* pArg)
|
||||
void CEditEffect::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if(m_EffectInfo.isMotionBlur == true)
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
}
|
||||
|
||||
void CEditEffect::Update(_float fTimeDelta)
|
||||
|
||||
@@ -476,7 +476,7 @@ void CGoblin::Describe_Entity()
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentVelocity());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
|
||||
_float3 Pos;
|
||||
|
||||
@@ -210,7 +210,7 @@ HRESULT CGoblin::Behavior_SwingExitCheck(_float fTimeDelta)
|
||||
vDistance = XMVector4Normalize(vDistance);
|
||||
_float step = dist - fDesiredRange;
|
||||
|
||||
m_pTransformCom->AccumulateMomentum(vDistance * step * fTimeDelta * 1.5f);
|
||||
m_pTransformCom->AccumulateVelocity(vDistance * step * fTimeDelta * 1.5f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -60,14 +60,13 @@ void CLevel_Logo::Update(_float fTimeDelta)
|
||||
return;
|
||||
#endif // gimch
|
||||
#ifdef 기무리
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::OBJECT))))
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::EFFECT))))
|
||||
return;
|
||||
#endif // 기무리
|
||||
#ifdef 진우
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::EFFECT))))
|
||||
return;
|
||||
#endif // 진우
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLevel_Logo::Render()
|
||||
|
||||
@@ -75,15 +75,15 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
|
||||
#pragma region MONSTER
|
||||
|
||||
//futures.emplace_back(Deferred_ModelLoad(
|
||||
// MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
// TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model")
|
||||
//));
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model")
|
||||
));
|
||||
|
||||
//futures.emplace_back(Deferred_ModelLoad(
|
||||
// MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Mage/GoblinMage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
// TEXT("Prototype_Component_GoblinMage_Model")
|
||||
//));
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Mage/GoblinMage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_GoblinMage_Model")
|
||||
));
|
||||
|
||||
//futures.emplace_back(Deferred_ModelLoad(
|
||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
|
||||
@@ -34,7 +34,7 @@ HRESULT CMonster::Initialize(void* pArg)
|
||||
|
||||
void CMonster::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ void CPlayer::Priority_Update(_float fTimeDelta)
|
||||
ReLockOnTarget();
|
||||
if (m_pCharacter_Controller->Get_GravityAmount() > 0.f)
|
||||
SetGravity();
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->ResetVelocityVector();
|
||||
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
@@ -530,7 +530,7 @@ void CPlayer::Describe_Entity()
|
||||
}
|
||||
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentVelocity());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
_char label[256];
|
||||
for (auto& iter : m_KeyFrames)
|
||||
|
||||
@@ -137,22 +137,8 @@ float2 UV_Cutting(float2 vUV, float2 vUVCutting, uint iCurrentFrame)
|
||||
//}
|
||||
|
||||
|
||||
// (Kd F(Lambert)) + (Ks F(cook-torrance))
|
||||
|
||||
//float LambertDiffuse(float c)
|
||||
//{
|
||||
// return c / PI;
|
||||
//}
|
||||
|
||||
// F(cook-torrance)
|
||||
// DFG / (4 (Wo dot N) (Wi dot N))
|
||||
|
||||
// D(distribution, NormalDistribution function), 표면의 거칠기에 영향을 받는 halfWay vector
|
||||
// G(Geometry, GeometryFunc), 에너지 보존법칙 적용
|
||||
// F(Fresnel-Fresnel equation), 표면 각도에 따른 반사율
|
||||
|
||||
// F->D
|
||||
float NDF_ggxtr(float3 vNormal, float3 vHalfWayVector, float fAlpha) // NormalDistributionGGXTR, (H, halfWay vector), (A, Roughness), (N, Normal)
|
||||
float NDF_ggxtr(float3 vNormal, float3 vHalfWayVector, float fAlpha)
|
||||
{
|
||||
float a2 = fAlpha * fAlpha;
|
||||
float NdotH = saturate(dot(vNormal, vHalfWayVector));
|
||||
@@ -166,28 +152,14 @@ float NDF_ggxtr(float3 vNormal, float3 vHalfWayVector, float fAlpha) // NormalDi
|
||||
}
|
||||
|
||||
// F->G
|
||||
// GschlickGGX(n, v, k)
|
||||
// k는 이하 두개 조명 조건에 따라 가변적임
|
||||
// Direct // Kdir -> ((a + 1) * (a + 1)) / 8 // direct lighting 추천
|
||||
// IBL Lighting // Kibl -> a * a / 2 // 이미지 기반 조명기법
|
||||
|
||||
float Geometry_SchlickGGX(float NdotV, float fK)
|
||||
float Geometry_SchlickGGX(float NdotV, float fk)
|
||||
{
|
||||
return NdotV / (NdotV * (1.0f - fK) + fK);
|
||||
return NdotV / (NdotV * (1.0f - fk) + fk);
|
||||
}
|
||||
|
||||
float Geometry_Smith(float3 vNormal, float3 vFromView, float3 vFromLight, float k)
|
||||
float Geometry_Smith(float3 vNormal, float NdotV, float NdotL, float fk)
|
||||
{
|
||||
// Geometry Obstruction
|
||||
// 철이 있는, 주로 튀어나온 장애물
|
||||
float NdotV = saturate(dot(vNormal, vFromView));
|
||||
|
||||
// Geometry Shadowing
|
||||
// 요가 있는, 주로 음푹 들어간 장애물 (그래서 셰도잉)
|
||||
float NdotL = saturate(dot(vNormal, vFromLight));
|
||||
|
||||
// 요철이 골고루 있다고 가정하고 적당히 섞음
|
||||
return Geometry_SchlickGGX(NdotV, k) * Geometry_SchlickGGX(NdotL, k);
|
||||
return Geometry_SchlickGGX(NdotV, fk) * Geometry_SchlickGGX(NdotL, fk);
|
||||
}
|
||||
|
||||
// F -> F
|
||||
@@ -217,16 +189,17 @@ PBR_LIGHT_OUT PBR_Lighting(
|
||||
return Out;
|
||||
}
|
||||
|
||||
float fAlpha = max(fRoughness * fRoughness, 0.04f);
|
||||
float k = ((fRoughness + 1.f) * (fRoughness + 1.f)) / 8.f;
|
||||
float r = max(fRoughness, 0.046);
|
||||
float fAlpha = r * r;
|
||||
float k = ((r + 1.f) * (r + 1.f)) / 8.f;
|
||||
|
||||
float D = NDF_ggxtr(vNormal, vHalfVector, fAlpha);
|
||||
float G = Geometry_Smith(vNormal, vToView, vToLight, k);
|
||||
float G = Geometry_Smith(vNormal, NdotV, NdotL, k);
|
||||
float3 F = Fresnel_Schlick(saturate(dot(vHalfVector, vToView)), vFO);
|
||||
|
||||
float3 vNumerator = D * G * F;
|
||||
float3 vNominator = D * G * F;
|
||||
float fDenominator = max(4.f * NdotL * NdotV, 1e-7);
|
||||
float3 specularBRDF = vNumerator / fDenominator;
|
||||
float3 specularBRDF = vNominator / fDenominator;
|
||||
|
||||
float3 kS = F;
|
||||
float3 kD = (1.f - kS) * (1.f -fMetallic);
|
||||
@@ -322,37 +295,28 @@ float3 DecodeNormalFromRG(Texture2D NormalMap, SamplerState Samp, float2 uv)
|
||||
return normalize(n);
|
||||
}
|
||||
|
||||
// BackGround ForeGround 합은 1
|
||||
float2 ComputeDepthWeights(float fCenterDepth, float fSampleDepth, float fDepthScale)
|
||||
{
|
||||
float delta = fSampleDepth - fCenterDepth;
|
||||
|
||||
// backgroundWeight: sample이 더 멀수록 증가
|
||||
float fBackgroundWeight = saturate(0.5f + fDepthScale * delta);
|
||||
float fForegroundWeight = 1.0f - fBackgroundWeight;
|
||||
|
||||
return float2(fBackgroundWeight, fForegroundWeight);
|
||||
}
|
||||
float ComputeSpreadWeight(float fOffsetLength, float fSpreadLength, float fPixelToSampleUnitsScale)
|
||||
float ComputeSpreadWeight(float fStepOffset, float fSpreadLength, float fVelocityScale)
|
||||
{
|
||||
return saturate(fPixelToSampleUnitsScale * fSpreadLength - fOffsetLength + 1.f);
|
||||
return saturate(fVelocityScale * fSpreadLength - fStepOffset + 1.f);
|
||||
}
|
||||
// fCenterDepth : 현재 중심 픽셀의 깊이
|
||||
// fSampleDepth : 샘플 픽셀의 깊이
|
||||
// fOffsetLength : 중심에서 샘플까지의 거리
|
||||
// fCenterSpreadLength : 중심 픽셀의 블러 반경
|
||||
// fSampleSpreadLength : 샘플 픽셀의 블러 반경
|
||||
// fPixelToSampleUnitsScale : spread/offset 단위
|
||||
// fDepthScale : 깊이 차이에 얼마나 민감하게 전경/배경을 나눌지
|
||||
float SampleWeight(float fCenterDepth, float fSampleDepth, float fOffsetLength, float fCenterSpreadLength,
|
||||
float fSampleSpreadLength, float fPixelToSampleUnitsScale, float fDepthScale)
|
||||
float SampleWeight(float fCenterDepth, float fSampleDepth, float fStepOffset, float fCenterSpreadLength,
|
||||
float fSampleSpreadLength, float fVelocityScale, float fDepthScale)
|
||||
{
|
||||
float2 vDepthCompare = ComputeDepthWeights(fCenterDepth, fSampleDepth, fDepthScale);
|
||||
|
||||
float fSpreadCenter = ComputeSpreadWeight(fOffsetLength, fCenterSpreadLength, fPixelToSampleUnitsScale);
|
||||
float fSpreadSample = ComputeSpreadWeight(fOffsetLength, fSampleSpreadLength, fPixelToSampleUnitsScale);
|
||||
float fCenter = ComputeSpreadWeight(fStepOffset, fCenterSpreadLength, fVelocityScale);
|
||||
float fSample = ComputeSpreadWeight(fStepOffset, fSampleSpreadLength, fVelocityScale);
|
||||
|
||||
return vDepthCompare.x * fSpreadCenter + vDepthCompare.y * fSpreadSample;
|
||||
return vDepthCompare.x * fCenter + vDepthCompare.y * fSample;
|
||||
}
|
||||
|
||||
float4x4 RotateX(float fAngle)
|
||||
@@ -598,24 +562,26 @@ float4 BlendDiffuse(float4 vDiffuseA, Texture2D DiffuseBlendTexture, float2 vTex
|
||||
float2 CalcVelocityUV(float4 vCurrentProjPos, float4 vPreviousProjPos, float fIntensity = 1.f)
|
||||
{
|
||||
float2 vReturnVelocity = float2(0.5f, 0.5f);
|
||||
if (vCurrentProjPos.w <= FLT_EPSILON5 || vPreviousProjPos.w <= FLT_EPSILON5)
|
||||
{
|
||||
if (vCurrentProjPos.w <= FLT_EPSILON5 || vPreviousProjPos.w <= FLT_EPSILON5) {
|
||||
return vReturnVelocity;
|
||||
}
|
||||
|
||||
{
|
||||
float2 currentNDC = vCurrentProjPos.xy / vCurrentProjPos.w;
|
||||
float2 previousNDC = vPreviousProjPos.xy / vPreviousProjPos.w;
|
||||
|
||||
float2 currentNDC = vCurrentProjPos.xy / vCurrentProjPos.w;
|
||||
float2 previousNDC = vPreviousProjPos.xy / vPreviousProjPos.w;
|
||||
currentNDC.y *= -1.f;
|
||||
previousNDC.y *= -1.f;
|
||||
|
||||
currentNDC.y *= -1.f;
|
||||
previousNDC.y *= -1.f;
|
||||
float2 velocityUV = (currentNDC - previousNDC) * 0.5f;
|
||||
velocityUV *= fIntensity;
|
||||
velocityUV = clamp(velocityUV, -1.0f, 1.0f);
|
||||
|
||||
// UV 델타
|
||||
float2 velocityUV = (currentNDC - previousNDC) * 0.5f;
|
||||
velocityUV *= fIntensity;
|
||||
velocityUV = clamp(velocityUV, -1.0f, 1.0f);
|
||||
|
||||
return velocityUV * 0.5f + 0.5f; // 0 속도 -> 0.5
|
||||
vReturnVelocity = velocityUV * 0.5f + 0.5f;
|
||||
}
|
||||
return vReturnVelocity;
|
||||
}
|
||||
|
||||
float2 CalcVelocityUV(float4 vCurrentProjPos, float4 vPreviousProjPos)
|
||||
{
|
||||
return CalcVelocityUV(vCurrentProjPos, vPreviousProjPos, 1.0f);
|
||||
|
||||
@@ -101,6 +101,7 @@ vector g_vFogColor;
|
||||
float g_fDepthPackExponent;
|
||||
|
||||
Texture3D g_VolumeTexture;
|
||||
float g_fCascadeBlendRatio = 0.02f;
|
||||
|
||||
float g_fWeights_32[32] =
|
||||
{
|
||||
@@ -224,8 +225,8 @@ struct PS_OUT_DEBUG_MOTIONBLUR
|
||||
};
|
||||
struct PS_OUT_LIGHT
|
||||
{
|
||||
vector vShade : SV_TARGET0;
|
||||
vector vSpecular : SV_TARGET1;
|
||||
float4 vShade : SV_TARGET0;
|
||||
float4 vSpecular : SV_TARGET1;
|
||||
};
|
||||
struct PS_OUT_FLT4_SINGLE
|
||||
{
|
||||
@@ -269,33 +270,34 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In)
|
||||
|
||||
float2 vCenterUV = In.vTexcoord;
|
||||
float2 vFullResolutionTexelSize = 1.f / g_vResolution;
|
||||
float fCenterDepth = g_DepthTexture.Sample(PointSampler, vCenterUV).y;
|
||||
float2 vCenterVelo = g_VelocityTexture.Sample(PointSampler, vCenterUV).xy * 2.f - 1.f; // 0~1 -> -1~+1
|
||||
float2 vCenterVeloPixel = vCenterVelo * g_vResolution.xy;
|
||||
bool bBorrowedVelocityFromTile = false;
|
||||
float fCenterDepth = g_DepthTexture.Sample(PointSampler, vCenterUV).y * g_fFar;
|
||||
float2 vCenterVelocity = g_VelocityTexture.Sample(PointSampler, vCenterUV).xy * 2.f - 1.f; // 0~1 -> -1~+1
|
||||
float2 vCenterVeloPixel = vCenterVelocity * g_vResolution.xy;
|
||||
bool bBorrowedVelocity = false;
|
||||
|
||||
float2 vBlurVelo = vCenterVelo;
|
||||
float2 vBlurVeloPixel = vCenterVeloPixel; // 프레임당 픽셀 이동량
|
||||
float2 vBlurVelocity = vCenterVelocity;
|
||||
float2 vBlurVelocityPixel = vCenterVelocity * g_vResolution.xy; // 프레임당 픽셀 이동량
|
||||
|
||||
float fVelocityEpsilon = 0.5f;
|
||||
|
||||
if (length(vBlurVeloPixel) < fVelocityEpsilon)
|
||||
if (length(vBlurVelocityPixel) < fVelocityEpsilon)
|
||||
{
|
||||
// 사실상 정지해 있던 픽셀이면 텐트벨로시티맵에서 빌려옴
|
||||
vBlurVelo = g_TileVelocityTexture.Sample(PointSampler, vCenterUV).xy * 2.f - 1.f;
|
||||
vBlurVeloPixel = vBlurVelo * g_vResolution.xy;
|
||||
bBorrowedVelocityFromTile = true;
|
||||
vBlurVelocity = g_TileVelocityTexture.Sample(PointSampler, vCenterUV).xy * 2.f - 1.f;
|
||||
vBlurVelocityPixel = vBlurVelocity * g_vResolution.xy;
|
||||
bBorrowedVelocity = true;
|
||||
}
|
||||
|
||||
if (length(vBlurVeloPixel) < fVelocityEpsilon) {
|
||||
if (length(vBlurVelocityPixel) < fVelocityEpsilon)
|
||||
{
|
||||
// 텐트벨로시티맵에서 빌려온 픽셀또한 정지해 있었으면 원본 그대로 반환
|
||||
Out.vColor = g_ColorTexture.Sample(ClampLinearSampler, vCenterUV);
|
||||
Out.vVelocity = float2(0.5f, 0.5f);
|
||||
return Out;
|
||||
}
|
||||
float fPixelSpeed = length(vBlurVeloPixel);
|
||||
float fPixelSpeed = length(vBlurVelocityPixel);
|
||||
|
||||
float2 vBlurDirPixel = (vBlurVeloPixel / max(fPixelSpeed, FLT_EPSILON5));
|
||||
float2 vBlurDirPixel = (vBlurVelocityPixel / max(fPixelSpeed, FLT_EPSILON5));
|
||||
|
||||
// 픽셀의 속도로 블러 반경을 가변적으로 돌림
|
||||
float fBlurRadiusPixel = clamp(fPixelSpeed * 0.4f , 0.f, g_fMBMaxBlurRadius);
|
||||
@@ -308,39 +310,40 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In)
|
||||
float fSamplePixelSpeed = fBlurRadiusPixel / max((float) iMaxRadius, 1.f);
|
||||
|
||||
// 샘플유닛의 크기
|
||||
float fScalePixelToSampleUnit = (float) iMaxRadius / max(fBlurRadiusPixel, FLT_EPSILON5);
|
||||
float fScaleDepth = 0.5f / max(g_fMBSampleBias, FLT_EPSILON5);
|
||||
float fVelocityScale = (float) iMaxRadius / max(fBlurRadiusPixel, FLT_EPSILON5);
|
||||
float fDepthScale = 0.5f / max(g_fMBSampleBias, FLT_EPSILON5);
|
||||
float4 vAccColorSum = float4(0.f, 0.f, 0.f, 0.f);
|
||||
float2 vAccVeloSum = float2(0.f, 0.f);
|
||||
float fAccWeight = 0.f;
|
||||
|
||||
// 센터의 스프레드 길이
|
||||
float2 vReferenceVelocityPixel = bBorrowedVelocityFromTile ? vBlurVeloPixel : vCenterVeloPixel; // 빌린놈이면 빌린 타일이 속도 레퍼런스, 아니면 센터가 속도 레퍼런스가 됨
|
||||
float fCenterSpreadLengthPixel = clamp(abs(dot(vReferenceVelocityPixel, vBlurDirPixel)), 0.f, fBlurRadiusPixel); // fSampleSpreadLengthPixel 랑 비교하게 될 짝꿍
|
||||
float2 vReferenceVelocityPixel = bBorrowedVelocity ? vBlurVelocityPixel : vCenterVeloPixel; // 빌린놈이면 빌린 타일이 속도 레퍼런스, 아니면 센터가 속도 레퍼런스가 됨
|
||||
float fCurrentVelocityVector = clamp(abs(dot(vReferenceVelocityPixel, vBlurDirPixel)), 0.f, fBlurRadiusPixel); // fSampleSpreadLengthPixel 랑 비교하게 될 짝꿍
|
||||
|
||||
[loop]
|
||||
for (int iInterval = -iMaxRadius; iInterval <= iMaxRadius; ++iInterval) {
|
||||
float fOffset = (float) abs(iInterval);
|
||||
float2 vOffsetPixel = vBlurDirPixel * ((float) iInterval * fSamplePixelSpeed);
|
||||
for (int iStep = -iMaxRadius; iStep <= iMaxRadius; ++iStep)
|
||||
{
|
||||
float fOffset = (float) abs(iStep);
|
||||
float2 vOffsetPixel = vBlurDirPixel * ((float) iStep * fSamplePixelSpeed);
|
||||
float2 vSamplingUV = vCenterUV + vOffsetPixel * vFullResolutionTexelSize;
|
||||
if (false == IsValidUV(vSamplingUV)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
float fSampledDepth = g_DepthTexture.Sample(PointSampler, vSamplingUV).y;
|
||||
float2 vSampledVelo = g_VelocityTexture.Sample(PointSampler, vSamplingUV).xy * 2.f - 1.f;
|
||||
float2 vSampledVeloPixel = vSampledVelo * g_vResolution.xy;
|
||||
float fSampleDepth = g_DepthTexture.Sample(PointSampler, vSamplingUV).y * g_fFar;
|
||||
float2 vSampledVelocity = g_VelocityTexture.Sample(PointSampler, vSamplingUV).xy * 2.f - 1.f;
|
||||
float2 vSampledVelocityPixel = vSampledVelocity * g_vResolution.xy;
|
||||
|
||||
// 샘플의 스프레드 길이
|
||||
float fBlurSampleAccurate = abs(dot(vSampledVeloPixel, vBlurDirPixel));
|
||||
float fSampleSpreadLengthPixel = clamp(fBlurSampleAccurate, 0.f, fBlurRadiusPixel);
|
||||
if (true == bBorrowedVelocityFromTile)
|
||||
float fSampleVelocityVector = clamp(abs(dot(vSampledVelocityPixel, vBlurDirPixel)), 0.f, fBlurRadiusPixel);
|
||||
if (true == bBorrowedVelocity)
|
||||
{
|
||||
fSampleSpreadLengthPixel = max(fSampleSpreadLengthPixel, fCenterSpreadLengthPixel);
|
||||
fSampleVelocityVector = max(fSampleVelocityVector, fCurrentVelocityVector);
|
||||
}
|
||||
|
||||
// 샘플과 센터의 (깊이테스트 + 스프레드테스트)
|
||||
float fWeightCalculated = SampleWeight(fCenterDepth, fSampledDepth, fOffset, fCenterSpreadLengthPixel, fSampleSpreadLengthPixel, fScalePixelToSampleUnit, fScaleDepth);
|
||||
float fWeightCalculated = SampleWeight(fCenterDepth, fSampleDepth, fOffset,
|
||||
fCurrentVelocityVector, fSampleVelocityVector, fVelocityScale, fDepthScale);
|
||||
|
||||
if (fWeightCalculated <= 0.f) {
|
||||
continue;
|
||||
@@ -348,7 +351,7 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In)
|
||||
|
||||
float4 vSampledColor = g_ColorTexture.Sample(ClampLinearSampler, vSamplingUV);
|
||||
vAccColorSum += vSampledColor * fWeightCalculated;
|
||||
vAccVeloSum += vSampledVelo * fWeightCalculated;
|
||||
vAccVeloSum += vSampledVelocity * fWeightCalculated;
|
||||
fAccWeight += fWeightCalculated;
|
||||
}
|
||||
float4 vBlurredColor = vAccColorSum / max(fAccWeight, FLT_EPSILON5);
|
||||
@@ -455,10 +458,10 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
|
||||
|
||||
float2 uv = In.vTexcoord;
|
||||
|
||||
float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb;
|
||||
float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1.f);
|
||||
float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv);
|
||||
float fSSAO_AmbientOcclusion = g_SSAOInputTexture.Sample(DefaultSampler, uv).r;
|
||||
float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb;
|
||||
float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1.f);
|
||||
float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv);
|
||||
float fSSAO_AmbientOcclusion = g_SSAOInputTexture.Sample(DefaultSampler, uv).r;
|
||||
|
||||
float fViewZ = vDepth.y * g_fFar;
|
||||
|
||||
@@ -480,8 +483,8 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
|
||||
float fAttenuation = 1.f;
|
||||
|
||||
float fCameraDistance = length(g_vCamPosition.xyz - vWorldPosition.xyz);
|
||||
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
|
||||
float3 vToLight = normalize(-g_vLightDir.xyz); // 픽셀에서 라이트로
|
||||
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀 -> 카메라
|
||||
float3 vToLight = normalize(-g_vLightDir.xyz); // 픽셀 -> 라이트
|
||||
|
||||
if (g_bUsePhongShader)
|
||||
{
|
||||
@@ -490,8 +493,15 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
|
||||
|
||||
if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
|
||||
{
|
||||
Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
|
||||
Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
|
||||
float NdotL = saturate(dot(vNormal, vToLight));
|
||||
float3 vHalf = normalize(vToView + vToLight);
|
||||
float NdotH = saturate(dot(vNormal, vHalf));
|
||||
|
||||
float3 vDiffuse = g_vLightDiffuse.rgb * vAlbedo * NdotL;
|
||||
float3 vAmbient = fSSAO_AmbientOcclusion * g_vLightAmbient.rgb * g_vMtrlAmbient.rgb * vAlbedo;
|
||||
|
||||
Out.vShade = float4(vDiffuse + vAmbient, 1.f);
|
||||
Out.vSpecular = float4((g_vLightSpecular.rgb * g_vMtrlSpecular.rgb) * pow(NdotH, 50.f), 0.f);
|
||||
Out.vSpecular.a = 0.f;
|
||||
return Out;
|
||||
}
|
||||
@@ -500,16 +510,15 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
|
||||
|
||||
{ // 수치조정 // 디렉셔널
|
||||
float fMinRoughness = 0.05f;
|
||||
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
|
||||
fRoughness = saturate(saturate(fCameraDistance * 0.01f) * 0.1f + fRoughness); // 거리기반 러프니스 ( 대충 멀수록 반짝반짝한건 더 뭉개져서 표현 )
|
||||
vF0 = min(vF0, 0.9f); // 메탈릭 상한선
|
||||
fRoughness = max(fRoughness, fMinRoughness);
|
||||
fRoughness = saturate(saturate(fCameraDistance * 0.01f) * 0.1f + fRoughness);
|
||||
vF0 = min(vF0, 0.9f);
|
||||
}
|
||||
|
||||
|
||||
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, g_fLightIntensity, fAttenuation, vF0);
|
||||
PBR_Out.vShade *= fTotalOcclusion;
|
||||
|
||||
float3 vAmbient = g_vLightAmbient.rgb * fTotalOcclusion * fAttenuation;
|
||||
float3 vAmbient = g_vLightAmbient.rgb * vAlbedo * fTotalOcclusion * fAttenuation;
|
||||
float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
|
||||
float3 vFinalSpecular = clamp(PBR_Out.vSpecular, 0.f, g_fLightSpecularMaximum) * g_vLightSpecular.rgb;
|
||||
|
||||
@@ -576,8 +585,12 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
|
||||
|
||||
if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
|
||||
{
|
||||
Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
|
||||
Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
|
||||
float NdotL = saturate(dot(vNormal, vToLight));
|
||||
float3 vHalf = normalize(vToView + vToLight);
|
||||
float NdotH = saturate(dot(vNormal, vHalf));
|
||||
|
||||
Out.vShade = float4(g_vLightDiffuse.rgb * vAlbedo * NdotL * fAttenuation, 1.f);
|
||||
Out.vSpecular = float4((g_vLightSpecular.rgb * g_vMtrlSpecular.rgb) * pow(NdotH, 50.f) * fAttenuation, 0.f);
|
||||
Out.vSpecular.a = 0.f;
|
||||
return Out;
|
||||
}
|
||||
@@ -595,11 +608,9 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
|
||||
|
||||
PBR_Out.vShade *= fTotalOcclusion;
|
||||
|
||||
float3 vAmbient = g_vLightAmbient.rgb * fTotalOcclusion * fAttenuation;
|
||||
float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
|
||||
float3 vFinalSpecular = clamp(PBR_Out.vSpecular, 0.f, g_fLightSpecularMaximum) * g_vLightSpecular.rgb;
|
||||
|
||||
Out.vShade = float4(vFinalDiffuse, 1.f);
|
||||
Out.vShade = float4(PBR_Out.vShade, 1.f);
|
||||
Out.vSpecular = float4(vFinalSpecular, 0.f);
|
||||
|
||||
return Out;
|
||||
@@ -677,15 +688,19 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
|
||||
|
||||
if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
|
||||
{
|
||||
Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
|
||||
Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
|
||||
float NdotL = saturate(dot(vNormal, vToLight));
|
||||
float3 vHalf = normalize(vToView + vToLight);
|
||||
float NdotH = saturate(dot(vNormal, vHalf));
|
||||
|
||||
Out.vShade = float4(g_vLightDiffuse.rgb * vAlbedo * NdotL * fAttenuation, 1.f);
|
||||
Out.vSpecular = float4((g_vLightSpecular.rgb * g_vMtrlSpecular.rgb) * pow(NdotH, 50.f) * fAttenuation, 0.f);
|
||||
Out.vSpecular.a = 0.f;
|
||||
return Out;
|
||||
}
|
||||
|
||||
float fTotalOcclusion = saturate(fOcclusion * fSSAO_AmbientOcclusion);
|
||||
|
||||
{ // 수치조정 // 점광원
|
||||
{ // 수치조정 // 스포트
|
||||
float fMinRoughness = 0.05f;
|
||||
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
|
||||
fRoughness = saturate(saturate(fCameraDistance * 0.01f) * 0.1f + fRoughness); // 거리기반 러프니스 ( 대충 멀수록 반짝반짝한건 더 뭉개져서 표현 )
|
||||
@@ -696,11 +711,9 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
|
||||
|
||||
PBR_Out.vShade *= fTotalOcclusion;
|
||||
|
||||
float3 vAmbient = g_vLightAmbient.rgb * fTotalOcclusion * fAttenuation;
|
||||
float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
|
||||
float3 vFinalSpecular = clamp(PBR_Out.vSpecular, 0.f, g_fLightSpecularMaximum) * g_vLightSpecular.rgb;
|
||||
|
||||
Out.vShade = float4(vFinalDiffuse, 1.f);
|
||||
Out.vShade = float4(PBR_Out.vShade, 1.f);
|
||||
Out.vSpecular = float4(vFinalSpecular, 0.f);
|
||||
|
||||
return Out;
|
||||
@@ -792,12 +805,12 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In)
|
||||
|
||||
vPosition = mul(vPosition, g_invmatProj);
|
||||
vPosition = mul(vPosition, g_invMatView);
|
||||
vPreShadowPosition = vPosition;
|
||||
|
||||
/* (로컬위치 * 월드) -> (로컬위치 * 월드 * 광원의 뷰 * 광원의 투영 ) */
|
||||
float4 vNearShadowPos = vPosition;
|
||||
float4 vMiddleShadowPos = vPosition;
|
||||
float4 vFarShadowPos = vPosition;
|
||||
vPreShadowPosition = vPosition;
|
||||
{
|
||||
vNearShadowPos = mul(vNearShadowPos, g_LightViewMatrix_NEAR);
|
||||
vNearShadowPos = mul(vNearShadowPos, g_LightProjMatrix_NEAR);
|
||||
@@ -811,42 +824,22 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In)
|
||||
/* 광원의 NDC에서 샘플링 */
|
||||
float fVisibility_Dynamic_Near = ShadowVisibility_hwPCF(g_ShadowNearTexture, vNearShadowPos, g_vNearShadowResolution, g_vShadowBias.x, g_vShadowRadiusTexel.x);
|
||||
float fVisibility_Dynamic_Middle = ShadowVisibility_hwPCF(g_ShadowMiddleTexture, vMiddleShadowPos, g_vMiddleShadowResolution, g_vShadowBias.y, g_vShadowRadiusTexel.y);
|
||||
float fVisibility_Static = ShadowVisibility_hwPCF(g_PreShadowTexture, vPreShadowPosition, g_vPreShadowResolution, g_vShadowBias.w, g_vShadowRadiusTexel.w);
|
||||
float fVisibilityStatic = ShadowVisibility_hwPCF(g_PreShadowTexture, vPreShadowPosition, g_vPreShadowResolution, g_vShadowBias.w, g_vShadowRadiusTexel.w);
|
||||
|
||||
////////////////////////////
|
||||
// 케스케이드
|
||||
float fDepthRatio = saturate(vDepthDesc.y);
|
||||
|
||||
// 경계 블렌딩 폭. 경계 섞는 비중
|
||||
float fShadowCascadeBlendWidthRatio = 0.02f; // 2% 섞음
|
||||
float fCascadeBlend_Front = smoothstep(
|
||||
g_fCascadeSplitRatioNear - g_fCascadeBlendRatio,
|
||||
g_fCascadeSplitRatioNear + g_fCascadeBlendRatio, fDepthRatio);
|
||||
|
||||
// 경계 주변 부드럽게 할 비중
|
||||
float fCascadeBlend_NearToMiddle = smoothstep(g_fCascadeSplitRatioNear - fShadowCascadeBlendWidthRatio,
|
||||
g_fCascadeSplitRatioNear + fShadowCascadeBlendWidthRatio, fDepthRatio);
|
||||
//float fCascadeBlend_MiddleToFar = smoothstep(g_fCascadeSplitRatioFar - fShadowCascadeBlendWidthRatio,
|
||||
//g_fCascadeSplitRatioFar + fShadowCascadeBlendWidthRatio, fDepthRatio);
|
||||
|
||||
// Near -> Middle
|
||||
float fVisibilityDynamic = lerp(fVisibility_Dynamic_Near, fVisibility_Dynamic_Middle, fCascadeBlend_NearToMiddle);
|
||||
float fStaticShadowBlendWeight = smoothstep(
|
||||
g_fCascadeSplitRatioFar - g_fCascadeBlendRatio,
|
||||
g_fCascadeSplitRatioFar + g_fCascadeBlendRatio, fDepthRatio);
|
||||
|
||||
// 1번째 방법
|
||||
//Dynamic - > Static
|
||||
//부드럽게 전환
|
||||
|
||||
float fVisibilityCombinedLogical = min(fVisibilityDynamic, fVisibility_Static);
|
||||
float fStaticShadowBlendStartRatio = g_fCascadeSplitRatioFar;
|
||||
float fStaticShadowBlendWidthRatio = 0.05f;
|
||||
float fStaticShadowBlendEndRatio = min(1.0f, fStaticShadowBlendStartRatio + fStaticShadowBlendWidthRatio);
|
||||
float fStaticShadowBlendWeight = smoothstep(fStaticShadowBlendStartRatio, fStaticShadowBlendEndRatio, fDepthRatio);
|
||||
float fVisibilityCombined = lerp(fVisibilityDynamic, fVisibilityCombinedLogical, fStaticShadowBlendWeight);
|
||||
float fVisibilityDynamic = lerp(fVisibility_Dynamic_Near, fVisibility_Dynamic_Middle, fCascadeBlend_Front);
|
||||
fVisibilityStatic = lerp(1.0f, fVisibilityStatic, fStaticShadowBlendWeight);
|
||||
|
||||
// 2번째 방법
|
||||
// Dynamic * Static 항상 최소곱
|
||||
//float fVisibilityCombined = saturate(fVisibilityDynamic * fVisibility_Static);
|
||||
|
||||
// 3번째 방법
|
||||
// Dynamic , Static 최소값만 취함
|
||||
//float fVisibilityCombined = min(fVisibilityDynamic, fVisibility_Static);
|
||||
float fVisibilityCombined = fVisibilityDynamic * fVisibilityStatic;
|
||||
|
||||
// 최소 밝기
|
||||
float fShadowMultiplier = lerp(g_fMinShadowBrightness, 1.0f, saturate(fVisibilityCombined));
|
||||
@@ -1324,42 +1317,43 @@ PS_OUT_SSAO_AMBIENT_OCCLUSION PS_SSAO_AMBIENT_OCCLUSION(PS_IN In)
|
||||
vCenterViewPosition /= vCenterViewPosition.w;
|
||||
}
|
||||
float3 vNormal = normalize(g_NormalTexture.Sample(PointSampler, uv).xyz * 2.f - 1.f);
|
||||
float3 vCenterViewNormal = mul(vNormal, (float3x3)g_ViewMatrix);
|
||||
float3 vCenterNormal = mul(vNormal, (float3x3) g_ViewMatrix);
|
||||
|
||||
float2 vNoiseScale = g_vResolution / 4.f;
|
||||
float3 vNoise = g_SSAONoiseTexture.Sample(SSAODataSampler, uv * vNoiseScale).xyz;
|
||||
|
||||
float3 vTangent = normalize(vNoise - vCenterViewNormal * dot(vNoise, vCenterViewNormal));
|
||||
float3 vBiNormal = cross(vCenterViewNormal, vTangent);
|
||||
float3x3 toViewTBNMatrix = float3x3(vTangent, vBiNormal, vCenterViewNormal);
|
||||
float3 vTangent = normalize(vNoise - vCenterNormal * dot(vNoise, vCenterNormal));
|
||||
float3 vBiNormal = cross(vCenterNormal, vTangent);
|
||||
float3x3 TBNMatrix = float3x3(vTangent, vBiNormal, vCenterNormal);
|
||||
|
||||
float fOcclusion = 0.f;
|
||||
[loop]
|
||||
for (uint i = 0; i < g_iKernelSize; ++i)
|
||||
{
|
||||
float3 vViewSamplePosVec = mul(g_SamplePos[i].xyz, toViewTBNMatrix); // TANSPACE -> VIEW
|
||||
float4 vViewSamplePos = vCenterViewPosition + float4(vViewSamplePosVec * g_fSSAORadius, 0.f);
|
||||
float4 vNDCSampleOffset = mul(vViewSamplePos, g_ProjMatrix);
|
||||
float3 vSampleVector= mul(g_SamplePos[i].xyz, TBNMatrix);
|
||||
float4 vSampleViewPosition = vCenterViewPosition + float4(vSampleVector * g_fSSAORadius, 0.f);
|
||||
float4 vNDCSampleOffset = mul(vSampleViewPosition, g_ProjMatrix);
|
||||
vNDCSampleOffset /= vNDCSampleOffset.w;
|
||||
|
||||
float2 sampleUV;
|
||||
sampleUV.x = vNDCSampleOffset.x * 0.5f + 0.5f;
|
||||
sampleUV.y = vNDCSampleOffset.y * -0.5f + 0.5f;
|
||||
float2 vSampleUV;
|
||||
vSampleUV.x = vNDCSampleOffset.x * 0.5f + 0.5f;
|
||||
vSampleUV.y = vNDCSampleOffset.y * -0.5f + 0.5f;
|
||||
|
||||
if (sampleUV.x < 0 || sampleUV.x > 1
|
||||
|| sampleUV.y < 0 || sampleUV.y > 1) {
|
||||
if (vSampleUV.x < 0 || vSampleUV.x > 1
|
||||
|| vSampleUV.y < 0 || vSampleUV.y > 1)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
float fRecordedSampleViewPosDepth = g_DepthTexture.Sample(PointSampler, sampleUV).y * g_fFar;
|
||||
float fIsOccluded = (fRecordedSampleViewPosDepth < vViewSamplePos.z - g_fSSAO_BIAS) ? 1.0f : 0.0f;
|
||||
float fRecordedDepth = g_DepthTexture.Sample(PointSampler, vSampleUV).y * g_fFar;
|
||||
float fIsOccluded = (fRecordedDepth < vSampleViewPosition.z - g_fSSAO_BIAS) ? 1.0f : 0.0f;
|
||||
|
||||
float fRangeCheck = smoothstep(0.f, 1.f, g_fSSAORadius / abs(vViewSamplePos.z - fRecordedSampleViewPosDepth));
|
||||
float fRangeCheck = smoothstep(0.f, 1.f, g_fSSAORadius / abs(vSampleViewPosition.z - fRecordedDepth));
|
||||
fIsOccluded *= fRangeCheck;
|
||||
fOcclusion += fIsOccluded;
|
||||
}
|
||||
fOcclusion = saturate(1.f - (fOcclusion * g_fSSAOStrength / g_iKernelSize) * fRatio);
|
||||
Out.fOcclusion = fOcclusion ;
|
||||
Out.fOcclusion = fOcclusion;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -262,9 +262,9 @@ _bool CCharacter_Controller::UpdateGroundByCast(_float fTimeDelta)
|
||||
_float fDistanceFromGround = XMVectorGetX(XMVector3Dot(vFootToHitPos, vSurfaceNormal));
|
||||
_float fDotUpNormal = (fabsf(fDotUp) < FLT_EPSILON) ? FLT_EPSILON: fDotUp;
|
||||
_float fCurrentMomentumY = (-fDistanceFromGround / fDotUpNormal) * 0.3f;
|
||||
_vector vCurrentMomentum = m_pTransform->Get_CurrentMomentum();
|
||||
_vector vCurrentMomentum = m_pTransform->Get_CurrentVelocity();
|
||||
|
||||
m_pTransform->Set_CurrentMomentum( XMVectorSetY(vCurrentMomentum, fCurrentMomentumY) );
|
||||
m_pTransform->Set_CurrentVelocity( XMVectorSetY(vCurrentMomentum, fCurrentMomentumY) );
|
||||
Set_OnGroundFlag(true);
|
||||
if (m_fCurrentSlopeDegree < m_fWalkableSlopeDegree * 0.5f) {
|
||||
m_bSlide = false;
|
||||
@@ -292,17 +292,17 @@ void CCharacter_Controller::Move(_float fTimeDelta)
|
||||
const PSX::PxObstacleContext* pPxObstacles = { nullptr }; // 캐릭터가 충돌해야할 추가적인 장애물 객체?, 닿은 장애물은 캐시된다?
|
||||
if (true == m_bGravity) {
|
||||
if (0 >= m_iIsOnGround) { // 공중: 무조건 중력
|
||||
m_pTransform->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY * m_fGravity * fTimeDelta, 0.f, 0.f));
|
||||
m_pTransform->AccumulateVelocity(XMVectorSet(0.f, -GRAVITY * m_fGravity * fTimeDelta, 0.f, 0.f));
|
||||
}
|
||||
else if ((iCoyote_Counter) >= m_iIsOnGround) {
|
||||
UpdateGroundByCast(fTimeDelta);// 바닥에 플레이어 붙이게 함
|
||||
}
|
||||
else if (m_fCurrentSlopeDegree > m_fWalkableSlopeDegree) { // 너무 가파른 경사: 중력
|
||||
m_pTransform->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY * fTimeDelta, 0.f, 0.f));
|
||||
m_pTransform->AccumulateVelocity(XMVectorSet(0.f, -GRAVITY * fTimeDelta, 0.f, 0.f));
|
||||
m_bSlide = true;
|
||||
}
|
||||
}
|
||||
XMStoreFloat3((_float3*)&pxVecMomentum, m_pTransform->Get_CurrentMomentum());
|
||||
XMStoreFloat3((_float3*)&pxVecMomentum, m_pTransform->Get_CurrentVelocity());
|
||||
m_eBeforeCollisionFlags = m_pController->move(pxVecMomentum, fMinimumDistant, fTimeDelta, pxFilter, pPxObstacles);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11De
|
||||
#endif // _DEBUG
|
||||
|
||||
#ifndef _DEBUG
|
||||
m_pThreadHolder = CThreadHolder::Create(12);
|
||||
m_pThreadHolder = CThreadHolder::Create(8);
|
||||
#endif // !_DEBUG
|
||||
|
||||
if (nullptr == m_pThreadHolder) {
|
||||
@@ -149,41 +149,26 @@ void CGameInstance::Update_Engine(_float fTimeDelta)
|
||||
m_pKey_Manager->Update();
|
||||
m_pMouse_Manager->Update();
|
||||
m_pSound_Manager->Update();
|
||||
#ifdef _DEBUG
|
||||
m_pResource_Manager->Describe_Entity();
|
||||
m_pFog->Update_Fog();
|
||||
#endif // _DEBUG
|
||||
m_pPicking->Update();
|
||||
|
||||
m_pObject_Manager->Priority_Update(fExcuteTimeDelta);
|
||||
|
||||
m_pPipeLine->Update();
|
||||
|
||||
m_pObject_Manager->Update(fExcuteTimeDelta);
|
||||
|
||||
m_pPhysX_Manager->Update(fExcuteTimeDelta);
|
||||
|
||||
m_pObject_Manager->Late_Update(fExcuteTimeDelta);
|
||||
|
||||
m_pVolumetric->Dispatch();
|
||||
|
||||
m_pLevel_Manager->Update(fExcuteTimeDelta);
|
||||
m_pObject_Manager->Clear_DeadObj();
|
||||
|
||||
//m_pObstacle_Manager->Refresh_Region();
|
||||
}
|
||||
|
||||
HRESULT CGameInstance::Draw()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
Compute_TimeDelta(TEXT("Timer_DrawCall"));
|
||||
#endif // _DEBUG
|
||||
m_pRenderer->Render();
|
||||
|
||||
m_pLevel_Manager->Render();
|
||||
#ifdef _DEBUG
|
||||
Compute_TimeDelta(TEXT("Timer_DrawCall"));
|
||||
#endif // _DEBUG
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -326,13 +311,9 @@ void CGameInstance::Render_Begin(const _float4* pClearColor)
|
||||
|
||||
void CGameInstance::Render_End()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
Compute_TimeDelta(TEXT("Timer_Present"));
|
||||
#endif // _DEBUG
|
||||
m_pGraphic_Device->Present();
|
||||
#ifdef _DEBUG
|
||||
Compute_TimeDelta(TEXT("Timer_Present"));
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
HRESULT CGameInstance::Bind_DepthStencil(CShader* pShader, const _char* pContantName)
|
||||
@@ -365,44 +346,41 @@ void CGameInstance::Compute_TimeDelta(const _wstring& strTimerTag)
|
||||
|
||||
void CGameInstance::Compute_FrameCount()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_fTimer_PriorityUpdate = Get_TimeDelta(TEXT("Timer_PriorityUpdate"));
|
||||
m_fTimer_Update = Get_TimeDelta(TEXT("Timer_Update"));
|
||||
m_fTimer_LateUpdate = Get_TimeDelta(TEXT("Timer_LateUpdate"));
|
||||
m_fTimer_DrawCall = Get_TimeDelta(TEXT("Timer_DrawCall"));
|
||||
m_fTimer_Present = Get_TimeDelta(TEXT("Timer_Present"));
|
||||
m_fTimer_Picking = Get_TimeDelta(TEXT("Timer_Picking"));
|
||||
m_fTimer_PhysX = Get_TimeDelta(TEXT("Timer_PhysX"));
|
||||
m_fTimer_Level = Get_TimeDelta(TEXT("Timer_Level"));
|
||||
m_fTimer_FrameCount = Get_TimeDelta(TEXT("Timer_FrameCount"));
|
||||
m_fTimer_PriorityUpdate = Get_TimeDelta(TEXT("Timer_PriorityUpdate"));
|
||||
m_fTimer_Update = Get_TimeDelta(TEXT("Timer_Update"));
|
||||
m_fTimer_LateUpdate = Get_TimeDelta(TEXT("Timer_LateUpdate"));
|
||||
m_fTimer_DrawCall = Get_TimeDelta(TEXT("Timer_DrawCall"));
|
||||
m_fTimer_Present = Get_TimeDelta(TEXT("Timer_Present"));
|
||||
m_fTimer_Picking = Get_TimeDelta(TEXT("Timer_Picking"));
|
||||
m_fTimer_PhysX = Get_TimeDelta(TEXT("Timer_PhysX"));
|
||||
m_fTimer_Level = Get_TimeDelta(TEXT("Timer_Level"));
|
||||
m_fTimer_FrameCount = Get_TimeDelta(TEXT("Timer_FrameCount"));
|
||||
|
||||
m_fTimer_Render_Priority = Get_TimeDelta(TEXT("Timer_Render_Priority"));
|
||||
m_fTimer_Render_Shadow = Get_TimeDelta(TEXT("Timer_Render_Shadow"));
|
||||
m_fTimer_Render_NonBlend = Get_TimeDelta(TEXT("Timer_Render_NonBlend"));
|
||||
m_fTimer_Render_SSAO = Get_TimeDelta(TEXT("Timer_Render_SSAO"));
|
||||
m_fTimer_Render_SSAO_BLUR = Get_TimeDelta(TEXT("Timer_Render_SSAO_BLUR"));
|
||||
m_fTimer_Render_LightAcc = Get_TimeDelta(TEXT("Timer_Render_LightAcc"));
|
||||
m_fTimer_Render_Blur = Get_TimeDelta(TEXT("Timer_Render_Blur"));
|
||||
m_fTimer_Render_Combined = Get_TimeDelta(TEXT("Timer_Render_Combined"));
|
||||
m_fTimer_Render_Occlusion = Get_TimeDelta(TEXT("Timer_Render_Occlusion"));
|
||||
m_fTimer_Render_EnvironmentPostProcess = Get_TimeDelta(TEXT("Timer_Render_EnvironmentPostProcess"));
|
||||
m_fTimer_Render_Fog = Get_TimeDelta(TEXT("Timer_Render_Fog"));
|
||||
m_fTimer_Render_Effect = Get_TimeDelta(TEXT("Timer_Render_Effect"));
|
||||
m_fTimer_Render_NonLight = Get_TimeDelta(TEXT("Timer_Render_NonLight"));
|
||||
m_fTimer_Render_Blend = Get_TimeDelta(TEXT("Timer_Render_Blend"));
|
||||
m_fTimer_Render_WeightBlend = Get_TimeDelta(TEXT("Timer_Render_WeightBlend"));
|
||||
m_fTimer_Render_PostProcessing = Get_TimeDelta(TEXT("Timer_Render_PostProcessing"));
|
||||
m_fTimer_Render_LastColor = Get_TimeDelta(TEXT("Timer_Render_LastColor"));
|
||||
m_fTimer_Render_Tone_Mapping = Get_TimeDelta(TEXT("Timer_Render_Tone_Mapping"));
|
||||
m_fTimer_Render_UI = Get_TimeDelta(TEXT("Timer_Render_UI"));
|
||||
m_fTimer_Render_UI_Overley = Get_TimeDelta(TEXT("Timer_Render_UI_Overley"));
|
||||
#endif // _DEBUG
|
||||
m_fTimer_Render_Priority = Get_TimeDelta(TEXT("Timer_Render_Priority"));
|
||||
m_fTimer_Render_Shadow = Get_TimeDelta(TEXT("Timer_Render_Shadow"));
|
||||
m_fTimer_Render_NonBlend = Get_TimeDelta(TEXT("Timer_Render_NonBlend"));
|
||||
m_fTimer_Render_SSAO = Get_TimeDelta(TEXT("Timer_Render_SSAO"));
|
||||
m_fTimer_Render_SSAO_BLUR = Get_TimeDelta(TEXT("Timer_Render_SSAO_BLUR"));
|
||||
m_fTimer_Render_LightAcc = Get_TimeDelta(TEXT("Timer_Render_LightAcc"));
|
||||
m_fTimer_Render_Blur = Get_TimeDelta(TEXT("Timer_Render_Blur"));
|
||||
m_fTimer_Render_Combined = Get_TimeDelta(TEXT("Timer_Render_Combined"));
|
||||
m_fTimer_Render_Occlusion = Get_TimeDelta(TEXT("Timer_Render_Occlusion"));
|
||||
m_fTimer_Render_EnvironmentPostProcess = Get_TimeDelta(TEXT("Timer_Render_EnvironmentPostProcess"));
|
||||
m_fTimer_Render_Fog = Get_TimeDelta(TEXT("Timer_Render_Fog"));
|
||||
m_fTimer_Render_Effect = Get_TimeDelta(TEXT("Timer_Render_Effect"));
|
||||
m_fTimer_Render_NonLight = Get_TimeDelta(TEXT("Timer_Render_NonLight"));
|
||||
m_fTimer_Render_Blend = Get_TimeDelta(TEXT("Timer_Render_Blend"));
|
||||
m_fTimer_Render_WeightBlend = Get_TimeDelta(TEXT("Timer_Render_WeightBlend"));
|
||||
m_fTimer_Render_PostProcessing = Get_TimeDelta(TEXT("Timer_Render_PostProcessing"));
|
||||
m_fTimer_Render_LastColor = Get_TimeDelta(TEXT("Timer_Render_LastColor"));
|
||||
m_fTimer_Render_Tone_Mapping = Get_TimeDelta(TEXT("Timer_Render_Tone_Mapping"));
|
||||
m_fTimer_Render_UI = Get_TimeDelta(TEXT("Timer_Render_UI"));
|
||||
m_fTimer_Render_UI_Overley = Get_TimeDelta(TEXT("Timer_Render_UI_Overley"));
|
||||
}
|
||||
|
||||
void CGameInstance::Present_TimeCost()
|
||||
{
|
||||
#pragma region TimeCost
|
||||
#ifdef _DEBUG
|
||||
_float fTotal = m_fTimer_PriorityUpdate
|
||||
+ m_fTimer_Update
|
||||
+ m_fTimer_LateUpdate
|
||||
@@ -654,7 +632,6 @@ void CGameInstance::Present_TimeCost()
|
||||
GUI::Text("%f\t%f", GUI::GetIO().Framerate, GUI::GetIO().DeltaTime);
|
||||
}
|
||||
GUI::End();
|
||||
#endif // _DEBUG
|
||||
#pragma endregion
|
||||
}
|
||||
|
||||
|
||||
@@ -43,46 +43,36 @@ void CGameObject_Manager::Priority_Update(_float fTimeDelta)
|
||||
#ifndef gimch
|
||||
Describe_Entity();
|
||||
#endif // !gimch
|
||||
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_PriorityUpdate"));
|
||||
#endif // _DEBUG
|
||||
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_PriorityUpdate"));
|
||||
for (size_t i = 0; i < m_iNumLevels; i++)
|
||||
{
|
||||
for (auto& Pair : m_pLayers[i])
|
||||
Pair.second->Priority_Update(fTimeDelta);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_PriorityUpdate"));
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void CGameObject_Manager::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_Update"));
|
||||
#endif // _DEBUG
|
||||
for (size_t i = 0; i < m_iNumLevels; i++)
|
||||
{
|
||||
for (auto& Pair : m_pLayers[i])
|
||||
Pair.second->Update(fTimeDelta);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_Update"));
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void CGameObject_Manager::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_LateUpdate"));
|
||||
#endif // _DEBUG
|
||||
for (size_t i = 0; i < m_iNumLevels; i++)
|
||||
{
|
||||
for (auto& Pair : m_pLayers[i])
|
||||
Pair.second->Late_Update(fTimeDelta);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_LateUpdate"));
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void CGameObject_Manager::Clear(_uint iLevelIndex)
|
||||
|
||||
@@ -57,18 +57,14 @@ _uint CLevel_Manager::Get_NextLevelID()
|
||||
|
||||
void CLevel_Manager::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_Level"));
|
||||
#endif // _DEBUG
|
||||
if (nullptr == m_pCurrentLevel){
|
||||
return;
|
||||
}
|
||||
|
||||
m_pCurrentLevel->Update(fTimeDelta);
|
||||
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_Level"));
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
HRESULT CLevel_Manager::Render()
|
||||
|
||||
@@ -575,7 +575,7 @@ void CModel::Update_RootBone(_float Amount)
|
||||
vDeltaWorld = XMVectorSetW(vDeltaWorld, 1.f);
|
||||
|
||||
if (m_bRootBone) {
|
||||
m_pTransform->AccumulateMomentum(vDeltaWorld);
|
||||
m_pTransform->AccumulateVelocity(vDeltaWorld);
|
||||
}
|
||||
else {
|
||||
XMStoreFloat4(&m_RootBoneMomentum, vDeltaWorld);
|
||||
|
||||
@@ -207,7 +207,7 @@ void CMouse_Manager::Describe_Entity()
|
||||
GUI::Begin("SYSTEM", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
|
||||
if (GUI::CollapsingHeader("Mouse_Manager")) {
|
||||
GUI::Text("AccumulateMomentum %.2f, %.2f", m_vMove.x, m_vMove.y);
|
||||
GUI::Text("AccumulateVelocity %.2f, %.2f", m_vMove.x, m_vMove.y);
|
||||
GUI::Text("CurPos %d, %d", m_ptCurrentMouseCur.x, m_ptCurrentMouseCur.y);
|
||||
GUI::Text("Lock %d", m_bLockMouseToCenter);
|
||||
POINT pt = Get_MouseViewPortPos();
|
||||
|
||||
@@ -483,31 +483,28 @@ void CPhysX_Manager::Update_Kinematic()
|
||||
|
||||
if (pActor->getRigidBodyFlags() & PSX::PxRigidBodyFlag::eKINEMATIC)
|
||||
{
|
||||
if (nullptr == pBody->userData) {
|
||||
if (nullptr == pBody->userData) { // UserData nullptr -> 해제됨
|
||||
ReleasedList.emplace_back(pBody);
|
||||
continue;
|
||||
}
|
||||
PHYSX_USERDATA* pUserData = (PHYSX_USERDATA*)pBody->userData;
|
||||
if (false == pUserData->bAutoOwnerTranslation) {
|
||||
if (false == pUserData->bAutoTranslation) {
|
||||
continue;
|
||||
}
|
||||
const CTransform* pTransform = pUserData->pOwner->Get_Component<CTransform>();
|
||||
|
||||
pActor->setKinematicTarget(XMWorldToPx_NoScaleNoFlip(pTransform->Get_XMWorldMatrix()));
|
||||
}
|
||||
}
|
||||
}
|
||||
for (list<PSX::PxActor*>::iterator ReleasedActor = ReleasedList.begin(); ReleasedActor != ReleasedList.end();) {
|
||||
Detach_Actor(*(*ReleasedActor), m_pGameInstance->Get_CurrentLevelID());
|
||||
ReleasedActor = ReleasedList.erase(ReleasedActor);
|
||||
for (auto iterActor = ReleasedList.begin(); iterActor != ReleasedList.end();) {
|
||||
Detach_Actor(*(*iterActor), m_pGameInstance->Get_CurrentLevelID());
|
||||
iterActor = ReleasedList.erase(iterActor);
|
||||
}
|
||||
}
|
||||
|
||||
void CPhysX_Manager::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_PhysX"));
|
||||
#endif // _DEBUG
|
||||
if (nullptr == m_pScene) {
|
||||
return;
|
||||
}
|
||||
@@ -517,30 +514,29 @@ void CPhysX_Manager::Update(_float fTimeDelta)
|
||||
{ // Simulate
|
||||
m_pScene->simulate((PSX::PxReal)fTimeDelta);
|
||||
_bool bResult = m_pScene->fetchResults(true);
|
||||
assert(bResult);
|
||||
}
|
||||
{ // Post
|
||||
Update_Dynamic_ActiveActors();
|
||||
//Update_Dynamic_AllActors();
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_PhysX"));
|
||||
#endif // _DEBUG
|
||||
}
|
||||
void CPhysX_Manager::Update_Dynamic_ActiveActors()
|
||||
{
|
||||
list<PSX::PxActor*> ReleasedList = {};
|
||||
PSX::PxU32 iNumActiveActor = {};
|
||||
PSX::PxU32 iNumActiveActor = {}; // 실제 피직스 이동을 한 액터들
|
||||
PSX::PxActor** ppActiveActors = m_pScene->getActiveActors(iNumActiveActor);
|
||||
|
||||
for (PSX::PxU32 i = 0; i < iNumActiveActor; ++i) {
|
||||
PHYSX_USERDATA* pUserData = (PHYSX_USERDATA*)ppActiveActors[i]->userData;
|
||||
PSX::PxRigidDynamic* pActorDynamic = ppActiveActors[i]->is<PSX::PxRigidDynamic>();
|
||||
|
||||
if (nullptr != pActorDynamic) {
|
||||
if (nullptr == ppActiveActors[i]->userData) {
|
||||
if (nullptr == ppActiveActors[i]->userData) { // UserData nullptr -> 해제됨
|
||||
ReleasedList.emplace_back(ppActiveActors[i]);
|
||||
continue;
|
||||
}
|
||||
if (false == pUserData->bAutoOwnerTranslation) {
|
||||
if (false == pUserData->bAutoTranslation) {
|
||||
continue;
|
||||
}
|
||||
CTransform* pTransform = pUserData->pOwner->Get_Component<CTransform>();
|
||||
@@ -549,13 +545,14 @@ void CPhysX_Manager::Update_Dynamic_ActiveActors()
|
||||
_float3 vOriginalScale = pTransform->Get_Scale();
|
||||
_matrix WorldMatrix = {};
|
||||
|
||||
WorldMatrix = XMMatrixAffineTransformation(XMLoadFloat3(&vOriginalScale), XMVectorZero(), XMLoadFloat4((_float4*)&pPxTransform.q), XMLoadFloat3((_float3*)&pPxTransform.p));
|
||||
WorldMatrix = XMMatrixAffineTransformation(XMLoadFloat3(&vOriginalScale), XMVectorZero(),
|
||||
XMLoadFloat4((_float4*)&pPxTransform.q), XMLoadFloat3((_float3*)&pPxTransform.p));
|
||||
pTransform->Set_WorldMatrix(WorldMatrix);
|
||||
}
|
||||
}
|
||||
for (list<PSX::PxActor*>::iterator ReleasedActor = ReleasedList.begin(); ReleasedActor != ReleasedList.end();) {
|
||||
Detach_Actor(*(*ReleasedActor), m_pGameInstance->Get_CurrentLevelID());
|
||||
ReleasedActor = ReleasedList.erase(ReleasedActor);
|
||||
for (auto iterActor = ReleasedList.begin(); iterActor != ReleasedList.end();) {
|
||||
Detach_Actor(*(*iterActor), m_pGameInstance->Get_CurrentLevelID());
|
||||
iterActor = ReleasedList.erase(iterActor);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -45,13 +45,9 @@ HRESULT CPicking::Initialize(HWND hWnd, _uint iSizeX, _uint iSizeY)
|
||||
|
||||
void CPicking::Update()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_Picking"));
|
||||
#endif // _DEBUG
|
||||
m_pGameInstance->Copy_RenderTargetTo(TEXT("Target_Depth"), m_pTexture2D);
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Compute_TimeDelta(TEXT("Timer_Picking"));
|
||||
#endif // _DEBUG
|
||||
}
|
||||
_bool CPicking::isPicking(_float3* pOut)
|
||||
{
|
||||
|
||||
@@ -23,23 +23,23 @@ void CPipeLine::Set_Environment(_float2 vNFBoxRatio, _float2 vSafeRadius, _float
|
||||
|
||||
m_vShadowBias = vShadowBias;
|
||||
m_vShadowRadius = vShadowRadius;
|
||||
m_vShadowBoxMarginMin = vShadowBoxMarginMin;
|
||||
m_vShadowBoxMarginMax = vShadowBoxMarginMax;
|
||||
m_vShadowMarginMin = vShadowBoxMarginMin;
|
||||
m_vShadowMarginMax = vShadowBoxMarginMax;
|
||||
}
|
||||
|
||||
void CPipeLine::Set_Transform(D3DTS eState, _fmatrix TransformStateMatrix)
|
||||
{
|
||||
XMStoreFloat4x4(&m_TransformStateMatrices[ENUM_CLASS(eState)], TransformStateMatrix);
|
||||
XMStoreFloat4x4(&m_TransformMatrices[ENUM_CLASS(eState)], TransformStateMatrix);
|
||||
}
|
||||
|
||||
const _float4x4* CPipeLine::Get_Transform_Float4x4(D3DTS eState)
|
||||
{
|
||||
return &m_TransformStateMatrices[ENUM_CLASS(eState)];
|
||||
return &m_TransformMatrices[ENUM_CLASS(eState)];
|
||||
}
|
||||
|
||||
_matrix CPipeLine::Get_Transform_Matrix(D3DTS eState)
|
||||
{
|
||||
return XMLoadFloat4x4(&m_TransformStateMatrices[ENUM_CLASS(eState)]);
|
||||
return XMLoadFloat4x4(&m_TransformMatrices[ENUM_CLASS(eState)]);
|
||||
}
|
||||
|
||||
_matrix CPipeLine::Get_ShadowTransform_Matrix(D3DTS eState, SHADOW eShadowType)
|
||||
@@ -56,7 +56,7 @@ _matrix CPipeLine::Get_ShadowTransform_Matrix(D3DTS eState, SHADOW eShadowType)
|
||||
}
|
||||
assert(iPass != UINT_MAX);
|
||||
|
||||
return XMLoadFloat4x4(&m_ShadowTransformStateMatrices[iPass][ENUM_CLASS(eState)]);
|
||||
return XMLoadFloat4x4(&m_ShadowTransformMatrices[iPass][ENUM_CLASS(eState)]);
|
||||
}
|
||||
|
||||
const _float4* CPipeLine::Get_CamPosition()
|
||||
@@ -107,7 +107,7 @@ pair<_bool, _ubyte> CPipeLine::IsIn_ShadowViewFrustum(_fvector vWorldCenter, _fl
|
||||
{
|
||||
pair<_bool, _ubyte> pairResult = { false, 0 };
|
||||
// 월드 센터를 셰도우뷰 센터로 바꿈
|
||||
_vector vShadowViewCenter = XMVectorSetW(XMVector3Rotate(vWorldCenter, XMLoadFloat4(&m_vShadowInvDirectionalRPYQuat)), 1.f);
|
||||
_vector vShadowViewCenter = XMVectorSetW(XMVector3Rotate(vWorldCenter, XMLoadFloat4(&m_vShadowInvQuat)), 1.f);
|
||||
|
||||
_float fSafeRadius = (fRadius + m_fSafe_RadiusMargin) * m_fSafe_RadiusMultiplier; // 그림자임을 고려해서 객체 부피보다 좀 더 넓게 탐색
|
||||
|
||||
@@ -208,8 +208,8 @@ HRESULT CPipeLine::End_OutLine_Write()
|
||||
HRESULT CPipeLine::Ready_Shadow_Light(const _float4& vShadowDirRPYQuat)
|
||||
{
|
||||
_vector vShadowQuat = XMQuaternionNormalize(XMLoadFloat4(&vShadowDirRPYQuat));
|
||||
XMStoreFloat4(&m_vShadowDirectionalRPYQuat, vShadowQuat);
|
||||
XMStoreFloat4(&m_vShadowInvDirectionalRPYQuat, XMQuaternionInverse(vShadowQuat));
|
||||
XMStoreFloat4(&m_vShadowQuat, vShadowQuat);
|
||||
XMStoreFloat4(&m_vShadowInvQuat, XMQuaternionInverse(vShadowQuat));
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -230,12 +230,12 @@ HRESULT CPipeLine::Bind_Shadow_Resource(CShader* pShader, const _char* pConstant
|
||||
}
|
||||
assert(iPass != UINT_MAX);
|
||||
|
||||
return pShader->Bind_Matrix(pConstantName, &m_ShadowTransformStateMatrices[iPass][ENUM_CLASS(eType)]);
|
||||
return pShader->Bind_Matrix(pConstantName, &m_ShadowTransformMatrices[iPass][ENUM_CLASS(eType)]);
|
||||
}
|
||||
|
||||
const _float4x4* CPipeLine::Get_ShadowMatricesPtr(_uint iShadowBoxIndex)
|
||||
{
|
||||
return m_ShadowTransformStateMatrices[iShadowBoxIndex];
|
||||
return m_ShadowTransformMatrices[iShadowBoxIndex];
|
||||
}
|
||||
|
||||
_float CPipeLine::Get_ShadowBoxFar(_uint iShadowBoxIndex)
|
||||
@@ -265,16 +265,16 @@ void CPipeLine::Update()
|
||||
#endif // RELEASE_DEBUGGER
|
||||
Update_ShadowDepthNdcZ();
|
||||
|
||||
XMStoreFloat4x4(&m_TransformStateMatrices[ENUM_CLASS(D3DTS::VIEW_INV)], XMMatrixInverse(nullptr, Get_Transform_Matrix(D3DTS::VIEW)));
|
||||
XMStoreFloat4x4(&m_TransformStateMatrices[ENUM_CLASS(D3DTS::PROJ_INV)], XMMatrixInverse(nullptr, Get_Transform_Matrix(D3DTS::PROJ)));
|
||||
XMStoreFloat4x4(&m_TransformMatrices[ENUM_CLASS(D3DTS::VIEW_INV)], XMMatrixInverse(nullptr, Get_Transform_Matrix(D3DTS::VIEW)));
|
||||
XMStoreFloat4x4(&m_TransformMatrices[ENUM_CLASS(D3DTS::PROJ_INV)], XMMatrixInverse(nullptr, Get_Transform_Matrix(D3DTS::PROJ)));
|
||||
|
||||
|
||||
memcpy(&m_vCamPosition, &m_TransformStateMatrices[ENUM_CLASS(D3DTS::VIEW_INV)].m[3], sizeof(_float4));
|
||||
_matrix ProjInvMatrix = XMLoadFloat4x4(&m_TransformStateMatrices[ENUM_CLASS(D3DTS::PROJ_INV)]);
|
||||
_matrix ViewInvMatrix = XMLoadFloat4x4(&m_TransformStateMatrices[ENUM_CLASS(D3DTS::VIEW_INV)]);
|
||||
memcpy(&m_vCamPosition, &m_TransformMatrices[ENUM_CLASS(D3DTS::VIEW_INV)].m[3], sizeof(_float4));
|
||||
_matrix ProjInvMatrix = XMLoadFloat4x4(&m_TransformMatrices[ENUM_CLASS(D3DTS::PROJ_INV)]);
|
||||
_matrix ViewInvMatrix = XMLoadFloat4x4(&m_TransformMatrices[ENUM_CLASS(D3DTS::VIEW_INV)]);
|
||||
_matrix WorldFromClipMatrix = XMMatrixMultiply(ProjInvMatrix, ViewInvMatrix);
|
||||
|
||||
_vector vShadowInvQuat = XMLoadFloat4(&m_vShadowInvDirectionalRPYQuat);
|
||||
_vector vShadowInvQuat = XMLoadFloat4(&m_vShadowInvQuat);
|
||||
for (size_t i = 0; i < 8; ++i)
|
||||
{
|
||||
XMStoreFloat4(&m_vWorldPoints[i], XMVector3TransformCoord(XMLoadFloat4(&m_vOriginalRenderFrustumPoints[i]), WorldFromClipMatrix));
|
||||
@@ -314,7 +314,7 @@ HRESULT CPipeLine::Initialize()
|
||||
m_vOriginalShadowFrustumPoints[15] = m_vOriginalRenderFrustumPoints[7] = _float4(-1.f, -1.f, 1.f, 1.f); // LB
|
||||
|
||||
for (_uint i = ENUM_CLASS(D3DTS::VIEW); i < ENUM_CLASS(D3DTS::END); ++i) {
|
||||
XMStoreFloat4x4(&m_TransformStateMatrices[i], XMMatrixIdentity());
|
||||
XMStoreFloat4x4(&m_TransformMatrices[i], XMMatrixIdentity());
|
||||
}
|
||||
|
||||
if (nullptr == m_pDSS_OutLineWrite) {
|
||||
@@ -356,16 +356,17 @@ void CPipeLine::Make_Planes(const _float4* pPoints, _float4* pPlanes)
|
||||
|
||||
void CPipeLine::Make_LightBoxes()
|
||||
{
|
||||
// AABB Lighting space
|
||||
_vector vShadowInvQuat = XMLoadFloat4(&m_vShadowInvDirectionalRPYQuat);
|
||||
_matrix ViewMatrix = XMMatrixRotationQuaternion(vShadowInvQuat);
|
||||
// Directional Light 기준 View Matrix
|
||||
_matrix ViewMatrix = XMMatrixRotationQuaternion(XMLoadFloat4(&m_vShadowInvQuat));
|
||||
_matrix ViewInvMatrix = XMMatrixInverse(nullptr, ViewMatrix);
|
||||
|
||||
for (_uint iIndex = 0; iIndex < 3; ++iIndex)
|
||||
// Cascaded Shadow Map (3단계: Near / Middle / Far)
|
||||
for (_uint iCSMIndex = 0; iCSMIndex < 3; ++iCSMIndex)
|
||||
{
|
||||
_float4 vCascadePoints8[8] = {};
|
||||
Get_CascadePoints8(m_vShadowViewPoints, iIndex, vCascadePoints8);
|
||||
Get_CascadePoints8(m_vShadowViewPoints, iCSMIndex, vCascadePoints8);
|
||||
|
||||
// AABB 초기값 설정 (첫 번째 점 기준)
|
||||
_float fMinX = vCascadePoints8[0].x;
|
||||
_float fMinY = vCascadePoints8[0].y;
|
||||
_float fMinZ = vCascadePoints8[0].z;
|
||||
@@ -374,6 +375,7 @@ void CPipeLine::Make_LightBoxes()
|
||||
_float fMaxY = vCascadePoints8[0].y;
|
||||
_float fMaxZ = vCascadePoints8[0].z;
|
||||
|
||||
// 8개의 점을 순회하면서 AABB 계산 (Bounding Box 생성)
|
||||
for (_uint iPointIndex = 1; iPointIndex < 8; ++iPointIndex)
|
||||
{
|
||||
fMinX = min(fMinX, vCascadePoints8[iPointIndex].x);
|
||||
@@ -385,21 +387,18 @@ void CPipeLine::Make_LightBoxes()
|
||||
fMaxZ = max(fMaxZ, vCascadePoints8[iPointIndex].z);
|
||||
}
|
||||
|
||||
_float4* targetPlanes = nullptr;
|
||||
if (iIndex == 0) targetPlanes = m_vNearShadowViewBoxPlane;
|
||||
if (iIndex == 1) targetPlanes = m_vMiddleShadowViewBoxPlane;
|
||||
if (iIndex == 2) targetPlanes = m_vFarShadowViewBoxPlane;
|
||||
|
||||
fMinX += m_vShadowBoxMarginMin.x;
|
||||
fMaxX += m_vShadowBoxMarginMax.x;
|
||||
fMinY += m_vShadowBoxMarginMin.y;
|
||||
fMaxY += m_vShadowBoxMarginMax.y;
|
||||
fMinZ += m_vShadowBoxMarginMin.z;
|
||||
fMaxZ += m_vShadowBoxMarginMax.z;
|
||||
// Shadow Box 여유 공간 추가 (Shadow clipping 방지 / 안정성 확보)
|
||||
fMinX += m_vShadowMarginMin.x;
|
||||
fMaxX += m_vShadowMarginMax.x;
|
||||
fMinY += m_vShadowMarginMin.y;
|
||||
fMaxY += m_vShadowMarginMax.y;
|
||||
fMinZ += m_vShadowMarginMin.z;
|
||||
fMaxZ += m_vShadowMarginMax.z;
|
||||
|
||||
// Cascade 별 Shadow Map 해상도 설정
|
||||
_uint iShadowWidth = { 0 };
|
||||
_uint iShadowHeight = { 0 };
|
||||
switch (iIndex)
|
||||
switch (iCSMIndex)
|
||||
{
|
||||
case 0:
|
||||
iShadowWidth = g_iNearShadowWidth;
|
||||
@@ -419,21 +418,32 @@ void CPipeLine::Make_LightBoxes()
|
||||
|
||||
Adjust_ShadowTexcel(fMinX, fMinY, fMaxX, fMaxY, iShadowWidth, iShadowHeight);
|
||||
|
||||
targetPlanes[0] = _float4(-1.f, 0.f, 0.f, fMinX); // Left
|
||||
targetPlanes[1] = _float4(1.f, 0.f, 0.f, -fMaxX); // Right
|
||||
targetPlanes[2] = _float4(0.f, -1.f, 0.f, fMinY); // Bottom
|
||||
targetPlanes[3] = _float4(0.f, 1.f, 0.f, -fMaxY); // Top
|
||||
targetPlanes[4] = _float4(0.f, 0.f, -1.f, fMinZ); // Near
|
||||
targetPlanes[5] = _float4(0.f, 0.f, 1.f, -fMaxZ); // Far
|
||||
// 각 Cascade 별로 결과를 저장할 Plane 배열 선택
|
||||
_float4* pTargetPlanes = nullptr;
|
||||
if (iCSMIndex == 0) pTargetPlanes = m_vNearShadowViewBoxPlane;
|
||||
if (iCSMIndex == 1) pTargetPlanes = m_vMiddleShadowViewBoxPlane;
|
||||
if (iCSMIndex == 2) pTargetPlanes = m_vFarShadowViewBoxPlane;
|
||||
|
||||
XMStoreFloat4x4(&m_ShadowTransformStateMatrices[iIndex][ENUM_CLASS(D3DTS::VIEW)], ViewMatrix);
|
||||
XMStoreFloat4x4(&m_ShadowTransformStateMatrices[iIndex][ENUM_CLASS(D3DTS::VIEW_INV)], ViewInvMatrix);
|
||||
// Light-Space AABB를 Plane 형태로 변환 (Frustum 형태)
|
||||
// 물체는 그대로 World 좌표 사용
|
||||
// Plane vs Bounding Volume 테스트만 수행
|
||||
pTargetPlanes[0] = _float4(-1.f, 0.f, 0.f, fMinX); // Left
|
||||
pTargetPlanes[1] = _float4(1.f, 0.f, 0.f, -fMaxX); // Right
|
||||
pTargetPlanes[2] = _float4(0.f, -1.f, 0.f, fMinY); // Bottom
|
||||
pTargetPlanes[3] = _float4(0.f, 1.f, 0.f, -fMaxY); // Top
|
||||
pTargetPlanes[4] = _float4(0.f, 0.f, -1.f, fMinZ); // Near
|
||||
pTargetPlanes[5] = _float4(0.f, 0.f, 1.f, -fMaxZ); // Far
|
||||
|
||||
// Orthographic Projection 생성 Off-Center 방식 사용
|
||||
_matrix ProjMatrix = XMMatrixOrthographicOffCenterLH(fMinX, fMaxX, fMinY, fMaxY, fMinZ, fMaxZ);
|
||||
XMStoreFloat4x4(&m_ShadowTransformStateMatrices[iIndex][ENUM_CLASS(D3DTS::PROJ)], ProjMatrix);
|
||||
XMStoreFloat4x4(&m_ShadowTransformStateMatrices[iIndex][ENUM_CLASS(D3DTS::PROJ_INV)], XMMatrixInverse(nullptr, ProjMatrix));
|
||||
}
|
||||
|
||||
// Light View / View Inverse 저장
|
||||
XMStoreFloat4x4(&m_ShadowTransformMatrices[iCSMIndex][ENUM_CLASS(D3DTS::VIEW)], ViewMatrix);
|
||||
XMStoreFloat4x4(&m_ShadowTransformMatrices[iCSMIndex][ENUM_CLASS(D3DTS::VIEW_INV)], ViewInvMatrix);
|
||||
// Light Projection / Projection Inverse 저장
|
||||
XMStoreFloat4x4(&m_ShadowTransformMatrices[iCSMIndex][ENUM_CLASS(D3DTS::PROJ)], ProjMatrix);
|
||||
XMStoreFloat4x4(&m_ShadowTransformMatrices[iCSMIndex][ENUM_CLASS(D3DTS::PROJ_INV)], XMMatrixInverse(nullptr, ProjMatrix));
|
||||
}
|
||||
}
|
||||
|
||||
void CPipeLine::Get_CascadePoints8(const _float4* pShadowViewPoints16, _uint iIndexCascade, _float4* pOutPoints8)
|
||||
@@ -565,8 +575,8 @@ void CPipeLine::Describe_Entity()
|
||||
_float fSafe_RadiusMargin = m_fSafe_RadiusMargin;
|
||||
_float4 vShadowBias = m_vShadowBias;
|
||||
_float4 vShadowRadius = m_vShadowRadius;
|
||||
_float3 vShadowBoxMarginMin = m_vShadowBoxMarginMin;
|
||||
_float3 vShadowBoxMarginMax = m_vShadowBoxMarginMax;
|
||||
_float3 vShadowBoxMarginMin = m_vShadowMarginMin;
|
||||
_float3 vShadowBoxMarginMax = m_vShadowMarginMax;
|
||||
if (GUI::DragFloat("m_fShadowNearBoxRatio", &fNear, 0.001f, 0.001f, 0.999f, "%.3f")) {
|
||||
bModified = true;
|
||||
}
|
||||
@@ -598,8 +608,8 @@ void CPipeLine::Describe_Entity()
|
||||
m_vShadowRadius = vShadowRadius;
|
||||
m_fSafe_RadiusMultiplier = fSafe_RadiusMultiplier;
|
||||
m_fSafe_RadiusMargin = fSafe_RadiusMargin;
|
||||
m_vShadowBoxMarginMin = vShadowBoxMarginMin;
|
||||
m_vShadowBoxMarginMax = vShadowBoxMarginMax;
|
||||
m_vShadowMarginMin = vShadowBoxMarginMin;
|
||||
m_vShadowMarginMax = vShadowBoxMarginMax;
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
|
||||
@@ -12,7 +12,7 @@ void CRenderer::Render()
|
||||
Render_NonBlend();
|
||||
Render_Decal();
|
||||
Render_EffectNonBlend();
|
||||
Render_SSAO();\
|
||||
Render_SSAO();
|
||||
Render_SSAO_BLUR();
|
||||
Render_LightAcc();
|
||||
Render_Combined();
|
||||
@@ -253,6 +253,10 @@ void CRenderer::Render_Shadow()
|
||||
{
|
||||
COMPUTE_TIMEDELTA("Timer_Render_Shadow");
|
||||
EVENTSCOPE_("Render_Shadow");
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
m_ShadowNearBreakdown.Reset();
|
||||
m_ShadowMiddleBreakdown.Reset();
|
||||
#endif
|
||||
D3D11_VIEWPORT ViewPortOldDesc;
|
||||
_uint iNumViewOldPort = { 1 };
|
||||
ZeroMemory(&ViewPortOldDesc, sizeof(D3D11_VIEWPORT));
|
||||
@@ -292,7 +296,11 @@ void CRenderer::Render_Shadow()
|
||||
|
||||
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::SHADOW_NEAR)]) {
|
||||
if (nullptr != pRenderObject) {
|
||||
if (FAILED(pRenderObject->Render_Shadow(SHADOW::SHADOW_NEAR))) {
|
||||
const _bool bRenderSuccess = SUCCEEDED(pRenderObject->Render_Shadow(SHADOW::SHADOW_NEAR));
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
Collect_RenderBreakdown(m_ShadowNearBreakdown, pRenderObject, bRenderSuccess);
|
||||
#endif
|
||||
if (false == bRenderSuccess) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
@@ -326,7 +334,11 @@ void CRenderer::Render_Shadow()
|
||||
|
||||
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::SHADOW_MIDDLE)]) {
|
||||
if (nullptr != pRenderObject) {
|
||||
if (FAILED(pRenderObject->Render_Shadow(SHADOW::SHADOW_MIDDLE))) {
|
||||
const _bool bRenderSuccess = SUCCEEDED(pRenderObject->Render_Shadow(SHADOW::SHADOW_MIDDLE));
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
Collect_RenderBreakdown(m_ShadowMiddleBreakdown, pRenderObject, bRenderSuccess);
|
||||
#endif
|
||||
if (false == bRenderSuccess) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
@@ -370,6 +382,9 @@ void CRenderer::Render_NonBlend()
|
||||
COMPUTE_TIMEDELTA("Timer_Render_NonBlend");
|
||||
EVENTSCOPE_("Render_NonBlend");
|
||||
m_eType = RENDER::NONBLEND;
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
m_NonBlendBreakdown.Reset();
|
||||
#endif
|
||||
|
||||
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_GameObjects")))) {
|
||||
return;
|
||||
@@ -378,7 +393,11 @@ void CRenderer::Render_NonBlend()
|
||||
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::NONBLEND)])
|
||||
{
|
||||
if (nullptr != pRenderObject) {
|
||||
if (FAILED(pRenderObject->Render())) {
|
||||
const _bool bRenderSuccess = SUCCEEDED(pRenderObject->Render());
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
Collect_RenderBreakdown(m_NonBlendBreakdown, pRenderObject, bRenderSuccess);
|
||||
#endif
|
||||
if (false == bRenderSuccess) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
@@ -393,6 +412,72 @@ void CRenderer::Render_NonBlend()
|
||||
COMPUTE_TIMEDELTA("Timer_Render_NonBlend");
|
||||
}
|
||||
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
void CRenderer::Collect_RenderBreakdown(RENDER_PASS_BREAKDOWN& Breakdown, CGameObject* pRenderObject, _bool bRenderResult)
|
||||
{
|
||||
if (nullptr == pRenderObject) {
|
||||
return;
|
||||
}
|
||||
|
||||
++Breakdown.iObjectCount;
|
||||
if (false == bRenderResult) {
|
||||
++Breakdown.iRenderFailCount;
|
||||
}
|
||||
|
||||
const _uint iObjectTag = pRenderObject->Get_ObjectTag();
|
||||
++Breakdown.ObjectTagCounts[iObjectTag];
|
||||
|
||||
const _string strTypeName = typeid(*pRenderObject).name();
|
||||
++Breakdown.ObjectTypeCounts[strTypeName];
|
||||
}
|
||||
|
||||
void CRenderer::Draw_RenderBreakdown(const _char* pTitle, const RENDER_PASS_BREAKDOWN& Breakdown, _uint iTopN)
|
||||
{
|
||||
if (nullptr == pTitle) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (GUI::TreeNode(pTitle))
|
||||
{
|
||||
GUI::Text("Objects: %u / Fail: %u", Breakdown.iObjectCount, Breakdown.iRenderFailCount);
|
||||
|
||||
if (GUI::TreeNode("Top Object Types"))
|
||||
{
|
||||
vector<pair<_string, _uint>> TypeCounts(
|
||||
Breakdown.ObjectTypeCounts.begin(), Breakdown.ObjectTypeCounts.end());
|
||||
sort(TypeCounts.begin(), TypeCounts.end(),
|
||||
[](const pair<_string, _uint>& Left, const pair<_string, _uint>& Right) {
|
||||
return Left.second > Right.second;
|
||||
});
|
||||
|
||||
const _uint iMaxCount = min<_uint>(iTopN, (_uint)TypeCounts.size());
|
||||
for (_uint i = 0; i < iMaxCount; ++i) {
|
||||
GUI::Text("%u) %s : %u", i + 1, TypeCounts[i].first.c_str(), TypeCounts[i].second);
|
||||
}
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
if (GUI::TreeNode("Top Object Tags"))
|
||||
{
|
||||
vector<pair<_uint, _uint>> TagCounts(
|
||||
Breakdown.ObjectTagCounts.begin(), Breakdown.ObjectTagCounts.end());
|
||||
sort(TagCounts.begin(), TagCounts.end(),
|
||||
[](const pair<_uint, _uint>& Left, const pair<_uint, _uint>& Right) {
|
||||
return Left.second > Right.second;
|
||||
});
|
||||
|
||||
const _uint iMaxCount = min<_uint>(iTopN, (_uint)TagCounts.size());
|
||||
for (_uint i = 0; i < iMaxCount; ++i) {
|
||||
GUI::Text("%u) Tag[%u] : %u", i + 1, TagCounts[i].first, TagCounts[i].second);
|
||||
}
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
}
|
||||
#endif // RELEASE_DEBUGGER
|
||||
|
||||
void CRenderer::Render_Decal()
|
||||
{
|
||||
m_pGameInstance->Copy_RenderTargetAToB(TEXT("Target_Normal"), TEXT("Target_NormalCopy"));
|
||||
|
||||
@@ -722,6 +722,10 @@ void CRenderer::Describe_Entitiy()
|
||||
GUI::DragFloat("SpecularMaximum", &m_fLightSpecularMaximum, 0.01f, 0.0f, 2.f, "%.3f");
|
||||
GUI::DragFloat("fMinShadowBrightness", &m_fMinShadowBrightness, 0.01f, 0.0f, 1.f, "%.3f");
|
||||
GUI::Checkbox("UsePhongShader", &m_bUsePhongShader);
|
||||
_float fDepthOcclusionThreshold = m_pGameInstance->Get_DepthOcclusionThreshold();
|
||||
if (GUI::SliderFloat("DepthOcclusionThreshold", &fDepthOcclusionThreshold, 15.f, 150.f, "%.1f")) {
|
||||
m_pGameInstance->Set_DepthOcclusionThreshold(fDepthOcclusionThreshold);
|
||||
}
|
||||
}
|
||||
if (GUI::CollapsingHeader("PostProcessing_Bloom"))
|
||||
{
|
||||
@@ -749,6 +753,16 @@ void CRenderer::Describe_Entitiy()
|
||||
GUI::SliderFloat("m_fMBMaxBlurRadius", &m_fMBMaxBlurRadius, 0.1f, (_float)m_iMBMaxSampleCount, "%.1f");
|
||||
GUI::SliderInt("g_iMBSampleCount", &m_iMBSampleCount, 0, m_iMBMaxSampleCount, "%d");
|
||||
}
|
||||
if (GUI::CollapsingHeader("Render_Breakdown"))
|
||||
{
|
||||
GUI::Checkbox("Show Breakdown", &m_bShowRenderBreakdown);
|
||||
if (m_bShowRenderBreakdown)
|
||||
{
|
||||
Draw_RenderBreakdown("NonBlend", m_NonBlendBreakdown, 10);
|
||||
Draw_RenderBreakdown("Shadow_Near", m_ShadowNearBreakdown, 10);
|
||||
Draw_RenderBreakdown("Shadow_Middle", m_ShadowMiddleBreakdown, 10);
|
||||
}
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
if (GUI::Button("Refresh_Shader")) {
|
||||
m_pShader->Shader_Refresh();
|
||||
|
||||
@@ -394,7 +394,7 @@ HRESULT CRigidBody_Dynamic::Initialize(void* pArg)
|
||||
m_tagData.pOwner = m_pOwner;
|
||||
XMStoreFloat4x4(&m_tagData.BeforeMatrix, m_pTransform->Get_XMWorldMatrix());
|
||||
m_tagData.pBody = this;
|
||||
m_tagData.bAutoOwnerTranslation = pDesc->bAutoOwnerTranslation;
|
||||
m_tagData.bAutoTranslation = pDesc->bAutoTranslation;
|
||||
m_pRigidBody = m_pGameInstance->Add_DynamicActor(*this, m_pGameInstance->Get_NextLevelID());
|
||||
m_pRigidBody->setCMassLocalPose(m_PxMassCenter);
|
||||
m_pRigidBody->setRigidDynamicLockFlags(m_eLockFlag);
|
||||
|
||||
@@ -46,7 +46,6 @@ HRESULT CTimer_Manager::Add_Timer(const _wstring& strTimerTag)
|
||||
|
||||
HRESULT CTimer_Manager::Initialize()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if (FAILED(Add_Timer(TEXT("Timer_Render_Priority")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -107,7 +106,6 @@ HRESULT CTimer_Manager::Initialize()
|
||||
if (FAILED(Add_Timer(TEXT("Timer_Render_UI_Overley")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // _DEBUG
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -276,32 +276,32 @@ void CTransform::Translation(_fvector vTrans)
|
||||
Set_State(STATE::POSITION, Get_State(STATE::POSITION) + XMVectorSetW(vTrans, 0.f));
|
||||
}
|
||||
|
||||
void CTransform::AccumulateMomentum(_fvector vMomentum)
|
||||
void CTransform::AccumulateVelocity(_fvector vVelocity)
|
||||
{
|
||||
XMStoreFloat3(&m_vMomentum, (XMLoadFloat3(&m_vMomentum) + XMVectorSetW(vMomentum, 0.f)));
|
||||
XMStoreFloat3(&m_vVelocityVector, (XMLoadFloat3(&m_vVelocityVector) + XMVectorSetW(vVelocity, 0.f)));
|
||||
}
|
||||
_vector CTransform::Get_CurrentMomentum() const
|
||||
void CTransform::ResetVelocityVector()
|
||||
{
|
||||
return XMLoadFloat3(&m_vMomentum);
|
||||
}
|
||||
void CTransform::Set_CurrentMomentum(_fvector vMomentum)
|
||||
{
|
||||
XMStoreFloat3(&m_vMomentum, vMomentum);
|
||||
}
|
||||
_vector CTransform::Get_EstimatedPositionByMomentum() const
|
||||
{
|
||||
return XMVectorSetW(Get_State(STATE::POSITION) + XMLoadFloat3(&m_vMomentum), 1.f);
|
||||
}
|
||||
void CTransform::RewindMomentum()
|
||||
{
|
||||
m_vMomentum = m_vBackMomentum;
|
||||
m_vBackMomentum = { 0.f, 0.f, 0.f };
|
||||
m_vVelocityVector = m_vBackVelocityVector;
|
||||
m_vBackVelocityVector = { 0.f, 0.f, 0.f };
|
||||
m_PrevMatrix = m_WorldMatrix;
|
||||
}
|
||||
|
||||
void CTransform::BookMomentum(_fvector vMomentum)
|
||||
_vector CTransform::Get_CurrentVelocity() const
|
||||
{
|
||||
XMStoreFloat3(&m_vBackMomentum, (XMLoadFloat3(&m_vBackMomentum) + XMVectorSetW(vMomentum, 0.f)));
|
||||
return XMLoadFloat3(&m_vVelocityVector);
|
||||
}
|
||||
void CTransform::Set_CurrentVelocity(_fvector vVelocity)
|
||||
{
|
||||
XMStoreFloat3(&m_vVelocityVector, vVelocity);
|
||||
}
|
||||
_vector CTransform::Get_EstimatedPositionByVelocityVector() const
|
||||
{
|
||||
return XMVectorSetW(Get_State(STATE::POSITION) + XMLoadFloat3(&m_vVelocityVector), 1.f);
|
||||
}
|
||||
|
||||
void CTransform::BookVelocity(_fvector vVelocity)
|
||||
{
|
||||
XMStoreFloat3(&m_vBackVelocityVector, (XMLoadFloat3(&m_vBackVelocityVector) + XMVectorSetW(vVelocity, 0.f)));
|
||||
}
|
||||
|
||||
void CTransform::Turn(_fvector vAxis, _float fTimeDelta)
|
||||
|
||||
@@ -1560,7 +1560,7 @@ static void DemoWindowWidgetsDragAndDrop()
|
||||
};
|
||||
static int mode = 0;
|
||||
if (ImGui::RadioButton("Copy", mode == Mode_Copy)) { mode = Mode_Copy; } ImGui::SameLine();
|
||||
if (ImGui::RadioButton("AccumulateMomentum", mode == Mode_Move)) { mode = Mode_Move; } ImGui::SameLine();
|
||||
if (ImGui::RadioButton("AccumulateVelocity", mode == Mode_Move)) { mode = Mode_Move; } ImGui::SameLine();
|
||||
if (ImGui::RadioButton("Swap", mode == Mode_Swap)) { mode = Mode_Swap; }
|
||||
static const char* names[9] =
|
||||
{
|
||||
@@ -1584,7 +1584,7 @@ static void DemoWindowWidgetsDragAndDrop()
|
||||
// Display preview (could be anything, e.g. when dragging an image we could decide to display
|
||||
// the filename and a small preview of the image, etc.)
|
||||
if (mode == Mode_Copy) { ImGui::Text("Copy %s", names[n]); }
|
||||
if (mode == Mode_Move) { ImGui::Text("AccumulateMomentum %s", names[n]); }
|
||||
if (mode == Mode_Move) { ImGui::Text("AccumulateVelocity %s", names[n]); }
|
||||
if (mode == Mode_Swap) { ImGui::Text("Swap %s", names[n]); }
|
||||
ImGui::EndDragDropSource();
|
||||
}
|
||||
|
||||
@@ -128,14 +128,6 @@ enum class PHYSX_KIND {
|
||||
OBSTACLEActor,
|
||||
};
|
||||
|
||||
enum class PHYSX_JOINT {
|
||||
D6,
|
||||
DISTANCE,
|
||||
REVOLUTE,
|
||||
FIXED,
|
||||
END
|
||||
};
|
||||
|
||||
enum class PXOBJECT : _uint {
|
||||
#pragma region NOT_DEFINE
|
||||
NOT_DEFINE = 0,
|
||||
@@ -240,6 +232,14 @@ enum class PXOBJECT : _uint {
|
||||
END = 999
|
||||
};
|
||||
|
||||
enum class PHYSX_JOINT {
|
||||
D6,
|
||||
DISTANCE,
|
||||
REVOLUTE,
|
||||
FIXED,
|
||||
END
|
||||
};
|
||||
|
||||
enum class HIT_TYPE
|
||||
{
|
||||
HIT_NONE = 0, // 히트모션 없음
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#endif // !_DEBUG
|
||||
|
||||
//#ifdef 기무리
|
||||
#define DEBUG_MOTIONBLUR
|
||||
//#define DEBUG_MOTIONBLUR
|
||||
//#define DEBUG_SSAO
|
||||
//#define DEBUG_SHADOW
|
||||
//#define DEBUG_CAMERAS
|
||||
|
||||
@@ -376,7 +376,7 @@ typedef struct tagVertexInstance_UIDesc
|
||||
typedef struct tagPHYSX_USERDATA {
|
||||
|
||||
PHYSX_KIND eKind = PHYSX_KIND::NOT_DEFINED;
|
||||
_bool bAutoOwnerTranslation = true;
|
||||
_bool bAutoTranslation = true;
|
||||
|
||||
class CGameObject* pOwner = { nullptr };
|
||||
_float4x4 BeforeMatrix = { };
|
||||
|
||||
@@ -32,6 +32,8 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
void Set_RenderCollider(_bool bRender) { m_bRenderCollider = bRender; }
|
||||
void Toggle_RenderCollider() { m_bRenderCollider = !m_bRenderCollider; }
|
||||
#endif RELEASE_DEBUGGER
|
||||
_float Get_DepthOcclusionThreshold() const { return m_fDepthOcclusionThreshold; }
|
||||
void Set_DepthOcclusionThreshold(_float fThreshold) { m_fDepthOcclusionThreshold = max(15.f, min(150.f, fThreshold)); }
|
||||
#pragma region GRAPHIC_DEVICE
|
||||
public:
|
||||
void Render_Begin(const _float4* pClearColor);
|
||||
@@ -350,7 +352,6 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
_bool m_isSlowMotion = {};
|
||||
_float2 m_vSlowTime = {};
|
||||
_float m_fSlowIntense = {};
|
||||
#ifdef _DEBUG
|
||||
private:
|
||||
_bool m_bRendererTimerOpen = false;
|
||||
|
||||
@@ -389,9 +390,9 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
vector<const _char*> m_FilePaths = {};
|
||||
map<const _char*, CModel*> m_ModelMap;
|
||||
|
||||
#endif // _DEBUG
|
||||
_bool m_bRenderCollider = false;
|
||||
_bool m_bRenderSystem = false;
|
||||
_float m_fDepthOcclusionThreshold = 50.f;
|
||||
|
||||
map<const _char*, SaveModel> m_sModelMap;
|
||||
public:
|
||||
|
||||
@@ -59,16 +59,16 @@ class CPipeLine final : public CBase
|
||||
ID3D11Device* m_pDevice = { nullptr };
|
||||
ID3D11DeviceContext* m_pContext = { nullptr };
|
||||
class CGameInstance* m_pGameInstance = { nullptr };
|
||||
_float4x4 m_TransformStateMatrices[ENUM_CLASS(D3DTS::END)] = {};
|
||||
_float4x4 m_ShadowTransformStateMatrices[3][ENUM_CLASS(D3DTS::END)] = {};
|
||||
_float4x4 m_TransformMatrices[ENUM_CLASS(D3DTS::END)] = {};
|
||||
_float4x4 m_ShadowTransformMatrices[3][ENUM_CLASS(D3DTS::END)] = {};
|
||||
_float4 m_vCamPosition = {};
|
||||
|
||||
_float m_fShadowNearBoxRatio = { 0.075f };
|
||||
_float m_fShadowFarBoxRatio = { 0.15f };
|
||||
_float m_fSafe_RadiusMultiplier = { 2.3f };
|
||||
_float m_fSafe_RadiusMargin = { 10.f };
|
||||
_float3 m_vShadowBoxMarginMin = { 0.f, 0.f, -25.f };
|
||||
_float3 m_vShadowBoxMarginMax = { 0.f, 0.f, 25.f };
|
||||
_float3 m_vShadowMarginMin = { 0.f, 0.f, -25.f };
|
||||
_float3 m_vShadowMarginMax = { 0.f, 0.f, 25.f };
|
||||
|
||||
_float4 m_vShadowBias = { 0.0047f, 0.0018f, 0.0018f, 0.0018f };
|
||||
_float4 m_vShadowRadius = { 2.f, 1.f, 1.f, 1.f };
|
||||
@@ -87,8 +87,8 @@ class CPipeLine final : public CBase
|
||||
_float4 m_vLocalNearShadowViewBoxPlane[6] = {};
|
||||
_float4 m_vLocalMiddleShadowViewBoxPlane[6] = {};
|
||||
_float4 m_vLocalFarShadowViewBoxPlane[6] = {};
|
||||
_float4 m_vShadowDirectionalRPYQuat = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vShadowInvDirectionalRPYQuat = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vShadowQuat = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vShadowInvQuat = { 0.f, 0.f, 0.f, 1.f };
|
||||
|
||||
unordered_map<_wstring, ID3D11ShaderResourceView*> m_mapGlobalSRV = {};
|
||||
ID3D11DepthStencilState* m_pDSS_OutLineWrite = { nullptr };
|
||||
|
||||
@@ -39,6 +39,27 @@ class CRenderer final : public CBase
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
private:
|
||||
list<class CComponent*> m_DebugComponents;
|
||||
|
||||
struct RENDER_PASS_BREAKDOWN
|
||||
{
|
||||
_uint iObjectCount = 0;
|
||||
_uint iRenderFailCount = 0;
|
||||
unordered_map<_string, _uint> ObjectTypeCounts = {};
|
||||
unordered_map<_uint, _uint> ObjectTagCounts = {};
|
||||
|
||||
void Reset()
|
||||
{
|
||||
iObjectCount = 0;
|
||||
iRenderFailCount = 0;
|
||||
ObjectTypeCounts.clear();
|
||||
ObjectTagCounts.clear();
|
||||
}
|
||||
};
|
||||
|
||||
RENDER_PASS_BREAKDOWN m_NonBlendBreakdown = {};
|
||||
RENDER_PASS_BREAKDOWN m_ShadowNearBreakdown = {};
|
||||
RENDER_PASS_BREAKDOWN m_ShadowMiddleBreakdown = {};
|
||||
_bool m_bShowRenderBreakdown = true;
|
||||
#endif
|
||||
private:
|
||||
class CShader* m_pShader = { nullptr };
|
||||
@@ -109,6 +130,7 @@ class CRenderer final : public CBase
|
||||
_float m_fSSAO_Radius = { 0.543f };
|
||||
_float m_fSSAO_BIAS = { 0.401f };
|
||||
_float m_fSSAOStrength = { 4.f };
|
||||
_bool m_bSSAORangeCheck = { true };
|
||||
|
||||
SSAO_GEOMETRY_HEMISPHERE m_tagSSAOGeometry = {};
|
||||
SSAO_GEOMETRYDIRECTIONS_RANDOM_REAL m_tagSSAOGeometryDirections = {};
|
||||
@@ -146,6 +168,8 @@ class CRenderer final : public CBase
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
private:
|
||||
void Render_Debug();
|
||||
void Collect_RenderBreakdown(RENDER_PASS_BREAKDOWN& Breakdown, CGameObject* pRenderObject, _bool bRenderResult);
|
||||
void Draw_RenderBreakdown(const _char* pTitle, const RENDER_PASS_BREAKDOWN& Breakdown, _uint iTopN = 10);
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
||||
@@ -19,7 +19,7 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody
|
||||
|
||||
typedef struct tagRigidBody_DYNAMIC_Desc : public CRigidBody::RIGIDBODY_DESC
|
||||
{
|
||||
_bool bAutoOwnerTranslation = true;
|
||||
_bool bAutoTranslation = true;
|
||||
}RIGIDBODY_DYNAMIC_DESC;
|
||||
|
||||
private:
|
||||
@@ -62,8 +62,8 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody
|
||||
_vector Get_Position();
|
||||
void Set_Position(_vector vPos, _bool bTeleport);
|
||||
void Set_Rotation(_vector vRotQ, _bool bTeleport);
|
||||
void Set_AutoOwnerTranlation(_bool bAutoOwnerTranslation) { m_tagData.bAutoOwnerTranslation = bAutoOwnerTranslation; };
|
||||
_bool Get_AutoOwnerTranlation() { return m_tagData.bAutoOwnerTranslation; };
|
||||
void Set_AutoOwnerTranlation(_bool bAutoTranslation) { m_tagData.bAutoTranslation = bAutoTranslation; };
|
||||
_bool Get_AutoOwnerTranlation() { return m_tagData.bAutoTranslation; };
|
||||
|
||||
void Set_Transform(_matrix WorldMatrix, _bool bTeleport);
|
||||
void Set_Transform(_vector vPos, _vector vRotQ, _bool bTeleport);
|
||||
|
||||
@@ -63,13 +63,13 @@ class ENGINE_DLL CTransform final :
|
||||
void Translation(_float3& vTrans);
|
||||
void Translation(_fvector vTrans);
|
||||
|
||||
void AccumulateMomentum(_fvector vMomentum);
|
||||
_vector Get_CurrentMomentum() const;
|
||||
void Set_CurrentMomentum(_fvector vMomentum);
|
||||
void RewindMomentum();
|
||||
void AccumulateVelocity(_fvector vVelocity);
|
||||
_vector Get_CurrentVelocity() const;
|
||||
void Set_CurrentVelocity(_fvector vVelocity);
|
||||
void ResetVelocityVector();
|
||||
|
||||
_vector Get_EstimatedPositionByMomentum() const;
|
||||
void BookMomentum(_fvector vMomentum);
|
||||
_vector Get_EstimatedPositionByVelocityVector() const;
|
||||
void BookVelocity(_fvector vVelocity);
|
||||
|
||||
void Turn(_fvector vAxis, _float fTimeDelta);
|
||||
void TurnAngle(_float4 vAxis, _float fAngle);
|
||||
@@ -103,8 +103,8 @@ class ENGINE_DLL CTransform final :
|
||||
_float4x4 m_PrevMatrix = {};
|
||||
_float m_fRadius = { 20.f };
|
||||
|
||||
_float3 m_vMomentum = {}; // 현재 프레임에 계산된 이동량
|
||||
_float3 m_vBackMomentum = {}; // 다음 프레임에 계산될 이동량
|
||||
_float3 m_vVelocityVector = {}; // 현재 프레임에 계산된 이동량
|
||||
_float3 m_vBackVelocityVector = {}; // 다음 프레임에 계산될 이동량
|
||||
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
_float3 m_vRotation = {0.f, 0.f, 0.f};
|
||||
|
||||
@@ -0,0 +1,283 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- saved from url=(0014)about:internet -->
|
||||
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt"><head><meta content="en-us" http-equiv="Content-Language" /><meta content="text/html; charset=utf-16" http-equiv="Content-Type" /><title _locID="ConversionReport0">
|
||||
마이그레이션 보고서
|
||||
</title><style>
|
||||
/* Body style, for the entire document */
|
||||
body
|
||||
{
|
||||
background: #F3F3F4;
|
||||
color: #1E1E1F;
|
||||
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Header1 style, used for the main title */
|
||||
h1
|
||||
{
|
||||
padding: 10px 0px 10px 10px;
|
||||
font-size: 21pt;
|
||||
background-color: #E2E2E2;
|
||||
border-bottom: 1px #C1C1C2 solid;
|
||||
color: #201F20;
|
||||
margin: 0;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* Header2 style, used for "Overview" and other sections */
|
||||
h2
|
||||
{
|
||||
font-size: 18pt;
|
||||
font-weight: normal;
|
||||
padding: 15px 0 5px 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Header3 style, used for sub-sections, such as project name */
|
||||
h3
|
||||
{
|
||||
font-weight: normal;
|
||||
font-size: 15pt;
|
||||
margin: 0;
|
||||
padding: 15px 0 5px 0;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* Color all hyperlinks one color */
|
||||
a
|
||||
{
|
||||
color: #1382CE;
|
||||
}
|
||||
|
||||
/* Table styles */
|
||||
table
|
||||
{
|
||||
border-spacing: 0 0;
|
||||
border-collapse: collapse;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
table th
|
||||
{
|
||||
background: #E7E7E8;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
font-weight: normal;
|
||||
padding: 3px 6px 3px 6px;
|
||||
}
|
||||
|
||||
table td
|
||||
{
|
||||
vertical-align: top;
|
||||
padding: 3px 6px 5px 5px;
|
||||
margin: 0px;
|
||||
border: 1px solid #E7E7E8;
|
||||
background: #F7F7F8;
|
||||
}
|
||||
|
||||
/* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */
|
||||
.localLink
|
||||
{
|
||||
color: #1E1E1F;
|
||||
background: #EEEEED;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.localLink:hover
|
||||
{
|
||||
color: #1382CE;
|
||||
background: #FFFF99;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Center text, used in the over views cells that contain message level counts */
|
||||
.textCentered
|
||||
{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* The message cells in message tables should take up all avaliable space */
|
||||
.messageCell
|
||||
{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Padding around the content after the h1 */
|
||||
#content
|
||||
{
|
||||
padding: 0px 12px 12px 12px;
|
||||
}
|
||||
|
||||
/* The overview table expands to width, with a max width of 97% */
|
||||
#overview table
|
||||
{
|
||||
width: auto;
|
||||
max-width: 75%;
|
||||
}
|
||||
|
||||
/* The messages tables are always 97% width */
|
||||
#messages table
|
||||
{
|
||||
width: 97%;
|
||||
}
|
||||
|
||||
/* All Icons */
|
||||
.IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded
|
||||
{
|
||||
min-width:18px;
|
||||
min-height:18px;
|
||||
background-repeat:no-repeat;
|
||||
background-position:center;
|
||||
}
|
||||
|
||||
/* Success icon encoded */
|
||||
.IconSuccessEncoded
|
||||
{
|
||||
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
|
||||
/* [---XsltValidateInternal-Base64EncodedImage:IconSuccess#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABcElEQVR4Xq2TsUsCURzHv15g8ZJcBWlyiYYgCIWcb9DFRRwMW5TA2c0/QEFwFkxxUQdxVlBwCYWOi6IhWgQhBLHJUCkhLr/BW8S7gvrAg+N+v8/v+x68Z8MGy+XSCyABQAXgBgHGALoASkIIDWSLeLBetdHryMjd5IxQPWT4rn1c/P7+xxp72Cs9m5SZ0Bq2vPnbPFafK2zDvmNHypdC0BPkLlQhxJsCAhQoZwdZU5mwxh720qGo8MzTxTTKZDPCx2HoVzp6lz0Q9tKhyx0kGs8Ny+TkWRKk8lCROwEduhyg9l/6lunOPSfmH3NUH6uQ0KHLAe7JYvJjevm+DAMGJHToKtigE+vwvIidxLamb8IBY9e+C5LiXREkfho3TSd06HJA13/oh6T51MTsfQbHrsMynQ5dDihFjiK8JJAU9AKIWTp76dCVN7HWHrajmUEGvyF9nkbAE6gLIS7kTUyuf2gscLoJrElZo/Mvj+nPz/kLTmfnEwP3tB0AAAAASUVORK5CYII=);
|
||||
}
|
||||
|
||||
/* Information icon encoded */
|
||||
.IconInfoEncoded
|
||||
{
|
||||
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
|
||||
/* [---XsltValidateInternal-Base64EncodedImage:IconInformation#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHElEQVR4Xs2TsUoDQRRF7wwoziokjZUKadInhdhukR9YP8DMX1hYW+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/mv9gkhtyMDhcAxgzRsp7flj8B/HF1RsMXq+NZMkopaHe7lbKxQUEIGbKsYNoGn969060hZBkQex/W8oRQwsQaW2o3Ago2SVcJUzAgY3N0lTCZZm+zPS8HB51gMmS1DEYyOz9acKO1D8JWTlafKIMxdhvlfdyT94Vv5h7P8Ky7nQzACmhvKq3zk3PjW9asz9D/1oigecsioooAAAAASUVORK5CYII=);
|
||||
}
|
||||
|
||||
/* Warning icon encoded */
|
||||
.IconWarningEncoded
|
||||
{
|
||||
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
|
||||
/* [---XsltValidateInternal-Base64EncodedImage:IconWarning#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/QGTCxdWJgiQYWKXJWKIXHIlyw5lqr34tQgEOdcBsCOx5yZK3hCCKdYXneQkh4pEfqzLfu+wVDSyyzFoJjfz9NB+pAF+eizx2Vruts0k15mPgvS6GYvpVtQhB61IB/dk6AF6fS4Ben0uIX5odtFe8Q/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/gFq44JaVSCXeQAAAABJRU5ErkJggg==);
|
||||
}
|
||||
|
||||
/* Error icon encoded */
|
||||
.IconErrorEncoded
|
||||
{
|
||||
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
|
||||
/* [---XsltValidateInternal-Base64EncodedImage:IconError#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABQElEQVR4XqWTvUoEQRCE6wYPZUA80AfwAQz23uCMjA7MDRQEIzPBVEyNTQUFIw00vcQTTMzuAh/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+GsHRk0fQmPAH1GfmZirbCfDJ61tw3Px8/8pZsPAG4jlVhcPgZ7adwNWBB68lkRQWFiTgFlbnLY3DGGM7izIJIyT/jjIvEJw6fdJTc6krDzh6aMwMP9bvDH4ADSsa9uSWVJkAAAAASUVORK5CYII=);
|
||||
}
|
||||
</style><script type="text/javascript" language="javascript">
|
||||
|
||||
// Startup
|
||||
// Hook up the the loaded event for the document/window, to linkify the document content
|
||||
var startupFunction = function() { linkifyElement("messages"); };
|
||||
|
||||
if(window.attachEvent)
|
||||
{
|
||||
window.attachEvent('onload', startupFunction);
|
||||
}
|
||||
else if (window.addEventListener)
|
||||
{
|
||||
window.addEventListener('load', startupFunction, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
document.addEventListener('load', startupFunction, false);
|
||||
}
|
||||
|
||||
// Toggles the visibility of table rows with the specified name
|
||||
function toggleTableRowsByName(name)
|
||||
{
|
||||
var allRows = document.getElementsByTagName('tr');
|
||||
for (i=0; i < allRows.length; i++)
|
||||
{
|
||||
var currentName = allRows[i].getAttribute('name');
|
||||
if(!!currentName && currentName.indexOf(name) == 0)
|
||||
{
|
||||
var isVisible = allRows[i].style.display == '';
|
||||
isVisible ? allRows[i].style.display = 'none' : allRows[i].style.display = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function scrollToFirstVisibleRow(name)
|
||||
{
|
||||
var allRows = document.getElementsByTagName('tr');
|
||||
for (i=0; i < allRows.length; i++)
|
||||
{
|
||||
var currentName = allRows[i].getAttribute('name');
|
||||
var isVisible = allRows[i].style.display == '';
|
||||
if(!!currentName && currentName.indexOf(name) == 0 && isVisible)
|
||||
{
|
||||
allRows[i].scrollIntoView(true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Linkifies the specified text content, replaces candidate links with html links
|
||||
function linkify(text)
|
||||
{
|
||||
if(!text || 0 === text.length)
|
||||
{
|
||||
return text;
|
||||
}
|
||||
|
||||
// Find http, https and ftp links and replace them with hyper links
|
||||
var urlLink = /(http|https|ftp)\:\/\/[a-zA-Z0-9\-\.]+(:[a-zA-Z0-9]*)?\/?([a-zA-Z0-9\-\._\?\,\/\\\+&%\$#\=~;\{\}])*/gi;
|
||||
|
||||
return text.replace(urlLink, '<a href="$&">$&</a>') ;
|
||||
}
|
||||
|
||||
// Linkifies the specified element by ID
|
||||
function linkifyElement(id)
|
||||
{
|
||||
var element = document.getElementById(id);
|
||||
if(!!element)
|
||||
{
|
||||
element.innerHTML = linkify(element.innerHTML);
|
||||
}
|
||||
}
|
||||
|
||||
function ToggleMessageVisibility(projectName)
|
||||
{
|
||||
if(!projectName || 0 === projectName.length)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
toggleTableRowsByName("MessageRowClass" + projectName);
|
||||
toggleTableRowsByName('MessageRowHeaderShow' + projectName);
|
||||
toggleTableRowsByName('MessageRowHeaderHide' + projectName);
|
||||
}
|
||||
|
||||
function ScrollToFirstVisibleMessage(projectName)
|
||||
{
|
||||
if(!projectName || 0 === projectName.length)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// First try the 'Show messages' row
|
||||
if(!scrollToFirstVisibleRow('MessageRowHeaderShow' + projectName))
|
||||
{
|
||||
// Failed to find a visible row for 'Show messages', try an actual message row
|
||||
scrollToFirstVisibleRow('MessageRowClass' + projectName);
|
||||
}
|
||||
}
|
||||
</script></head><body><h1 _locID="ConversionReport">
|
||||
마이그레이션 보고서 - </h1><div id="content"><h2 _locID="OverviewTitle">개요</h2><div id="overview"><table><tr><th></th><th _locID="ProjectTableHeader">프로젝트</th><th _locID="PathTableHeader">경로</th><th _locID="ErrorsTableHeader">오류</th><th _locID="WarningsTableHeader">경고</th><th _locID="MessagesTableHeader">메시지</th></tr><tr><td class="IconErrorEncoded" /><td><strong><a href="#Client">Client</a></strong></td><td>Client\Default\Client.vcxproj</td><td class="textCentered"><a href="#ClientError">1</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#">0</a></td></tr><tr><td class="IconErrorEncoded" /><td><strong><a href="#Editor">Editor</a></strong></td><td>Editor\Default\Editor.vcxproj</td><td class="textCentered"><a href="#EditorError">1</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#">0</a></td></tr><tr><td class="IconErrorEncoded" /><td><strong><a href="#Engine">Engine</a></strong></td><td>Engine\Default\Engine.vcxproj</td><td class="textCentered"><a href="#EngineError">1</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#">0</a></td></tr><tr><td class="IconSuccessEncoded" /><td><strong><a href="#00.Client">00.Client</a></strong></td><td>00.Client</td><td class="textCentered"><a>0</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#">0</a></td></tr><tr><td class="IconSuccessEncoded" /><td><strong><a href="#01.Editor">01.Editor</a></strong></td><td>01.Editor</td><td class="textCentered"><a>0</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#">0</a></td></tr><tr><td class="IconSuccessEncoded" /><td><strong><a href="#03.Engine">03.Engine</a></strong></td><td>03.Engine</td><td class="textCentered"><a>0</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#">0</a></td></tr><tr><td class="IconSuccessEncoded" /><td><strong><a href="#97.Config">97.Config</a></strong></td><td>97.Config</td><td class="textCentered"><a>0</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#">0</a></td></tr><tr><td class="IconSuccessEncoded" /><td><strong><a href="#98.Batch">98.Batch</a></strong></td><td>98.Batch</td><td class="textCentered"><a>0</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#">0</a></td></tr><tr><td class="IconSuccessEncoded" /><td><strong><a href="#ASSIMP">ASSIMP</a></strong></td><td>ASSIMP</td><td class="textCentered"><a>0</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#">0</a></td></tr><tr><td class="IconSuccessEncoded" /><td><strong><a href="#ENGINE_SDK">ENGINE_SDK</a></strong></td><td>ENGINE_SDK</td><td class="textCentered"><a>0</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#">0</a></td></tr><tr><td class="IconSuccessEncoded" /><td><strong><a href="#SOLUTION">SOLUTION</a></strong></td><td>SOLUTION</td><td class="textCentered"><a>0</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#">0</a></td></tr><tr><td class="IconSuccessEncoded" /><td><strong><a href="#Solution"><span _locID="OverviewSolutionSpan">솔루션</span></a></strong></td><td>Jusin154_Team3D.sln</td><td class="textCentered"><a>0</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#" onclick="ScrollToFirstVisibleMessage('Solution'); return false;">1</a></td></tr></table></div><h2 _locID="SolutionAndProjectsTitle">솔루션 및 프로젝트</h2><div id="messages"><a name="Client" /><h3>Client</h3><table><tr id="ClientHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr name="ErrorRowClassClient"><td class="IconErrorEncoded"><a name="ClientError" /></td><td class="messageCell"><strong>Client\Default\Client.vcxproj:
|
||||
</strong><span>이 프로젝트 형식을 기반으로 하는 애플리케이션을 찾지 못했습니다. 추가 정보를 보려면 이 링크를 확인하십시오. 8bc9ceb8-8b4a-11d0-8d11-00a0c91bc942</span></td></tr></table><a name="Editor" /><h3>Editor</h3><table><tr id="EditorHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr name="ErrorRowClassEditor"><td class="IconErrorEncoded"><a name="EditorError" /></td><td class="messageCell"><strong>Editor\Default\Editor.vcxproj:
|
||||
</strong><span>이 프로젝트 형식을 기반으로 하는 애플리케이션을 찾지 못했습니다. 추가 정보를 보려면 이 링크를 확인하십시오. 8bc9ceb8-8b4a-11d0-8d11-00a0c91bc942</span></td></tr></table><a name="Engine" /><h3>Engine</h3><table><tr id="EngineHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr name="ErrorRowClassEngine"><td class="IconErrorEncoded"><a name="EngineError" /></td><td class="messageCell"><strong>Engine\Default\Engine.vcxproj:
|
||||
</strong><span>이 프로젝트 형식을 기반으로 하는 애플리케이션을 찾지 못했습니다. 추가 정보를 보려면 이 링크를 확인하십시오. 8bc9ceb8-8b4a-11d0-8d11-00a0c91bc942</span></td></tr></table><a name="00.Client" /><h3>00.Client</h3><table><tr id="00.ClientHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr><td class="IconInfoEncoded" /><td class="messageCell" _locID="NoMessagesRow">00.Client 메시지가 기록되지 않았습니다.
|
||||
</td></tr></table><a name="01.Editor" /><h3>01.Editor</h3><table><tr id="01.EditorHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr><td class="IconInfoEncoded" /><td class="messageCell" _locID="NoMessagesRow">01.Editor 메시지가 기록되지 않았습니다.
|
||||
</td></tr></table><a name="03.Engine" /><h3>03.Engine</h3><table><tr id="03.EngineHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr><td class="IconInfoEncoded" /><td class="messageCell" _locID="NoMessagesRow">03.Engine 메시지가 기록되지 않았습니다.
|
||||
</td></tr></table><a name="97.Config" /><h3>97.Config</h3><table><tr id="97.ConfigHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr><td class="IconInfoEncoded" /><td class="messageCell" _locID="NoMessagesRow">97.Config 메시지가 기록되지 않았습니다.
|
||||
</td></tr></table><a name="98.Batch" /><h3>98.Batch</h3><table><tr id="98.BatchHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr><td class="IconInfoEncoded" /><td class="messageCell" _locID="NoMessagesRow">98.Batch 메시지가 기록되지 않았습니다.
|
||||
</td></tr></table><a name="ASSIMP" /><h3>ASSIMP</h3><table><tr id="ASSIMPHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr><td class="IconInfoEncoded" /><td class="messageCell" _locID="NoMessagesRow">ASSIMP 메시지가 기록되지 않았습니다.
|
||||
</td></tr></table><a name="ENGINE_SDK" /><h3>ENGINE_SDK</h3><table><tr id="ENGINE_SDKHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr><td class="IconInfoEncoded" /><td class="messageCell" _locID="NoMessagesRow">ENGINE_SDK 메시지가 기록되지 않았습니다.
|
||||
</td></tr></table><a name="SOLUTION" /><h3>SOLUTION</h3><table><tr id="SOLUTIONHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr><td class="IconInfoEncoded" /><td class="messageCell" _locID="NoMessagesRow">SOLUTION 메시지가 기록되지 않았습니다.
|
||||
</td></tr></table><a name="Solution" /><h3 _locID="ProjectDisplayNameHeader">솔루션</h3><table><tr id="SolutionHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr name="MessageRowHeaderShowSolution"><td class="IconInfoEncoded" /><td class="messageCell"><a _locID="ShowAdditionalMessages" href="#" name="SolutionMessage" onclick="ToggleMessageVisibility('Solution'); return false;">
|
||||
표시 1 추가 메시지
|
||||
</a></td></tr><tr name="MessageRowClassSolution" style="display: none"><td class="IconInfoEncoded"><a name="SolutionMessage" /></td><td class="messageCell"><strong>Jusin154_Team3D.sln:
|
||||
</strong><span>솔루션 파일은 마이그레이션하지 않아도 됩니다.</span></td></tr><tr style="display: none" name="MessageRowHeaderHideSolution"><td class="IconInfoEncoded" /><td class="messageCell"><a _locID="HideAdditionalMessages" href="#" name="SolutionMessage" onclick="ToggleMessageVisibility('Solution'); return false;">
|
||||
숨기기 1 추가 메시지
|
||||
</a></td></tr></table></div></div></body></html>
|
||||
@@ -0,0 +1,270 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- saved from url=(0014)about:internet -->
|
||||
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt"><head><meta content="en-us" http-equiv="Content-Language" /><meta content="text/html; charset=utf-16" http-equiv="Content-Type" /><title _locID="ConversionReport0">
|
||||
마이그레이션 보고서
|
||||
</title><style>
|
||||
/* Body style, for the entire document */
|
||||
body
|
||||
{
|
||||
background: #F3F3F4;
|
||||
color: #1E1E1F;
|
||||
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Header1 style, used for the main title */
|
||||
h1
|
||||
{
|
||||
padding: 10px 0px 10px 10px;
|
||||
font-size: 21pt;
|
||||
background-color: #E2E2E2;
|
||||
border-bottom: 1px #C1C1C2 solid;
|
||||
color: #201F20;
|
||||
margin: 0;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* Header2 style, used for "Overview" and other sections */
|
||||
h2
|
||||
{
|
||||
font-size: 18pt;
|
||||
font-weight: normal;
|
||||
padding: 15px 0 5px 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Header3 style, used for sub-sections, such as project name */
|
||||
h3
|
||||
{
|
||||
font-weight: normal;
|
||||
font-size: 15pt;
|
||||
margin: 0;
|
||||
padding: 15px 0 5px 0;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* Color all hyperlinks one color */
|
||||
a
|
||||
{
|
||||
color: #1382CE;
|
||||
}
|
||||
|
||||
/* Table styles */
|
||||
table
|
||||
{
|
||||
border-spacing: 0 0;
|
||||
border-collapse: collapse;
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
table th
|
||||
{
|
||||
background: #E7E7E8;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
font-weight: normal;
|
||||
padding: 3px 6px 3px 6px;
|
||||
}
|
||||
|
||||
table td
|
||||
{
|
||||
vertical-align: top;
|
||||
padding: 3px 6px 5px 5px;
|
||||
margin: 0px;
|
||||
border: 1px solid #E7E7E8;
|
||||
background: #F7F7F8;
|
||||
}
|
||||
|
||||
/* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */
|
||||
.localLink
|
||||
{
|
||||
color: #1E1E1F;
|
||||
background: #EEEEED;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.localLink:hover
|
||||
{
|
||||
color: #1382CE;
|
||||
background: #FFFF99;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Center text, used in the over views cells that contain message level counts */
|
||||
.textCentered
|
||||
{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* The message cells in message tables should take up all avaliable space */
|
||||
.messageCell
|
||||
{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Padding around the content after the h1 */
|
||||
#content
|
||||
{
|
||||
padding: 0px 12px 12px 12px;
|
||||
}
|
||||
|
||||
/* The overview table expands to width, with a max width of 97% */
|
||||
#overview table
|
||||
{
|
||||
width: auto;
|
||||
max-width: 75%;
|
||||
}
|
||||
|
||||
/* The messages tables are always 97% width */
|
||||
#messages table
|
||||
{
|
||||
width: 97%;
|
||||
}
|
||||
|
||||
/* All Icons */
|
||||
.IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded
|
||||
{
|
||||
min-width:18px;
|
||||
min-height:18px;
|
||||
background-repeat:no-repeat;
|
||||
background-position:center;
|
||||
}
|
||||
|
||||
/* Success icon encoded */
|
||||
.IconSuccessEncoded
|
||||
{
|
||||
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
|
||||
/* [---XsltValidateInternal-Base64EncodedImage:IconSuccess#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABcElEQVR4Xq2TsUsCURzHv15g8ZJcBWlyiYYgCIWcb9DFRRwMW5TA2c0/QEFwFkxxUQdxVlBwCYWOi6IhWgQhBLHJUCkhLr/BW8S7gvrAg+N+v8/v+x68Z8MGy+XSCyABQAXgBgHGALoASkIIDWSLeLBetdHryMjd5IxQPWT4rn1c/P7+xxp72Cs9m5SZ0Bq2vPnbPFafK2zDvmNHypdC0BPkLlQhxJsCAhQoZwdZU5mwxh720qGo8MzTxTTKZDPCx2HoVzp6lz0Q9tKhyx0kGs8Ny+TkWRKk8lCROwEduhyg9l/6lunOPSfmH3NUH6uQ0KHLAe7JYvJjevm+DAMGJHToKtigE+vwvIidxLamb8IBY9e+C5LiXREkfho3TSd06HJA13/oh6T51MTsfQbHrsMynQ5dDihFjiK8JJAU9AKIWTp76dCVN7HWHrajmUEGvyF9nkbAE6gLIS7kTUyuf2gscLoJrElZo/Mvj+nPz/kLTmfnEwP3tB0AAAAASUVORK5CYII=);
|
||||
}
|
||||
|
||||
/* Information icon encoded */
|
||||
.IconInfoEncoded
|
||||
{
|
||||
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
|
||||
/* [---XsltValidateInternal-Base64EncodedImage:IconInformation#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHElEQVR4Xs2TsUoDQRRF7wwoziokjZUKadInhdhukR9YP8DMX1hYW+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/mv9gkhtyMDhcAxgzRsp7flj8B/HF1RsMXq+NZMkopaHe7lbKxQUEIGbKsYNoGn969060hZBkQex/W8oRQwsQaW2o3Ago2SVcJUzAgY3N0lTCZZm+zPS8HB51gMmS1DEYyOz9acKO1D8JWTlafKIMxdhvlfdyT94Vv5h7P8Ky7nQzACmhvKq3zk3PjW9asz9D/1oigecsioooAAAAASUVORK5CYII=);
|
||||
}
|
||||
|
||||
/* Warning icon encoded */
|
||||
.IconWarningEncoded
|
||||
{
|
||||
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
|
||||
/* [---XsltValidateInternal-Base64EncodedImage:IconWarning#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/QGTCxdWJgiQYWKXJWKIXHIlyw5lqr34tQgEOdcBsCOx5yZK3hCCKdYXneQkh4pEfqzLfu+wVDSyyzFoJjfz9NB+pAF+eizx2Vruts0k15mPgvS6GYvpVtQhB61IB/dk6AF6fS4Ben0uIX5odtFe8Q/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/gFq44JaVSCXeQAAAABJRU5ErkJggg==);
|
||||
}
|
||||
|
||||
/* Error icon encoded */
|
||||
.IconErrorEncoded
|
||||
{
|
||||
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
|
||||
/* [---XsltValidateInternal-Base64EncodedImage:IconError#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABQElEQVR4XqWTvUoEQRCE6wYPZUA80AfwAQz23uCMjA7MDRQEIzPBVEyNTQUFIw00vcQTTMzuAh/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+GsHRk0fQmPAH1GfmZirbCfDJ61tw3Px8/8pZsPAG4jlVhcPgZ7adwNWBB68lkRQWFiTgFlbnLY3DGGM7izIJIyT/jjIvEJw6fdJTc6krDzh6aMwMP9bvDH4ADSsa9uSWVJkAAAAASUVORK5CYII=);
|
||||
}
|
||||
</style><script type="text/javascript" language="javascript">
|
||||
|
||||
// Startup
|
||||
// Hook up the the loaded event for the document/window, to linkify the document content
|
||||
var startupFunction = function() { linkifyElement("messages"); };
|
||||
|
||||
if(window.attachEvent)
|
||||
{
|
||||
window.attachEvent('onload', startupFunction);
|
||||
}
|
||||
else if (window.addEventListener)
|
||||
{
|
||||
window.addEventListener('load', startupFunction, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
document.addEventListener('load', startupFunction, false);
|
||||
}
|
||||
|
||||
// Toggles the visibility of table rows with the specified name
|
||||
function toggleTableRowsByName(name)
|
||||
{
|
||||
var allRows = document.getElementsByTagName('tr');
|
||||
for (i=0; i < allRows.length; i++)
|
||||
{
|
||||
var currentName = allRows[i].getAttribute('name');
|
||||
if(!!currentName && currentName.indexOf(name) == 0)
|
||||
{
|
||||
var isVisible = allRows[i].style.display == '';
|
||||
isVisible ? allRows[i].style.display = 'none' : allRows[i].style.display = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function scrollToFirstVisibleRow(name)
|
||||
{
|
||||
var allRows = document.getElementsByTagName('tr');
|
||||
for (i=0; i < allRows.length; i++)
|
||||
{
|
||||
var currentName = allRows[i].getAttribute('name');
|
||||
var isVisible = allRows[i].style.display == '';
|
||||
if(!!currentName && currentName.indexOf(name) == 0 && isVisible)
|
||||
{
|
||||
allRows[i].scrollIntoView(true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Linkifies the specified text content, replaces candidate links with html links
|
||||
function linkify(text)
|
||||
{
|
||||
if(!text || 0 === text.length)
|
||||
{
|
||||
return text;
|
||||
}
|
||||
|
||||
// Find http, https and ftp links and replace them with hyper links
|
||||
var urlLink = /(http|https|ftp)\:\/\/[a-zA-Z0-9\-\.]+(:[a-zA-Z0-9]*)?\/?([a-zA-Z0-9\-\._\?\,\/\\\+&%\$#\=~;\{\}])*/gi;
|
||||
|
||||
return text.replace(urlLink, '<a href="$&">$&</a>') ;
|
||||
}
|
||||
|
||||
// Linkifies the specified element by ID
|
||||
function linkifyElement(id)
|
||||
{
|
||||
var element = document.getElementById(id);
|
||||
if(!!element)
|
||||
{
|
||||
element.innerHTML = linkify(element.innerHTML);
|
||||
}
|
||||
}
|
||||
|
||||
function ToggleMessageVisibility(projectName)
|
||||
{
|
||||
if(!projectName || 0 === projectName.length)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
toggleTableRowsByName("MessageRowClass" + projectName);
|
||||
toggleTableRowsByName('MessageRowHeaderShow' + projectName);
|
||||
toggleTableRowsByName('MessageRowHeaderHide' + projectName);
|
||||
}
|
||||
|
||||
function ScrollToFirstVisibleMessage(projectName)
|
||||
{
|
||||
if(!projectName || 0 === projectName.length)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// First try the 'Show messages' row
|
||||
if(!scrollToFirstVisibleRow('MessageRowHeaderShow' + projectName))
|
||||
{
|
||||
// Failed to find a visible row for 'Show messages', try an actual message row
|
||||
scrollToFirstVisibleRow('MessageRowClass' + projectName);
|
||||
}
|
||||
}
|
||||
</script></head><body><h1 _locID="ConversionReport">
|
||||
마이그레이션 보고서 - </h1><div id="content"><h2 _locID="OverviewTitle">개요</h2><div id="overview"><table><tr><th></th><th _locID="ProjectTableHeader">프로젝트</th><th _locID="PathTableHeader">경로</th><th _locID="ErrorsTableHeader">오류</th><th _locID="WarningsTableHeader">경고</th><th _locID="MessagesTableHeader">메시지</th></tr><tr><td class="IconErrorEncoded" /><td><strong><a href="#Client">Client</a></strong></td><td>Client\Default\Client.vcxproj</td><td class="textCentered"><a href="#ClientError">1</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#">0</a></td></tr><tr><td class="IconErrorEncoded" /><td><strong><a href="#Editor">Editor</a></strong></td><td>Editor\Default\Editor.vcxproj</td><td class="textCentered"><a href="#EditorError">1</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#">0</a></td></tr><tr><td class="IconErrorEncoded" /><td><strong><a href="#Engine">Engine</a></strong></td><td>Engine\Default\Engine.vcxproj</td><td class="textCentered"><a href="#EngineError">1</a></td><td class="textCentered"><a>0</a></td><td class="textCentered"><a href="#">0</a></td></tr></table></div><h2 _locID="SolutionAndProjectsTitle">솔루션 및 프로젝트</h2><div id="messages"><a name="Client" /><h3>Client</h3><table><tr id="ClientHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr name="ErrorRowClassClient"><td class="IconErrorEncoded"><a name="ClientError" /></td><td class="messageCell"><strong>Client\Default\Client.vcxproj:
|
||||
</strong><span>이 프로젝트 형식을 기반으로 하는 애플리케이션을 찾지 못했습니다. 추가 정보를 보려면 이 링크를 확인하십시오. 8bc9ceb8-8b4a-11d0-8d11-00a0c91bc942</span></td></tr></table><a name="Editor" /><h3>Editor</h3><table><tr id="EditorHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr name="ErrorRowClassEditor"><td class="IconErrorEncoded"><a name="EditorError" /></td><td class="messageCell"><strong>Editor\Default\Editor.vcxproj:
|
||||
</strong><span>이 프로젝트 형식을 기반으로 하는 애플리케이션을 찾지 못했습니다. 추가 정보를 보려면 이 링크를 확인하십시오. 8bc9ceb8-8b4a-11d0-8d11-00a0c91bc942</span></td></tr></table><a name="Engine" /><h3>Engine</h3><table><tr id="EngineHeaderRow"><th></th><th class="messageCell" _locID="MessageTableHeader">메시지</th></tr><tr name="ErrorRowClassEngine"><td class="IconErrorEncoded"><a name="EngineError" /></td><td class="messageCell"><strong>Engine\Default\Engine.vcxproj:
|
||||
</strong><span>이 프로젝트 형식을 기반으로 하는 애플리케이션을 찾지 못했습니다. 추가 정보를 보려면 이 링크를 확인하십시오. 8bc9ceb8-8b4a-11d0-8d11-00a0c91bc942</span></td></tr></table></div></div></body></html>
|
||||
Reference in New Issue
Block a user