   alpha test for leaf
  In DX,when draw many trees(branches and leaves), I divide tree mesh into two subset: 0 for branches and 1 for leaves. Now one problem occurs. I use alpha test to render leaves, when viewpoint is a little far, no leaves appears and only branches can be seen. Even the viewpoint is quite near, leaves is not clear. My setting is as follows, where is wrong? Thank you.Quote:   pass P0//draw branch{AlphaBlendEnable = false;AlphaTestEnable = false;SeparateAlphaBlendEnable = false;ZENABLE = false;CullMode = CCW;  VertexShader = compile vs_3_0 InstanceBranchVS();    PixelShader  = compile ps_3_0 InstancingPS();}pass P1//draw leaves{ZEnable= TRUE;  ZWriteEnable= TRUE;  CullMode    = NONE;AlphaBlendEnable = FALSE;  AlphaTestEnable  = TRUE;  AlphaRef    = 150;  AlphaFunc   = GREATER; VertexShader = compile vs_3_0 InstanceBranchVS();PixelShader  = compile ps_3_0 InstancingPS();}BTW, leaf's texture is png file, in alpha channel, only leaf area is white, the left area is black.   