Skip to content

TextureColorCorrection

TextureColorCorrection#

(Color Correction)

Go to User page.

Description#

Convenient grouping of color correction methods.

Public Attributes#

Type Name Visual Hint Description
double[3] input VISUAL_HINT_COLOR Define the input color to be processed.
double saturation VISUAL_HINT_DEFAULT Define the value of the saturation offset.
double contrast VISUAL_HINT_DEFAULT Define the value of contrast.
double gamma VISUAL_HINT_DEFAULT Define the gamma correction applied on the texture.
double gain VISUAL_HINT_DEFAULT Define a multiplication factor applied to the texture.
double offset VISUAL_HINT_DEFAULT Define a value direclty added to the texture.

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 "TextureColorCorrection" "Texture" {
    #version 0.9
    icon "../icons/object_icons/texture_saturation.iconrc"
    category "/Texture/Color"
    doc "Convenient grouping of color correction methods."
    attribute_group "input" {
        color "input" {
            doc "Define the input color to be processed."
            texturable yes
            animatable yes
            value 0.0 0.0 0.0
        }
    }
    attribute_group "color_correction" {
        double "saturation" {
            doc "Define the value of the saturation offset."
            texturable yes
            animatable yes
            slider yes
            numeric_range yes 0.0 2
            ui_range yes 0.0 2
            value 1
        }
        double "contrast" {
            doc "Define the value of contrast."
            texturable yes
            animatable yes
            slider yes
            numeric_range yes 0.0 2
            ui_range yes 0.0 2
            value 1
        }
        double "gamma" {
            doc "Define the gamma correction applied on the texture."
            texturable yes
            animatable yes
            slider yes
            numeric_range yes 1e-06 1.79769313486232e+308
            ui_range yes 0.2 5
            value 1
        }
        double "gain" {
            doc "Define a multiplication factor applied to the texture."
            texturable yes
            animatable yes
            slider yes
            numeric_range yes 0.0 1.79769313486232e+308
            ui_range yes 0.0 4
            value 1
        }
        double "offset" {
            doc "Define a value direclty added to the texture."
            texturable yes
            animatable yes
            slider yes
            ui_range yes -1 1
            value 0.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 "input"
    }
}