TextureClamp#
(Clamp)
- Category:
/Texture/Math
- Default object name:
clamp
- Inherits from: ProjectItem > TextureOperator > Texture
Description#
Clamp the values of the input texture.
Public Attributes#
Type | Name | Visual Hint | Description |
---|---|---|---|
double[3] |
input |
VISUAL_HINT_COLOR |
Color to be clamped. |
double[3] |
color_min |
VISUAL_HINT_COLOR |
Defines the minimum clamping values for each RGB channel. |
double[3] |
color_max |
VISUAL_HINT_COLOR |
Defines the maximum clamping values for each RGB channel. |
double |
alpha_min |
VISUAL_HINT_PERCENTAGE |
Defines the minimum clamping value for the alpha channel. |
double |
alpha_max |
VISUAL_HINT_PERCENTAGE |
Defines the maximum clamping value for the alpha channel. |
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 "TextureClamp" "Texture" {
#version 0.9
icon "../icons/object_icons/texture_clamp.iconrc"
category "/Texture/Math"
doc "Clamp the values of the input texture."
attribute_group "input" {
color "input" {
doc "Color to be clamped."
texturable yes
animatable yes
value 1 1 1
}
}
attribute_group "clamp" {
color "color_min" {
doc "Defines the minimum clamping values for each RGB channel."
texturable yes
animatable yes
value 0.0 0.0 0.0
}
color "color_max" {
doc "Defines the maximum clamping values for each RGB channel."
texturable yes
animatable yes
value 1 1 1
}
percentage "alpha_min" {
doc "Defines the minimum clamping value for the alpha channel."
texturable yes
animatable yes
ui_range yes 0.0 1
value 0.0
}
percentage "alpha_max" {
doc "Defines the maximum clamping value for the alpha channel."
texturable yes
animatable yes
ui_range yes 0.0 1
value 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"
}
}