Hard Light blending mode

Is it possible to create this blending mode using ShaderLab?

We’ve been experimenting but reached the conclusion that we should do a fragment shader in CG, which is out of the question for what we want to do.

Hard Light basically multiplies values below mid gray (127,127,127) and screens values above.

Thanks for the help!

I guess “no” (and it’s not a limitation of ShaderLab; it’s a limitation of graphics cards).

Graphics cards, given Source (new color) and Destination (existing color) colors, can do this blending:

A*B + C*D

where each of A, B, C, D is: Source, Destination, (1-Source) or (1-Destination).