AttributeMap
Attribute Reference
Primitive Attribute attributes
primitive_attribute_name
String
default: Cd
the name of primitive attribute to display when attribute 'map type' is set to 'primitive attribute'
primitive_attribute_type
Int enum
0 = “float”
1 = “vec2f”
2 = “vec3f”
3 = “rgb” (default)
4 = “int”
the type of primitive attribute to display when attribute 'map type' is set to 'primitive attribute'
General attributes
color
Rgb bindable
default: [ 1, 1, 1 ]
input color - preferably a connected map
default_value
Rgb bindable
default: [ 1, 1, 1 ]
default value to display when the requested attribute is not available
map_type
Int enum
0 = “primitive attribute” (default)
1 = “position”
2 = “texture st”
3 = “shading normal”
4 = “geometric normal”
5 = “dpds”
6 = “dpdt”
7 = “dnds”
8 = “dndt”
9 = “map color”
12 = “hair surface P”
13 = “hair surface N”
14 = “hair surface st”
15 = “hair closest surface st”
16 = “id”
17 = “velocity”
18 = “acceleration”
19 = “motionvec”
No documentation available
warn_when_unavailable
Bool
default: False
Whether or not to issue a warning when the requested attribute is unavailable
Examples
-- vertex color, Cd
local attrMapPrimAttrCd = AttributeMap("attrMapPrimAttrCd") {
--[[
0 = prim attr
1 = position
2 = texture st
3 = shading normal
4 = geometric normal
5 = dpds
6 = dpdt
7 = dnds
8 = dndt
]]--
["map type"] = 0,
-- 0 = float
-- 1 = vec2
-- 2 = vec3
-- 3 = rgb
["primitive attribute type"] = 3,
["primitive attribute name"] = "Cd",
["default value"] = Rgb(0, 0, 1),
}
local attrMapPosition = AttributeMap("attrMapPosition") {
--[[
0 = prim attr
1 = position
2 = texture st
3 = shading normal
4 = geometric normal
5 = dpds
6 = dpdt
7 = dnds
8 = dndt
]]--
["map type"] = 1,
}