|
|
清除深度???^是清除Z大於1.0f的?D形??
在?出??上?子反射的茶?氐牟襟E,
需要清除深度???^再?茶?卦阽R子的反射影像,
可是清除深度???^之前有在?鼍爱?出一些物件,
?些物件不??磺宄?by m_d3dDevice->Clear Z=1.0f)??
m_d3dDevice->Clear(0L,NULL,D3DCLEAR_ZBUFFER,0x000000,1.0f,0L);
?一行到底是清除什??D形呢?
IDirect3DDevice8::Clear
HRESULT Clear(
DWORD Count,
CONST D3DRECT* pRects,
DWORD Flags,
D3DCOLOR Color,
float Z,
DWORD Stencil
);
D3DCLEAR_ZBUFFER
Clear the depth buffer to the value in the Z parameter
Z
[in] New z value that this method stores in the depth buffer. This parameter can be in the range from 0.0 through 1.0 (for z-based or w-based depth buffers). A value of 0.0 represents the nearest distance to the viewer, and 1.0 the farthest distance.
|
|