Jump to content
  • Advertisement
Sign in to follow this  
Yang G

Depth competition occurs with ZFUNC_EQUAL but no in Shadow Map sample in ShaderX2

This topic is 2480 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, guys
In the Shadow map sample in ShaderX2, The author draw the shadow like that:
1: Disable the color writing, and render all the scene to generate the depth.
2: use ZFUNC_EQUAL to render the scene with each light

Here is the confusion: If i use the ZFUNC_EQUAL and render something with the same method above, i will encounter the depth competition, but the sample not. Further more, i check the bias state in pix, the depth bias is 0.

so how can i avoid the depth competition problem with ZFUNC_EQUAL ?
Appreciate for any clues about it.

Thanks.

Forgive my poor English.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!