Microsoft DirectX 8.0 (Visual Basic)

Invert

1-rn

Compliments the colors in each channel of the specified register.

The following example shows how to use this modifier.

mul r0, r0, 1-r1    ; Multiply by (1.0 – r1).

This modifier only produces defined results when the input data is unsigned, meaning that it is in the range of 0 to 1. This operation is performed after any other modifiers present on the same argument.

Note that this modifier only works with unsigned data. The use of this instruction is inconsistent with the Bias, Signed Scaling, and Negate modifiers, so it cannot appear on the same register with any of these modifiers.

This modifier is for use with the color and alpha blending instructions.