Radeon ProRender

rpr_material_node_arithmetic_operation

Usage

Operations for RPR_MATERIAL_NODE_ARITHMETIC.

Possible Values

Name Value Brief Explanation
RPR_MATERIAL_NODE_OP_ADD 0x00 Addition.
RPR_MATERIAL_NODE_OP_SUB 0x01 Subtraction.
RPR_MATERIAL_NODE_OP_MUL 0x02 Multiplication.
RPR_MATERIAL_NODE_OP_DIV 0x03 Division.
RPR_MATERIAL_NODE_OP_SIN 0x04 Trigometric sine (in radians).
RPR_MATERIAL_NODE_OP_COS 0x05 Trigometric cosine (in radians).
RPR_MATERIAL_NODE_OP_TAN 0x06 Trigometric tangent (in radians).
RPR_MATERIAL_NODE_OP_SELECT_X 0x07 Select the X component.
RPR_MATERIAL_NODE_OP_SELECT_Y 0x08 Select the Y component.
RPR_MATERIAL_NODE_OP_SELECT_Z 0x09 Select the Z component.
RPR_MATERIAL_NODE_OP_COMBINE 0x0A Combine to (color0.r, color1.g, color2.b, 1) with three inputs. Combine to (color0.r, color1.g, color2.b, color3.a) with four inputs.
RPR_MATERIAL_NODE_OP_DOT3 0x0B Dot product of two vectors.
RPR_MATERIAL_NODE_OP_CROSS3 0x0C Cross product.
RPR_MATERIAL_NODE_OP_LENGTH3 0x0D Length of color0.
RPR_MATERIAL_NODE_OP_NORMALIZE3 0x0E Normalize output of color0.
RPR_MATERIAL_NODE_OP_POW 0x0F Power (color0 ^ color1).
RPR_MATERIAL_NODE_OP_ACOS 0x10 Trigometric arccosine (in radians).
RPR_MATERIAL_NODE_OP_ASIN 0x11 Trigometric arcsine (in radians).
RPR_MATERIAL_NODE_OP_ATAN 0x12 Trigometric arctangent (in radians).
RPR_MATERIAL_NODE_OP_AVERAGE_XYZ 0x13 Average of color0 RGB values.
RPR_MATERIAL_NODE_OP_AVERAGE 0x14 Average of color0 and color1.
RPR_MATERIAL_NODE_OP_MIN 0x15 Minimum of two inputs.
RPR_MATERIAL_NODE_OP_MAX 0x16 Maximum of two inputs.
RPR_MATERIAL_NODE_OP_FLOOR 0x17 Mathematical floor value of color0.
RPR_MATERIAL_NODE_OP_MOD 0x18 Modulus of two values.
RPR_MATERIAL_NODE_OP_ABS 0x19 Absolute value.
RPR_MATERIAL_NODE_OP_SHUFFLE_YZWX 0x1a Shuffle channels of color0.
RPR_MATERIAL_NODE_OP_SHUFFLE_ZWXY 0x1b Shuffle channels of color0.
RPR_MATERIAL_NODE_OP_SHUFFLE_WXYZ 0x1c Shuffle channels of color0.
RPR_MATERIAL_NODE_OP_MAT_MUL 0x1d Matrix multiply - color0,1,2 make a 3x3 matrix, multiply by color3.
RPR_MATERIAL_NODE_OP_SELECT_W 0x1e Select the W Component.
RPR_MATERIAL_NODE_OP_DOT4 0x1f Dot product (of all 4 values).
RPR_MATERIAL_NODE_OP_LOG 0x20 Log() function.
RPR_MATERIAL_NODE_OP_LOWER_OR_EQUAL 0x21 Return 1 if color0 <= color1 else 0.
RPR_MATERIAL_NODE_OP_LOWER 0x22 Return 1 if color0 < color1 else 0.
RPR_MATERIAL_NODE_OP_GREATER_OR_EQUAL 0x23 Return 1 if color0 >= color1 else 0.
RPR_MATERIAL_NODE_OP_GREATER 0x24 Return 1 if color0 > color1 else 0.
RPR_MATERIAL_NODE_OP_EQUAL 0x25 Return 1 if color0 == color1 else 0.
RPR_MATERIAL_NODE_OP_NOT_EQUAL 0x26 Return 1 if color0 != color1 else 0.
RPR_MATERIAL_NODE_OP_AND 0x27 Return 1 if color0 and color1 are not 0.
RPR_MATERIAL_NODE_OP_OR 0x28 Return 1 if color0 or color1 are not 0.
RPR_MATERIAL_NODE_OP_TERNARY 0x29 Return color1 if color0 is 0 else color2.