Been toying around a bit more with viewshaders and came up with this implementation of the Simple Spatial Tone Mapping algorithm by K.K. Biswas and Sumanta Pattanaik.
I have left out the median filtering (for now) as i first couldn’t figure out how to access certain data in the Cg shading language, but once i figured this out i wondered, do we really need a view shader to be this accurate?
Anyhoo, without further ado, here’s the first version of the view shader.