[add] Shadow exception
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -1242,7 +1242,7 @@ void CLevel_GamePlay::ResetLevel_Environment()
|
||||
}
|
||||
m_pLight->Get_Component<CLight>()->Set_Color(vDiffuse, vAmbient, vSpecular);
|
||||
|
||||
m_pLight->Get_Component<CTransform>()->RotationQ(XMVectorSet(0.581, 0.239f, -0.183f, 0.757f));
|
||||
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.075f, 0.150f),
|
||||
_float2(2.300f, 10.000f), _float4(0.0047f, 0.0018f, 0.0018f, 0.0018f),
|
||||
|
||||
@@ -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<CGameObject*>* pObjects = pLayer->Get_Objects();
|
||||
for (auto& pObject : *pObjects) {
|
||||
if (FAILED(m_pGameInstance->Add_RenderGroup(RENDER::PRESHADOW, pObject))) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user