# What is this shadow mapping error called?

I have been following a tutorial, shadow mapping works more or less as expected except sometimes the shadow projects completely weirdly on nearby walls. This isn't sampling outside the lightmap because I use CLAMP_TO_EDGE and if(min(ShadowCoord.x, ShadowCoord.y) > 0.0 && max(ShadowCoord.x, ShadowCoord.y) < 1.0) in the fragment shader. Does anyone know what the official term for this problem is so I can go research it some more? Thanks.

• Do you have GL_CULL_FACE disabled when rendering to shadow map? Dec 22, 2016 at 15:19
• I tried with it both on and off, it only changes the shadow slightly under the models feet. Dec 22, 2016 at 19:34