MAXScript Extensions > MAXScript Extensions for mental ray > Conversion, Math and Pass-Through Shaders >

# Math_Color_Add : textureMap

    Math_Color_Add - superclass: textureMap; super-superclass:material - 14:2 - classID: #(450570140, -893924200)

Available in 3ds Max 2011 and higher. This is a multiple-output MetaSL shader which performs Color Addition.

Constructors:

    Math_Color_Add...

Properties:

    <Math_Color_Add>.'#TheList'

    <Math_Color_Add>.'#Shader_Version'

    <Math_Color_Add>.'#numInputs'<Math_Color_Add>.Connection_struct__0000__Math_color_addUndefinedClass default: undefined -- paramBlock2

    <Math_Color_Add>.leftColor default: (color 0 0 0) -- animatable; fRGBA color; Controller Scaling: ([1,1,1,1] : (color 255 255 255));

    <Math_Color_Add>.left_connectedBooleanClass default: false -- boolean

    <Math_Color_Add>.left_paramNameUndefinedClass default: undefined -- string;

    <Math_Color_Add>.left_shaderUndefinedClass default: undefined -- texturemap

    <Math_Color_Add>.Math_color_addUndefinedClass default: undefined -- paramBlock2

    <Math_Color_Add>.numIMultipleOutputChannelsInteger default: 1 -- integer; error accessing parameter: numInputs

    <Math_Color_Add>.rightColor default: (color 0 0 0) -- animatable; fRGBA color; Controller Scaling: ([1,1,1,1] : (color 255 255 255));

    <Math_Color_Add>.right_connectedBooleanClass default: false -- boolean

    <Math_Color_Add>.right_paramNameUndefinedClass default: undefined -- string;

    <Math_Color_Add>.right_shaderUndefinedClass default: undefined -- texturemap

## Math_Color_Add interfaces:

    Interface:IMtlRender_Compability_MtlBase

Properties:

Methods:

Actions:

    Interface:iMultipleOutputChannels

Properties:

    .numIMultipleOutputChannels: integer : Read

Methods:

    <TSTR by value>getIMultipleOutputChannelLocalizedName

    <index>index <TSTR by value>getIMultipleOutputChannelName

    <index>index

Actions:

    Interface:iMultiOutputConsumer

Properties:

    .numInputs: integer : Read

Methods:

     <bool>SetOutputToInput

    <index>input_index <maxObject>output_rtarg <index>output_index <maxObject>GetOutputRefTargetFromInput

    <index>input_index <index>GetOutputIndexFromInput

    <index>input_index <bool>CanAssignOutputToInput

    <index>input_index <maxObject>output_rtarg <index>output_index <TSTR by value>GetInputName

    <index>input_index <TSTR by value>GetInputLocalizedName

    <index>input_index