Skip to content

TextureVectorBranch

TextureVectorBranch#

(Vector Branch)

Go to User page.

Description#

Return texture according to an input color A and B.

Public Attributes#

Type Name Visual Hint Description
double[4] input_a VISUAL_HINT_RGBA Define the input color A.
double[4] input_b VISUAL_HINT_RGBA Define the input color B.
long mode VISUAL_HINT_DEFAULT
double[4] true VISUAL_HINT_RGBA Return the color if the condition is true.
double[4] false VISUAL_HINT_RGBA Return the color if the condition is false.

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 "TextureVectorBranch" "Texture" {
    #version 0.9
    icon "../icons/object_icons/texture_branch.iconrc"
    category "/Texture/Utility"
    doc "Return texture according to an input color A and B."
    aliases "TextureBranch"
    attribute_group "input" {
        rgba "input_a" {
            doc "Define the input color A."
            texturable yes
            animatable yes
            value 1 1 1 1
        }
        rgba "input_b" {
            doc "Define the input color B."
            texturable yes
            animatable yes
            value 1 1 1 1
        }
    }
    attribute_group "condition" {
        long "mode" {
            preset "A == B" "0"
            preset "A >  B" "1"
            preset "A <  B" "2"
            preset "A >= B" "3"
            preset "A <= B" "4"
            value 0
        }
        rgba "true" {
            doc "Return the color if the condition is true."
            texturable yes
            animatable yes
            value 1 1 1 1
        }
        rgba "false" {
            doc "Return the color if the condition is false."
            texturable yes
            animatable yes
            value 0.0 0.0 0.0 1
        }
    }
    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 "input_a"
    }
}