Hello everyone,
I write this because I need some help in order to achieve a proper shadowmap. I am trying to render some shadows but I am stucked.
What I do is create a framebuffer and a texture where I will paint the shadowmap. I tell openGL to only take into account the depth information, and the same for the texture.
this is the code for generating the framebuffer and the texture.
This is what my shadowmap looks like. I know that the shadowmap texture is grayscaled but I do not think this is good.
Thank you for your help!