Debian Codegraph @

doc/man/man3/ivm/nodes/SoMaterialBinding.ivm

raw
1 NAME SoMaterialBinding SoMtlBind SO_MTL_BIND_ {
2 node that specifies how multiple materials are bound to shapes
3 }
4
5 INCLUDE nodes/SoMaterialBinding.h
6
7 DESC {
8 This node specifies how the current materials are bound to shapes that
9 follow in the scene graph. Each shape node may interpret bindings
10 differently. The current material always has a base value, which is
11 defined by the first value of all material fields. Since material
12 fields may have multiple values, the binding determines how these
13 values are distributed over a shape.
14 \p
15 The bindings for faces and vertices are meaningful only for shapes
16 that are made from faces and vertices. Similarly, the indexed bindings
17 are only used by the shapes that allow indexing.
18 \p
19 The bindings apply only to diffuse colors and transparency. Other
20 materials (emissive, specular, ambient, shininess) will have the first
21 value applied to the
22 entire shape, regardless of the material binding or the number provided.
23 \p
24 If the number of transparencies is less than the number of diffuse
25 colors, only the first transparency value will be used, regardless of
26 the material binding.
27 If the number of diffuse colors in the state is less than the number required
28 for the given binding, a debug warning will be printed and unpredictable colors
29 will result.
30 }
31
32 ENUM Binding {
33 OVERALL "Whole object has same material",
34 PER_PART "One material for each part of object",
35 PER_PART_INDEXED "One material for each part, indexed",
36 PER_FACE "One material for each face of object",
37 PER_FACE_INDEXED "One material for each face, indexed",
38 PER_VERTEX "One material for each vertex of object",
39 PER_VERTEX_INDEXED "One material for each vertex, indexed"
40 }
41
42 FIELD value { Specifies how to bind materials to shapes. }
43
44 METHOD "" SoMaterialBinding() {
45 Creates a material binding node with default settings.
46 }
47
48 METHOD "" static SoType getClassTypeId() {
49 Returns type identifier for this class.
50 }
51
52 ACTION SoGLRenderAction, SoCallbackAction {
53 Sets the current material binding type.
54 }
55
56 ALSO {
57 SoMaterial,
58 SoNormalBinding,
59 SoShape,
60 SoTextureCoordinateBinding
61 }