diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp index 91f83cfe1..b39fc1128 100644 --- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp +++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp @@ -134,6 +134,7 @@ void CCamPosition_Shoulder::Update(_float fTimeDelta) Describe_Entity(); #endif // _DEBUG +#ifndef _DEBUG if (dynamic_cast(m_pOwner)->Get_UIState() == UI_STATE::GAMEPLAYER) { m_bMovable = true; @@ -141,7 +142,7 @@ void CCamPosition_Shoulder::Update(_float fTimeDelta) else { m_bMovable = false; } - +#endif // _DEBUG if (m_pGameInstance->Key_Up(DIK_PGDN)) { m_bDampingParentPos = !m_bDampingParentPos; diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 2a395996f..bf2be5344 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -125,7 +125,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) _bool bLoadNPC = { true }; #ifdef _DEBUG #ifdef 기무리 - bLoadNPC = false; + bLoadNPC = true; #endif #endif // _DEBUG if (true == bLoadNPC) { @@ -173,7 +173,7 @@ void CLevel_GamePlay::Update(_float fTimeDelta) #elif 진우 bStartCinematic = true; #elif Bin - bStartCinematic = false; + bStartCinematic = true; #elif gimch bStartCinematic = true; #elif 나 diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index 7788f60b9..72f35da39 100644 --- a/Jusin154_Team3D/Client/Private/Troll.cpp +++ b/Jusin154_Team3D/Client/Private/Troll.cpp @@ -530,7 +530,7 @@ HRESULT CTroll::Ready_Components() Desc.fContactOffset = 0.001f; Desc.fMaterial = { 1.2f, 1.0f, 0.0f }; Desc.bAutoStepping = { false }; - Desc.fStepOffset = { 0.12f }; + Desc.fStepOffset = { 0.02f }; Desc.fRadius = 1.2f; Desc.fHeight = 1.5f; Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Troll_HitReport::Create(); diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml index 235b432bc..b07c121ea 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml @@ -1867,5 +1867,5 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin index bec0b07ee..8e45f5aaa 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:70cf4364fe136ed6abf6d385d0e90270b36a5087046606d634c7b2ed1adcd727 +oid sha256:dfb7b5a94effd49e12f0d76e8405c6fe79b6ba9c9dfce717676fe6864bc99309 size 11099434 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml index 460280668..1d7bfcb15 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml @@ -209,7 +209,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds index e41e49596..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/T_Poltergeist_Eye_E.dds index 798944162..716206ef4 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli index 24768db46..0da4db10c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli @@ -485,7 +485,7 @@ float3 ReinHard_ToneMapper(float3 vColor) { float k = 1.f; vColor = (vColor / (vColor + k)); - return pow(vColor, 1.f / 2.2f); + return vColor; } float3 Filmic_ToneMapper(float3 vColor) @@ -501,7 +501,7 @@ float3 Filmic_ToneMapper(float3 vColor) / (vColor * (fC * vColor + fD) + fE) ); - return pow(vColor, 1.f / 2.2f); + return vColor; } diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl index 39356c3e5..a4f1c368d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl @@ -82,7 +82,7 @@ Texture2D g_TileVelocityTexture; int g_iMBSampleCount; int g_iMBMaxSampleCount; -float g_fMBBlurRadius; +float g_fMBMaxBlurRadius; int g_iMBType; int g_iMBTileSize; float g_fMBSampleBias; @@ -254,8 +254,8 @@ struct PS_OUT_SSAO_BLUR // g_fFar // g_fMBSampleBias // g_fMBBlurRadius -// g_iMBSampleCount -// g_iMBMaxSampleCount +// g_iMBSampleCount 실제 현재 프레임 모션블러 픽셀 +// g_iMBMaxSampleCount 허용가능한 모션블러 픽셀 // g_iMBType PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In) { @@ -269,40 +269,49 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In) bool bBorrowedVelocityFromTile = false; float2 vBlurVelo = vCenterVelo; - float2 vBlurVeloPixel = vCenterVeloPixel; - if (length(vBlurVeloPixel) < 0.5f) { + float2 vBlurVeloPixel = vCenterVeloPixel; // 프레임당 픽셀 이동량 + + float fVelocityEpsilon = 0.5f; + + if (length(vBlurVeloPixel) < fVelocityEpsilon) + { + // 사실상 정지해 있던 픽셀이면 텐트벨로시티맵에서 빌려옴 vBlurVelo = g_TileVelocityTexture.Sample(PointSampler, vCenterUV).xy * 2.f - 1.f; vBlurVeloPixel = vBlurVelo * g_vResolution.xy; bBorrowedVelocityFromTile = true; } - if (length(vBlurVeloPixel) < 0.5f) { + if (length(vBlurVeloPixel) < fVelocityEpsilon) { + // 텐트벨로시티맵에서 빌려온 픽셀또한 정지해 있었으면 원본 그대로 반환 Out.vColor = g_ColorTexture.Sample(ClampLinearSampler, vCenterUV); Out.vVelocity = float2(0.5f, 0.5f); return Out; } + float fPixelSpeed = length(vBlurVeloPixel); - float2 vBlurDirPixel = (vBlurVeloPixel / max(length(vBlurVeloPixel), FLT_EPSILON5)); - int iMaxRadius = min(g_iMBSampleCount, g_iMBMaxSampleCount); + float2 vBlurDirPixel = (vBlurVeloPixel / max(fPixelSpeed, FLT_EPSILON5)); + + // 픽셀의 속도로 블러 반경을 가변적으로 돌림 + float fBlurRadiusPixel = clamp(fPixelSpeed * 0.4f , 0.f, g_fMBMaxBlurRadius); + fBlurRadiusPixel = max(fBlurRadiusPixel, 1.f); + + int iMaxRadius = (int)ceil(fBlurRadiusPixel); + iMaxRadius = clamp(iMaxRadius, 1, min(g_iMBSampleCount, g_iMBMaxSampleCount)); // 샘플링 당 이동 픽셀 - float fSamplePixelSpeed = g_fMBBlurRadius / max((float) iMaxRadius, 1.f); + float fSamplePixelSpeed = fBlurRadiusPixel / max((float) iMaxRadius, 1.f); // 샘플유닛의 크기 - float fScalePixelToSampleUnit = (float) iMaxRadius / max(g_fMBBlurRadius, FLT_EPSILON5); + float fScalePixelToSampleUnit = (float) iMaxRadius / max(fBlurRadiusPixel, FLT_EPSILON5); float fScaleDepth = 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 = vCenterVeloPixel; - if (true == bBorrowedVelocityFromTile) - { - vReferenceVelocityPixel = vBlurVeloPixel; - } - float fCenterSpreadLengthPixel = clamp(abs(dot(vReferenceVelocityPixel, vBlurDirPixel)), 0.f, g_fMBBlurRadius); - + float2 vReferenceVelocityPixel = bBorrowedVelocityFromTile ? vBlurVeloPixel : vCenterVeloPixel; // 빌린놈이면 빌린 타일이 속도 레퍼런스, 아니면 센터가 속도 레퍼런스가 됨 + float fCenterSpreadLengthPixel = clamp(abs(dot(vReferenceVelocityPixel, vBlurDirPixel)), 0.f, fBlurRadiusPixel); // fSampleSpreadLengthPixel 랑 비교하게 될 짝꿍 + [loop] for (int iInterval = -iMaxRadius; iInterval <= iMaxRadius; ++iInterval) { float fOffset = (float) abs(iInterval); @@ -318,7 +327,7 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In) // 샘플의 스프레드 길이 float fBlurSampleAccurate = abs(dot(vSampledVeloPixel, vBlurDirPixel)); - float fSampleSpreadLengthPixel = clamp(fBlurSampleAccurate, 0.f, g_fMBBlurRadius); + float fSampleSpreadLengthPixel = clamp(fBlurSampleAccurate, 0.f, fBlurRadiusPixel); if (true == bBorrowedVelocityFromTile) { fSampleSpreadLengthPixel = max(fSampleSpreadLengthPixel, fCenterSpreadLengthPixel); @@ -349,6 +358,7 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In) Out.vVelocity = vBlurredVelo * 0.5f + 0.5f; return Out; } + PS_OUT_VELOCITYTILE PS_MOTIONBLUR_TILESAMPLE(PS_IN In) { PS_OUT_VELOCITYTILE Out = (PS_OUT_VELOCITYTILE) 0; @@ -1225,12 +1235,10 @@ PS_OUT_FLT4_SINGLE PS_MAIN_FOG(PS_IN In) PS_OUT_BACKBUFFER PS_TONE_MAPPING(PS_IN In) { PS_OUT_BACKBUFFER Out; - vector vColor = g_OriginalTexture.Sample(DefaultSampler, In.vTexcoord); + float4 vColor = g_OriginalTexture.Sample(DefaultSampler, In.vTexcoord); vColor *= g_fToneMappingExposure; - vColor = pow(vColor, 2.2f); switch (g_iToneMappingType) { case 0: - vColor = pow(vColor, 1.f/2.2f); vColor /= g_fToneMappingExposure; break; case 1: diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp index a4e9d67db..ac6c9082a 100644 --- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp @@ -75,36 +75,36 @@ 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(), - TEXT("Prototype_Component_SK_GOB_M_Assassin_Master_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(), + // TEXT("Prototype_Component_SK_GOB_M_Assassin_Master_Model") + //)); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"), + // CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) + // return E_FAIL; - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixIdentity(), - TEXT("Prototype_Component_troll_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixIdentity(), + // TEXT("Prototype_Component_troll_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin",XMMatrixScaling(0.01f,0.01f,0.01f)* XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_ConjuredDragon_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin",XMMatrixScaling(0.01f,0.01f,0.01f)* XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_ConjuredDragon_Model") + //)); //futures.emplace_back(Deferred_ModelLoad( // MODEL::ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), @@ -130,68 +130,68 @@ HRESULT CLoader::Loading_For_ObjectViewer() #pragma endregion #pragma region ITEM - futures.emplace_back(Deferred_ModelLoad( - MODEL::ANIM, "../Bin/Resources/Models/Object/Troll_Weapon/Troll_Weapon.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), - TEXT("Prototype_Component_Troll_Weapon_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Object/Troll_Weapon/Troll_Weapon.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + // TEXT("Prototype_Component_Troll_Weapon_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/Troll_Rock.bin", XMMatrixIdentity(), - TEXT("Prototype_Component_Troll_Rock_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/Troll_Rock.bin", XMMatrixIdentity(), + // TEXT("Prototype_Component_Troll_Rock_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/Troll_Rock_Big.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), - TEXT("Prototype_Component_Troll_Rock_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/Troll_Rock_Big.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + // TEXT("Prototype_Component_Troll_Rock_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::NONANIM, "../Bin/Resources/Models/Object/Goblin_Dagger/Goblin_Dagger.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), - TEXT("Prototype_Component_Dagger_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::NONANIM, "../Bin/Resources/Models/Object/Goblin_Dagger/Goblin_Dagger.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + // TEXT("Prototype_Component_Dagger_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixIdentity(), - TEXT("Prototype_Component_Wand_Model") - )); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_Broom_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixIdentity(), + // TEXT("Prototype_Component_Wand_Model") + //)); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_Broom_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/MoonTrimmerBroom/SK_MoonTrimmerBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), - TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/MoonTrimmerBroom/SK_MoonTrimmerBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + // TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), - TEXT("Prototype_Component_DarkWizardBroom_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + // TEXT("Prototype_Component_DarkWizardBroom_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/WildFireBroom/WildFireBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), - TEXT("Prototype_Component_WildFireBroom_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/WildFireBroom/WildFireBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + // TEXT("Prototype_Component_WildFireBroom_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_ThestralCarriage_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_ThestralCarriage_Model") + //)); #pragma endregion - futures.emplace_back(Deferred_ModelLoad( - MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), - TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + // TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model") + //)); futures.emplace_back(Deferred_ModelLoad( @@ -255,96 +255,96 @@ HRESULT CLoader::Loading_For_ObjectViewer() #pragma region NPC - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), - TEXT("Prototype_Component_VictorRookWood_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + // TEXT("Prototype_Component_VictorRookWood_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), - TEXT("Prototype_Component_ChiyoKogawa_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + // TEXT("Prototype_Component_ChiyoKogawa_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), - TEXT("Prototype_Component_Npc_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + // TEXT("Prototype_Component_Npc_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixRotationZ(XMConvertToRadians(180.f))* XMMatrixIdentity(), - TEXT("Prototype_Component_GerboldOlivander_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixRotationZ(XMConvertToRadians(180.f))* XMMatrixIdentity(), + // TEXT("Prototype_Component_GerboldOlivander_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin",XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_Professor_EleazarFig_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin",XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_Professor_EleazarFig_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_MatildaWeasely_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_MatildaWeasely_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_SatyavatiShah_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_SatyavatiShah_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_PhineasBlack_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_PhineasBlack_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_Ghost_Peeves_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_Ghost_Peeves_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_M_Student_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_M_Student_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_F_Student_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_F_Student_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_Elf_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_Elf_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_Kitchen_Female_Model") - )); - - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_BaiHowin_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_Kitchen_Female_Model") + //)); + // + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_BaiHowin_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_GeorgeOsric_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_GeorgeOsric_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Garlick/Garlick.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_Garlick_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Garlick/Garlick.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_Garlick_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_DinahHecat_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_DinahHecat_Model") + //)); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_MudiwaOnai_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // TEXT("Prototype_Component_MudiwaOnai_Model") + //)); /////////////////////////////// diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli index 24768db46..0da4db10c 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli @@ -485,7 +485,7 @@ float3 ReinHard_ToneMapper(float3 vColor) { float k = 1.f; vColor = (vColor / (vColor + k)); - return pow(vColor, 1.f / 2.2f); + return vColor; } float3 Filmic_ToneMapper(float3 vColor) @@ -501,7 +501,7 @@ float3 Filmic_ToneMapper(float3 vColor) / (vColor * (fC * vColor + fD) + fE) ); - return pow(vColor, 1.f / 2.2f); + return vColor; } diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl index 39356c3e5..a4f1c368d 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl @@ -82,7 +82,7 @@ Texture2D g_TileVelocityTexture; int g_iMBSampleCount; int g_iMBMaxSampleCount; -float g_fMBBlurRadius; +float g_fMBMaxBlurRadius; int g_iMBType; int g_iMBTileSize; float g_fMBSampleBias; @@ -254,8 +254,8 @@ struct PS_OUT_SSAO_BLUR // g_fFar // g_fMBSampleBias // g_fMBBlurRadius -// g_iMBSampleCount -// g_iMBMaxSampleCount +// g_iMBSampleCount 실제 현재 프레임 모션블러 픽셀 +// g_iMBMaxSampleCount 허용가능한 모션블러 픽셀 // g_iMBType PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In) { @@ -269,40 +269,49 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In) bool bBorrowedVelocityFromTile = false; float2 vBlurVelo = vCenterVelo; - float2 vBlurVeloPixel = vCenterVeloPixel; - if (length(vBlurVeloPixel) < 0.5f) { + float2 vBlurVeloPixel = vCenterVeloPixel; // 프레임당 픽셀 이동량 + + float fVelocityEpsilon = 0.5f; + + if (length(vBlurVeloPixel) < fVelocityEpsilon) + { + // 사실상 정지해 있던 픽셀이면 텐트벨로시티맵에서 빌려옴 vBlurVelo = g_TileVelocityTexture.Sample(PointSampler, vCenterUV).xy * 2.f - 1.f; vBlurVeloPixel = vBlurVelo * g_vResolution.xy; bBorrowedVelocityFromTile = true; } - if (length(vBlurVeloPixel) < 0.5f) { + if (length(vBlurVeloPixel) < fVelocityEpsilon) { + // 텐트벨로시티맵에서 빌려온 픽셀또한 정지해 있었으면 원본 그대로 반환 Out.vColor = g_ColorTexture.Sample(ClampLinearSampler, vCenterUV); Out.vVelocity = float2(0.5f, 0.5f); return Out; } + float fPixelSpeed = length(vBlurVeloPixel); - float2 vBlurDirPixel = (vBlurVeloPixel / max(length(vBlurVeloPixel), FLT_EPSILON5)); - int iMaxRadius = min(g_iMBSampleCount, g_iMBMaxSampleCount); + float2 vBlurDirPixel = (vBlurVeloPixel / max(fPixelSpeed, FLT_EPSILON5)); + + // 픽셀의 속도로 블러 반경을 가변적으로 돌림 + float fBlurRadiusPixel = clamp(fPixelSpeed * 0.4f , 0.f, g_fMBMaxBlurRadius); + fBlurRadiusPixel = max(fBlurRadiusPixel, 1.f); + + int iMaxRadius = (int)ceil(fBlurRadiusPixel); + iMaxRadius = clamp(iMaxRadius, 1, min(g_iMBSampleCount, g_iMBMaxSampleCount)); // 샘플링 당 이동 픽셀 - float fSamplePixelSpeed = g_fMBBlurRadius / max((float) iMaxRadius, 1.f); + float fSamplePixelSpeed = fBlurRadiusPixel / max((float) iMaxRadius, 1.f); // 샘플유닛의 크기 - float fScalePixelToSampleUnit = (float) iMaxRadius / max(g_fMBBlurRadius, FLT_EPSILON5); + float fScalePixelToSampleUnit = (float) iMaxRadius / max(fBlurRadiusPixel, FLT_EPSILON5); float fScaleDepth = 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 = vCenterVeloPixel; - if (true == bBorrowedVelocityFromTile) - { - vReferenceVelocityPixel = vBlurVeloPixel; - } - float fCenterSpreadLengthPixel = clamp(abs(dot(vReferenceVelocityPixel, vBlurDirPixel)), 0.f, g_fMBBlurRadius); - + float2 vReferenceVelocityPixel = bBorrowedVelocityFromTile ? vBlurVeloPixel : vCenterVeloPixel; // 빌린놈이면 빌린 타일이 속도 레퍼런스, 아니면 센터가 속도 레퍼런스가 됨 + float fCenterSpreadLengthPixel = clamp(abs(dot(vReferenceVelocityPixel, vBlurDirPixel)), 0.f, fBlurRadiusPixel); // fSampleSpreadLengthPixel 랑 비교하게 될 짝꿍 + [loop] for (int iInterval = -iMaxRadius; iInterval <= iMaxRadius; ++iInterval) { float fOffset = (float) abs(iInterval); @@ -318,7 +327,7 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In) // 샘플의 스프레드 길이 float fBlurSampleAccurate = abs(dot(vSampledVeloPixel, vBlurDirPixel)); - float fSampleSpreadLengthPixel = clamp(fBlurSampleAccurate, 0.f, g_fMBBlurRadius); + float fSampleSpreadLengthPixel = clamp(fBlurSampleAccurate, 0.f, fBlurRadiusPixel); if (true == bBorrowedVelocityFromTile) { fSampleSpreadLengthPixel = max(fSampleSpreadLengthPixel, fCenterSpreadLengthPixel); @@ -349,6 +358,7 @@ PS_OUT_VELOCITYBLUR PS_MOTIONBLUR(PS_IN In) Out.vVelocity = vBlurredVelo * 0.5f + 0.5f; return Out; } + PS_OUT_VELOCITYTILE PS_MOTIONBLUR_TILESAMPLE(PS_IN In) { PS_OUT_VELOCITYTILE Out = (PS_OUT_VELOCITYTILE) 0; @@ -1225,12 +1235,10 @@ PS_OUT_FLT4_SINGLE PS_MAIN_FOG(PS_IN In) PS_OUT_BACKBUFFER PS_TONE_MAPPING(PS_IN In) { PS_OUT_BACKBUFFER Out; - vector vColor = g_OriginalTexture.Sample(DefaultSampler, In.vTexcoord); + float4 vColor = g_OriginalTexture.Sample(DefaultSampler, In.vTexcoord); vColor *= g_fToneMappingExposure; - vColor = pow(vColor, 2.2f); switch (g_iToneMappingType) { case 0: - vColor = pow(vColor, 1.f/2.2f); vColor /= g_fToneMappingExposure; break; case 1: diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp index 8c0834c6a..a9e0fd214 100644 --- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp +++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp @@ -344,6 +344,9 @@ HRESULT CGameInstance::Bind_DepthStencil(CShader* pShader, const _char* pContant void CGameInstance::Get_BackBufferPTR(ID3D11Texture2D** pTexture2D) { m_pGraphic_Device->Get_BackBufferPTR(pTexture2D); + assert(false); + // 백버퍼는 DXGI_FORMAT_R8G8B8A8_UNORM임. 만약 ToneMapping 이전에 Backbuffer에 무언가 넣을려고 하는 의도였다면 + // Renderer의 Target_LDRBackBuffer를 이용해야함 ( 김누리한테 말해보셈 ifdef 걸어도 됨 ) } _float CGameInstance::Get_TimeDelta(const _wstring& strTimerTag) @@ -916,6 +919,10 @@ HRESULT CGameInstance::Begin_MRT_NonClear(const _wstring& strMRTTag, ID3D11Depth HRESULT CGameInstance::Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV, _bool isClear) { + assert(false); + // 백버퍼는 DXGI_FORMAT_R8G8B8A8_UNORM임. 만약 ToneMapping 이전에 Backbuffer에 무언가 넣을려고 하는 의도였다면 + // Renderer의 Target_LDRBackBuffer를 이용해야함 ( 김누리한테 말해보셈 ifdef 걸어도 됨 ) + return m_pRenderTarget_Manager->Begin_MRT_Include_BackBuffer(strMRTTag, pDSV , isClear); } diff --git a/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp b/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp index 588f1ec01..3b96a06d4 100644 --- a/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp +++ b/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp @@ -115,7 +115,7 @@ HRESULT CGraphic_Device::Ready_SwapChain(HWND hWnd, _uint iWinCX, _uint iWinCY) SwapChain.BufferDesc.Width = iWinCX; SwapChain.BufferDesc.Height = iWinCY; - SwapChain.BufferDesc.Format = DXGI_FORMAT_R16G16B16A16_FLOAT; + SwapChain.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; SwapChain.BufferDesc.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED; SwapChain.BufferDesc.Scaling = DXGI_MODE_SCALING_UNSPECIFIED; @@ -153,8 +153,11 @@ HRESULT CGraphic_Device::Ready_BackBufferRenderTargetView() if (FAILED(m_pSwapChain->GetBuffer(0, __uuidof(ID3D11Texture2D), (void**)&pBackBufferTexture))) return E_FAIL; - if (FAILED(m_pDevice->CreateRenderTargetView(pBackBufferTexture, nullptr, &m_pBackBufferRTV))) - return E_FAIL; + D3D11_RENDER_TARGET_VIEW_DESC rtvDesc = {}; + rtvDesc.ViewDimension = D3D11_RTV_DIMENSION_TEXTURE2D; + rtvDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM_SRGB; + + m_pDevice->CreateRenderTargetView(pBackBufferTexture, &rtvDesc, &m_pBackBufferRTV); SAFE_RELEASE(pBackBufferTexture); diff --git a/Jusin154_Team3D/Engine/Private/RenderTarget.cpp b/Jusin154_Team3D/Engine/Private/RenderTarget.cpp index a87c26739..69be5e708 100644 --- a/Jusin154_Team3D/Engine/Private/RenderTarget.cpp +++ b/Jusin154_Team3D/Engine/Private/RenderTarget.cpp @@ -116,6 +116,11 @@ void CRenderTarget::Toggle_RT_Debug() m_isDraw = !m_isDraw; } +void CRenderTarget::Set_Name(const _char* pName, _uint iSize) +{ + m_pRTV->SetPrivateData(WKPDID_D3DDebugObjectName, iSize, pName); +} + _bool CRenderTarget::Render_Debug(CShader* pShader, CVIBuffer_Rect* pVIBuffer ,_float fX, _float fY, _float fSizeX, _float fSizeY) { if (m_isDraw == false) { diff --git a/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp b/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp index 2f0e60a33..2526baffd 100644 --- a/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp @@ -24,6 +24,10 @@ HRESULT CRenderTarget_Manager::Add_RenderTarget(const _wstring& strRenderTargetK } m_RenderTargets.emplace(strRenderTargetKey, pRenderTarget); +#ifdef _DEBUG + _string strName = CMyTools::ToString(strRenderTargetKey); + pRenderTarget->Set_Name(strName.c_str(), (_uint)strName.length()); +#endif // _DEBUG return S_OK; diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp index 6604f3181..b4c88bcda 100644 --- a/Jusin154_Team3D/Engine/Private/Renderer.cpp +++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp @@ -206,6 +206,9 @@ void CRenderer::Render_Priority() COMPUTE_TIMEDELTA("Timer_Render_Priority"); EVENTSCOPE_("Render_Priority"); m_eType = RENDER::PRIORITY; + if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_LDRBackbuffer")))) { + return; + } for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::PRIORITY)]) { if (nullptr != pRenderObject) { @@ -217,6 +220,9 @@ void CRenderer::Render_Priority() SAFE_RELEASE(pRenderObject); } + if (FAILED(m_pGameInstance->End_MRT())) { + return; + } m_RenderObjects[ENUM_CLASS(RENDER::PRIORITY)].clear(); COMPUTE_TIMEDELTA("Timer_Render_Priority"); } @@ -612,6 +618,9 @@ void CRenderer::Render_Fog() EVENTSCOPE_("Render_Fog"); + if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_LDRBackbuffer")))) { + return; + } if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Fog"), m_pShader, "g_Texture"))) { return; } @@ -621,21 +630,22 @@ void CRenderer::Render_Fog() m_pVIBuffer->Bind_Resources(); m_pVIBuffer->Render(); + if (FAILED(m_pGameInstance->End_MRT())) { + return; + } - { // BackBuffer - ID3D11Texture2D* pBackBuffer = nullptr; - m_pGameInstance->Get_BackBufferPTR(&pBackBuffer); - m_pGameInstance->Copy_RenderTargetFrom(TEXT("Target_Fog"), pBackBuffer); - SAFE_RELEASE(pBackBuffer); + if (FAILED(m_pGameInstance->Copy_RenderTargetAToB(TEXT("Target_LDRBackBuffer"), TEXT("Target_Fog")))) { + return; + } + + + if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_LDRBackbuffer")))) { + return; } m_pShader->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)); m_pShader->Bind_RawValue("g_fDepthPackExponent", m_pGameInstance->Get_DepthPackExponentPtr(), sizeof(_float)); - //if (FAILED(m_pGameInstance->Bind_FogValue(m_pShader))) { // 여기서 포그에서 쓰는 상수들 바인딩 해줌 - // assert(false); - //} - if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Depth"), m_pShader, "g_DepthTexture"))) { return; } @@ -650,6 +660,10 @@ void CRenderer::Render_Fog() m_pVIBuffer->Bind_Resources(); m_pVIBuffer->Render(); + + if (FAILED(m_pGameInstance->End_MRT())) { + return; + } COMPUTE_TIMEDELTA("Timer_Render_Fog"); } @@ -685,7 +699,10 @@ void CRenderer::Render_WeightBlend() COMPUTE_TIMEDELTA("Timer_Render_WeightBlend"); EVENTSCOPE_("Render_WeightBlend"); // Bind_Resorces - + + if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_LDRBackbuffer")))) { + assert(false); return; + } m_pWeightBlendShader->Bind_Matrix("g_WorldMatrix", &m_ScreenWorldMatrix); m_pWeightBlendShader->Bind_Matrix("g_ViewMatrix", &m_ScreenViewMatrix); m_pWeightBlendShader->Bind_Matrix("g_ProjMatrix", &m_ScreenProjMatrix); @@ -703,6 +720,9 @@ void CRenderer::Render_WeightBlend() m_pVIBuffer->Bind_Resources(); m_pVIBuffer->Render(); + if (FAILED(m_pGameInstance->End_MRT())) { + return; + } COMPUTE_TIMEDELTA("Timer_Render_WeightBlend"); } @@ -711,6 +731,10 @@ void CRenderer::Render_NonLight() COMPUTE_TIMEDELTA("Timer_Render_NonLight"); EVENTSCOPE_("Render_NonLight"); m_eType = RENDER::NONLIGHT; + + if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_LDRBackbuffer")))) { + return; + } for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::NONLIGHT)]) { if (nullptr != pRenderObject){ @@ -722,6 +746,9 @@ void CRenderer::Render_NonLight() SAFE_RELEASE(pRenderObject); } + if (FAILED(m_pGameInstance->End_MRT())) { + return; + } m_RenderObjects[ENUM_CLASS(RENDER::NONLIGHT)].clear(); COMPUTE_TIMEDELTA("Timer_Render_NonLight"); } @@ -806,6 +833,9 @@ void CRenderer::Combine_Blur() COMPUTE_TIMEDELTA("Timer_Combine_Blur"); EVENTSCOPE_("Combine_Blur"); + if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_LDRBackbuffer")))) { + return; + } if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Blur_Y"), m_pBlurShader, "g_BlurYTexture"))) { return; } @@ -829,6 +859,9 @@ void CRenderer::Combine_Blur() m_pVIBuffer->Bind_Resources(); m_pVIBuffer->Render(); + if (FAILED(m_pGameInstance->End_MRT())) { + return; + } COMPUTE_TIMEDELTA("Timer_Combine_Blur"); } @@ -967,6 +1000,9 @@ void CRenderer::Render_Blend() return pSour->Get_Depth() > pDest->Get_Depth(); }); + if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_LDRBackbuffer")))) { + return; + } for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::BLEND)]) { if (nullptr != pRenderObject) { @@ -978,6 +1014,9 @@ void CRenderer::Render_Blend() SAFE_RELEASE(pRenderObject); } + if (FAILED(m_pGameInstance->End_MRT())) { + return; + } m_RenderObjects[ENUM_CLASS(RENDER::BLEND)].clear(); COMPUTE_TIMEDELTA("Timer_Render_Blend"); } @@ -991,9 +1030,9 @@ void CRenderer::Render_Blur_Mesh() return pSour->Get_Depth() > pDest->Get_Depth(); }); - if (FAILED(m_pGameInstance->Begin_MRT_Include_BackBuffer(L"MRT_Blur_Mesh", nullptr, false))) - return; - + if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_Blur_Mesh")))) { + assert(false); return; + } for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::BULR_MESH)]) { if (nullptr != pRenderObject) { @@ -1020,12 +1059,9 @@ void CRenderer::Render_PostProcessing() EVENTSCOPE_("Render_PostProcessing"); { - ID3D11Texture2D* pBackBuffer = { nullptr }; - m_pGameInstance->Get_BackBufferPTR(&pBackBuffer); - if (FAILED(m_pGameInstance->Copy_RenderTargetFrom(TEXT("Target_AfterBlend"), pBackBuffer))) { - assert(false); + if (FAILED(m_pGameInstance->Copy_RenderTargetAToB(TEXT("Target_LDRBackBuffer"), TEXT("Target_AfterBlend")))) { + return; } - SAFE_RELEASE(pBackBuffer); if (FAILED(m_pShader->Bind_RawValue("g_iMBTileSize", &m_iMBTileSize, sizeof(_int)))) { assert(false); return; } @@ -1034,7 +1070,12 @@ void CRenderer::Render_PostProcessing() m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_VelocityTile"), TEXT("Target_VelocityTent"), SHADER_PASS_DEFERRED::MOTIONBLURTENT); } /* MotionBlur */ - if (false == m_bMB) { + if (true == m_bMB) { + if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_LDRBackbuffer")))) { + assert(false); return; + } + } + else { if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_MotionBlur")))) { assert(false); return; } @@ -1052,7 +1093,7 @@ void CRenderer::Render_PostProcessing() if (FAILED(m_pShader->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { assert(false); return; } - if (FAILED(m_pShader->Bind_RawValue("g_fMBBlurRadius", &m_fMBBlurRadius, sizeof(_float)))) { + if (FAILED(m_pShader->Bind_RawValue("g_fMBMaxBlurRadius", &m_fMBMaxBlurRadius, sizeof(_float)))) { assert(false); return; } if (FAILED(m_pShader->Bind_RawValue("g_fMBSampleBias", &m_fMBSampleBias, sizeof(_float)))) { @@ -1095,10 +1136,8 @@ void CRenderer::Render_PostProcessing() m_pVIBuffer->Bind_Resources(); m_pVIBuffer->Render(); - if (false == m_bMB) { - if (FAILED(m_pGameInstance->End_MRT())) { - return; - } + if (FAILED(m_pGameInstance->End_MRT())) { + return; } if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Bloom")))) { return; @@ -1158,8 +1197,15 @@ void CRenderer::Render_PostProcessing() m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_2x2"), TEXT("Target_Bloom_2x2_2"), SHADER_PASS_DEFERRED::BLOOM_BLURY); // 8 m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_2x2_2"), TEXT("Target_Bloom"), SHADER_PASS_DEFERRED::UPSAMPLE); - m_pGameInstance->Finish_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_Input"), TEXT("Target_Bloom"), SHADER_PASS_DEFERRED::BLOOM_FINISH); // 9 + + if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_LDRBackbuffer")))) { + assert(false); return; + } + m_pGameInstance->Finish_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_Input"), TEXT("Target_Bloom"), SHADER_PASS_DEFERRED::BLOOM_FINISH); // 9 + if (FAILED(m_pGameInstance->End_MRT())) { + return; + } COMPUTE_TIMEDELTA("Timer_Render_PostProcessing"); } @@ -1196,14 +1242,12 @@ void CRenderer::Render_DistortionAcc() EVENTSCOPE_("Render_DistortionAcc"); // Bind_Resorces - ID3D11Texture2D* pBackBufferTexture2D = { nullptr }; - - m_pGameInstance->Get_BackBufferPTR(&pBackBufferTexture2D); - - if (FAILED(m_pGameInstance->Copy_RenderTargetFrom(TEXT("Target_PreEffect"), pBackBufferTexture2D))) { + if (FAILED(m_pGameInstance->Copy_RenderTargetAToB(TEXT("Target_LDRBackBuffer"), TEXT("Target_PreEffect")))) { return; } - + if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_LDRBackbuffer")))) { + assert(false); return; + } m_pDistortionShader->Bind_Matrix("g_WorldMatrix", &m_ScreenWorldMatrix); m_pDistortionShader->Bind_Matrix("g_ViewMatrix", &m_ScreenViewMatrix); m_pDistortionShader->Bind_Matrix("g_ProjMatrix", &m_ScreenProjMatrix); @@ -1221,8 +1265,9 @@ void CRenderer::Render_DistortionAcc() m_pVIBuffer->Bind_Resources(); m_pVIBuffer->Render(); - SAFE_RELEASE(pBackBufferTexture2D); - + if (FAILED(m_pGameInstance->End_MRT())) { + return; + } COMPUTE_TIMEDELTA("Timer_Render_DistortionAcc"); } @@ -1281,11 +1326,8 @@ void CRenderer::Render_Tone_Mapping() { COMPUTE_TIMEDELTA("Timer_Render_Tone_Mapping"); EVENTSCOPE_("Render_Tone_Mapping"); - { // BackBuffer - ID3D11Texture2D* pBackBuffer = nullptr; - m_pGameInstance->Get_BackBufferPTR(&pBackBuffer); - m_pGameInstance->Copy_RenderTargetFrom(TEXT("Target_ToneMapping"), pBackBuffer); - SAFE_RELEASE(pBackBuffer); + if (FAILED(m_pGameInstance->Copy_RenderTargetAToB(TEXT("Target_LDRBackBuffer"), TEXT("Target_ToneMapping")))) { + return; } m_pShader->Bind_Matrix("g_WorldMatrix", &m_ScreenWorldMatrix); diff --git a/Jusin154_Team3D/Engine/Private/Renderer_Declare.cpp b/Jusin154_Team3D/Engine/Private/Renderer_Declare.cpp index 0931ce662..5aabb3598 100644 --- a/Jusin154_Team3D/Engine/Private/Renderer_Declare.cpp +++ b/Jusin154_Team3D/Engine/Private/Renderer_Declare.cpp @@ -147,6 +147,11 @@ HRESULT CRenderer::Initialize() D3D11_VIEWPORT Viewport{}; m_pContext->RSGetViewports(&iNumViewports, &Viewport); { + /* Target_LDRBackBuffer */ + if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_LDRBackBuffer"), (_uint)Viewport.Width, (_uint)Viewport.Height, + DXGI_FORMAT_R16G16B16A16_FLOAT, _float4(0.0f, 0.f, 1.f, 1.f)))) { + return E_FAIL; + } /* Target_ToneMapping */ if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_ToneMapping"), (_uint)Viewport.Width, (_uint)Viewport.Height, DXGI_FORMAT_R16G16B16A16_FLOAT, _float4(0.0f, 0.f, 1.f, 1.f)))) { @@ -427,6 +432,10 @@ HRESULT CRenderer::Initialize() if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Combined"), TEXT("Target_Fog")))) { return E_FAIL; } + /* MRT_LDRBackbuffer */ + if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_LDRBackbuffer"), TEXT("Target_LDRBackBuffer")))) { + return E_FAIL; + } if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Combined"), TEXT("Target_AfterCombined")))) { return E_FAIL; } @@ -519,6 +528,9 @@ HRESULT CRenderer::Initialize() /* MRT_Blur_Mesh */ + if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur_Mesh"), TEXT("Target_LDRBackBuffer")))) { + return E_FAIL; + } if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur_Mesh"), TEXT("Target_VelocityMap")))) { return E_FAIL; } @@ -683,7 +695,7 @@ void CRenderer::Describe_Entitiy() if (GUI::CollapsingHeader("MotionBlurr")) { GUI::Checkbox("m_bMB", &m_bMB); GUI::SliderFloat("g_fMBSampleBias", &m_fMBSampleBias, -1.f, 1.f, "%.3f"); - GUI::SliderFloat("g_fMBBlurRadius", &m_fMBBlurRadius, 0.1f, (_float)m_iMBMaxSampleCount, "%.1f"); + 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("End_Padding")) { diff --git a/Jusin154_Team3D/Engine/Public/RenderTarget.h b/Jusin154_Team3D/Engine/Public/RenderTarget.h index 4c9d22439..0761461e9 100644 --- a/Jusin154_Team3D/Engine/Public/RenderTarget.h +++ b/Jusin154_Team3D/Engine/Public/RenderTarget.h @@ -29,6 +29,7 @@ class CRenderTarget final : public CBase void Ready_Debug(); void Describe_Entity(const _char* pName); void Toggle_RT_Debug(); + void Set_Name(const _char* pName, _uint iSize); #endif private: diff --git a/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h b/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h index 26e844e9b..31212508f 100644 --- a/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h +++ b/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h @@ -41,8 +41,8 @@ class CRenderTarget_Manager final : public CBase #ifdef _DEBUG private: - _int m_iSizeX = { 16 * 14 }; - _int m_iSizeY = { 9 * 14 }; + _int m_iSizeX = { 350 }; + _int m_iSizeY = { 350 }; #endif // _DEBUG private: diff --git a/Jusin154_Team3D/Engine/Public/Renderer.h b/Jusin154_Team3D/Engine/Public/Renderer.h index e2a9582f7..205d0e9ea 100644 --- a/Jusin154_Team3D/Engine/Public/Renderer.h +++ b/Jusin154_Team3D/Engine/Public/Renderer.h @@ -81,7 +81,7 @@ class CRenderer final : public CBase _float m_fMinShadowBrightness = { 0.47f }; // MotionBlur - _float m_fMBBlurRadius = { 28.f }; + _float m_fMBMaxBlurRadius = { 28.f }; _float m_fMBSampleBias = { 0.005f }; _int m_iMBMaxSampleCount = { 28 }; _int m_iMBSampleCount = { m_iMBMaxSampleCount }; @@ -91,7 +91,7 @@ class CRenderer final : public CBase // ToneMapping _int m_iToneMappingType = { 2 }; - _float m_fExposure = { 0.7f }; + _float m_fExposure = { 0.5f }; // Bloom _int m_iBloomEmbossingPass = { 1 };