Hi everyone!
I'm beginning to get fed up with my simple shadow that I'm getting by flattening my geometry onto a plane, so at the moment I'd love more than anything to get a good shadow map working. I've read enough about HLSL to understand what a pixel/vertex shader does, the syntax used to create them, and the .fx file format used to hold the shaders and compile them as a technique. I think I'd be able to have a good stab at implementing shadow mapping if I could find a nice, clean example of a bare-bones shader. The one in the SDK example (I'm using D3D9, by the way) seems to contain a lot of unnecessary stuff which isn't related to the shadow map itself, and a lot of other examples online also contain a lot of stuff which is related specifically to the scene in the demo program in question.
So, is anyone willing to post a shadow map shader/.fx file in its simplest form for me to have a mess around with? Or failing that, is there a good example or tutorial out there which would allow me to build my own?
Thanks, I'd really like to get good shadows working in my game, and I think I'm getting close if I can make this first step!