複数のアルファ オブジェクトを重ねてレンダリングしようとすると問題が発生します。現時点では、1 つのアルファ オブジェクトを別のアルファ オブジェクトの上にレンダリングすると、一番上のアルファ オブジェクトは表示されますが、一番下のオブジェクトは、最初のオブジェクトを通り過ぎたり回ったりするまで表示されません。追加のブレンディング エフェクトを取得しようとしているので、一番上のオブジェクトは、その背後に別の透明なオブジェクトがあることを示しています。XNAでこれをどのように行いますか?? 私の現在のレンダリング状態の設定は次のとおりです。
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;