I'm rendering a tree that contains branch meshes with partially transparent textures.
If I render it with AlphaTestEffect and set the ReferenceAlpha to something low, I'll get this.
I want to render the tree with BasicEffect, however, this is the result I get. BlendState is set to NonPremultiplied.
I am not even sure what I am looking at. It looks like the transparent area of the closest branch is covering up the one behind it (but not the trunk of the tree). If I set the DepthState to DepthRead, then all the branches are drawn out of order.
What exactly is the problem here?