I'm having an issue with trying to render multiple alpha objects over the top of each other. At the moment, if i render one alpha object on top of another alpha object, the top alpha object is displayed but the bottom object isn't until you go past/around the first object. I'm trying to get an additive blending effect, so the top object shows that there is another transparent object behind it. How do you do this in XNA?? My current render state settings are:
RenderState rs = Globals.g_Device.RenderState;
rs.AlphaBlendEnable = true;
rs.BlendFunction = BlendFunction.Add;
rs.DepthBufferFunction = CompareFunction.LessEqual;
rs.DepthBufferEnable = true;
rs.DepthBufferWriteEnable = true;
Globals.g_Device.PresentationParameters.EnableAutoDepthStencil = true;
Globals.g_Device.PresentationParameters.AutoDepthStencilFormat = DepthFormat.Depth24Stencil8;