TextureSideSwitch#
(Side Switch)
- Category:
Texture/Utility
- Default object name:
side_switch
- Inherits from: ProjectItem > TextureOperator > Texture
Description#
Provides a switch between different values depending on the incoming ray and the geometric normal of the surface.
Public Attributes#
Type | Name | Visual Hint | Description |
---|---|---|---|
double[3] |
front_color |
VISUAL_HINT_COLOR |
Color returned if the original geometric normal and the incoming ray are on the same side. |
double[3] |
back_color |
VISUAL_HINT_COLOR |
Color returned if the original geometric normal and the incoming ray are on different sides. |
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 "TextureSideSwitch" "Texture" {
#version 1
icon "../icons/object_icons/texture_sideswitch.iconrc"
category "Texture/Utility"
doc "Provides a switch between different values depending on the incoming ray and the geometric normal of the surface."
attribute_group "input" {
color "front_color" {
doc "Color returned if the original geometric normal and the incoming ray are on the same side."
texturable yes
animatable yes
value 1 1 1
}
color "back_color" {
doc "Color returned if the original geometric normal and the incoming ray are on different sides."
texturable yes
animatable yes
value 1 1 1
}
}
}