First let me say that I'm still learning the ropes when it comes to shaders but I had an idea and was wondering if someone could tell me if it's at least possible.
If we pass the fragments composing the shadow to a simple "blur" fragment program will that gets us soft shadows? My idea for the shader would be:
Read pixel on the left, if brightness > current pixel, then raise current pixel's brightness by left pixel.brightness /2 (or whatever).
Of course you'd want to implement a radial "blur" shader but my question is: can we pass the shadow fragments through a fragment program?
If we pass the fragments composing the shadow to a simple "blur" fragment program will that gets us soft shadows? My idea for the shader would be:
Read pixel on the left, if brightness > current pixel, then raise current pixel's brightness by left pixel.brightness /2 (or whatever).
Of course you'd want to implement a radial "blur" shader but my question is: can we pass the shadow fragments through a fragment program?