I copied that from the SVG spec: http://www.w3.org/TR/SVGCompositing/
They have the reduced formulas there. It is correct but it is not reduced to the end. It is just 'return b' for that case because: (1-b/ba)*(aa/a) = (1-1)*(aa/a) = 0/0 which by definition is 0. So, starting from the main formula we have: a*(1-ba) + b*(1-aa) + aa*ba*(1-min(1, (1-b/ba)*(aa/a))) = 0 + b*(1-aa) + aa*ba*(1-min(1,0)) = b*(1-aa) + aa*ba = b*(1-aa) + aa*b = b So the fixed one is: http://ideone.com/hFrNg
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
