@@ -134,6 +134,7 @@ void CCamPosition_Shoulder::Update(_float fTimeDelta)
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
#ifndef _DEBUG
|
||||
if (dynamic_cast<CPlayer*>(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;
|
||||
|
||||
@@ -867,75 +867,89 @@ ON_COLLISION_INFO CEffect_Container::MonsterSweepTarget(_fvector StartPos, _fvec
|
||||
|
||||
_float fDistance = XMVectorGetX(XMVector3Length(vEndPos - vStartPos));
|
||||
|
||||
PSX::PxSweepBuffer pxBuffer = {};
|
||||
|
||||
PSX::PxSweepBufferN<12> pxBuffer = {};
|
||||
_bool bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
|
||||
|
||||
const PSX::PxSweepHit& hit = pxBuffer.block;
|
||||
PSX::PxRigidActor* pActor = hit.actor;
|
||||
PSX::PxShape* pShape = hit.shape;
|
||||
ON_COLLISION_INFO tagCollInfo = {};
|
||||
|
||||
tagCollInfo.vWorldPos.w = 1.f;
|
||||
|
||||
if (bHit) {
|
||||
|
||||
memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
|
||||
|
||||
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
|
||||
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
|
||||
tagCollInfo.fLength = fDistance;
|
||||
|
||||
|
||||
if (nullptr != pActor && nullptr != pActor->userData)
|
||||
{
|
||||
PHYSX_USERDATA* pUserData = static_cast<PHYSX_USERDATA*>(pActor->userData);
|
||||
tagCollInfo.pObject = pUserData->pOwner;
|
||||
tagCollInfo.eHitType = ENUM_CLASS(HIT_TYPE::HIT_PROJECTILE);
|
||||
tagCollInfo.fDamage = 10.f;
|
||||
|
||||
switch (pUserData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::BODY_DYNAMIC:
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::SKILL_PROTEGO:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
m_bHitShield = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case PHYSX_KIND::CCTActor:
|
||||
{
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
|
||||
case PXOBJECT::PLAYER:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
vector<PSX::PxSweepHit*> Hits;
|
||||
_uint iHitCount = pxBuffer.nbTouches;
|
||||
if (true == pxBuffer.hasBlock) {
|
||||
iHitCount += 1;
|
||||
Hits.reserve(iHitCount);
|
||||
Hits.emplace_back(&pxBuffer.block);
|
||||
}
|
||||
else {
|
||||
Hits.reserve(iHitCount);
|
||||
}
|
||||
for (_uint i = 0; i < pxBuffer.nbTouches; ++i) {
|
||||
Hits.emplace_back(&pxBuffer.touches[i]);
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < Hits.size(); ++i) {
|
||||
const PSX::PxSweepHit& hit = *Hits[i];
|
||||
PSX::PxRigidActor* pActor = hit.actor;
|
||||
PSX::PxShape* pShape = hit.shape;
|
||||
|
||||
tagCollInfo.vWorldPos.w = 1.f;
|
||||
|
||||
memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
|
||||
|
||||
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
|
||||
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
|
||||
tagCollInfo.fLength = fDistance;
|
||||
|
||||
|
||||
if (nullptr != pActor && nullptr != pActor->userData || nullptr != pShape && nullptr != pShape->userData)
|
||||
{
|
||||
PHYSX_USERDATA* pUserData = nullptr;
|
||||
if (nullptr == pActor->userData) {
|
||||
pUserData = static_cast<PHYSX_USERDATA*>(pShape->userData);
|
||||
}
|
||||
else {
|
||||
pUserData = static_cast<PHYSX_USERDATA*>(pActor->userData);
|
||||
}
|
||||
tagCollInfo.pObject = pUserData->pOwner;
|
||||
tagCollInfo.eHitType = ENUM_CLASS(HIT_TYPE::HIT_PROJECTILE);
|
||||
tagCollInfo.fDamage = 10.f;
|
||||
|
||||
switch (pUserData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::BODY_DYNAMIC:
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::SKILL_PROTEGO:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
m_bHitShield = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case PHYSX_KIND::CCTActor:
|
||||
{
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
|
||||
case PXOBJECT::PLAYER:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isTerrainCollision == true && bHit == false)
|
||||
{
|
||||
memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
|
||||
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
|
||||
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
|
||||
tagCollInfo.fLength = fDistance;
|
||||
tagCollInfo.pObject = m_pOwner->Get_Owner();
|
||||
|
||||
bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, pxBuffer);
|
||||
|
||||
const PSX::PxSweepHit& hit = pxBuffer.block;
|
||||
|
||||
@@ -374,7 +374,7 @@ void CLevel_Field::ResetLevel_Environment()
|
||||
m_pLight->Get_Component<CLight>()->Set_Color(vDiffuse, vAmbient, vSpecular);
|
||||
m_pLight->Get_Component<CTransform>()->RotationQ(XMVectorSet(-0.574f, -0.409f, 0.584f, -0.402f));
|
||||
m_pLight->Get_Component<CTransform>()->Translation(XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||
m_pGameInstance->Set_Environment(_float3(0.585f, 0.182f, 2.83f), _float(2.f), _float2(0.019f, 0.161f),
|
||||
m_pGameInstance->Set_Environment(_float3(0.585f, 0.182f, 2.83f), _float(0.5f), _float2(0.019f, 0.161f),
|
||||
_float2(2.300f, 10.000f), _float4(0.0360f, 0.0326f, 0.0057f, 0.0018f), _float4(2.0000f, 1.f, 1.f, 1.f), _float3(0.f, 0.f, -100.f), _float3(0.f, 0.f, 100.f));
|
||||
m_pGameInstance->Setting_Volumetirc(1.743f, 0.0001f, 0.2000f, 1.050f, 0.04862f);
|
||||
m_pLight->Capture_PreShadow();
|
||||
|
||||
@@ -169,11 +169,11 @@ void CLevel_GamePlay::Update(_float fTimeDelta)
|
||||
_bool bStartCinematic = { true };
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
bStartCinematic = true;
|
||||
bStartCinematic = false;
|
||||
#elif 진우
|
||||
bStartCinematic = true;
|
||||
#elif Bin
|
||||
bStartCinematic = false;
|
||||
bStartCinematic = true;
|
||||
#elif gimch
|
||||
bStartCinematic = true;
|
||||
#elif 나
|
||||
@@ -363,9 +363,9 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
isReady_Hogwart = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isReady_Background = true;
|
||||
isReady_Hogsmeade = true;
|
||||
isReady_Hogwart = true;
|
||||
isReady_Background = false;
|
||||
isReady_Hogsmeade = false;
|
||||
isReady_Hogwart = false;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
isReady_Background = false;
|
||||
@@ -1157,8 +1157,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
|
||||
isLoad_NPC = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_NPC = true;
|
||||
isLoad_RandomNPC = true;
|
||||
isLoad_NPC = false;
|
||||
isLoad_RandomNPC = false;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
isLoad_RandomNPC = true;
|
||||
@@ -1243,7 +1243,7 @@ void CLevel_GamePlay::ResetLevel_Environment()
|
||||
|
||||
m_pLight->Get_Component<CTransform>()->RotationQ(XMVectorSet(0.581f, 0.239f, -0.183f, 0.757f));
|
||||
m_pLight->Get_Component<CTransform>()->Translation(XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||
m_pGameInstance->Set_Environment(_float3(0.54300f, 0.40100f, 4.00000f), _float(0.700), _float2(0.019f, 0.161f),
|
||||
m_pGameInstance->Set_Environment(_float3(0.54300f, 0.40100f, 4.00000f), _float(0.5f), _float2(0.019f, 0.161f),
|
||||
_float2(2.300f, 10.000f), _float4(0.0047f, 0.0018f, 0.0018f, 0.0018f),
|
||||
_float4(2.f, 1.f, 1.f, 1.f), _float3(-10.f, -10.f, -50.f), _float3(10.f, 10.f, 50.f));
|
||||
m_pLight->Capture_PreShadow();
|
||||
|
||||
@@ -581,9 +581,9 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = true;
|
||||
isLoad_UI_SEQUANTIAL = true;
|
||||
isLoad_NPC = true;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
isLoad_NPC = false;
|
||||
isLoad_Monster = true;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
|
||||
@@ -103,10 +103,11 @@ void CRanrok_Breath::Update(_float fTimeDelta)
|
||||
|
||||
if (m_isStartRayCast == true)
|
||||
{
|
||||
ON_COLLISION_INFO CollisionInfo = MonsterRayCast(XMLoadFloat4(&m_vStartPos), CombinedMat.r[2] * -1.f, 50.f, 50);
|
||||
ON_COLLISION_INFO CollisionInfo = MonsterRayCast(vStartPos, CombinedMat.r[2] * -1.f, 50.f, 50);
|
||||
if (m_bHit = true)
|
||||
OnCollision(this, &CollisionInfo);
|
||||
|
||||
_vector vEndPos = vStartPos + CombinedMat.r[2] * -1.f * 50.f;
|
||||
MonsterSweepTarget(vStartPos, vEndPos, 0.6f, false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -1867,5 +1867,5 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Trigger X="110.012" Y="16.785" Z="131.700" W="0.1"/>
|
||||
<Trigger X="110.012" Y="16.785" Z="131.700" W="10.0"/>
|
||||
</TrollIntro>
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -209,7 +209,7 @@
|
||||
|
||||
<MI_HUM_N_Heads_Eye ShaderIndex = "2" OutLineWrite="2">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Poltergeist_Eye_E" Extension=".png"/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Poltergeist_Eye_E" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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")
|
||||
//));
|
||||
|
||||
///////////////////////////////
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user