Skip to content

TextureBlend

TextureBlend#

(Blend)

Go to User page.

Description#

Blend two input colors according to the specified blending mode.

Public Attributes#

Type Name Visual Hint Description
double[3] input1 VISUAL_HINT_COLOR Define the foreground color.
double[3] input2 VISUAL_HINT_COLOR Define the background color.
double mix VISUAL_HINT_PERCENTAGE Defines the opacity of the foreground color.
long mode VISUAL_HINT_DEFAULT Define the blending mode used to blend the input colors.

Inherited Public Attributes#

Type Name Visual Hint Description
bool pass_through VISUAL_HINT_DEFAULT If checked, the current texture is not evaluated and the value of the attribute selected in Pass Through Attribute is directly forwarded.
string master_input VISUAL_HINT_TAG Name of the attribute that will be used as output if Pass Through is enabled.
bool invert VISUAL_HINT_DEFAULT If checked, the texture is inverted.
double opacity VISUAL_HINT_PERCENTAGE Set the opacity of the texture.

CID#

class "TextureBlend" "Texture" {
    #version 0.9
    icon "../icons/object_icons/texture_blend.iconrc"
    category "/Texture/Color"
    doc "Blend two input colors according to the specified blending mode."
    attribute_group "input" {
        color "input1" {
            doc "Define the foreground color."
            texturable yes
            animatable yes
            value 0.0 0.0 0.0
        }
        color "input2" {
            doc "Define the background color."
            texturable yes
            animatable yes
            value 0.0 0.0 0.0
        }
        percentage "mix" {
            doc "Defines the opacity of the foreground color."
            texturable yes
            animatable yes
            ui_range yes 0.0 1
            value 1
        }
        long "mode" {
            doc "Define the blending mode used to blend the input colors."
            preset "Normal" "0"
            preset "Alpha Replace" "1"
            preset "Alpha Add" "2"
            preset "Alpha Subtract" "3"
            preset "Alpha Multiply" "4"
            preset "Alpha Divide" "5"
            preset "Add" "6"
            preset "Multiply" "7"
            preset "Screen" "8"
            preset "Linear Dodge" "9"
            preset "Overlay" "10"
            preset "Difference" "11"
            preset "Hue" "12"
            preset "Saturation" "13"
            preset "Color" "14"
            preset "Brightness" "15"
            preset "Keymix" "16"
            value 0
        }
    }
    set "master_input" {
        private no
        hidden no
        saveable yes
        texturable no
        animatable no
        slider no
        numeric_range no 0.0 1
        ui_range no 0.0 1
        dg_active yes
        dg_cyclic no
        dirtiness_pass_through no
        read_only no
        shading_variable no
        experimental no
        advanced no
        overriden no
        promote_attribute no
        allow_expression yes
        localizable yes
        value "input1"
    }
}