Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

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

4: Adsense

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   

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.




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.