Skip to main content
gamedev.net
🔒 Locked

Shadow draw order problem

Started by ayush3017 Sep 19, 2010 at 1:52 PM 2 replies 850+ views
Original Post
ayush3017
ayush3017
hey, I have fully implemented Parallel split shadow map. But if an object A is over object B and the draw order is A then B then A doesn't cast shadow. However if the objects are interchanged and draw order is kept same then shadows appear. So how to draw objects from back to front?? or am I missing something here?
MJP
MJP
Do you have depth tests and depth writes enabled when you're rendering the shadow map?
ayush3017
ayush3017
Yes ZEnable and ZWriteEnable both are set to true.
IvicaKolic
IvicaKolic
Why not use Camera Space Shadow Maps?
It is a full solutions (every light type and size supported with just one texture required) and all in one line of code.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.