-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.html
1082 lines (1009 loc) · 43.5 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<title>README.md</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<style>
/* https://github.com/microsoft/vscode/blob/master/extensions/markdown-language-features/media/markdown.css */
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
body {
font-family: var(--vscode-markdown-font-family, -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "Ubuntu", "Droid Sans", sans-serif);
font-size: var(--vscode-markdown-font-size, 14px);
padding: 0 26px;
line-height: var(--vscode-markdown-line-height, 22px);
word-wrap: break-word;
}
#code-csp-warning {
position: fixed;
top: 0;
right: 0;
color: white;
margin: 16px;
text-align: center;
font-size: 12px;
font-family: sans-serif;
background-color:#444444;
cursor: pointer;
padding: 6px;
box-shadow: 1px 1px 1px rgba(0,0,0,.25);
}
#code-csp-warning:hover {
text-decoration: none;
background-color:#007acc;
box-shadow: 2px 2px 2px rgba(0,0,0,.25);
}
body.scrollBeyondLastLine {
margin-bottom: calc(100vh - 22px);
}
body.showEditorSelection .code-line {
position: relative;
}
body.showEditorSelection .code-active-line:before,
body.showEditorSelection .code-line:hover:before {
content: "";
display: block;
position: absolute;
top: 0;
left: -12px;
height: 100%;
}
body.showEditorSelection li.code-active-line:before,
body.showEditorSelection li.code-line:hover:before {
left: -30px;
}
.vscode-light.showEditorSelection .code-active-line:before {
border-left: 3px solid rgba(0, 0, 0, 0.15);
}
.vscode-light.showEditorSelection .code-line:hover:before {
border-left: 3px solid rgba(0, 0, 0, 0.40);
}
.vscode-light.showEditorSelection .code-line .code-line:hover:before {
border-left: none;
}
.vscode-dark.showEditorSelection .code-active-line:before {
border-left: 3px solid rgba(255, 255, 255, 0.4);
}
.vscode-dark.showEditorSelection .code-line:hover:before {
border-left: 3px solid rgba(255, 255, 255, 0.60);
}
.vscode-dark.showEditorSelection .code-line .code-line:hover:before {
border-left: none;
}
.vscode-high-contrast.showEditorSelection .code-active-line:before {
border-left: 3px solid rgba(255, 160, 0, 0.7);
}
.vscode-high-contrast.showEditorSelection .code-line:hover:before {
border-left: 3px solid rgba(255, 160, 0, 1);
}
.vscode-high-contrast.showEditorSelection .code-line .code-line:hover:before {
border-left: none;
}
img {
max-width: 100%;
max-height: 100%;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:focus,
input:focus,
select:focus,
textarea:focus {
outline: 1px solid -webkit-focus-ring-color;
outline-offset: -1px;
}
hr {
border: 0;
height: 2px;
border-bottom: 2px solid;
}
h1 {
padding-bottom: 0.3em;
line-height: 1.2;
border-bottom-width: 1px;
border-bottom-style: solid;
}
h1, h2, h3 {
font-weight: normal;
}
table {
border-collapse: collapse;
}
table > thead > tr > th {
text-align: left;
border-bottom: 1px solid;
}
table > thead > tr > th,
table > thead > tr > td,
table > tbody > tr > th,
table > tbody > tr > td {
padding: 5px 10px;
}
table > tbody > tr + tr > td {
border-top: 1px solid;
}
blockquote {
margin: 0 7px 0 5px;
padding: 0 16px 0 10px;
border-left-width: 5px;
border-left-style: solid;
}
code {
font-family: Menlo, Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace, "Droid Sans Fallback";
font-size: 1em;
line-height: 1.357em;
}
body.wordWrap pre {
white-space: pre-wrap;
}
pre:not(.hljs),
pre.hljs code > div {
padding: 16px;
border-radius: 3px;
overflow: auto;
}
pre code {
color: var(--vscode-editor-foreground);
tab-size: 4;
}
/** Theming */
.vscode-light pre {
background-color: rgba(220, 220, 220, 0.4);
}
.vscode-dark pre {
background-color: rgba(10, 10, 10, 0.4);
}
.vscode-high-contrast pre {
background-color: rgb(0, 0, 0);
}
.vscode-high-contrast h1 {
border-color: rgb(0, 0, 0);
}
.vscode-light table > thead > tr > th {
border-color: rgba(0, 0, 0, 0.69);
}
.vscode-dark table > thead > tr > th {
border-color: rgba(255, 255, 255, 0.69);
}
.vscode-light h1,
.vscode-light hr,
.vscode-light table > tbody > tr + tr > td {
border-color: rgba(0, 0, 0, 0.18);
}
.vscode-dark h1,
.vscode-dark hr,
.vscode-dark table > tbody > tr + tr > td {
border-color: rgba(255, 255, 255, 0.18);
}
</style>
<style>
/* Tomorrow Theme */
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
/* Tomorrow Comment */
.hljs-comment,
.hljs-quote {
color: #8e908c;
}
/* Tomorrow Red */
.hljs-variable,
.hljs-template-variable,
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-regexp,
.hljs-deletion {
color: #c82829;
}
/* Tomorrow Orange */
.hljs-number,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params,
.hljs-meta,
.hljs-link {
color: #f5871f;
}
/* Tomorrow Yellow */
.hljs-attribute {
color: #eab700;
}
/* Tomorrow Green */
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
color: #718c00;
}
/* Tomorrow Blue */
.hljs-title,
.hljs-section {
color: #4271ae;
}
/* Tomorrow Purple */
.hljs-keyword,
.hljs-selector-tag {
color: #8959a8;
}
.hljs {
display: block;
overflow-x: auto;
color: #4d4d4c;
padding: 0.5em;
}
.hljs-emphasis {
font-style: italic;
}
.hljs-strong {
font-weight: bold;
}
</style>
<style>
/*
* Markdown PDF CSS
*/
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "Ubuntu", "Droid Sans", sans-serif, "Meiryo";
padding: 0 12px;
}
pre {
background-color: #f8f8f8;
border: 1px solid #cccccc;
border-radius: 3px;
overflow-x: auto;
white-space: pre-wrap;
overflow-wrap: break-word;
}
pre:not(.hljs) {
padding: 23px;
line-height: 19px;
}
blockquote {
background: rgba(127, 127, 127, 0.1);
border-color: rgba(0, 122, 204, 0.5);
}
.emoji {
height: 1.4em;
}
code {
font-size: 14px;
line-height: 19px;
}
/* for inline code */
:not(pre):not(.hljs) > code {
color: #C9AE75; /* Change the old color so it seems less like an error */
font-size: inherit;
}
/* Page Break : use <div class="page"/> to insert page break
-------------------------------------------------------- */
.page {
page-break-after: always;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.min.js"></script>
</head>
<body>
<script>
mermaid.initialize({
startOnLoad: true,
theme: document.body.classList.contains('vscode-dark') || document.body.classList.contains('vscode-high-contrast')
? 'dark'
: 'default'
});
</script>
<h2 id="materialx--gltf-procedurals-interop">MaterialX / glTF Procedurals Interop</h2>
<p><a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/actions?query=branch%3Amain"><img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/workflows/main/badge.svg" alt="Build Status"></a></p>
<h3 id="introduction">Introduction</h3>
<p>This package supports the bi-directional translation between MaterialX material graphs and the glTF Procedural Textures extension.</p>
<ul>
<li>The Khronos extensions can be found here:
<ul>
<li><a href="https://github.com/KhronosGroup/glTF/tree/KHR_texture_procedurals/extensions/2.0/Khronos/KHR_texture_procedurals">KHR_texture_procedurals</a></li>
<li><a href="https://github.com/KhronosGroup/glTF/tree/KHR_texture_procedurals/extensions/2.0/Vendor/EXT_texture_procedurals_mx_1_39">EXT_texture_procedurals_mx_1_39</a></li>
</ul>
</li>
<li>The MaterialX specification documents can be found <a href="https://github.com/AcademySoftwareFoundation/MaterialX/tree/main/documents/Specification">here</a></li>
</ul>
<h3 id="dependencies">Dependencies</h3>
<ul>
<li>The 1.39 release (or patch releases) of MaterialX available on<br>
<a href="https://pypi.org/project/MaterialX/">PyPi</a> is required.</li>
<li>The <code>jsonschema</code> package if Schema validation is desired</li>
</ul>
<h3 id="setup">Setup</h3>
<p>The <a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/">Github repository</a> can be forked / cloned locally and the package built using <code>pip</code> as follows from the root folder:</p>
<p><code>pip install .</code></p>
<p>All dependencies listed will be installed if required.</p>
<h4 id="command-line-interfaces">Command Line Interfaces</h4>
<p>To convert from a MaterialX document to produce a glTF JSON document the <code>materialx_to_gltf.py</code> utility script may be used.</p>
<p>The following is an example converting a sample file found in the test folder. The results are saved to a file called <code>checkerboard_graph.gltf</code>.</p>
<p><code>python -m gltf_materialx_converter mtlx "tests/data/checkerboard_graph.mtlx"</code></p>
<p>or</p>
<p><code>python source/gltf_materialx_converter/materialx_to_gltf.py "tests/data/checkerboard_graph.mtlx"</code></p>
<p>to run the local script.</p>
<hr>
<p>To convert from a document containing glTF procedural content to produce a MaterialX document the <code>gltf_to_materialx.py</code> utility script may be used.</p>
<p>The following is an example converting a sample file found in the test folder. The results are saved to a file called <code>checkerboard_graph_fromgltf.mtlx</code>.</p>
<p><code>python -m gltf_materialx_converter gltf "tests/data/checkerboard_graph.gltf"</code></p>
<p>or</p>
<p><code>python source/gltf_materialx_converter/gltf_to_materialx.py "tests/data/checkerboard_graph.gltf"</code></p>
<p>to run the local script.</p>
<h4 id="api-example">API Example</h4>
<p>The following is a simple example of using the API to convert from MaterialX to glTF<br>
and then back to MaterialX.</p>
<pre>
# Import support modules
import MaterialX as mx
import json
# Import conversion module utilities
from gltf_materialx_converter import converter as MxGLTFPT
from gltf_materialx_converter import utilities as MxGLTFPTUtil
input_file = "my_file.mtlx" # Replace with desired file name
# Set up definitions and read in a sample file
stdlib, libFiles = MxGLTFPTUtil.load_standard_libraries()
mxdoc = MxGLTFPTUtil.create_working_document([stdlib])
mx.readFromXmlFile(mxdoc, input_file)
# Instantiate a converter
converter = MxGLTFPT.glTFMaterialXConverter()
# Convert to glTF (JSON)
json_string, status = converter.materialX_to_glTF(mxdoc)
# Write result to disk
gltf_file = input_file.replace('.mtlx', '.gltf')
with open(gltf_file, 'w') as f:
f.write(json_string)
# Convert from glTF to MaterialX
mxdoc2 = converter.gltf_string_to_materialX(json_string, stdlib)
</pre>
<p>A sample <code>Jupyter</code> notebook which can be run interactively is available <a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/documents/notebook.ipynb">here</a></p>
<h3 id="documentation">Documentation</h3>
<h4 id="api">API</h4>
<p>API documentation can be found <a href="https://github.khronos.org/glTF-MaterialX-Converter/documents/html/index.html">here</a></p>
<p>Documentation can be generated by running <code>doxygen</code> from the "documents" folder.<br>
It is assumed that <code>Doxygen</code> has been installed locally.</p>
<h3 id="tests">Tests</h3>
<p>The following command can be used to run tests from the root folder:</p>
<pre>
python -m unittest discover -s tests -p "test_*.py"
</pre>
<h3 id="supported-materialx-configurations">Supported MaterialX Configurations</h3>
<p>Only specific configurations of MaterialX can be mapped to glTF Texture Procedurals.</p>
<ol>
<li>There must be a <code>surfacematerial</code> material node</li>
<li>There must be a <code>glTF PBR</code> or <code>unlit</code> node connected to the surface shader input of the material.</li>
<li>A single <code>nodegraph</code> with a <code>color3</code> output node which is connected to the base color on the surface shader. The constant node can be replaced with the desired set of<br>
nodes, and one or more inputs may be specified to route data into the <code>nodegraph</code>.</li>
</ol>
<p>Any document level qualifiers must be pre-resolved when converting rom MaterialX. This includes any <code>fileprefix</code> qualifiers for image file names.</p>
<table>
<tr>
<th>Description
<th>Documents
<th>Reference Image
<tr>
<td>
A sample minimal graph routing a constant color to the downstream shader.
There are no inputs specified on the `nodegraph`.
<pre><code class="language-mermaid"><div class="mermaid">graph TB
gltf_Material([surfacematerial:material])
style gltf_Material fill:#090, color:#FFF
gltf_Shader[gltf_pbr:surfaceshader]
subgraph gltf_procedural
gltf_procedural_output_color4([output:color3])
style gltf_procedural_output_color4 fill:#09D, color:#FFF
gltf_procedural_constant_color4([constant:color3:1,1,1])
style gltf_procedural_constant_color4 fill:#888, color:#000
end
gltf_Shader --"surfaceshader"--> gltf_Material
gltf_procedural_constant_color4 --> gltf_procedural_output_color4
gltf_procedural_output_color4 --"base_color"--> gltf_Shader
</div></code></pre>
</td>
<td>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/minimal_graph.mtlx">MTLX</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/minimal_graph.gltf">GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/minimal_graph_fromgltf.mtlx">MTLX from GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/minimal_graph.usda">USD</a>
</td>
<td>
<img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/minimal_graph.png?raw=true">
</td>
</tr>
</table>
<h4 id="test-data">Test Data</h4>
<p>The following is a set of example files used for unit testing. The term "Compound nodes" refers to nodes<br>
which are implemented as node graphs themselves ("functional graphs" in MaterialX terminology)</p>
<p>For each <code>MaterialX</code> file the resulting <code>glTF</code> file is given, along with a diagram of how the graph looks and reference image.<br>
A sample conversion from MaterialX to <code>USDShade</code> network is provided where applicable.</p>
<details open><summary>Examples</summary>
<table>
<tr>
<th>Description
<th>Documents
<th>Reference Image
<tr>
<td>
The following is a simple graph which adds two colors together.
<ul>
<li>Graph count: single</li>
<li>Graph inputs: multiple</li>
<li>Graph outputs: single</li>
<li>Stream inputs: no</li>
<li>Compound nodes: none</li>
<li>Downstream shader: glTF PBR</li>
</ul>
<pre><code class="language-mermaid"><div class="mermaid">graph TB
subgraph graph1
graph1_myin1([input:1,0,0])
style graph1_myin1 fill:#09D, color:#FFF
graph1_myin2([input:0.94902, 0.768627, 0.109804])
style graph1_myin2 fill:#09D, color:#FFF
graph1_output_color4([output])
style graph1_output_color4 fill:#09D, color:#FFF
graph1_add_color4[add]
end
Default([surfacematerial])
style Default fill:#090, color:#FFF
gltf_mat[gltf_pbr]
graph1_myin2 --"in1"--> graph1_add_color4
graph1_myin1 --"in2"--> graph1_add_color4
graph1_add_color4 --> graph1_output_color4
gltf_mat --"surfaceshader"--> Default
graph1_output_color4 --"base_color"--> gltf_mat
</div></code></pre>
</td>
<td>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/add_graph.mtlx">MTLX</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/add_graph.gltf">GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/add_graph_fromgltf.mtlx">MTLX from GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/add_graph.usda">USD</a>
</td>
<td>
<img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/add_graph.png?raw=true">
</td>
</tr>
<tr>
<td>
<p>The following is a pattern graph that produces a checkerboard pattern.<br>
The two input colors, and a texture coordinate tiling option are exposed on the node graph. The output is a color which is routed to a downstream glTF PBR shading node (glTF material).</p>
<ul>
<li>Graph count: single</li>
<li>Graph inputs: multiple</li>
<li>Graph outputs: single</li>
<li>Stream inputs: yes</li>
<li>Compound nodes: none</li>
<li>Downstream shader: glTF PBR</li>
</ul>
<pre><code class="language-mermaid"><div class="mermaid">graph TB
subgraph NG_main
NG_main_uvtiling([input:vector2:8,8])
style NG_main_uvtiling fill:#09D, color:#FFF
NG_main_color1([input:color3:1,0.094118,0.031373])
style NG_main_color1 fill:#09D, color:#FFF
NG_main_color2([input:color3:0.035294,0.090196,0.878431])
style NG_main_color2 fill:#09D, color:#FFF
NG_main_output_N_mtlxmix_out([output:color3])
style NG_main_output_N_mtlxmix_out fill:#09D, color:#FFF
NG_main_N_mtlxmix[mix:color3]
NG_main_N_mtlxdotproduct[dotproduct:float]
NG_main_N_mtlxmult[multiply:vector2]
NG_main_N_mtlxsubtract[subtract:vector2]
NG_main_N_mtlxfloor[floor:vector2]
NG_main_N_modulo[modulo:float]
NG_main_Texcoord[texcoord:vector2:0]
end
Gltf_pbr[gltf_pbr:surfaceshader]
MAT_Gltf_pbr([surfacematerial:material])
style MAT_Gltf_pbr fill:#090, color:#FFF
NG_main_N_mtlxmix --> NG_main_output_N_mtlxmix_out
NG_main_color1 --"fg"--> NG_main_N_mtlxmix
NG_main_color2 --"bg"--> NG_main_N_mtlxmix
NG_main_N_modulo --"mix"--> NG_main_N_mtlxmix
NG_main_N_mtlxfloor --"in1"--> NG_main_N_mtlxdotproduct
NG_main_Texcoord --"in1"--> NG_main_N_mtlxmult
NG_main_uvtiling --"in2"--> NG_main_N_mtlxmult
NG_main_N_mtlxmult --"in1"--> NG_main_N_mtlxsubtract
NG_main_N_mtlxsubtract --"in"--> NG_main_N_mtlxfloor
NG_main_N_mtlxdotproduct --"in1"--> NG_main_N_modulo
NG_main_output_N_mtlxmix_out --"base_color"--> Gltf_pbr
Gltf_pbr --"surfaceshader"--> MAT_Gltf_pbr
</div></code></pre>
</td>
<td>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/checkerboard_graph.mtlx">MTLX</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/checkerboard_graph.gltf">GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/checkerboard_graph_fromgltf.mtlx">MTLX from GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/checkerboard_graph.usda">USD</a>
</td>
<td><img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/checkerboard_graph.png?raw=true">
</td>
</tr>
<tr>
<td>Pattern graph only without any materials.
<ul>
<li>Graph count: single</li>
<li>Graph inputs: multiple</li>
<li>Graph outputs: single</li>
<li>Stream inputs: no</li>
<li>Compound nodes: yes</li>
<li>Downstream shader: none</li>
</ul>
<pre><code class="language-mermaid"><div class="mermaid">graph TB
subgraph splittb_graph
splittb_graph_output_color4([output_color4])
style splittb_graph_output_color4 fill:#09D, color:#FFF
splittb_graph_splittb_color4[splittb_color4]
splittb_graph_texcoord_vector[texcoord_vector:0]
end
subgraph checker_graph
checker_graph_output_color5([output_color5])
style checker_graph_output_color5 fill:#09D, color:#FFF
checker_graph_checkerboard_color4[checkerboard_color4]
checker_graph_texcoord_vector3[texcoord_vector3:0]
end
splittb_graph_texcoord_vector --"texcoord"--> splittb_graph_splittb_color4
splittb_graph_splittb_color4 --> splittb_graph_output_color4
checker_graph_texcoord_vector3 --"texcoord"--> checker_graph_checkerboard_color4
checker_graph_checkerboard_color4 --> checker_graph_output_color5
</div></code></pre>
</td>
<td>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/no_material.mtlx">MTLX</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/no_material.gltf">GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/no_material_fromgltf.mtlx">MTLX from GLTF</a>,
<td><img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/no_material.png?raw=true">
</tr>
<tr>
<td>
Pattern connected to an unsupported (non-glTF) PBR downstream shader.
<ul>
<li>Graph count: single</li>
<li>Graph inputs: multiple</li>
<li>Graph outputs: single</li>
<li>Stream inputs: no</li>
<li>Compound nodes: yes</li>
<li>Downstream shader: "standard surface"</li>
</ul>
<pre><code class="language-mermaid"><div class="mermaid">graph TB
subgraph splittb_graph
splittb_graph_output_color4([output_color4])
style splittb_graph_output_color4 fill:#09D, color:#FFF
splittb_graph_splittb_color4[splittb_color4]
splittb_graph_texcoord_vector3[texcoord_vector3:0]
end
subgraph checker_graph
checker_graph_output_color5([output_color5])
style checker_graph_output_color5 fill:#09D, color:#FFF
checker_graph_checkerboard_color4[checkerboard_color4]
checker_graph_texcoord_vector3[texcoord_vector3:0]
end
standard_surface_surfaceshader1[standard_surface_surfaceshader1]
surfacematerial_material1([surfacematerial_material1])
style surfacematerial_material1 fill:#090, color:#FFF
surfacematerial_material2([surfacematerial_material2])
style surfacematerial_material2 fill:#090, color:#FFF
standard_surface_surfaceshader2[standard_surface_surfaceshader2]
splittb_graph_splittb_color4 --> splittb_graph_output_color4
splittb_graph_texcoord_vector3 --"texcoord"--> splittb_graph_splittb_color4
checker_graph_checkerboard_color4 --> checker_graph_output_color5
checker_graph_texcoord_vector3 --"texcoord"--> checker_graph_checkerboard_color4
splittb_graph_output_color4 --"base_color"--> standard_surface_surfaceshader1
standard_surface_surfaceshader1 --"surfaceshader"--> surfacematerial_material1
standard_surface_surfaceshader2 --"surfaceshader"--> surfacematerial_material2
checker_graph_output_color5 --"base_color"--> standard_surface_surfaceshader2
</div></code></pre>
</td>
<td>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unsupported_stdsurf.mtlx">MTLX</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unsupported_stdsurf.gltf">GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unsupported_stdsurf_fromgltf.mtlx">MTLX from GLTF</a>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unsupported_stdsurf.usda">USD</a>,
</td>
<td><img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unsupported_stdsurf.png?raw=true"> (original)
<img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/no_material.png?raw=true"> (skipping material )
</td>
<tr>
<td>Pattern graph using a file texture
<ul>
<li>Graph count: single</li>
<li>Graph inputs: none</li>
<li>Graph outputs: single</li>
<li>Stream inputs: yes</li>
<li>File inputs: single. Non-default filtering.</li>
<li>Compound nodes: yes. UV placement.</li>
<li>Downstream shader: gltf PBR</li>
</ul>
<pre><code class="language-mermaid"><div class="mermaid">graph TB
subgraph nodegraph1
nodegraph1_output_color3([output_color3:color3])
style nodegraph1_output_color3 fill:#09D, color:#FFF
nodegraph1_image_color3[image_color3:color3]
nodegraph1_place2d_vector2[place2d_vector2:vector2]
nodegraph1_texcoord_vector2[texcoord_vector2:vector2:1]
end
gltf_pbr_surfaceshader[gltf_pbr_surfaceshader:surfaceshader]
surfacematerial([surfacematerial:material])
style surfacematerial fill:#090, color:#FFF
nodegraph1_image_color3 --> nodegraph1_output_color3
nodegraph1_place2d_vector2 --"texcoord"--> nodegraph1_image_color3
nodegraph1_texcoord_vector2 --"texcoord"--> nodegraph1_place2d_vector2
nodegraph1_output_color3 --"base_color"--> gltf_pbr_surfaceshader
gltf_pbr_surfaceshader --"surfaceshader"--> surfacematerial
</div></code></pre>
</td>
<td><a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_simple_filetexture.mtlx">MTLX</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_simple_filetexture.gltf">GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_simple_filetexture_fromgltf.mtlx">MTLX from GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_simple_filetexture.usda">USD</a>
<td><img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_simple_filetexture.png?raw=true">
</tr>
<tr>
<td>Pattern graph using using multiple file textures with different texture placements and a shared input stream.
<ul>
<li>Graph count: single</li>
<li>Graph inputs: none</li>
<li>Graph outputs: single</li>
<li>Stream inputs: yes</li>
<li>File inputs: multiple</li>
<li>Compound nodes: yes.</li>
<li>Downstream shader: gltf PBR</li>
</ul>
<pre><code class="language-mermaid"><div class="mermaid">graph TB
gltf_pbr_surfaceshader[gltf_pbr:surfaceshader]
surfacematerial([surfacematerial:material])
style surfacematerial fill:#090, color:#FFF
subgraph nodegraph1
nodegraph1_output_color3([output:color3])
style nodegraph1_output_color3 fill:#09D, color:#FFF
nodegraph1_texcoord_vector2[texcoord:vector2:0]
nodegraph1_place2d_vector3[place2d:vector2]
nodegraph1_multiply_color4[multiply:color3]
nodegraph1_image_color4[image:color3]
nodegraph1_image_color3[image:color3]
nodegraph1_place2d_vector2[place2d:vector2]
end
nodegraph1_output_color3 --"base_color"--> gltf_pbr_surfaceshader
gltf_pbr_surfaceshader --"surfaceshader"--> surfacematerial
nodegraph1_multiply_color4 --> nodegraph1_output_color3
nodegraph1_texcoord_vector2 --"texcoord"--> nodegraph1_place2d_vector3
nodegraph1_image_color3 --"in1"--> nodegraph1_multiply_color4
nodegraph1_image_color4 --"in2"--> nodegraph1_multiply_color4
nodegraph1_place2d_vector3 --"texcoord"--> nodegraph1_image_color4
nodegraph1_place2d_vector2 --"texcoord"--> nodegraph1_image_color3
nodegraph1_texcoord_vector2 --"texcoord"--> nodegraph1_place2d_vector2
</div></code></pre>
</td>
<td>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_shared_filetexture.mtlx">MTLX</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_shared_filetexture.gltf">GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_shared_filetexture_fromgtlf.mtlx">MTLX from GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_shared_filetexture.usda">USD</a>
<td><img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_shared_filetexture.png?raw=true">
</tr>
<tr>
<td>Pattern graph using using multiple file textures routed to different outputs. Each output
is connected to a different downstream shader.
<ul>
<li>Graph count: single</li>
<li>Graph inputs: none</li>
<li>Graph outputs: single</li>
<li>Stream inputs: yes</li>
<li>File inputs: yes.</li>
<li>Compound nodes: yes.</li>
<li>Downstream shader: gltf PBR</li>
</ul>
<pre><code class="language-mermaid"><div class="mermaid">graph TB
gltf_pbr_surfaceshader[gltf_pbr:surfaceshader]
surfacematerial([surfacematerial:material])
style surfacematerial fill:#090, color:#FFF
surfacematerial1([surfacematerial:material])
style surfacematerial1 fill:#090, color:#FFF
gltf_pbr_surfaceshader1[gltf_pbr:surfaceshader]
subgraph nodegraph1
nodegraph1_output_color4([output:color3])
style nodegraph1_output_color4 fill:#09D, color:#FFF
nodegraph1_output_color3([output:color3])
style nodegraph1_output_color3 fill:#09D, color:#FFF
nodegraph1_texcoord_vector2[texcoord:vector2:0]
nodegraph1_place2d_vector3[place2d:vector2]
nodegraph1_place2d_vector2[place2d:vector2]
nodegraph1_image_color4[image:color3]
nodegraph1_image_color3[image:color3]
end
nodegraph1_output_color3 --"base_color"--> gltf_pbr_surfaceshader
gltf_pbr_surfaceshader --"surfaceshader"--> surfacematerial
gltf_pbr_surfaceshader1 --"surfaceshader"--> surfacematerial1
nodegraph1_output_color4 --"base_color"--> gltf_pbr_surfaceshader1
nodegraph1_texcoord_vector2 --"texcoord"--> nodegraph1_place2d_vector3
nodegraph1_texcoord_vector2 --"texcoord"--> nodegraph1_place2d_vector2
nodegraph1_place2d_vector3 --"texcoord"--> nodegraph1_image_color4
nodegraph1_image_color4 --> nodegraph1_output_color4
nodegraph1_image_color3 --> nodegraph1_output_color3
nodegraph1_place2d_vector2 --"texcoord"--> nodegraph1_image_color3
</div></code></pre>
</td>
<td>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_shared_filetexture_2.mtlx">MTLX</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_shared_filetexture_2.gltf">GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_shared_filetexture_2_fromgltf.mtlx">MTLX from GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_shared_filetexture_2.usda">USD</a>
<td><img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/bindings/gltf_shared_filetexture_2.png?raw=true">
</tr>
<tr>
<td>
Procedural graph with intermediary node for shader translation (from standard surface to glTF PBR)
<ul>
<li>Graph count: multiple</li>
<li>Graph inputs: none</li>
<li>Graph outputs: single</li>
<li>Compound nodes: yes</li>
<li>Translation node: yes</li>
<li>Downstream shader: gltf PBR</li>
</ul>
<pre><code class="language-mermaid"><div class="mermaid">graph LR
surfacematerial_material1([surfacematerial_material1])
style surfacematerial_material1 fill:#090, color:#FFF
gltf_pbr[gltf_pbr]
subgraph translation_graph
translation_graph_base_color_out([base_color_out])
style translation_graph_base_color_out fill:#09D, color:#FFF
translation_graph_metallic_out([metallic_out])
style translation_graph_metallic_out fill:#09D, color:#FFF
translation_graph_roughness_out([roughness_out])
style translation_graph_roughness_out fill:#09D, color:#FFF
translation_graph_transmission_out([transmission_out])
style translation_graph_transmission_out fill:#09D, color:#FFF
translation_graph_thickness_out([thickness_out])
style translation_graph_thickness_out fill:#09D, color:#FFF
translation_graph_attenuation_color_out([attenuation_color_out])
style translation_graph_attenuation_color_out fill:#09D, color:#FFF
translation_graph_sheen_color_out([sheen_color_out])
style translation_graph_sheen_color_out fill:#09D, color:#FFF
translation_graph_sheen_roughness_out([sheen_roughness_out])
style translation_graph_sheen_roughness_out fill:#09D, color:#FFF
translation_graph_clearcoat_out([clearcoat_out])
style translation_graph_clearcoat_out fill:#09D, color:#FFF
translation_graph_clearcoat_roughness_out([clearcoat_roughness_out])
style translation_graph_clearcoat_roughness_out fill:#09D, color:#FFF
translation_graph_emissive_out([emissive_out])
style translation_graph_emissive_out fill:#09D, color:#FFF
translation_graph_ss_to_gltf[ss_to_gltf]
end
gltf_pbr --"surfaceshader"--> surfacematerial_material1
translation_graph_base_color_out --"base_color"--> gltf_pbr
translation_graph_metallic_out --"metallic"--> gltf_pbr
translation_graph_roughness_out --"roughness"--> gltf_pbr
translation_graph_transmission_out --"transmission"--> gltf_pbr
translation_graph_sheen_color_out --"sheen_color"--> gltf_pbr
translation_graph_sheen_roughness_out --"sheen_roughness"--> gltf_pbr
translation_graph_clearcoat_out --"clearcoat"--> gltf_pbr
translation_graph_clearcoat_roughness_out --"clearcoat_roughness"--> gltf_pbr
translation_graph_emissive_out --"emissive"--> gltf_pbr
translation_graph_thickness_out --"thickness"--> gltf_pbr
translation_graph_attenuation_color_out --"attenuation_color"--> gltf_pbr
translation_graph_ss_to_gltf --"base_color_out"--> translation_graph_base_color_out
translation_graph_ss_to_gltf --"metallic_out"--> translation_graph_metallic_out
translation_graph_ss_to_gltf --"roughness_out"--> translation_graph_roughness_out
translation_graph_ss_to_gltf --"transmission_out"--> translation_graph_transmission_out
translation_graph_ss_to_gltf --"thickness_out"--> translation_graph_thickness_out
translation_graph_ss_to_gltf --"attenuation_color_out"--> translation_graph_attenuation_color_out
translation_graph_ss_to_gltf --"sheen_color_out"--> translation_graph_sheen_color_out
translation_graph_ss_to_gltf --"sheen_roughness_out"--> translation_graph_sheen_roughness_out
translation_graph_ss_to_gltf --"clearcoat_out"--> translation_graph_clearcoat_out
translation_graph_ss_to_gltf --"clearcoat_roughness_out"--> translation_graph_clearcoat_roughness_out
translation_graph_ss_to_gltf --"emissive_out"--> translation_graph_emissive_out
</div></code></pre>
</td>
<td>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/shader_translation.mtlx">MTLX</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/shader_translation.gltf">GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/shader_translation_fromgltf.mtlx">MTLX from GLTF</a>
<!-- <a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/shader_translation.usda">USD</a> -->
</td>
<td>
<img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/shader_translation.png?raw=true">
</td>
</tr>
<tr>
<td>Example where the root shader is an "unlit shader". Shader is mapped to a ramp.
<ul>
<li>Graph count: single</li>
<li>Graph inputs: none</li>
<li>Graph outputs: single</li>
<li>Compound nodes: yes.</li>
<li>Downstream shader: "unlit shader"</li>
</ul>
<pre><code class="language-mermaid"><div class="mermaid">graph TB
subgraph unlit_graph
unlit_graph_output_color4([output_color4:color3])
style unlit_graph_output_color4 fill:#09D, color:#FFF
unlit_graph_ramplr_color4[ramplr_color4:color3]
end
unlitshader[unlitshader:surfaceshader]
MAT_unlitshader([MAT_unlitshader:material])
style MAT_unlitshader fill:#090, color:#FFF
unlit_graph_ramplr_color4 --> unlit_graph_output_color4
unlit_graph_output_color4 --"emission_color"--> unlitshader
unlitshader --"surfaceshader"--> MAT_unlitshader
</div></code></pre>
</td>
<td>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.mtlx">MTLX</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.gltf">GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph_fromgltf.mtlx">MTLX from GLTF</a>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.usda">USD</a>
</td>
<td>
<img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/unlit_graph.png?raw=true">
</td>
</tr>
<tr>
<td>Example MaterialX version of "boombox" example (from Khronos sample assets) that shows file name resolving.
<ul>
<li>Graph count: single</li>
<li>Graph inputs: none</li>
<li>Graph outputs: one</li>
<li>File inputs: yes.</li>
<li>File prefix: resolved during conversion (as is done for "UsdMtlx" resolve)</li>
<li>Compound nodes: no</li>
<li>Downstream shader: glTF PBR</li>
</ul>
<pre><code class="language-mermaid"><div class="mermaid">graph LR
subgraph boombox_graph
boombox_graph_out_Image([out_Image])
style boombox_graph_out_Image fill:#09D, color:#FFF
boombox_graph_texcoord1[texcoord1:0]
boombox_graph_Image[Image]
end
SR_boombox[SR_boombox]
Material_boombox([Material_boombox])
style Material_boombox fill:#090, color:#FFF
boombox_graph_texcoord1 --"texcoord"--> boombox_graph_Image
boombox_graph_Image --> boombox_graph_out_Image
boombox_graph_out_Image --"base_color"--> SR_boombox
SR_boombox --"surfaceshader"--> Material_boombox
</div></code></pre>
</td>
<td>
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/gltf_examples/gltf_pbr_boombox.mtlx">MTLX</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/gltf_examples/gltf_pbr_boombox.gltf">GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/gltf_examples/gltf_pbr_boombox_fromgltf.mtlx">MTLX from GLTF</a>,
<a href="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/gltf_examples/gltf_pbr_boombox.usda">USD</a>
</td>
<td>
<img src="https://github.com/KhronosGroup/glTF-MaterialX-Converter/blob/main/tests/data/gltf_examples/gltf_pbr_boombox.png?raw=true">
</td>
</tr>
<tr>
<td>Example with various port data types: integer, vec2, vec3, vec4, color3, color4, integer, matrix33, matrix44
<ul>
<li>Graph count: single</li>
<li>Graph inputs: none</li>
<li>Graph outputs: 1 per type</li>
<li>File inputs: no</li>
<li>Compound nodes: no</li>
<li>Downstream shader: glTF PBR</li>
</ul>
<pre><code class="language-mermaid"><div class="mermaid">graph LR
glTF_Material([surfacematerial:material])
style glTF_Material fill:#090, color:#FFF
glTF_Shader[gltf_pbr:surfaceshader]
subgraph mygraph
mygraph_out([output:color3])
style mygraph_out fill:#09D, color:#FFF
mygraph_out1([output:color3])
style mygraph_out1 fill:#09D, color:#FFF
mygraph_out2([output:color3])
style mygraph_out2 fill:#09D, color:#FFF
mygraph_out3([output:color3])
style mygraph_out3 fill:#09D, color:#FFF
mygraph_out4([output:color3])
style mygraph_out4 fill:#09D, color:#FFF
mygraph_out6([output:color3])
style mygraph_out6 fill:#09D, color:#FFF
mygraph_out7([output:color3])
style mygraph_out7 fill:#09D, color:#FFF
mygraph_out5([output:color3])
style mygraph_out5 fill:#09D, color:#FFF
mygraph_out8([output:color3])
style mygraph_out8 fill:#09D, color:#FFF
mygraph_convert_color4[convert:color3]
mygraph_convert_color5[convert:color3]
mygraph_convert_color6[convert:color3]
mygraph_convert_color7[convert:color3]
mygraph_determinant_float1[determinant:float]
mygraph_convert_color8[convert:color3]
mygraph_convert_color9[convert:color3]
mygraph_determinant_float2[determinant:float]
mygraph_convert_color10[convert:color3]
mygraph_mix_color3[mix:color3]
mygraph_mix_float1[mix:float]