how create shadow shader without the spotlight?

Hi all!

I am facing a small issue with the shadow shader. I am using the panda’s shadow sample.
And the problem is in the picture bellow…

As you can see, when I apply the shadow shader it creates that spot light area, that do not work in my game scene. I am an absolute beginner in shaders, I still did not finish the CGSL manual…

Does someone could give me a tip about how can I turn off that spot light? I tried some changes at the shader code, but nothing had worked.

Thanks,

You just need to remove the code where it computes the falloff and adds that to the final multiplication.