|
25 | 25 | Checks if the [G4MFMaterialChannel4D] is equal to another [G4MFMaterialChannel4D] exactly by checking if the properties are equal and all accessor indices refer to the same accessors. If a material channel refers to a different accessor, even if the data is the same, this will return [code]false[/code]. The name of the material channel is not checked, and any metadata is ignored. |
26 | 26 | </description> |
27 | 27 | </method> |
28 | | - <method name="load_edge_colors" qualifiers="const"> |
29 | | - <return type="PackedColorArray" /> |
30 | | - <param index="0" name="g4mf_state" type="G4MFState4D" /> |
31 | | - <description> |
32 | | - Loads the edge colors from the [G4MFAccessor4D] at [member per_edge_accessor_index] in the [G4MFState4D]'s accessors array. This is a low-level function that will fail if the index does not refer to a valid [G4MFAccessor4D] or if the accessor does not contain valid color data. |
33 | | - </description> |
34 | | - </method> |
35 | | - <method name="load_simplex_colors" qualifiers="const"> |
36 | | - <return type="PackedColorArray" /> |
37 | | - <param index="0" name="g4mf_state" type="G4MFState4D" /> |
38 | | - <description> |
39 | | - Loads the simplex cell colors from the [G4MFAccessor4D] at [member per_simplex_accessor_index] in the [G4MFState4D]'s accessors array. This is a low-level function that will fail if the index does not refer to a valid [G4MFAccessor4D] or if the accessor does not contain valid color data. |
40 | | - </description> |
41 | | - </method> |
42 | | - <method name="load_vertex_colors" qualifiers="const"> |
43 | | - <return type="PackedColorArray" /> |
44 | | - <param index="0" name="g4mf_state" type="G4MFState4D" /> |
45 | | - <description> |
46 | | - Loads the vertex colors from the [G4MFAccessor4D] at [member per_vertex_accessor_index] in the [G4MFState4D]'s accessors array. This is a low-level function that will fail if the index does not refer to a valid [G4MFAccessor4D] or if the accessor does not contain valid color data. |
47 | | - </description> |
48 | | - </method> |
49 | 28 | <method name="to_dictionary" qualifiers="const"> |
50 | 29 | <return type="Dictionary" /> |
51 | 30 | <description> |
|
54 | 33 | </method> |
55 | 34 | </methods> |
56 | 35 | <members> |
| 36 | + <member name="element_map_binding" type="G4MFMeshSurfaceBinding4D" setter="set_element_map_binding" getter="get_element_map_binding"> |
| 37 | + The binding that defines per-item values (such as colors), and indices which map these to elements, for this material channel. If not defined, the surface uses only the [member factor] and/or the mapped texture for its values or colors. |
| 38 | + </member> |
57 | 39 | <member name="factor" type="Color" setter="set_factor" getter="get_factor" default="Color(-1, -1, -1, -1)"> |
58 | 40 | The modulate factor of the surface, also known as the value or single base color. If non-negative, this is per-component multiplied with other properties to get the final color of the cells and edges, or if no other properties are defined, this is the only color used. |
59 | 41 | </member> |
60 | | - <member name="per_edge_accessor_index" type="int" setter="set_edge_colors_accessor_index" getter="get_per_edge_accessor_index" default="-1"> |
61 | | - The index of the [G4MFAccessor4D] in the [G4MFState4D]'s accessors array that contains the per-edge color data for this surface. These may be per-component multiplied with the [member single_color] to get the final color of the edges. If not defined, the surface does not have per-edge colors. If defined (set to a valid index), the amount of edge colors MUST match or exceed the amount of edges in the surface. |
62 | | - </member> |
63 | | - <member name="per_simplex_accessor_index" type="int" setter="set_per_simplex_accessor_index" getter="get_per_simplex_accessor_index" default="-1"> |
64 | | - The index of the [G4MFAccessor4D] in the [G4MFState4D]'s accessors array that contains the per-simplex color data for this surface. These may be per-component multiplied with the [member single_color] to get the final color of the simplex cells. If not defined, the surface does not have per-simplex colors. If defined (set to a valid index), the amount of simplex colors MUST match or exceed the amount of simplex cells in the surface. |
65 | | - </member> |
66 | | - <member name="per_vertex_accessor_index" type="int" setter="set_per_vertex_accessor_index" getter="get_per_vertex_accessor_index" default="-1"> |
67 | | - The index of the [G4MFAccessor4D] in the [G4MFState4D]'s accessors array that contains the per-vertex color data for this surface. These may be per-component multiplied with the [member single_color] to get the final color of the vertices. If not defined, the surface does not have per-vertex colors. If defined (set to a valid index), the amount of vertex colors MUST match or exceed the amount of vertices in the surface. |
68 | | - [b]Note:[/b] This property is currently not used when generating a [Material4D] from a [G4MFMaterial4D]. |
69 | | - </member> |
70 | 42 | <member name="texture_index" type="int" setter="set_texture_index" getter="get_texture_index" default="-1"> |
71 | 43 | The index of the [G4MFTexture4D] in the [G4MFState4D]'s textures array that contains the texture for this surface. This is per-component multiplied with the [member single_color] and the cell colors to get the final color of the cells. If not defined, the surface does not have a texture. |
72 | 44 | [b]Note:[/b] This property is currently not used when generating a [Material4D] from a [G4MFMaterial4D]. |
73 | 45 | </member> |
74 | | - <member name="texture_map_accessor_index" type="int" setter="set_texture_map_accessor_index" getter="get_texture_map_accessor_index" default="-1"> |
75 | | - The index of the [G4MFAccessor4D] in the [G4MFState4D]'s accessors array that contains the per-vertex-instance texture map data for this surface, also known as a UV map or UVW map. This is used to map the texture to the surface vertex instances, such as simplex cells or edges. If not defined (set to a negative index), the surface does not have a texture map. If defined, the amount of texture map data MUST match or exceed the amount of vertex instances in the surface. |
76 | | - [b]Note:[/b] This property is currently not used when generating a [Material4D] from a [G4MFMaterial4D]. |
77 | | - </member> |
78 | | - <member name="topology_texture_map_accessor_index" type="int" setter="set_topology_texture_map_accessor_index" getter="get_topology_texture_map_accessor_index" default="-1"> |
79 | | - The index of the [G4MFAccessor4D] in the [G4MFState4D]'s accessors array that contains the per-topology-vertex-instance texture map data for this surface, also known as a UV map or UVW map. This is used to map the texture to the surface topology vertex instances, such as polytope cells. If not defined (set to a negative index), the surface does not have a texture map. If defined, the amount of texture map data MUST match or exceed the amount of topology vertex instances in the surface. |
80 | | - [b]Note:[/b] This property is currently not used when generating a [Material4D] from a [G4MFMaterial4D]. |
| 46 | + <member name="texture_map_binding" type="G4MFMeshSurfaceBinding4D" setter="set_texture_map_binding" getter="get_texture_map_binding"> |
| 47 | + Override for the mesh surface's texture map binding. If defined, this binding is used instead of the mesh surface's [member G4MFMeshSurface4D.texture_map_binding] to map the texture onto the surface. |
81 | 48 | </member> |
82 | 49 | </members> |
83 | 50 | </class> |
0 commit comments