TextureRescale#
(Rescale)
- Category:
/Texture/Math
- Default object name:
rescale
- Inherits from: ProjectItem > TextureOperator > Texture
Description#
Rescale the values of an input color.
Public Attributes#
Type | Name | Visual Hint | Description |
---|---|---|---|
double[3] |
input |
VISUAL_HINT_COLOR |
Color to be rescaled. |
double[3] |
input_min |
VISUAL_HINT_COLOR |
Defines the minimum input color value. Values under this threshold are clamped. |
double[3] |
input_max |
VISUAL_HINT_COLOR |
Defines the maximum input channel value. Values above this threshold are clamped. |
double[3] |
output_min |
VISUAL_HINT_COLOR |
Defines the remapped output minimum value. |
double[3] |
output_max |
VISUAL_HINT_COLOR |
Defines the remapped output maximum value. |
bool |
clamp |
VISUAL_HINT_DEFAULT |
Clamp output color channels to [0, 1]. |
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 "TextureRescale" "Texture" {
#version 0.9
icon "../icons/object_icons/texture_rescale.iconrc"
category "/Texture/Math"
doc "Rescale the values of an input color."
attribute_group "input" {
color "input" {
doc "Color to be rescaled."
texturable yes
animatable yes
value 1 1 1
}
}
attribute_group "rescale" {
color "input_min" {
doc "Defines the minimum input color value. Values under this threshold are clamped."
texturable yes
animatable yes
value 0.0 0.0 0.0
}
color "input_max" {
doc "Defines the maximum input channel value. Values above this threshold are clamped."
texturable yes
animatable yes
value 1 1 1
}
color "output_min" {
doc "Defines the remapped output minimum value."
texturable yes
animatable yes
value 0.0 0.0 0.0
}
color "output_max" {
doc "Defines the remapped output maximum value."
texturable yes
animatable yes
value 1 1 1
}
}
attribute_group "output" {
bool "clamp" {
doc "Clamp output color channels to [0, 1]."
animatable yes
value yes
}
}
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"
}
}