There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Problems with the Mask texture
However, the example has some problems with the Mask texture (the spotlight mask).
If the light is pointed at a model with a low number of polygons (like shining the light at a portion of a big floor consisting of just 2 triangles) the mask texture is displayed all crazy. The shadow map itself is however projected properly.
Also the spotlight not only shines forward (towards the area that is being shadowed) but also backwards (where there is no shadowing)...
Are the any remedies for these problems or are they inherent in the method used?