Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17063

Z fighting in skybox

$
0
0

Hi

After porting my game engine from DX9 to DX11, I seem to have an issue with my sky box.  Previously it worked fine, I do the usual box around the player and set position.w to position.z so they're both the same which should result in a z of 1.0f in the next stage.

My depth buffer works for all other graphics but when I render my sky box, depending on my view and position, I get some (what looks like) z-fighting against - nothing.  Sometimes the entire skybox triangle displays correctly until I move my camera …


Viewing all articles
Browse latest Browse all 17063

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>