diff --git a/Jusin154_Team3D/Client/Private/InstancedProp.cpp b/Jusin154_Team3D/Client/Private/InstancedProp.cpp index b67ca2ff5..1d7d39eb3 100644 --- a/Jusin154_Team3D/Client/Private/InstancedProp.cpp +++ b/Jusin154_Team3D/Client/Private/InstancedProp.cpp @@ -27,8 +27,10 @@ void CInstancedProp::Late_Update(_float fTimeDelta) } m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); +#ifdef Bin m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); +#endif // Bin } HRESULT CInstancedProp::Render() diff --git a/Jusin154_Team3D/Client/Private/Land.cpp b/Jusin154_Team3D/Client/Private/Land.cpp index 7fa09b228..7bbf48841 100644 --- a/Jusin154_Team3D/Client/Private/Land.cpp +++ b/Jusin154_Team3D/Client/Private/Land.cpp @@ -32,8 +32,10 @@ void CLand::Late_Update(_float fTimeDelta) if (m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRaduis)) { m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); +#ifdef Bin m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); +#endif // Bin for (auto& pInstanceProp : m_InstanceProps){ pInstanceProp->Late_Update(fTimeDelta); } diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index dc47fc1f0..c50ebb648 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -1242,7 +1242,7 @@ void CLevel_GamePlay::ResetLevel_Environment() } m_pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular); - m_pLight->Get_Component()->RotationQ(XMVectorSet(0.581, 0.239f, -0.183f, 0.757f)); + m_pLight->Get_Component()->RotationQ(XMVectorSet(0.581f, 0.239f, -0.183f, 0.757f)); m_pLight->Get_Component()->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.075f, 0.150f), _float2(2.300f, 10.000f), _float4(0.0047f, 0.0018f, 0.0018f, 0.0018f), diff --git a/Jusin154_Team3D/Client/Private/Light_Main.cpp b/Jusin154_Team3D/Client/Private/Light_Main.cpp index 5e66cd0a3..fa319d2fd 100644 --- a/Jusin154_Team3D/Client/Private/Light_Main.cpp +++ b/Jusin154_Team3D/Client/Private/Light_Main.cpp @@ -171,7 +171,9 @@ _matrix CLight_Main::Get_OffCenterProjMatrix(_fmatrix ViewMatrix, vector<_float3 void CLight_Main::Add_PreShadowRenderGroup(CLayer* pLayer) { - assert(nullptr != pLayer); + if (nullptr == pLayer) { + return; + } const list* pObjects = pLayer->Get_Objects(); for (auto& pObject : *pObjects) { if (FAILED(m_pGameInstance->Add_RenderGroup(RENDER::PRESHADOW, pObject))) { diff --git a/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp index 03a05f16f..3be107150 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp @@ -72,8 +72,10 @@ void CMapElement_Cave::Late_Update(_float fTimeDelta) if (m_bVisible) { m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); +#ifdef Bin m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); +#endif // Bin #ifdef _DEBUG m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, m_pTriggerBox); #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp index 9761e71b7..61b5f7b1b 100644 --- a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp +++ b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp @@ -86,8 +86,10 @@ void CMapObject_Render::Late_Update(_float fTimeDelta) m_iNumMeshe = m_pModelComs[m_iLodIndex]->Get_NumMeshes(); m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); +#ifdef Bin m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); +#endif // Bin } } diff --git a/Jusin154_Team3D/Client/Private/Terrain.cpp b/Jusin154_Team3D/Client/Private/Terrain.cpp index 7072e5c07..cb0a8599d 100644 --- a/Jusin154_Team3D/Client/Private/Terrain.cpp +++ b/Jusin154_Team3D/Client/Private/Terrain.cpp @@ -63,8 +63,10 @@ void CTerrain::Late_Update(_float fTimeDelta) { //if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); +#ifdef Bin m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this); m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this); +#endif // Bin //} }