- I am using shadow maps, a separate render pass with the camera up in the sky in using orthogonal projection with the depth buffer saved in a bitmap for the final render phase.
- My world is infinite in all dimensions. There will be objects above ground, unlimited. In theory, that means that there should always be shadows from the sun. But in practice, I want nice views instead of totally realistic views.
- The idea is to let the effect of the shadow decrease with distance between the object doing the shadow and the surface that is shadowed. Beyond a certain limit, there would be no shadow at all.
- It is easy to get a value for the distance, from the object casting a shadow to the surface, in the fragment shader.
Edit: Of course I want decreasing shadow effects with distance from the sun, not increasing.
Edited by larspensjo, 09 August 2012 - 06:54 AM.