TextureDistanceToUv#
(Distance To Uv)
- Category:
/Texture/Utility
- Default object name:
distance_to_uv
- Inherits from: ProjectItem > TextureOperator > Texture
Description#
Convert the distance to the specified uvw coordinate into a color. This texture is very useful if you wish to create radial gradients.
Public Attributes#
Type | Name | Visual Hint | Description |
---|---|---|---|
long |
space |
VISUAL_HINT_DEFAULT |
Set the UV space. |
reference (UvSlot ) |
uv_slot |
VISUAL_HINT_DEFAULT |
Define which UV slot is used when the space mode is set to UV Map. |
double[3] |
center |
VISUAL_HINT_DEFAULT |
Center point used to compute distances. |
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 "TextureDistanceToUv" "Texture" {
#version 0.9
icon "../icons/object_icons/texture_distance_to_uv.iconrc"
category "/Texture/Utility"
doc "Convert the distance to the specified uvw coordinate into a color. This texture is very useful if you wish to create radial gradients."
attribute_group "UV_space" {
long "space" {
doc "Set the UV space."
preset "Parametric" "0"
preset "UV Map" "1"
value 0
}
reference "uv_slot" {
doc "Define which UV slot is used when the space mode is set to UV Map."
filter "UvSlot"
context "default:/"
null_label "Use First Available"
value ""
}
double[3] "center" {
doc "Center point used to compute distances."
animatable yes
ui_range yes 0.0 1
value 0.5 0.5 0.0
}
}
}