TextureNormalMap#
(Normal Map)
- Category:
/Texture/Normal
- Default object name:
normal_map
- Inherits from: ProjectItem > TextureOperator > Texture
Description#
Compute a normal map.
Public Attributes#
Type | Name | Visual Hint | Description |
---|---|---|---|
double[3] |
input |
VISUAL_HINT_COLOR |
Input color from which is computed the normal. |
long |
normal_mode |
VISUAL_HINT_DEFAULT |
Define which geometric normal to use to compute the bump. |
long |
space_mode |
VISUAL_HINT_DEFAULT |
Define how the normal map has to be interpreted. In tangent space mode, the map defines the normal locally on the surface of objects. In object space mode, the map defines the absolute coordinates of the normals inside the object space. |
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 "TextureNormalMap" "Texture" {
#version 0.9
icon "../icons/object_icons/texture_normal_map.iconrc"
category "/Texture/Normal"
doc "Compute a normal map."
attribute_group "input" {
color "input" {
doc "Input color from which is computed the normal."
texturable yes
animatable yes
value 0.5 0.5 1
}
long "normal_mode" {
doc "Define which geometric normal to use to compute the bump."
preset "Flat" "0"
preset "Smooth" "1"
value 1
}
long "space_mode" {
doc "Define how the normal map has to be interpreted. In tangent space mode, the map defines the normal locally on the surface of objects. In object space mode, the map defines the absolute coordinates of the normals inside the object space."
preset "Tangent" "0"
preset "Object" "1"
value 0
}
}
attribute_group "input>advanced" {
collapsed yes
bool "correct_handedness" {
doc "When enabled, the handedness of the UV space is automatically corrected if it\'s different from the primitive\'s one, which corresponds to inverting one of the axis of the texture."
hidden yes
value no
}
}
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"
}
}