Trouble with shadow mapping

Hello !

I am having troubles with my shadow mapping. I have not added any lights to the scene. I am now trying to make the shadows (with alpha testing) and I seem to have a problem with the shadow dissapearing in an unnatural way.

In the test program that I have attached I slowly increase the light’s y coordinate…

The program does not test for required extensions, so if you don’t see any shadows be sure you have a GF3 or better card.

Thanks.

I have added the file at

http://www.filesanywhere.com

user: fuxiulian
password: fuxiulian

the file is in the left pannel(shadow.exe)