Originally posted by coder
View Post
With float you run out of precision with addition rapidly because you can't maintain any precision beyond the union of the bits in the relative scales of their mantissas. For log-scale, you imagined representing it as a log number in float format, which would indeed run out the precision since addition will rapidly lose precision. But with low-precision operands, multiplication is where you want to work if at all possible. Modern FP cores do that very efficiently, and multiplication doubles the mantissa, leaving plenty of extra precision for dithering.
So again, I will leave it as an exercise for you to figure out how you dither floats for compositing. It's not hard. Think about it.
If you still can't figure it out... I'm available for hire at the moment.
Comment