Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
おわかりのように、レベル エディター用のギズモを作成しようとしていますが、問題が発生しました。私のギズモを他のモデルの上に描くために、私は設定しました
GraphicsDevise.DepthStencilState = DepthStencilState.None;
深度テストがないため、次のような状況になることがあります。
でこの問題を解決できることはわかっていますがrenderTarget、Draw を台無しにしたくありません。
renderTarget
どうすればこれを達成できますか?
@melak47 のおかげで、私は問題を解決しました
メインの Draw 呼び出しでは、最後にギズモを描画し、ギズモ内でジオメトリを描画する前に呼び出します
_GD.Clear(ClearOptions.DepthBuffer, new Vector4(0), 65535, 0);