4. 接着做 Stencil Test 和 Depth Test (这俩个人理解是可以看作一起做的)
相关api: D3DRS_STENCILENABLE;
D3DRS_STENCILFAIL; ( if the stencil test fails )
D3DRS_STENCILZFAIL; ( if the stencil test passes and the depth test fails )
D3DRS_STENCILPASS; ( if both the stencil and the depth tests pass )
D3DRS_STENCILFUNC;
D3DRS_STENCILREF;
D3DRS_STENCILMASK;
D3DRS_STENCILWRITEMASK;