Mic_Ma

06-09-2006, 11:28 PM

I am no programmer but I need help with some shader-stuff. So, sorry if this may make no sense.

If for compositing layers "a" and "b" (sa, sb are constants):

a+b-a*b Screen

a * b Multiply

a + b Add

a - b Sub

a / b Divide

a + b - 2 * a *b Xor

min(a,b) Min

max(a,b) Max

abs(a-b) Difference

Then what would be the expressions for (like in Photoshop layer modes):

Hue

Color

If for compositing layers "a" and "b" (sa, sb are constants):

a+b-a*b Screen

a * b Multiply

a + b Add

a - b Sub

a / b Divide

a + b - 2 * a *b Xor

min(a,b) Min

max(a,b) Max

abs(a-b) Difference

Then what would be the expressions for (like in Photoshop layer modes):

Hue

Color