Shadow Mapping

I have followed the tutorial from Fabien Sanglard:

Additionally i have written the GLSL. All camera and light look_at and positions are same as the above tutorial. But when rendering it looks like a below image. I think the shadow is too wide. What may be the problem? How to solve it?

I can only guess from a picture… my guess:

You messed up the transformation of the shadow map from the lights perspective to the camera perspective. Have a look at your GLSL code

Thanks for your reply ProgrammerX. I have solved the problem. :slight_smile:

So tell us, what was the problem?

The problem was i have deleted the FBO before rendering. At last i have found my mistake.:slight_smile: