Interesting - I stand corrected. Maybe this is because the values of the 3 textures are fairly similar. My suspicion for too dark a result was because the second algorithm will bring the result down to 0 if any single microtexture has a 0.
Btw, why did you have to add the "abs" in the equation? Can the individual pixel values be <0 ?
Edit: On balance, I would probably still vote for the 2/3(cFar + cMed + cLow) version, just because the result is a bit more predictable. If the contrast of the result is too low, that could probably be mitigated by increasing the contrast of the textures themselves. Looking at the histogram posted by rstr earlier, there seems to be a lot of room for contrast.
But obviously I'll leave that decision to you. I'd just suggest to try out both algorithms on a selection of microtextures, to make sure they work reliably. Does the second version have any performance impact?
Btw, why did you have to add the "abs" in the equation? Can the individual pixel values be <0 ?
Edit: On balance, I would probably still vote for the 2/3(cFar + cMed + cLow) version, just because the result is a bit more predictable. If the contrast of the result is too low, that could probably be mitigated by increasing the contrast of the textures themselves. Looking at the histogram posted by rstr earlier, there seems to be a lot of room for contrast.
But obviously I'll leave that decision to you. I'd just suggest to try out both algorithms on a selection of microtextures, to make sure they work reliably. Does the second version have any performance impact?