Hi all,
I cobbled the attached code together from various tutes around the web. The torus, plane, and spinning spheres display with something that looks like shadowing, but the shadows do not seem to match the rotation/orientation of the objects. I think the problem lies with how I am setting up the texture matrix but I can’t figure out where I’ve gone wrong.
Would some kind soul familiar with GLSL shadow mapping please take a look and point me in the right direction?
Thanks,
Brett