Jump to content

  • Log In with Google      Sign In   
  • Create Account

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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 Yang G   Members   -  Reputation: 105

Like
0Likes
Like

Posted 01 March 2012 - 10:39 PM

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.

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS