Here u got
+
You must be registered to see links
+
Code:
#ifdef __VCINEMASCOPE
int m_nCinemaScopeCnt = -100;
#endif
HRESULT CNeuzApp::Render()
{
_PROFILE("CNeuzApp::Render()");
if( m_bActive == FALSE )
return S_FALSE;
// Clear the viewport
m_pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, CWndBase::m_Theme.m_d3dcBackground, 1.0f, 0 ) ;
CWndWorld* pWndWorld = (CWndWorld*)g_WndMng.GetWndBase( APP_WORLD );
if( pWndWorld )
pWndWorld ->ClearFlyTarget(); // ºñÇට °ø°Ý°¡´ÉÇÑ Å¸°Ùµé ¸®½ºÆ® Áö¿öÁÜ.
//pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, D3DCOLOR_ARGB( 255, 90, 146, 222 ), 1.0f, 0 ) ;
//m_pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, D3DCOLOR_ARGB( 255, 255, 255, 255 ), 1.0f, 0 ) ;
//m_pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, D3DCOLOR_ARGB( 255, 0, 0, 0 ), 1.0f, 0 ) ;
// Begin the scene
if( g_Option.m_nShadow < 2 ) // ³ôÀ½/Áß°£ ¸¸ ½¦µµ¿ì ¸ÊÀ» ¸¸µç´Ù.
{
_PROFILE("Make Shadow Map");
CHECK1();
void RenderShadowMap( LPDIRECT3DDEVICE9 pd3dDevice, CObj **pList, int nMax );
if( g_pPlayer )
{
CWorld *pWorld = g_pPlayer->GetWorld();
if( pWorld )
{
#if __VER >= 13 // __HOUSING
#if __VER >= 14 // __BS_FIX_SHADOW_ONOBJECT
if( pWorld->GetID() != WI_WORLD_MINIROOM ) // 7.28±âȹ¿äû : ÇÏ¿ì¡ ±×¸²ÀÚ Á¦°Å
RenderShadowMap( m_pd3dDevice, pWorld->m_aobjCull, pWorld->m_nObjCullSize );
#else
if(pWorld->GetID() != WI_WORLD_MINIROOM && pWorld->GetID() != WI_INSTANCE_OMINOUS && pWorld->GetID() != WI_INSTANCE_OMINOUS_1)
RenderShadowMap( m_pd3dDevice, pWorld->m_aobjCull, pWorld->m_nObjCullSize );
#endif //__VER >= 14
#endif //__VER >= 13
}
}
CHECK2( " Render ShadowMap" );
}
// »Ç»þ½Ã ¿É¼ÇÀÌ ÄÑÁ®ÀÖÀ¸¸é ·»´õŸ°Ù¿¡ °ÔÀÓȸéÀ» ·»´õÇÔ.
if( g_Option.m_nBloom )
{
_PROFILE("Make Bloom");
CWorld* pWorld = g_WorldMng.Get();
if( pWorld && g_pPlayer && g_Glare.m_bActive )
{
pWorld->Projection( m_pd3dDevice, g_Glare.m_Src.m_nWidth, g_Glare.m_Src.m_nHeight );
pWorld->SetCamera( &m_camera );
g_Glare.m_Src.BeginScene();
DWORD dwColor = CWorld::GetDiffuseColor();
m_2DRender.m_pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, dwColor /*D3DCOLOR_ARGB( 255, 255, 255, 255 )*/, 1.0f, 0 ) ;
pWorld->RenderBase( m_pd3dDevice, g_WndMng.m_Theme.m_pFontWorld ); // ÁöÇü°ú ¿ÀºêÁ§Æ®¸¦ ¹Ì¸® ·»´õ¸µ ÇصÒ.
g_Glare.m_Src.EndScene();
g_Glare.Blur( m_pd3dDevice ); // m_Src¸¦ m_Surface[0]¿¡ ºí·¯ÇÔ.
}
}
CHECK1();
#ifdef __NEW_THEME
CWndNavigator* pWndNavigator = (CWndNavigator*)g_WndMng.GetWndBase(APP_NAVIGATOR);
if(pWndNavigator)
{
pWndNavigator->Render(m_pd3dDevice);
}
#endif
if(SUCCEEDED(m_pd3dDevice->BeginScene()))
{
_PROFILE("BeginScene");
CHECK2( "Begin" );