Another dumb question regarding shaders, but meh.
I already do calculate a depthmap for use in a depth of field post processing shader. Now, I wanna use the same depthmap in a terrain shader to allow some kind of dynamic lod system. What I basicly wanna do is blending out detail maps depending on the distance to the camera. I however do not wanna use lod techniques, because I want to have different lod stages for a single model/terrain.
But in general, can I use a processed bitmap, as the depthmap, in an object shader?