I've found tutorials that impliment shadows on objects in a small scene. My question is what simple appoach do you take to do this on a large world terrain (think MMORPG Terrain).
I have a terrain and a light (the sun) that moves depending on time of day. So it's position changes and thus the need for dynamic shadows on my terrain.
So my question is about the best way to set up the "projection from the light"
Do you move to the position of the sun and look at the center of the world (0,0,0) and make sure every object can be drawn to the depth buffer. My guess is the light would have to be positioned really far away?
or
Do you adjust the view to point to some bounded box region (your view frustrum) and then draw objects. My guess is this would allow the light to be closer ?
If these methods are both wrong, What is the correct appoach to setting up the light view/projection matrix for shadow mapping?