When does depth testing happen?
Posted
by
Utkarsh Sinha
on Game Development
See other posts from Game Development
or by Utkarsh Sinha
Published on 2012-04-03T21:24:50Z
Indexed on
2012/04/03
23:41 UTC
Read the original article
Hit count: 328
I'm working with 2D sprites - and I want to do 3D style depth testing with them. When writing a pixel shader for them, I get access to the semantic DEPTH0. Would writing to this value help? It seems it doesn't. Maybe it's done before the pixel shader step? Or is depth testing only done when drawing 3D things (I'm using SpriteBatch)? Any links/articles/topics to read/search for would be appreciated.
© Game Development or respective owner