hi
i am trying to apply shadow mapping on the scene using glsl. but scene looks weird. there is no problem depth texture calculating because i tested it on the full screen quad. my code is below
Thank you DmitryM for interest. i resolved the problem. now my problem is how i can get rid of shadow acne on back face surface. i am forming depth texture from light point of view with front face culling enabled but this doesn’t solve problem.
output screen :
In the shadow compare step of the shader are you adding a small offset to the z component of the texture coordinate ?
This should help remove the surface acne.
Thanks you BionicBytes. shadow mapping acne problem was solved by enabling front face culling and enabling polygon offset the way you said.
have a good day.