Skip to content

TextureScalarBranch

TextureScalarBranch#

(Scalar Branch)

Go to User page.

Description#

Return texture according to an input value A and B.

Public Attributes#

Type Name Visual Hint Description
double input_a VISUAL_HINT_DEFAULT Define the input value A.
double input_b VISUAL_HINT_DEFAULT Define the input value 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 "TextureScalarBranch" "Texture" {
    #version 0.9
    icon "../icons/object_icons/texture_branch.iconrc"
    category "/Texture/Utility"
    doc "Return texture according to an input value A and B."
    attribute_group "Test" {
        double "input_a" {
            doc "Define the input value A."
            texturable yes
            animatable yes
            value 1
        }
        double "input_b" {
            doc "Define the input value B."
            texturable yes
            animatable yes
            value 1
        }
        long "mode" {
            preset "A == B" "0"
            preset "A != B" "1"
            preset "A >  B" "2"
            preset "A <  B" "3"
            preset "A >= B" "4"
            preset "A <= B" "5"
            value 0
        }
    }
    attribute_group "Return" {
        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"
    }
}