For reasons that will become plane I want to be able to divide images. I've looked at the source and it's really easy to add, it requires a few lines of code added to UserBlendOps.Generated.H.cs
Why? Recently I wanted to generate an image with an alpha channel from two images. One image is rendered on a black background the other a white background. Determining the alpha channel is easy, you subtract the black image from the white image and invert the result. Once you have the mask to determine the original image you must multiply the black image by 255 and divide it by the mask. Then you just have to apply the alpha to that resulting image.
Insert after line 309.
#define DIVIDE(A, B, r) \
{ \
INT_DIV(((A) * 255), (, r); \
}
Insert after line 589.
DEFINE_STANDARD_OP(Divide, DIVIDE)
I tried to make an effect to do all this but... it crashed x_x