13 this.nodedef_icon =
'';
16 this.nodedef_type =
'float';
17 this.nodedef_group =
'input';
18 this.addInput(
'in',
'float');
19 this.addProperty(
'in', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
20 this.addOutput(
'out',
'float');
21 this.title =
'input_float';
22 this.desc =
"MaterialX:mtlx/input/input_float";
23 this.onNodeCreated =
function() {
26 this.onRemoved =
function() {
29 this.onPropertyChanged =
function(name, value, prev_value) {
30 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
41 this.color =
'#004C94';
42 this.bgcolor =
'#000';
43 this.boxcolor =
'#161';
44 this.shape = LiteGraph.ROUND_SHAPE;
45 this.onExecute =
function() {
46 console.log(
'Executing node: ',
this);
57 this.nodedef_icon =
'';
60 this.nodedef_type =
'color3';
61 this.nodedef_group =
'input';
62 this.addInput(
'in',
'color3');
63 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
64 this.addOutput(
'out',
'color3');
65 this.title =
'input_color3';
66 this.desc =
"MaterialX:mtlx/input/input_color3";
67 this.onNodeCreated =
function() {
70 this.onRemoved =
function() {
73 this.onPropertyChanged =
function(name, value, prev_value) {
74 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
76 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
77 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
79 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
80 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
82 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
83 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
85 this.color =
'#004C94';
86 this.bgcolor =
'#000';
87 this.boxcolor =
'#37A';
88 this.shape = LiteGraph.ROUND_SHAPE;
89 this.onExecute =
function() {
90 console.log(
'Executing node: ',
this);
101 this.nodedef_icon =
'';
104 this.nodedef_type =
'color4';
105 this.nodedef_group =
'input';
106 this.addInput(
'in',
'color4');
107 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
108 this.addOutput(
'out',
'color4');
109 this.title =
'input_color4';
110 this.desc =
"MaterialX:mtlx/input/input_color4";
111 this.onNodeCreated =
function() {
114 this.onRemoved =
function() {
117 this.onPropertyChanged =
function(name, value, prev_value) {
118 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
120 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
121 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
123 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
124 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
126 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
127 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
129 this.color =
'#004C94';
130 this.bgcolor =
'#000';
131 this.boxcolor =
'#69A';
132 this.shape = LiteGraph.ROUND_SHAPE;
133 this.onExecute =
function() {
134 console.log(
'Executing node: ',
this);
145 this.nodedef_icon =
'';
148 this.nodedef_type =
'vector2';
149 this.nodedef_group =
'input';
150 this.addInput(
'in',
'vector2');
151 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
152 this.addOutput(
'out',
'vector2');
153 this.title =
'input_vector2';
154 this.desc =
"MaterialX:mtlx/input/input_vector2";
155 this.onNodeCreated =
function() {
158 this.onRemoved =
function() {
161 this.onPropertyChanged =
function(name, value, prev_value) {
162 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
164 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
165 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
167 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
168 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
170 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
171 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
173 this.color =
'#004C94';
174 this.bgcolor =
'#000';
175 this.boxcolor =
'#265';
176 this.shape = LiteGraph.ROUND_SHAPE;
177 this.onExecute =
function() {
178 console.log(
'Executing node: ',
this);
189 this.nodedef_icon =
'';
192 this.nodedef_type =
'vector3';
193 this.nodedef_group =
'input';
194 this.addInput(
'in',
'vector3');
195 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
196 this.addOutput(
'out',
'vector3');
197 this.title =
'input_vector3';
198 this.desc =
"MaterialX:mtlx/input/input_vector3";
199 this.onNodeCreated =
function() {
202 this.onRemoved =
function() {
205 this.onPropertyChanged =
function(name, value, prev_value) {
206 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
208 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
209 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
211 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
212 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
214 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
215 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
217 this.color =
'#004C94';
218 this.bgcolor =
'#000';
219 this.boxcolor =
'#465';
220 this.shape = LiteGraph.ROUND_SHAPE;
221 this.onExecute =
function() {
222 console.log(
'Executing node: ',
this);
233 this.nodedef_icon =
'';
236 this.nodedef_type =
'vector4';
237 this.nodedef_group =
'input';
238 this.addInput(
'in',
'vector4');
239 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
240 this.addOutput(
'out',
'vector4');
241 this.title =
'input_vector4';
242 this.desc =
"MaterialX:mtlx/input/input_vector4";
243 this.onNodeCreated =
function() {
246 this.onRemoved =
function() {
249 this.onPropertyChanged =
function(name, value, prev_value) {
250 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
252 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
253 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
255 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
256 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
258 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
259 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
261 this.color =
'#004C94';
262 this.bgcolor =
'#000';
263 this.boxcolor =
'#275';
264 this.shape = LiteGraph.ROUND_SHAPE;
265 this.onExecute =
function() {
266 console.log(
'Executing node: ',
this);
277 this.nodedef_icon =
'';
280 this.nodedef_type =
'matrix33';
281 this.nodedef_group =
'input';
282 this.addInput(
'in',
'matrix33');
283 this.addProperty(
'in', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
284 this.addOutput(
'out',
'matrix33');
285 this.title =
'input_matrix33';
286 this.desc =
"MaterialX:mtlx/input/input_matrix33";
287 this.onNodeCreated =
function() {
290 this.onRemoved =
function() {
293 this.onPropertyChanged =
function(name, value, prev_value) {
294 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
296 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
297 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
299 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
300 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
302 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
303 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
305 this.color =
'#004C94';
306 this.bgcolor =
'#000';
307 this.boxcolor =
'#333';
308 this.shape = LiteGraph.ROUND_SHAPE;
309 this.onExecute =
function() {
310 console.log(
'Executing node: ',
this);
321 this.nodedef_icon =
'';
324 this.nodedef_type =
'matrix44';
325 this.nodedef_group =
'input';
326 this.addInput(
'in',
'matrix44');
327 this.addProperty(
'in', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
328 this.addOutput(
'out',
'matrix44');
329 this.title =
'input_matrix44';
330 this.desc =
"MaterialX:mtlx/input/input_matrix44";
331 this.onNodeCreated =
function() {
334 this.onRemoved =
function() {
337 this.onPropertyChanged =
function(name, value, prev_value) {
338 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
340 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
341 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
343 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
344 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
346 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
347 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
349 this.color =
'#004C94';
350 this.bgcolor =
'#000';
351 this.boxcolor =
'#444';
352 this.shape = LiteGraph.ROUND_SHAPE;
353 this.onExecute =
function() {
354 console.log(
'Executing node: ',
this);
365 this.nodedef_icon =
'';
368 this.nodedef_type =
'integer';
369 this.nodedef_group =
'input';
370 this.addInput(
'in',
'integer');
371 this.addProperty(
'in', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
372 this.addOutput(
'out',
'integer');
373 this.title =
'input_integer';
374 this.desc =
"MaterialX:mtlx/input/input_integer";
375 this.onNodeCreated =
function() {
378 this.onRemoved =
function() {
381 this.onPropertyChanged =
function(name, value, prev_value) {
382 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
384 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
385 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
387 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
388 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
390 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
391 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
393 this.color =
'#004C94';
394 this.bgcolor =
'#000';
395 this.boxcolor =
'#A32';
396 this.shape = LiteGraph.ROUND_SHAPE;
397 this.onExecute =
function() {
398 console.log(
'Executing node: ',
this);
409 this.nodedef_icon =
'';
412 this.nodedef_type =
'string';
413 this.nodedef_group =
'input';
414 this.addInput(
'in',
'string');
415 this.addProperty(
'in',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
416 this.addOutput(
'out',
'string');
417 this.title =
'input_string';
418 this.desc =
"MaterialX:mtlx/input/input_string";
419 this.onNodeCreated =
function() {
422 this.onRemoved =
function() {
425 this.onPropertyChanged =
function(name, value, prev_value) {
426 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
428 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
429 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
431 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
432 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
434 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
435 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
437 this.color =
'#004C94';
438 this.bgcolor =
'#000';
439 this.boxcolor =
'#395';
440 this.shape = LiteGraph.ROUND_SHAPE;
441 this.onExecute =
function() {
442 console.log(
'Executing node: ',
this);
453 this.nodedef_icon =
'';
456 this.nodedef_type =
'boolean';
457 this.nodedef_group =
'input';
458 this.addInput(
'in',
'boolean');
459 this.addProperty(
'in',
false,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
460 this.addOutput(
'out',
'boolean');
461 this.title =
'input_boolean';
462 this.desc =
"MaterialX:mtlx/input/input_boolean";
463 this.onNodeCreated =
function() {
466 this.onRemoved =
function() {
469 this.onPropertyChanged =
function(name, value, prev_value) {
470 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
472 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
473 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
475 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
476 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
478 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
479 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
481 this.color =
'#004C94';
482 this.bgcolor =
'#000';
483 this.boxcolor =
'#060';
484 this.shape = LiteGraph.ROUND_SHAPE;
485 this.onExecute =
function() {
486 console.log(
'Executing node: ',
this);
497 this.nodedef_icon =
'';
500 this.nodedef_type =
'filename';
501 this.nodedef_group =
'input';
502 this.addInput(
'in',
'filename');
503 this.addProperty(
'in',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
504 this.addOutput(
'out',
'filename');
505 this.title =
'input_filename';
506 this.desc =
"MaterialX:mtlx/input/input_filename";
507 this.onNodeCreated =
function() {
510 this.onRemoved =
function() {
513 this.onPropertyChanged =
function(name, value, prev_value) {
514 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
516 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
517 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
519 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
520 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
522 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
523 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
525 this.color =
'#004C94';
526 this.bgcolor =
'#000';
527 this.boxcolor =
'#888';
528 this.shape = LiteGraph.ROUND_SHAPE;
529 this.onExecute =
function() {
530 console.log(
'Executing node: ',
this);
541 this.nodedef_icon =
'';
544 this.nodedef_type =
'BSDF';
545 this.nodedef_group =
'input';
546 this.addInput(
'in',
'BSDF');
547 this.addProperty(
'in',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
548 this.addOutput(
'out',
'BSDF');
549 this.title =
'input_BSDF';
550 this.desc =
"MaterialX:mtlx/input/input_BSDF";
551 this.onNodeCreated =
function() {
554 this.onRemoved =
function() {
557 this.onPropertyChanged =
function(name, value, prev_value) {
558 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
560 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
561 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
563 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
564 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
566 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
567 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
569 this.color =
'#004C94';
570 this.bgcolor =
'#000';
571 this.shape = LiteGraph.ROUND_SHAPE;
572 this.onExecute =
function() {
573 console.log(
'Executing node: ',
this);
584 this.nodedef_icon =
'';
587 this.nodedef_type =
'EDF';
588 this.nodedef_group =
'input';
589 this.addInput(
'in',
'EDF');
590 this.addProperty(
'in',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
591 this.addOutput(
'out',
'EDF');
592 this.title =
'input_EDF';
593 this.desc =
"MaterialX:mtlx/input/input_EDF";
594 this.onNodeCreated =
function() {
597 this.onRemoved =
function() {
600 this.onPropertyChanged =
function(name, value, prev_value) {
601 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
603 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
604 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
606 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
607 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
609 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
610 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
612 this.color =
'#004C94';
613 this.bgcolor =
'#000';
614 this.shape = LiteGraph.ROUND_SHAPE;
615 this.onExecute =
function() {
616 console.log(
'Executing node: ',
this);
627 this.nodedef_icon =
'';
630 this.nodedef_type =
'VDF';
631 this.nodedef_group =
'input';
632 this.addInput(
'in',
'VDF');
633 this.addProperty(
'in',
'',
'VDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
634 this.addOutput(
'out',
'VDF');
635 this.title =
'input_VDF';
636 this.desc =
"MaterialX:mtlx/input/input_VDF";
637 this.onNodeCreated =
function() {
640 this.onRemoved =
function() {
643 this.onPropertyChanged =
function(name, value, prev_value) {
644 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
646 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
647 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
649 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
650 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
652 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
653 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
655 this.color =
'#004C94';
656 this.bgcolor =
'#000';
657 this.shape = LiteGraph.ROUND_SHAPE;
658 this.onExecute =
function() {
659 console.log(
'Executing node: ',
this);
670 this.nodedef_icon =
'';
673 this.nodedef_type =
'surfaceshader';
674 this.nodedef_group =
'input';
675 this.addInput(
'in',
'surfaceshader');
676 this.addProperty(
'in',
'',
'surfaceshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
677 this.addOutput(
'out',
'surfaceshader');
678 this.title =
'input_surfaceshader';
679 this.desc =
"MaterialX:mtlx/input/input_surfaceshader";
680 this.onNodeCreated =
function() {
683 this.onRemoved =
function() {
686 this.onPropertyChanged =
function(name, value, prev_value) {
687 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
689 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
690 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
692 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
693 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
695 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
696 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
698 this.color =
'#004C94';
699 this.bgcolor =
'#000';
700 this.shape = LiteGraph.ROUND_SHAPE;
701 this.onExecute =
function() {
702 console.log(
'Executing node: ',
this);
713 this.nodedef_icon =
'';
716 this.nodedef_type =
'volumeshader';
717 this.nodedef_group =
'input';
718 this.addInput(
'in',
'volumeshader');
719 this.addProperty(
'in',
'',
'volumeshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
720 this.addOutput(
'out',
'volumeshader');
721 this.title =
'input_volumeshader';
722 this.desc =
"MaterialX:mtlx/input/input_volumeshader";
723 this.onNodeCreated =
function() {
726 this.onRemoved =
function() {
729 this.onPropertyChanged =
function(name, value, prev_value) {
730 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
732 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
733 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
735 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
736 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
738 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
739 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
741 this.color =
'#004C94';
742 this.bgcolor =
'#000';
743 this.shape = LiteGraph.ROUND_SHAPE;
744 this.onExecute =
function() {
745 console.log(
'Executing node: ',
this);
756 this.nodedef_icon =
'';
759 this.nodedef_type =
'displacementshader';
760 this.nodedef_group =
'input';
761 this.addInput(
'in',
'displacementshader');
762 this.addProperty(
'in',
'',
'displacementshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
763 this.addOutput(
'out',
'displacementshader');
764 this.title =
'input_displacementshader';
765 this.desc =
"MaterialX:mtlx/input/input_displacementshader";
766 this.onNodeCreated =
function() {
769 this.onRemoved =
function() {
772 this.onPropertyChanged =
function(name, value, prev_value) {
773 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
775 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
776 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
778 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
779 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
781 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
782 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
784 this.color =
'#004C94';
785 this.bgcolor =
'#000';
786 this.shape = LiteGraph.ROUND_SHAPE;
787 this.onExecute =
function() {
788 console.log(
'Executing node: ',
this);
799 this.nodedef_icon =
'';
802 this.nodedef_type =
'lightshader';
803 this.nodedef_group =
'input';
804 this.addInput(
'in',
'lightshader');
805 this.addProperty(
'in',
'',
'lightshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
806 this.addOutput(
'out',
'lightshader');
807 this.title =
'input_lightshader';
808 this.desc =
"MaterialX:mtlx/input/input_lightshader";
809 this.onNodeCreated =
function() {
812 this.onRemoved =
function() {
815 this.onPropertyChanged =
function(name, value, prev_value) {
816 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
818 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
819 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
821 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
822 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
824 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
825 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
827 this.color =
'#004C94';
828 this.bgcolor =
'#000';
829 this.shape = LiteGraph.ROUND_SHAPE;
830 this.onExecute =
function() {
831 console.log(
'Executing node: ',
this);
842 this.nodedef_icon =
'';
845 this.nodedef_type =
'material';
846 this.nodedef_group =
'input';
847 this.addInput(
'in',
'material');
848 this.addProperty(
'in',
'',
'material',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
849 this.addOutput(
'out',
'material');
850 this.title =
'input_material';
851 this.desc =
"MaterialX:mtlx/input/input_material";
852 this.onNodeCreated =
function() {
855 this.onRemoved =
function() {
858 this.onPropertyChanged =
function(name, value, prev_value) {
859 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
861 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
862 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
864 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
865 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
867 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
868 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
870 this.color =
'#004C94';
871 this.bgcolor =
'#000';
872 this.shape = LiteGraph.ROUND_SHAPE;
873 this.onExecute =
function() {
874 console.log(
'Executing node: ',
this);
885 this.nodedef_icon =
'';
888 this.nodedef_type =
'vector2array';
889 this.nodedef_group =
'input';
890 this.addInput(
'in',
'vector2array');
891 this.addProperty(
'in',
'',
'vector2array',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
""});
892 this.addOutput(
'out',
'vector2array');
893 this.title =
'input_vector2array';
894 this.desc =
"MaterialX:mtlx/input/input_vector2array";
895 this.onNodeCreated =
function() {
898 this.onRemoved =
function() {
901 this.onPropertyChanged =
function(name, value, prev_value) {
902 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
904 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
905 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
907 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
908 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
910 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
911 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
913 this.color =
'#004C94';
914 this.bgcolor =
'#000';
915 this.shape = LiteGraph.ROUND_SHAPE;
916 this.onExecute =
function() {
917 console.log(
'Executing node: ',
this);
928 this.title =
'output_float';
929 this.desc =
"MaterialX Node :mtlx/output/output_float";
930 this.nodedef_icon =
'';
933 this.nodedef_type =
'float';
934 this.nodedef_group =
'output';
935 this.addInput(
'in',
'float');
936 this.addProperty(
'in', 0,
'float');
937 this.addOutput(
'out',
'float');
938 this.onNodeCreated =
function() {
941 this.onRemoved =
function() {
944 this.onPropertyChanged =
function(name, value, prev_value) {
945 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
947 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
948 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
950 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
951 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
953 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
954 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
956 this.color =
'#004C94';
957 this.bgcolor =
'#000';
958 this.boxcolor =
'#161';
959 this.shape = LiteGraph.ROUND_SHAPE;
960 this.onExecute =
function() {
961 console.log(
'Executing node:',
this);
972 this.title =
'output_color3';
973 this.desc =
"MaterialX Node :mtlx/output/output_color3";
974 this.nodedef_icon =
'';
977 this.nodedef_type =
'color3';
978 this.nodedef_group =
'output';
979 this.addInput(
'in',
'color3');
980 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3');
981 this.addOutput(
'out',
'color3');
982 this.onNodeCreated =
function() {
985 this.onRemoved =
function() {
988 this.onPropertyChanged =
function(name, value, prev_value) {
989 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
991 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
992 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
994 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
995 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
997 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
998 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1000 this.color =
'#004C94';
1001 this.bgcolor =
'#000';
1002 this.boxcolor =
'#37A';
1003 this.shape = LiteGraph.ROUND_SHAPE;
1004 this.onExecute =
function() {
1005 console.log(
'Executing node:',
this);
1016 this.title =
'output_color4';
1017 this.desc =
"MaterialX Node :mtlx/output/output_color4";
1018 this.nodedef_icon =
'';
1021 this.nodedef_type =
'color4';
1022 this.nodedef_group =
'output';
1023 this.addInput(
'in',
'color4');
1024 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4');
1025 this.addOutput(
'out',
'color4');
1026 this.onNodeCreated =
function() {
1029 this.onRemoved =
function() {
1032 this.onPropertyChanged =
function(name, value, prev_value) {
1033 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1035 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1036 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1038 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1039 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1041 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1042 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1044 this.color =
'#004C94';
1045 this.bgcolor =
'#000';
1046 this.boxcolor =
'#69A';
1047 this.shape = LiteGraph.ROUND_SHAPE;
1048 this.onExecute =
function() {
1049 console.log(
'Executing node:',
this);
1060 this.title =
'output_vector2';
1061 this.desc =
"MaterialX Node :mtlx/output/output_vector2";
1062 this.nodedef_icon =
'';
1065 this.nodedef_type =
'vector2';
1066 this.nodedef_group =
'output';
1067 this.addInput(
'in',
'vector2');
1068 this.addProperty(
'in', [0.0, 0.0],
'vector2');
1069 this.addOutput(
'out',
'vector2');
1070 this.onNodeCreated =
function() {
1073 this.onRemoved =
function() {
1076 this.onPropertyChanged =
function(name, value, prev_value) {
1077 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1079 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1080 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1082 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1083 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1085 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1086 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1088 this.color =
'#004C94';
1089 this.bgcolor =
'#000';
1090 this.boxcolor =
'#265';
1091 this.shape = LiteGraph.ROUND_SHAPE;
1092 this.onExecute =
function() {
1093 console.log(
'Executing node:',
this);
1104 this.title =
'output_vector3';
1105 this.desc =
"MaterialX Node :mtlx/output/output_vector3";
1106 this.nodedef_icon =
'';
1109 this.nodedef_type =
'vector3';
1110 this.nodedef_group =
'output';
1111 this.addInput(
'in',
'vector3');
1112 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3');
1113 this.addOutput(
'out',
'vector3');
1114 this.onNodeCreated =
function() {
1117 this.onRemoved =
function() {
1120 this.onPropertyChanged =
function(name, value, prev_value) {
1121 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1123 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1124 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1126 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1127 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1129 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1130 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1132 this.color =
'#004C94';
1133 this.bgcolor =
'#000';
1134 this.boxcolor =
'#465';
1135 this.shape = LiteGraph.ROUND_SHAPE;
1136 this.onExecute =
function() {
1137 console.log(
'Executing node:',
this);
1148 this.title =
'output_vector4';
1149 this.desc =
"MaterialX Node :mtlx/output/output_vector4";
1150 this.nodedef_icon =
'';
1153 this.nodedef_type =
'vector4';
1154 this.nodedef_group =
'output';
1155 this.addInput(
'in',
'vector4');
1156 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4');
1157 this.addOutput(
'out',
'vector4');
1158 this.onNodeCreated =
function() {
1161 this.onRemoved =
function() {
1164 this.onPropertyChanged =
function(name, value, prev_value) {
1165 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1167 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1168 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1170 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1171 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1173 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1174 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1176 this.color =
'#004C94';
1177 this.bgcolor =
'#000';
1178 this.boxcolor =
'#275';
1179 this.shape = LiteGraph.ROUND_SHAPE;
1180 this.onExecute =
function() {
1181 console.log(
'Executing node:',
this);
1192 this.title =
'output_matrix33';
1193 this.desc =
"MaterialX Node :mtlx/output/output_matrix33";
1194 this.nodedef_icon =
'';
1197 this.nodedef_type =
'matrix33';
1198 this.nodedef_group =
'output';
1199 this.addInput(
'in',
'matrix33');
1200 this.addProperty(
'in', [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0],
'matrix33');
1201 this.addOutput(
'out',
'matrix33');
1202 this.onNodeCreated =
function() {
1205 this.onRemoved =
function() {
1208 this.onPropertyChanged =
function(name, value, prev_value) {
1209 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1211 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1212 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1214 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1215 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1217 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1218 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1220 this.color =
'#004C94';
1221 this.bgcolor =
'#000';
1222 this.boxcolor =
'#333';
1223 this.shape = LiteGraph.ROUND_SHAPE;
1224 this.onExecute =
function() {
1225 console.log(
'Executing node:',
this);
1236 this.title =
'output_matrix44';
1237 this.desc =
"MaterialX Node :mtlx/output/output_matrix44";
1238 this.nodedef_icon =
'';
1241 this.nodedef_type =
'matrix44';
1242 this.nodedef_group =
'output';
1243 this.addInput(
'in',
'matrix44');
1244 this.addProperty(
'in', [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0],
'matrix44');
1245 this.addOutput(
'out',
'matrix44');
1246 this.onNodeCreated =
function() {
1249 this.onRemoved =
function() {
1252 this.onPropertyChanged =
function(name, value, prev_value) {
1253 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1255 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1256 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1258 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1259 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1261 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1262 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1264 this.color =
'#004C94';
1265 this.bgcolor =
'#000';
1266 this.boxcolor =
'#444';
1267 this.shape = LiteGraph.ROUND_SHAPE;
1268 this.onExecute =
function() {
1269 console.log(
'Executing node:',
this);
1280 this.title =
'output_integer';
1281 this.desc =
"MaterialX Node :mtlx/output/output_integer";
1282 this.nodedef_icon =
'';
1285 this.nodedef_type =
'integer';
1286 this.nodedef_group =
'output';
1287 this.addInput(
'in',
'integer');
1288 this.addProperty(
'in', 0,
'integer');
1289 this.addOutput(
'out',
'integer');
1290 this.onNodeCreated =
function() {
1293 this.onRemoved =
function() {
1296 this.onPropertyChanged =
function(name, value, prev_value) {
1297 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1299 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1300 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1302 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1303 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1305 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1306 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1308 this.color =
'#004C94';
1309 this.bgcolor =
'#000';
1310 this.boxcolor =
'#A32';
1311 this.shape = LiteGraph.ROUND_SHAPE;
1312 this.onExecute =
function() {
1313 console.log(
'Executing node:',
this);
1324 this.title =
'output_string';
1325 this.desc =
"MaterialX Node :mtlx/output/output_string";
1326 this.nodedef_icon =
'';
1329 this.nodedef_type =
'string';
1330 this.nodedef_group =
'output';
1331 this.addInput(
'in',
'string');
1332 this.addProperty(
'in',
'',
'string');
1333 this.addOutput(
'out',
'string');
1334 this.onNodeCreated =
function() {
1337 this.onRemoved =
function() {
1340 this.onPropertyChanged =
function(name, value, prev_value) {
1341 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1343 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1344 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1346 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1347 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1349 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1350 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1352 this.color =
'#004C94';
1353 this.bgcolor =
'#000';
1354 this.boxcolor =
'#395';
1355 this.shape = LiteGraph.ROUND_SHAPE;
1356 this.onExecute =
function() {
1357 console.log(
'Executing node:',
this);
1368 this.title =
'output_boolean';
1369 this.desc =
"MaterialX Node :mtlx/output/output_boolean";
1370 this.nodedef_icon =
'';
1373 this.nodedef_type =
'boolean';
1374 this.nodedef_group =
'output';
1375 this.addInput(
'in',
'boolean');
1376 this.addProperty(
'in',
false,
'boolean');
1377 this.addOutput(
'out',
'boolean');
1378 this.onNodeCreated =
function() {
1381 this.onRemoved =
function() {
1384 this.onPropertyChanged =
function(name, value, prev_value) {
1385 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1387 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1388 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1390 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1391 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1393 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1394 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1396 this.color =
'#004C94';
1397 this.bgcolor =
'#000';
1398 this.boxcolor =
'#060';
1399 this.shape = LiteGraph.ROUND_SHAPE;
1400 this.onExecute =
function() {
1401 console.log(
'Executing node:',
this);
1412 this.title =
'output_filename';
1413 this.desc =
"MaterialX Node :mtlx/output/output_filename";
1414 this.nodedef_icon =
'';
1417 this.nodedef_type =
'filename';
1418 this.nodedef_group =
'output';
1419 this.addInput(
'in',
'filename');
1420 this.addProperty(
'in',
'',
'filename');
1421 this.addOutput(
'out',
'filename');
1422 this.onNodeCreated =
function() {
1425 this.onRemoved =
function() {
1428 this.onPropertyChanged =
function(name, value, prev_value) {
1429 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1431 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1432 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1434 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1435 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1437 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1438 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1440 this.color =
'#004C94';
1441 this.bgcolor =
'#000';
1442 this.boxcolor =
'#888';
1443 this.shape = LiteGraph.ROUND_SHAPE;
1444 this.onExecute =
function() {
1445 console.log(
'Executing node:',
this);
1456 this.title =
'output_BSDF';
1457 this.desc =
"MaterialX Node :mtlx/output/output_BSDF";
1458 this.nodedef_icon =
'';
1461 this.nodedef_type =
'BSDF';
1462 this.nodedef_group =
'output';
1463 this.addInput(
'in',
'BSDF');
1464 this.addProperty(
'in',
'',
'BSDF');
1465 this.addOutput(
'out',
'BSDF');
1466 this.onNodeCreated =
function() {
1469 this.onRemoved =
function() {
1472 this.onPropertyChanged =
function(name, value, prev_value) {
1473 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1475 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1476 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1478 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1479 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1481 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1482 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1484 this.color =
'#004C94';
1485 this.bgcolor =
'#000';
1486 this.shape = LiteGraph.ROUND_SHAPE;
1487 this.onExecute =
function() {
1488 console.log(
'Executing node:',
this);
1499 this.title =
'output_EDF';
1500 this.desc =
"MaterialX Node :mtlx/output/output_EDF";
1501 this.nodedef_icon =
'';
1504 this.nodedef_type =
'EDF';
1505 this.nodedef_group =
'output';
1506 this.addInput(
'in',
'EDF');
1507 this.addProperty(
'in',
'',
'EDF');
1508 this.addOutput(
'out',
'EDF');
1509 this.onNodeCreated =
function() {
1512 this.onRemoved =
function() {
1515 this.onPropertyChanged =
function(name, value, prev_value) {
1516 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1518 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1519 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1521 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1522 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1524 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1525 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1527 this.color =
'#004C94';
1528 this.bgcolor =
'#000';
1529 this.shape = LiteGraph.ROUND_SHAPE;
1530 this.onExecute =
function() {
1531 console.log(
'Executing node:',
this);
1542 this.title =
'output_VDF';
1543 this.desc =
"MaterialX Node :mtlx/output/output_VDF";
1544 this.nodedef_icon =
'';
1547 this.nodedef_type =
'VDF';
1548 this.nodedef_group =
'output';
1549 this.addInput(
'in',
'VDF');
1550 this.addProperty(
'in',
'',
'VDF');
1551 this.addOutput(
'out',
'VDF');
1552 this.onNodeCreated =
function() {
1555 this.onRemoved =
function() {
1558 this.onPropertyChanged =
function(name, value, prev_value) {
1559 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1561 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1562 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1564 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1565 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1567 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1568 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1570 this.color =
'#004C94';
1571 this.bgcolor =
'#000';
1572 this.shape = LiteGraph.ROUND_SHAPE;
1573 this.onExecute =
function() {
1574 console.log(
'Executing node:',
this);
1585 this.title =
'output_surfaceshader';
1586 this.desc =
"MaterialX Node :mtlx/output/output_surfaceshader";
1587 this.nodedef_icon =
'';
1590 this.nodedef_type =
'surfaceshader';
1591 this.nodedef_group =
'output';
1592 this.addInput(
'in',
'surfaceshader');
1593 this.addProperty(
'in',
'',
'surfaceshader');
1594 this.addOutput(
'out',
'surfaceshader');
1595 this.onNodeCreated =
function() {
1598 this.onRemoved =
function() {
1601 this.onPropertyChanged =
function(name, value, prev_value) {
1602 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1604 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1605 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1607 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1608 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1610 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1611 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1613 this.color =
'#004C94';
1614 this.bgcolor =
'#000';
1615 this.shape = LiteGraph.ROUND_SHAPE;
1616 this.onExecute =
function() {
1617 console.log(
'Executing node:',
this);
1628 this.title =
'output_volumeshader';
1629 this.desc =
"MaterialX Node :mtlx/output/output_volumeshader";
1630 this.nodedef_icon =
'';
1633 this.nodedef_type =
'volumeshader';
1634 this.nodedef_group =
'output';
1635 this.addInput(
'in',
'volumeshader');
1636 this.addProperty(
'in',
'',
'volumeshader');
1637 this.addOutput(
'out',
'volumeshader');
1638 this.onNodeCreated =
function() {
1641 this.onRemoved =
function() {
1644 this.onPropertyChanged =
function(name, value, prev_value) {
1645 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1647 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1648 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1650 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1651 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1653 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1654 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1656 this.color =
'#004C94';
1657 this.bgcolor =
'#000';
1658 this.shape = LiteGraph.ROUND_SHAPE;
1659 this.onExecute =
function() {
1660 console.log(
'Executing node:',
this);
1671 this.title =
'output_displacementshader';
1672 this.desc =
"MaterialX Node :mtlx/output/output_displacementshader";
1673 this.nodedef_icon =
'';
1676 this.nodedef_type =
'displacementshader';
1677 this.nodedef_group =
'output';
1678 this.addInput(
'in',
'displacementshader');
1679 this.addProperty(
'in',
'',
'displacementshader');
1680 this.addOutput(
'out',
'displacementshader');
1681 this.onNodeCreated =
function() {
1684 this.onRemoved =
function() {
1687 this.onPropertyChanged =
function(name, value, prev_value) {
1688 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1690 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1691 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1693 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1694 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1696 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1697 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1699 this.color =
'#004C94';
1700 this.bgcolor =
'#000';
1701 this.shape = LiteGraph.ROUND_SHAPE;
1702 this.onExecute =
function() {
1703 console.log(
'Executing node:',
this);
1714 this.title =
'output_lightshader';
1715 this.desc =
"MaterialX Node :mtlx/output/output_lightshader";
1716 this.nodedef_icon =
'';
1719 this.nodedef_type =
'lightshader';
1720 this.nodedef_group =
'output';
1721 this.addInput(
'in',
'lightshader');
1722 this.addProperty(
'in',
'',
'lightshader');
1723 this.addOutput(
'out',
'lightshader');
1724 this.onNodeCreated =
function() {
1727 this.onRemoved =
function() {
1730 this.onPropertyChanged =
function(name, value, prev_value) {
1731 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1733 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1734 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1736 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1737 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1739 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1740 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1742 this.color =
'#004C94';
1743 this.bgcolor =
'#000';
1744 this.shape = LiteGraph.ROUND_SHAPE;
1745 this.onExecute =
function() {
1746 console.log(
'Executing node:',
this);
1757 this.title =
'output_material';
1758 this.desc =
"MaterialX Node :mtlx/output/output_material";
1759 this.nodedef_icon =
'';
1762 this.nodedef_type =
'material';
1763 this.nodedef_group =
'output';
1764 this.addInput(
'in',
'material');
1765 this.addProperty(
'in',
'',
'material');
1766 this.addOutput(
'out',
'material');
1767 this.onNodeCreated =
function() {
1770 this.onRemoved =
function() {
1773 this.onPropertyChanged =
function(name, value, prev_value) {
1774 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1776 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1777 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1779 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1780 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1782 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1783 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1785 this.color =
'#004C94';
1786 this.bgcolor =
'#000';
1787 this.shape = LiteGraph.ROUND_SHAPE;
1788 this.onExecute =
function() {
1789 console.log(
'Executing node:',
this);
1800 this.title =
'output_vector2array';
1801 this.desc =
"MaterialX Node :mtlx/output/output_vector2array";
1802 this.nodedef_icon =
'';
1805 this.nodedef_type =
'vector2array';
1806 this.nodedef_group =
'output';
1807 this.addInput(
'in',
'vector2array');
1808 this.addProperty(
'in',
'',
'vector2array');
1809 this.addOutput(
'out',
'vector2array');
1810 this.onNodeCreated =
function() {
1813 this.onRemoved =
function() {
1816 this.onPropertyChanged =
function(name, value, prev_value) {
1817 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1819 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1820 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1822 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1823 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1825 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1826 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1828 this.color =
'#004C94';
1829 this.bgcolor =
'#000';
1830 this.shape = LiteGraph.ROUND_SHAPE;
1831 this.onExecute =
function() {
1832 console.log(
'Executing node:',
this);
1843 this.nodedef_icon =
'';
1845 this.nodedef_type =
'material';
1847 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/surfacematerial.html';
1848 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_surfacematerial_out_genglsl.png';
1849 this.nodedef_group =
'material';
1850 this.addInput(
'surfaceshader',
'surfaceshader');
1851 this.addProperty(
'surfaceshader',
'',
'surfaceshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
1852 this.addInput(
'backsurfaceshader',
'surfaceshader');
1853 this.addProperty(
'backsurfaceshader',
'',
'surfaceshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
1854 this.addInput(
'displacementshader',
'displacementshader');
1855 this.addProperty(
'displacementshader',
'',
'displacementshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
1856 this.addOutput(
'out',
'material');
1857 this.title =
'surfacematerial_material';
1858 this.desc =
"MaterialX:mtlx/material/surfacematerial";
1859 this.onNodeCreated =
function() {
1862 this.onRemoved =
function() {
1865 this.onPropertyChanged =
function(name, value, prev_value) {
1866 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1868 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1869 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1871 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1872 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1874 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1875 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1877 this.bgcolor =
'#111';
1878 this.color =
'#151';
1879 this.shape = LiteGraph.BOX_SHAPE;
1892 this.nodedef_icon =
'';
1894 this.nodedef_type =
'material';
1896 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/volumematerial.html';
1897 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_volumematerial_out_genglsl.png';
1898 this.nodedef_group =
'material';
1899 this.addInput(
'volumeshader',
'volumeshader');
1900 this.addProperty(
'volumeshader',
'',
'volumeshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
1901 this.addOutput(
'out',
'material');
1902 this.title =
'volumematerial_material';
1903 this.desc =
"MaterialX:mtlx/material/volumematerial";
1904 this.onNodeCreated =
function() {
1907 this.onRemoved =
function() {
1910 this.onPropertyChanged =
function(name, value, prev_value) {
1911 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1913 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1914 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1916 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1917 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1919 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1920 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1922 this.bgcolor =
'#111';
1923 this.color =
'#151';
1924 this.shape = LiteGraph.BOX_SHAPE;
1937 this.nodedef_icon =
'';
1939 this.nodedef_type =
'surfaceshader';
1941 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/surface_unlit.html';
1942 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_surface_unlit_out_genglsl.png';
1943 this.nodedef_group =
'shader';
1944 this.addInput(
'emission',
'float');
1945 this.addProperty(
'emission', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
1946 this.addInput(
'emission_color',
'color3');
1947 this.addProperty(
'emission_color', [1,1,1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
1948 this.addInput(
'transmission',
'float');
1949 this.addProperty(
'transmission', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
1950 this.addInput(
'transmission_color',
'color3');
1951 this.addProperty(
'transmission_color', [1,1,1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
1952 this.addInput(
'opacity',
'float');
1953 this.addProperty(
'opacity', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
1954 this.addOutput(
'out',
'surfaceshader');
1955 this.title =
'surface_unlit_surfaceshader';
1956 this.desc =
"MaterialX:mtlx/shader/surface_unlit";
1957 this.onNodeCreated =
function() {
1960 this.onRemoved =
function() {
1963 this.onPropertyChanged =
function(name, value, prev_value) {
1964 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
1966 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
1967 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
1969 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
1970 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
1972 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
1973 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
1975 this.bgcolor =
'#111';
1976 this.color =
'#232';
1977 this.shape = LiteGraph.ROUND_SHAPE;
1981mtlx_shader_surface_unlit.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/surface_unlit.html';
1990 this.nodedef_icon =
'';
1992 this.nodedef_type =
'float';
1994 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/image.html';
1995 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_image_float_out_genglsl.png';
1996 this.nodedef_group =
'texture2d';
1997 this.addInput(
'file',
'filename');
1998 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Filename",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
1999 this.addInput(
'layer',
'string');
2000 this.addProperty(
'layer',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Layer",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2001 this.addInput(
'default',
'float');
2002 this.addProperty(
'default', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Default Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2003 this.addInput(
'texcoord',
'vector2');
2004 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Texture Coordinates",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
2005 this.addInput(
'uaddressmode',
'string');
2006 this.addProperty(
'uaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Address Mode U",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2007 this.addInput(
'vaddressmode',
'string');
2008 this.addProperty(
'vaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Address Mode V",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2009 this.addInput(
'filtertype',
'string');
2010 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Filter Type",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2011 this.addInput(
'framerange',
'string');
2012 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame Range",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2013 this.addInput(
'frameoffset',
'integer');
2014 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame Offset",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2015 this.addInput(
'frameendaction',
'string');
2016 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame End Action",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2017 this.addOutput(
'out',
'float');
2018 this.title =
'image_float';
2019 this.desc =
"MaterialX:mtlx/texture2d/image_float";
2020 this.onNodeCreated =
function() {
2023 this.onRemoved =
function() {
2026 this.onPropertyChanged =
function(name, value, prev_value) {
2027 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2029 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2030 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2032 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2033 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2035 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2036 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2038 this.bgcolor =
'#111';
2039 this.color =
'#222';
2040 this.shape = LiteGraph.ROUND_SHAPE;
2041 this.boxcolor =
'#161';
2054 this.nodedef_icon =
'';
2056 this.nodedef_type =
'color3';
2058 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/image.html';
2059 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_image_color3_out_genglsl.png';
2060 this.nodedef_group =
'texture2d';
2061 this.addInput(
'file',
'filename');
2062 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"none",
"unit":
"",
"unittype":
"",
"uiname":
"Filename",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2063 this.addInput(
'layer',
'string');
2064 this.addProperty(
'layer',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Layer",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2065 this.addInput(
'default',
'color3');
2066 this.addProperty(
'default', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Default Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2067 this.addInput(
'texcoord',
'vector2');
2068 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Texture Coordinates",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
2069 this.addInput(
'uaddressmode',
'string');
2070 this.addProperty(
'uaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Address Mode U",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2071 this.addInput(
'vaddressmode',
'string');
2072 this.addProperty(
'vaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Address Mode V",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2073 this.addInput(
'filtertype',
'string');
2074 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Filter Type",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2075 this.addInput(
'framerange',
'string');
2076 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame Range",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2077 this.addInput(
'frameoffset',
'integer');
2078 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame Offset",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2079 this.addInput(
'frameendaction',
'string');
2080 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame End Action",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2081 this.addOutput(
'out',
'color3');
2082 this.title =
'image_color3';
2083 this.desc =
"MaterialX:mtlx/texture2d/image_color3";
2084 this.onNodeCreated =
function() {
2087 this.onRemoved =
function() {
2090 this.onPropertyChanged =
function(name, value, prev_value) {
2091 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2093 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2094 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2096 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2097 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2099 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2100 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2102 this.bgcolor =
'#111';
2103 this.color =
'#222';
2104 this.shape = LiteGraph.ROUND_SHAPE;
2105 this.boxcolor =
'#37A';
2118 this.nodedef_icon =
'';
2120 this.nodedef_type =
'color4';
2122 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/image.html';
2123 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_image_color4_out_genglsl.png';
2124 this.nodedef_group =
'texture2d';
2125 this.addInput(
'file',
'filename');
2126 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"none",
"unit":
"",
"unittype":
"",
"uiname":
"Filename",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2127 this.addInput(
'layer',
'string');
2128 this.addProperty(
'layer',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Layer",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2129 this.addInput(
'default',
'color4');
2130 this.addProperty(
'default', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Default Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2131 this.addInput(
'texcoord',
'vector2');
2132 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Texture Coordinates",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
2133 this.addInput(
'uaddressmode',
'string');
2134 this.addProperty(
'uaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Address Mode U",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2135 this.addInput(
'vaddressmode',
'string');
2136 this.addProperty(
'vaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Address Mode V",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2137 this.addInput(
'filtertype',
'string');
2138 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Filter Type",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2139 this.addInput(
'framerange',
'string');
2140 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame Range",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2141 this.addInput(
'frameoffset',
'integer');
2142 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame Offset",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2143 this.addInput(
'frameendaction',
'string');
2144 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame End Action",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2145 this.addOutput(
'out',
'color4');
2146 this.title =
'image_color4';
2147 this.desc =
"MaterialX:mtlx/texture2d/image_color4";
2148 this.onNodeCreated =
function() {
2151 this.onRemoved =
function() {
2154 this.onPropertyChanged =
function(name, value, prev_value) {
2155 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2157 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2158 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2160 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2161 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2163 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2164 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2166 this.bgcolor =
'#111';
2167 this.color =
'#222';
2168 this.shape = LiteGraph.ROUND_SHAPE;
2169 this.boxcolor =
'#69A';
2182 this.nodedef_icon =
'';
2184 this.nodedef_type =
'vector2';
2186 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/image.html';
2187 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_image_vector2_out_genglsl.png';
2188 this.nodedef_group =
'texture2d';
2189 this.addInput(
'file',
'filename');
2190 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Filename",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2191 this.addInput(
'layer',
'string');
2192 this.addProperty(
'layer',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Layer",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2193 this.addInput(
'default',
'vector2');
2194 this.addProperty(
'default', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Default Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2195 this.addInput(
'texcoord',
'vector2');
2196 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Texture Coordinates",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
2197 this.addInput(
'uaddressmode',
'string');
2198 this.addProperty(
'uaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Address Mode U",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2199 this.addInput(
'vaddressmode',
'string');
2200 this.addProperty(
'vaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Address Mode V",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2201 this.addInput(
'filtertype',
'string');
2202 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Filter Type",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2203 this.addInput(
'framerange',
'string');
2204 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame Range",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2205 this.addInput(
'frameoffset',
'integer');
2206 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame Offset",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2207 this.addInput(
'frameendaction',
'string');
2208 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame End Action",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2209 this.addOutput(
'out',
'vector2');
2210 this.title =
'image_vector2';
2211 this.desc =
"MaterialX:mtlx/texture2d/image_vector2";
2212 this.onNodeCreated =
function() {
2215 this.onRemoved =
function() {
2218 this.onPropertyChanged =
function(name, value, prev_value) {
2219 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2221 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2222 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2224 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2225 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2227 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2228 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2230 this.bgcolor =
'#111';
2231 this.color =
'#222';
2232 this.shape = LiteGraph.ROUND_SHAPE;
2233 this.boxcolor =
'#265';
2246 this.nodedef_icon =
'';
2248 this.nodedef_type =
'vector3';
2250 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/image.html';
2251 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_image_vector3_out_genglsl.png';
2252 this.nodedef_group =
'texture2d';
2253 this.addInput(
'file',
'filename');
2254 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Filename",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2255 this.addInput(
'layer',
'string');
2256 this.addProperty(
'layer',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Layer",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2257 this.addInput(
'default',
'vector3');
2258 this.addProperty(
'default', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Default Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2259 this.addInput(
'texcoord',
'vector2');
2260 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Texture Coordinates",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
2261 this.addInput(
'uaddressmode',
'string');
2262 this.addProperty(
'uaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Address Mode U",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2263 this.addInput(
'vaddressmode',
'string');
2264 this.addProperty(
'vaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Address Mode V",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2265 this.addInput(
'filtertype',
'string');
2266 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Filter Type",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2267 this.addInput(
'framerange',
'string');
2268 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame Range",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2269 this.addInput(
'frameoffset',
'integer');
2270 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame Offset",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2271 this.addInput(
'frameendaction',
'string');
2272 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame End Action",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2273 this.addOutput(
'out',
'vector3');
2274 this.title =
'image_vector3';
2275 this.desc =
"MaterialX:mtlx/texture2d/image_vector3";
2276 this.onNodeCreated =
function() {
2279 this.onRemoved =
function() {
2282 this.onPropertyChanged =
function(name, value, prev_value) {
2283 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2285 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2286 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2288 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2289 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2291 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2292 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2294 this.bgcolor =
'#111';
2295 this.color =
'#222';
2296 this.shape = LiteGraph.ROUND_SHAPE;
2297 this.boxcolor =
'#465';
2310 this.nodedef_icon =
'';
2312 this.nodedef_type =
'vector4';
2314 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/image.html';
2315 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_image_vector4_out_genglsl.png';
2316 this.nodedef_group =
'texture2d';
2317 this.addInput(
'file',
'filename');
2318 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Filename",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2319 this.addInput(
'layer',
'string');
2320 this.addProperty(
'layer',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Layer",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2321 this.addInput(
'default',
'vector4');
2322 this.addProperty(
'default', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Default Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2323 this.addInput(
'texcoord',
'vector2');
2324 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Texture Coordinates",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
2325 this.addInput(
'uaddressmode',
'string');
2326 this.addProperty(
'uaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Address Mode U",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2327 this.addInput(
'vaddressmode',
'string');
2328 this.addProperty(
'vaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Address Mode V",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2329 this.addInput(
'filtertype',
'string');
2330 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Filter Type",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2331 this.addInput(
'framerange',
'string');
2332 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame Range",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2333 this.addInput(
'frameoffset',
'integer');
2334 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame Offset",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2335 this.addInput(
'frameendaction',
'string');
2336 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frame End Action",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2337 this.addOutput(
'out',
'vector4');
2338 this.title =
'image_vector4';
2339 this.desc =
"MaterialX:mtlx/texture2d/image_vector4";
2340 this.onNodeCreated =
function() {
2343 this.onRemoved =
function() {
2346 this.onPropertyChanged =
function(name, value, prev_value) {
2347 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2349 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2350 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2352 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2353 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2355 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2356 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2358 this.bgcolor =
'#111';
2359 this.color =
'#222';
2360 this.shape = LiteGraph.ROUND_SHAPE;
2361 this.boxcolor =
'#275';
2374 this.nodedef_icon =
'';
2376 this.nodedef_type =
'float';
2378 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledimage.html';
2379 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledimage_float_out_genglsl.png';
2380 this.nodedef_group =
'texture2d';
2381 this.addInput(
'file',
'filename');
2382 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2383 this.addInput(
'default',
'float');
2384 this.addProperty(
'default', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2385 this.addInput(
'texcoord',
'vector2');
2386 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
2387 this.addInput(
'uvtiling',
'vector2');
2388 this.addProperty(
'uvtiling', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2389 this.addInput(
'uvoffset',
'vector2');
2390 this.addProperty(
'uvoffset', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2391 this.addInput(
'realworldimagesize',
'vector2');
2392 this.addProperty(
'realworldimagesize', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2393 this.addInput(
'realworldtilesize',
'vector2');
2394 this.addProperty(
'realworldtilesize', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2395 this.addInput(
'filtertype',
'string');
2396 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2397 this.addInput(
'framerange',
'string');
2398 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2399 this.addInput(
'frameoffset',
'integer');
2400 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2401 this.addInput(
'frameendaction',
'string');
2402 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2403 this.addOutput(
'out',
'float');
2404 this.title =
'tiledimage_float';
2405 this.desc =
"MaterialX:mtlx/texture2d/tiledimage_float";
2406 this.onNodeCreated =
function() {
2409 this.onRemoved =
function() {
2412 this.onPropertyChanged =
function(name, value, prev_value) {
2413 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2415 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2416 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2418 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2419 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2421 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2422 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2424 this.bgcolor =
'#111';
2425 this.color =
'#222';
2426 this.shape = LiteGraph.ROUND_SHAPE;
2427 this.boxcolor =
'#161';
2440 this.nodedef_icon =
'';
2442 this.nodedef_type =
'color3';
2444 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledimage.html';
2445 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledimage_color3_out_genglsl.png';
2446 this.nodedef_group =
'texture2d';
2447 this.addInput(
'file',
'filename');
2448 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"none",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2449 this.addInput(
'default',
'color3');
2450 this.addProperty(
'default', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2451 this.addInput(
'texcoord',
'vector2');
2452 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
2453 this.addInput(
'uvtiling',
'vector2');
2454 this.addProperty(
'uvtiling', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2455 this.addInput(
'uvoffset',
'vector2');
2456 this.addProperty(
'uvoffset', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2457 this.addInput(
'realworldimagesize',
'vector2');
2458 this.addProperty(
'realworldimagesize', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2459 this.addInput(
'realworldtilesize',
'vector2');
2460 this.addProperty(
'realworldtilesize', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2461 this.addInput(
'filtertype',
'string');
2462 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2463 this.addInput(
'framerange',
'string');
2464 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2465 this.addInput(
'frameoffset',
'integer');
2466 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2467 this.addInput(
'frameendaction',
'string');
2468 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2469 this.addOutput(
'out',
'color3');
2470 this.title =
'tiledimage_color3';
2471 this.desc =
"MaterialX:mtlx/texture2d/tiledimage_color3";
2472 this.onNodeCreated =
function() {
2475 this.onRemoved =
function() {
2478 this.onPropertyChanged =
function(name, value, prev_value) {
2479 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2481 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2482 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2484 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2485 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2487 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2488 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2490 this.bgcolor =
'#111';
2491 this.color =
'#222';
2492 this.shape = LiteGraph.ROUND_SHAPE;
2493 this.boxcolor =
'#37A';
2506 this.nodedef_icon =
'';
2508 this.nodedef_type =
'color4';
2510 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledimage.html';
2511 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledimage_color4_out_genglsl.png';
2512 this.nodedef_group =
'texture2d';
2513 this.addInput(
'file',
'filename');
2514 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"none",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2515 this.addInput(
'default',
'color4');
2516 this.addProperty(
'default', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2517 this.addInput(
'texcoord',
'vector2');
2518 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
2519 this.addInput(
'uvtiling',
'vector2');
2520 this.addProperty(
'uvtiling', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2521 this.addInput(
'uvoffset',
'vector2');
2522 this.addProperty(
'uvoffset', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2523 this.addInput(
'realworldimagesize',
'vector2');
2524 this.addProperty(
'realworldimagesize', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2525 this.addInput(
'realworldtilesize',
'vector2');
2526 this.addProperty(
'realworldtilesize', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2527 this.addInput(
'filtertype',
'string');
2528 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2529 this.addInput(
'framerange',
'string');
2530 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2531 this.addInput(
'frameoffset',
'integer');
2532 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2533 this.addInput(
'frameendaction',
'string');
2534 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2535 this.addOutput(
'out',
'color4');
2536 this.title =
'tiledimage_color4';
2537 this.desc =
"MaterialX:mtlx/texture2d/tiledimage_color4";
2538 this.onNodeCreated =
function() {
2541 this.onRemoved =
function() {
2544 this.onPropertyChanged =
function(name, value, prev_value) {
2545 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2547 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2548 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2550 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2551 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2553 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2554 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2556 this.bgcolor =
'#111';
2557 this.color =
'#222';
2558 this.shape = LiteGraph.ROUND_SHAPE;
2559 this.boxcolor =
'#69A';
2572 this.nodedef_icon =
'';
2574 this.nodedef_type =
'vector2';
2576 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledimage.html';
2577 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledimage_vector2_out_genglsl.png';
2578 this.nodedef_group =
'texture2d';
2579 this.addInput(
'file',
'filename');
2580 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2581 this.addInput(
'default',
'vector2');
2582 this.addProperty(
'default', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2583 this.addInput(
'texcoord',
'vector2');
2584 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
2585 this.addInput(
'uvtiling',
'vector2');
2586 this.addProperty(
'uvtiling', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2587 this.addInput(
'uvoffset',
'vector2');
2588 this.addProperty(
'uvoffset', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2589 this.addInput(
'realworldimagesize',
'vector2');
2590 this.addProperty(
'realworldimagesize', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2591 this.addInput(
'realworldtilesize',
'vector2');
2592 this.addProperty(
'realworldtilesize', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2593 this.addInput(
'filtertype',
'string');
2594 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2595 this.addInput(
'framerange',
'string');
2596 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2597 this.addInput(
'frameoffset',
'integer');
2598 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2599 this.addInput(
'frameendaction',
'string');
2600 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2601 this.addOutput(
'out',
'vector2');
2602 this.title =
'tiledimage_vector2';
2603 this.desc =
"MaterialX:mtlx/texture2d/tiledimage_vector2";
2604 this.onNodeCreated =
function() {
2607 this.onRemoved =
function() {
2610 this.onPropertyChanged =
function(name, value, prev_value) {
2611 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2613 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2614 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2616 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2617 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2619 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2620 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2622 this.bgcolor =
'#111';
2623 this.color =
'#222';
2624 this.shape = LiteGraph.ROUND_SHAPE;
2625 this.boxcolor =
'#265';
2638 this.nodedef_icon =
'';
2640 this.nodedef_type =
'vector3';
2642 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledimage.html';
2643 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledimage_vector3_out_genglsl.png';
2644 this.nodedef_group =
'texture2d';
2645 this.addInput(
'file',
'filename');
2646 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2647 this.addInput(
'default',
'vector3');
2648 this.addProperty(
'default', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2649 this.addInput(
'texcoord',
'vector2');
2650 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
2651 this.addInput(
'uvtiling',
'vector2');
2652 this.addProperty(
'uvtiling', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2653 this.addInput(
'uvoffset',
'vector2');
2654 this.addProperty(
'uvoffset', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2655 this.addInput(
'realworldimagesize',
'vector2');
2656 this.addProperty(
'realworldimagesize', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2657 this.addInput(
'realworldtilesize',
'vector2');
2658 this.addProperty(
'realworldtilesize', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2659 this.addInput(
'filtertype',
'string');
2660 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2661 this.addInput(
'framerange',
'string');
2662 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2663 this.addInput(
'frameoffset',
'integer');
2664 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2665 this.addInput(
'frameendaction',
'string');
2666 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2667 this.addOutput(
'out',
'vector3');
2668 this.title =
'tiledimage_vector3';
2669 this.desc =
"MaterialX:mtlx/texture2d/tiledimage_vector3";
2670 this.onNodeCreated =
function() {
2673 this.onRemoved =
function() {
2676 this.onPropertyChanged =
function(name, value, prev_value) {
2677 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2679 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2680 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2682 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2683 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2685 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2686 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2688 this.bgcolor =
'#111';
2689 this.color =
'#222';
2690 this.shape = LiteGraph.ROUND_SHAPE;
2691 this.boxcolor =
'#465';
2704 this.nodedef_icon =
'';
2706 this.nodedef_type =
'vector4';
2708 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledimage.html';
2709 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledimage_vector4_out_genglsl.png';
2710 this.nodedef_group =
'texture2d';
2711 this.addInput(
'file',
'filename');
2712 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2713 this.addInput(
'default',
'vector4');
2714 this.addProperty(
'default', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2715 this.addInput(
'texcoord',
'vector2');
2716 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
2717 this.addInput(
'uvtiling',
'vector2');
2718 this.addProperty(
'uvtiling', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2719 this.addInput(
'uvoffset',
'vector2');
2720 this.addProperty(
'uvoffset', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2721 this.addInput(
'realworldimagesize',
'vector2');
2722 this.addProperty(
'realworldimagesize', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2723 this.addInput(
'realworldtilesize',
'vector2');
2724 this.addProperty(
'realworldtilesize', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2725 this.addInput(
'filtertype',
'string');
2726 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2727 this.addInput(
'framerange',
'string');
2728 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2729 this.addInput(
'frameoffset',
'integer');
2730 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2731 this.addInput(
'frameendaction',
'string');
2732 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2733 this.addOutput(
'out',
'vector4');
2734 this.title =
'tiledimage_vector4';
2735 this.desc =
"MaterialX:mtlx/texture2d/tiledimage_vector4";
2736 this.onNodeCreated =
function() {
2739 this.onRemoved =
function() {
2742 this.onPropertyChanged =
function(name, value, prev_value) {
2743 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2745 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2746 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2748 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2749 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2751 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2752 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2754 this.bgcolor =
'#111';
2755 this.color =
'#222';
2756 this.shape = LiteGraph.ROUND_SHAPE;
2757 this.boxcolor =
'#275';
2770 this.nodedef_icon =
'';
2772 this.nodedef_type =
'float';
2774 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/triplanarprojection.html';
2775 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_triplanarprojection_float_out_genglsl.png';
2776 this.nodedef_group =
'texture3d';
2777 this.addInput(
'filex',
'filename');
2778 this.addProperty(
'filex',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2779 this.addInput(
'filey',
'filename');
2780 this.addProperty(
'filey',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2781 this.addInput(
'filez',
'filename');
2782 this.addProperty(
'filez',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2783 this.addInput(
'layerx',
'string');
2784 this.addProperty(
'layerx',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2785 this.addInput(
'layery',
'string');
2786 this.addProperty(
'layery',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2787 this.addInput(
'layerz',
'string');
2788 this.addProperty(
'layerz',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2789 this.addInput(
'default',
'float');
2790 this.addProperty(
'default', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2791 this.addInput(
'position',
'vector3');
2792 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
2793 this.addInput(
'normal',
'vector3');
2794 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nobject"});
2795 this.addInput(
'upaxis',
'integer');
2796 this.addProperty(
'upaxis', 2,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"X",
"Y",
"Z"],
"enumvalues":[
"0",
"1",
"2"]});
2797 this.addInput(
'blend',
'float');
2798 this.addProperty(
'blend', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
2799 this.addInput(
'filtertype',
'string');
2800 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2801 this.addInput(
'framerange',
'string');
2802 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2803 this.addInput(
'frameoffset',
'integer');
2804 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2805 this.addInput(
'frameendaction',
'string');
2806 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2807 this.addOutput(
'out',
'float');
2808 this.title =
'triplanarprojection_float';
2809 this.desc =
"MaterialX:mtlx/texture3d/triplanarprojection_float";
2810 this.onNodeCreated =
function() {
2813 this.onRemoved =
function() {
2816 this.onPropertyChanged =
function(name, value, prev_value) {
2817 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2819 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2820 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2822 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2823 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2825 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2826 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2828 this.bgcolor =
'#111';
2829 this.color =
'#222';
2830 this.shape = LiteGraph.ROUND_SHAPE;
2831 this.boxcolor =
'#161';
2844 this.nodedef_icon =
'';
2846 this.nodedef_type =
'color3';
2848 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/triplanarprojection.html';
2849 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_triplanarprojection_color3_out_genglsl.png';
2850 this.nodedef_group =
'texture3d';
2851 this.addInput(
'filex',
'filename');
2852 this.addProperty(
'filex',
'',
'filename',{
"colorspace":
"none",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2853 this.addInput(
'filey',
'filename');
2854 this.addProperty(
'filey',
'',
'filename',{
"colorspace":
"none",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2855 this.addInput(
'filez',
'filename');
2856 this.addProperty(
'filez',
'',
'filename',{
"colorspace":
"none",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2857 this.addInput(
'layerx',
'string');
2858 this.addProperty(
'layerx',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2859 this.addInput(
'layery',
'string');
2860 this.addProperty(
'layery',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2861 this.addInput(
'layerz',
'string');
2862 this.addProperty(
'layerz',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2863 this.addInput(
'default',
'color3');
2864 this.addProperty(
'default', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2865 this.addInput(
'position',
'vector3');
2866 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
2867 this.addInput(
'normal',
'vector3');
2868 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nobject"});
2869 this.addInput(
'upaxis',
'integer');
2870 this.addProperty(
'upaxis', 2,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"X",
"Y",
"Z"],
"enumvalues":[
"0",
"1",
"2"]});
2871 this.addInput(
'blend',
'float');
2872 this.addProperty(
'blend', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
2873 this.addInput(
'filtertype',
'string');
2874 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2875 this.addInput(
'framerange',
'string');
2876 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2877 this.addInput(
'frameoffset',
'integer');
2878 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2879 this.addInput(
'frameendaction',
'string');
2880 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2881 this.addOutput(
'out',
'color3');
2882 this.title =
'triplanarprojection_color3';
2883 this.desc =
"MaterialX:mtlx/texture3d/triplanarprojection_color3";
2884 this.onNodeCreated =
function() {
2887 this.onRemoved =
function() {
2890 this.onPropertyChanged =
function(name, value, prev_value) {
2891 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2893 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2894 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2896 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2897 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2899 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2900 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2902 this.bgcolor =
'#111';
2903 this.color =
'#222';
2904 this.shape = LiteGraph.ROUND_SHAPE;
2905 this.boxcolor =
'#37A';
2918 this.nodedef_icon =
'';
2920 this.nodedef_type =
'color4';
2922 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/triplanarprojection.html';
2923 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_triplanarprojection_color4_out_genglsl.png';
2924 this.nodedef_group =
'texture3d';
2925 this.addInput(
'filex',
'filename');
2926 this.addProperty(
'filex',
'',
'filename',{
"colorspace":
"none",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2927 this.addInput(
'filey',
'filename');
2928 this.addProperty(
'filey',
'',
'filename',{
"colorspace":
"none",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2929 this.addInput(
'filez',
'filename');
2930 this.addProperty(
'filez',
'',
'filename',{
"colorspace":
"none",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2931 this.addInput(
'layerx',
'string');
2932 this.addProperty(
'layerx',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2933 this.addInput(
'layery',
'string');
2934 this.addProperty(
'layery',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2935 this.addInput(
'layerz',
'string');
2936 this.addProperty(
'layerz',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2937 this.addInput(
'default',
'color4');
2938 this.addProperty(
'default', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2939 this.addInput(
'position',
'vector3');
2940 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
2941 this.addInput(
'normal',
'vector3');
2942 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nobject"});
2943 this.addInput(
'upaxis',
'integer');
2944 this.addProperty(
'upaxis', 2,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"X",
"Y",
"Z"],
"enumvalues":[
"0",
"1",
"2"]});
2945 this.addInput(
'blend',
'float');
2946 this.addProperty(
'blend', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
2947 this.addInput(
'filtertype',
'string');
2948 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
2949 this.addInput(
'framerange',
'string');
2950 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2951 this.addInput(
'frameoffset',
'integer');
2952 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
2953 this.addInput(
'frameendaction',
'string');
2954 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
2955 this.addOutput(
'out',
'color4');
2956 this.title =
'triplanarprojection_color4';
2957 this.desc =
"MaterialX:mtlx/texture3d/triplanarprojection_color4";
2958 this.onNodeCreated =
function() {
2961 this.onRemoved =
function() {
2964 this.onPropertyChanged =
function(name, value, prev_value) {
2965 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
2967 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
2968 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
2970 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
2971 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
2973 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
2974 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
2976 this.bgcolor =
'#111';
2977 this.color =
'#222';
2978 this.shape = LiteGraph.ROUND_SHAPE;
2979 this.boxcolor =
'#69A';
2992 this.nodedef_icon =
'';
2994 this.nodedef_type =
'vector2';
2996 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/triplanarprojection.html';
2997 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_triplanarprojection_vector2_out_genglsl.png';
2998 this.nodedef_group =
'texture3d';
2999 this.addInput(
'filex',
'filename');
3000 this.addProperty(
'filex',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3001 this.addInput(
'filey',
'filename');
3002 this.addProperty(
'filey',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3003 this.addInput(
'filez',
'filename');
3004 this.addProperty(
'filez',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3005 this.addInput(
'layerx',
'string');
3006 this.addProperty(
'layerx',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3007 this.addInput(
'layery',
'string');
3008 this.addProperty(
'layery',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3009 this.addInput(
'layerz',
'string');
3010 this.addProperty(
'layerz',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3011 this.addInput(
'default',
'vector2');
3012 this.addProperty(
'default', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3013 this.addInput(
'position',
'vector3');
3014 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
3015 this.addInput(
'normal',
'vector3');
3016 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nobject"});
3017 this.addInput(
'upaxis',
'integer');
3018 this.addProperty(
'upaxis', 2,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"X",
"Y",
"Z"],
"enumvalues":[
"0",
"1",
"2"]});
3019 this.addInput(
'blend',
'float');
3020 this.addProperty(
'blend', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
3021 this.addInput(
'filtertype',
'string');
3022 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
3023 this.addInput(
'framerange',
'string');
3024 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3025 this.addInput(
'frameoffset',
'integer');
3026 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3027 this.addInput(
'frameendaction',
'string');
3028 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
3029 this.addOutput(
'out',
'vector2');
3030 this.title =
'triplanarprojection_vector2';
3031 this.desc =
"MaterialX:mtlx/texture3d/triplanarprojection_vector2";
3032 this.onNodeCreated =
function() {
3035 this.onRemoved =
function() {
3038 this.onPropertyChanged =
function(name, value, prev_value) {
3039 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3041 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3042 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3044 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3045 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3047 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3048 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3050 this.bgcolor =
'#111';
3051 this.color =
'#222';
3052 this.shape = LiteGraph.ROUND_SHAPE;
3053 this.boxcolor =
'#265';
3066 this.nodedef_icon =
'';
3068 this.nodedef_type =
'vector3';
3070 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/triplanarprojection.html';
3071 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_triplanarprojection_vector3_out_genglsl.png';
3072 this.nodedef_group =
'texture3d';
3073 this.addInput(
'filex',
'filename');
3074 this.addProperty(
'filex',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3075 this.addInput(
'filey',
'filename');
3076 this.addProperty(
'filey',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3077 this.addInput(
'filez',
'filename');
3078 this.addProperty(
'filez',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3079 this.addInput(
'layerx',
'string');
3080 this.addProperty(
'layerx',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3081 this.addInput(
'layery',
'string');
3082 this.addProperty(
'layery',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3083 this.addInput(
'layerz',
'string');
3084 this.addProperty(
'layerz',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3085 this.addInput(
'default',
'vector3');
3086 this.addProperty(
'default', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3087 this.addInput(
'position',
'vector3');
3088 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
3089 this.addInput(
'normal',
'vector3');
3090 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nobject"});
3091 this.addInput(
'upaxis',
'integer');
3092 this.addProperty(
'upaxis', 2,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"X",
"Y",
"Z"],
"enumvalues":[
"0",
"1",
"2"]});
3093 this.addInput(
'blend',
'float');
3094 this.addProperty(
'blend', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
3095 this.addInput(
'filtertype',
'string');
3096 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
3097 this.addInput(
'framerange',
'string');
3098 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3099 this.addInput(
'frameoffset',
'integer');
3100 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3101 this.addInput(
'frameendaction',
'string');
3102 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
3103 this.addOutput(
'out',
'vector3');
3104 this.title =
'triplanarprojection_vector3';
3105 this.desc =
"MaterialX:mtlx/texture3d/triplanarprojection_vector3";
3106 this.onNodeCreated =
function() {
3109 this.onRemoved =
function() {
3112 this.onPropertyChanged =
function(name, value, prev_value) {
3113 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3115 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3116 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3118 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3119 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3121 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3122 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3124 this.bgcolor =
'#111';
3125 this.color =
'#222';
3126 this.shape = LiteGraph.ROUND_SHAPE;
3127 this.boxcolor =
'#465';
3140 this.nodedef_icon =
'';
3142 this.nodedef_type =
'vector4';
3144 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/triplanarprojection.html';
3145 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_triplanarprojection_vector4_out_genglsl.png';
3146 this.nodedef_group =
'texture3d';
3147 this.addInput(
'filex',
'filename');
3148 this.addProperty(
'filex',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3149 this.addInput(
'filey',
'filename');
3150 this.addProperty(
'filey',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3151 this.addInput(
'filez',
'filename');
3152 this.addProperty(
'filez',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3153 this.addInput(
'layerx',
'string');
3154 this.addProperty(
'layerx',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3155 this.addInput(
'layery',
'string');
3156 this.addProperty(
'layery',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3157 this.addInput(
'layerz',
'string');
3158 this.addProperty(
'layerz',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3159 this.addInput(
'default',
'vector4');
3160 this.addProperty(
'default', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3161 this.addInput(
'position',
'vector3');
3162 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
3163 this.addInput(
'normal',
'vector3');
3164 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nobject"});
3165 this.addInput(
'upaxis',
'integer');
3166 this.addProperty(
'upaxis', 2,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"X",
"Y",
"Z"],
"enumvalues":[
"0",
"1",
"2"]});
3167 this.addInput(
'blend',
'float');
3168 this.addProperty(
'blend', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
3169 this.addInput(
'filtertype',
'string');
3170 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
3171 this.addInput(
'framerange',
'string');
3172 this.addProperty(
'framerange',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3173 this.addInput(
'frameoffset',
'integer');
3174 this.addProperty(
'frameoffset', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3175 this.addInput(
'frameendaction',
'string');
3176 this.addProperty(
'frameendaction',
'constant',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
3177 this.addOutput(
'out',
'vector4');
3178 this.title =
'triplanarprojection_vector4';
3179 this.desc =
"MaterialX:mtlx/texture3d/triplanarprojection_vector4";
3180 this.onNodeCreated =
function() {
3183 this.onRemoved =
function() {
3186 this.onPropertyChanged =
function(name, value, prev_value) {
3187 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3189 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3190 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3192 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3193 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3195 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3196 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3198 this.bgcolor =
'#111';
3199 this.color =
'#222';
3200 this.shape = LiteGraph.ROUND_SHAPE;
3201 this.boxcolor =
'#275';
3214 this.nodedef_icon =
'';
3216 this.nodedef_type =
'float';
3218 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3219 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_float_out_genglsl.png';
3220 this.nodedef_group =
'procedural';
3221 this.addInput(
'value',
'float');
3222 this.addProperty(
'value', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3223 this.addOutput(
'out',
'float');
3224 this.title =
'constant_float';
3225 this.desc =
"MaterialX:mtlx/procedural/constant_float";
3226 this.onNodeCreated =
function() {
3229 this.onRemoved =
function() {
3232 this.onPropertyChanged =
function(name, value, prev_value) {
3233 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3235 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3236 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3238 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3239 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3241 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3242 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3244 this.bgcolor =
'#111';
3245 this.color =
'#222';
3246 this.shape = LiteGraph.ROUND_SHAPE;
3247 this.boxcolor =
'#161';
3260 this.nodedef_icon =
'';
3262 this.nodedef_type =
'color3';
3264 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3265 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_color3_out_genglsl.png';
3266 this.nodedef_group =
'procedural';
3267 this.addInput(
'value',
'color3');
3268 this.addProperty(
'value', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3269 this.addOutput(
'out',
'color3');
3270 this.title =
'constant_color3';
3271 this.desc =
"MaterialX:mtlx/procedural/constant_color3";
3272 this.onNodeCreated =
function() {
3275 this.onRemoved =
function() {
3278 this.onPropertyChanged =
function(name, value, prev_value) {
3279 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3281 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3282 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3284 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3285 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3287 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3288 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3290 this.bgcolor =
'#111';
3291 this.color =
'#222';
3292 this.shape = LiteGraph.ROUND_SHAPE;
3293 this.boxcolor =
'#37A';
3306 this.nodedef_icon =
'';
3308 this.nodedef_type =
'color4';
3310 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3311 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_color4_out_genglsl.png';
3312 this.nodedef_group =
'procedural';
3313 this.addInput(
'value',
'color4');
3314 this.addProperty(
'value', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3315 this.addOutput(
'out',
'color4');
3316 this.title =
'constant_color4';
3317 this.desc =
"MaterialX:mtlx/procedural/constant_color4";
3318 this.onNodeCreated =
function() {
3321 this.onRemoved =
function() {
3324 this.onPropertyChanged =
function(name, value, prev_value) {
3325 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3327 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3328 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3330 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3331 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3333 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3334 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3336 this.bgcolor =
'#111';
3337 this.color =
'#222';
3338 this.shape = LiteGraph.ROUND_SHAPE;
3339 this.boxcolor =
'#69A';
3352 this.nodedef_icon =
'';
3354 this.nodedef_type =
'vector2';
3356 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3357 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_vector2_out_genglsl.png';
3358 this.nodedef_group =
'procedural';
3359 this.addInput(
'value',
'vector2');
3360 this.addProperty(
'value', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3361 this.addOutput(
'out',
'vector2');
3362 this.title =
'constant_vector2';
3363 this.desc =
"MaterialX:mtlx/procedural/constant_vector2";
3364 this.onNodeCreated =
function() {
3367 this.onRemoved =
function() {
3370 this.onPropertyChanged =
function(name, value, prev_value) {
3371 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3373 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3374 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3376 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3377 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3379 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3380 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3382 this.bgcolor =
'#111';
3383 this.color =
'#222';
3384 this.shape = LiteGraph.ROUND_SHAPE;
3385 this.boxcolor =
'#265';
3398 this.nodedef_icon =
'';
3400 this.nodedef_type =
'vector3';
3402 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3403 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_vector3_out_genglsl.png';
3404 this.nodedef_group =
'procedural';
3405 this.addInput(
'value',
'vector3');
3406 this.addProperty(
'value', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3407 this.addOutput(
'out',
'vector3');
3408 this.title =
'constant_vector3';
3409 this.desc =
"MaterialX:mtlx/procedural/constant_vector3";
3410 this.onNodeCreated =
function() {
3413 this.onRemoved =
function() {
3416 this.onPropertyChanged =
function(name, value, prev_value) {
3417 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3419 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3420 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3422 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3423 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3425 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3426 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3428 this.bgcolor =
'#111';
3429 this.color =
'#222';
3430 this.shape = LiteGraph.ROUND_SHAPE;
3431 this.boxcolor =
'#465';
3444 this.nodedef_icon =
'';
3446 this.nodedef_type =
'vector4';
3448 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3449 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_vector4_out_genglsl.png';
3450 this.nodedef_group =
'procedural';
3451 this.addInput(
'value',
'vector4');
3452 this.addProperty(
'value', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3453 this.addOutput(
'out',
'vector4');
3454 this.title =
'constant_vector4';
3455 this.desc =
"MaterialX:mtlx/procedural/constant_vector4";
3456 this.onNodeCreated =
function() {
3459 this.onRemoved =
function() {
3462 this.onPropertyChanged =
function(name, value, prev_value) {
3463 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3465 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3466 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3468 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3469 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3471 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3472 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3474 this.bgcolor =
'#111';
3475 this.color =
'#222';
3476 this.shape = LiteGraph.ROUND_SHAPE;
3477 this.boxcolor =
'#275';
3490 this.nodedef_icon =
'';
3492 this.nodedef_type =
'boolean';
3494 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3495 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_boolean_out_genglsl.png';
3496 this.nodedef_group =
'procedural';
3497 this.addInput(
'value',
'boolean');
3498 this.addProperty(
'value',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3499 this.addOutput(
'out',
'boolean');
3500 this.title =
'constant_boolean';
3501 this.desc =
"MaterialX:mtlx/procedural/constant_boolean";
3502 this.onNodeCreated =
function() {
3505 this.onRemoved =
function() {
3508 this.onPropertyChanged =
function(name, value, prev_value) {
3509 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3511 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3512 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3514 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3515 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3517 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3518 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3520 this.bgcolor =
'#111';
3521 this.color =
'#222';
3522 this.shape = LiteGraph.ROUND_SHAPE;
3523 this.boxcolor =
'#060';
3536 this.nodedef_icon =
'';
3538 this.nodedef_type =
'integer';
3540 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3541 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_integer_out_genglsl.png';
3542 this.nodedef_group =
'procedural';
3543 this.addInput(
'value',
'integer');
3544 this.addProperty(
'value', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3545 this.addOutput(
'out',
'integer');
3546 this.title =
'constant_integer';
3547 this.desc =
"MaterialX:mtlx/procedural/constant_integer";
3548 this.onNodeCreated =
function() {
3551 this.onRemoved =
function() {
3554 this.onPropertyChanged =
function(name, value, prev_value) {
3555 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3557 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3558 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3560 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3561 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3563 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3564 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3566 this.bgcolor =
'#111';
3567 this.color =
'#222';
3568 this.shape = LiteGraph.ROUND_SHAPE;
3569 this.boxcolor =
'#A32';
3582 this.nodedef_icon =
'';
3584 this.nodedef_type =
'matrix33';
3586 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3587 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_matrix33_out_genglsl.png';
3588 this.nodedef_group =
'procedural';
3589 this.addInput(
'value',
'matrix33');
3590 this.addProperty(
'value', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3591 this.addOutput(
'out',
'matrix33');
3592 this.title =
'constant_matrix33';
3593 this.desc =
"MaterialX:mtlx/procedural/constant_matrix33";
3594 this.onNodeCreated =
function() {
3597 this.onRemoved =
function() {
3600 this.onPropertyChanged =
function(name, value, prev_value) {
3601 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3603 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3604 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3606 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3607 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3609 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3610 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3612 this.bgcolor =
'#111';
3613 this.color =
'#222';
3614 this.shape = LiteGraph.ROUND_SHAPE;
3615 this.boxcolor =
'#333';
3628 this.nodedef_icon =
'';
3630 this.nodedef_type =
'matrix44';
3632 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3633 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_matrix44_out_genglsl.png';
3634 this.nodedef_group =
'procedural';
3635 this.addInput(
'value',
'matrix44');
3636 this.addProperty(
'value', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3637 this.addOutput(
'out',
'matrix44');
3638 this.title =
'constant_matrix44';
3639 this.desc =
"MaterialX:mtlx/procedural/constant_matrix44";
3640 this.onNodeCreated =
function() {
3643 this.onRemoved =
function() {
3646 this.onPropertyChanged =
function(name, value, prev_value) {
3647 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3649 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3650 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3652 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3653 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3655 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3656 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3658 this.bgcolor =
'#111';
3659 this.color =
'#222';
3660 this.shape = LiteGraph.ROUND_SHAPE;
3661 this.boxcolor =
'#444';
3674 this.nodedef_icon =
'';
3676 this.nodedef_type =
'string';
3678 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3679 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_string_out_genglsl.png';
3680 this.nodedef_group =
'procedural';
3681 this.addInput(
'value',
'string');
3682 this.addProperty(
'value',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3683 this.addOutput(
'out',
'string');
3684 this.title =
'constant_string';
3685 this.desc =
"MaterialX:mtlx/procedural/constant_string";
3686 this.onNodeCreated =
function() {
3689 this.onRemoved =
function() {
3692 this.onPropertyChanged =
function(name, value, prev_value) {
3693 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3695 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3696 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3698 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3699 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3701 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3702 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3704 this.bgcolor =
'#111';
3705 this.color =
'#222';
3706 this.shape = LiteGraph.ROUND_SHAPE;
3707 this.boxcolor =
'#395';
3720 this.nodedef_icon =
'';
3722 this.nodedef_type =
'filename';
3724 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/constant.html';
3725 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_constant_filename_out_genglsl.png';
3726 this.nodedef_group =
'procedural';
3727 this.addInput(
'value',
'filename');
3728 this.addProperty(
'value',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3729 this.addOutput(
'out',
'filename');
3730 this.title =
'constant_filename';
3731 this.desc =
"MaterialX:mtlx/procedural/constant_filename";
3732 this.onNodeCreated =
function() {
3735 this.onRemoved =
function() {
3738 this.onPropertyChanged =
function(name, value, prev_value) {
3739 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3741 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3742 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3744 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3745 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3747 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3748 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3750 this.bgcolor =
'#111';
3751 this.color =
'#222';
3752 this.shape = LiteGraph.ROUND_SHAPE;
3753 this.boxcolor =
'#888';
3766 this.nodedef_icon =
'';
3768 this.nodedef_type =
'float';
3770 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramplr.html';
3771 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramplr_float_out_genglsl.png';
3772 this.nodedef_group =
'procedural2d';
3773 this.addInput(
'valuel',
'float');
3774 this.addProperty(
'valuel', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3775 this.addInput(
'valuer',
'float');
3776 this.addProperty(
'valuer', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3777 this.addInput(
'texcoord',
'vector2');
3778 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
3779 this.addOutput(
'out',
'float');
3780 this.title =
'ramplr_float';
3781 this.desc =
"MaterialX:mtlx/procedural2d/ramplr_float";
3782 this.onNodeCreated =
function() {
3785 this.onRemoved =
function() {
3788 this.onPropertyChanged =
function(name, value, prev_value) {
3789 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3791 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3792 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3794 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3795 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3797 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3798 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3800 this.bgcolor =
'#111';
3801 this.color =
'#222';
3802 this.shape = LiteGraph.ROUND_SHAPE;
3803 this.boxcolor =
'#161';
3816 this.nodedef_icon =
'';
3818 this.nodedef_type =
'color3';
3820 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramplr.html';
3821 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramplr_color3_out_genglsl.png';
3822 this.nodedef_group =
'procedural2d';
3823 this.addInput(
'valuel',
'color3');
3824 this.addProperty(
'valuel', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3825 this.addInput(
'valuer',
'color3');
3826 this.addProperty(
'valuer', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3827 this.addInput(
'texcoord',
'vector2');
3828 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
3829 this.addOutput(
'out',
'color3');
3830 this.title =
'ramplr_color3';
3831 this.desc =
"MaterialX:mtlx/procedural2d/ramplr_color3";
3832 this.onNodeCreated =
function() {
3835 this.onRemoved =
function() {
3838 this.onPropertyChanged =
function(name, value, prev_value) {
3839 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3841 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3842 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3844 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3845 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3847 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3848 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3850 this.bgcolor =
'#111';
3851 this.color =
'#222';
3852 this.shape = LiteGraph.ROUND_SHAPE;
3853 this.boxcolor =
'#37A';
3866 this.nodedef_icon =
'';
3868 this.nodedef_type =
'color4';
3870 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramplr.html';
3871 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramplr_color4_out_genglsl.png';
3872 this.nodedef_group =
'procedural2d';
3873 this.addInput(
'valuel',
'color4');
3874 this.addProperty(
'valuel', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3875 this.addInput(
'valuer',
'color4');
3876 this.addProperty(
'valuer', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3877 this.addInput(
'texcoord',
'vector2');
3878 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
3879 this.addOutput(
'out',
'color4');
3880 this.title =
'ramplr_color4';
3881 this.desc =
"MaterialX:mtlx/procedural2d/ramplr_color4";
3882 this.onNodeCreated =
function() {
3885 this.onRemoved =
function() {
3888 this.onPropertyChanged =
function(name, value, prev_value) {
3889 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3891 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3892 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3894 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3895 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3897 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3898 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3900 this.bgcolor =
'#111';
3901 this.color =
'#222';
3902 this.shape = LiteGraph.ROUND_SHAPE;
3903 this.boxcolor =
'#69A';
3916 this.nodedef_icon =
'';
3918 this.nodedef_type =
'vector2';
3920 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramplr.html';
3921 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramplr_vector2_out_genglsl.png';
3922 this.nodedef_group =
'procedural2d';
3923 this.addInput(
'valuel',
'vector2');
3924 this.addProperty(
'valuel', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3925 this.addInput(
'valuer',
'vector2');
3926 this.addProperty(
'valuer', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3927 this.addInput(
'texcoord',
'vector2');
3928 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
3929 this.addOutput(
'out',
'vector2');
3930 this.title =
'ramplr_vector2';
3931 this.desc =
"MaterialX:mtlx/procedural2d/ramplr_vector2";
3932 this.onNodeCreated =
function() {
3935 this.onRemoved =
function() {
3938 this.onPropertyChanged =
function(name, value, prev_value) {
3939 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3941 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3942 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3944 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3945 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3947 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3948 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
3950 this.bgcolor =
'#111';
3951 this.color =
'#222';
3952 this.shape = LiteGraph.ROUND_SHAPE;
3953 this.boxcolor =
'#265';
3966 this.nodedef_icon =
'';
3968 this.nodedef_type =
'vector3';
3970 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramplr.html';
3971 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramplr_vector3_out_genglsl.png';
3972 this.nodedef_group =
'procedural2d';
3973 this.addInput(
'valuel',
'vector3');
3974 this.addProperty(
'valuel', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3975 this.addInput(
'valuer',
'vector3');
3976 this.addProperty(
'valuer', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
3977 this.addInput(
'texcoord',
'vector2');
3978 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
3979 this.addOutput(
'out',
'vector3');
3980 this.title =
'ramplr_vector3';
3981 this.desc =
"MaterialX:mtlx/procedural2d/ramplr_vector3";
3982 this.onNodeCreated =
function() {
3985 this.onRemoved =
function() {
3988 this.onPropertyChanged =
function(name, value, prev_value) {
3989 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
3991 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
3992 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
3994 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
3995 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
3997 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
3998 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4000 this.bgcolor =
'#111';
4001 this.color =
'#222';
4002 this.shape = LiteGraph.ROUND_SHAPE;
4003 this.boxcolor =
'#465';
4016 this.nodedef_icon =
'';
4018 this.nodedef_type =
'vector4';
4020 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramplr.html';
4021 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramplr_vector4_out_genglsl.png';
4022 this.nodedef_group =
'procedural2d';
4023 this.addInput(
'valuel',
'vector4');
4024 this.addProperty(
'valuel', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4025 this.addInput(
'valuer',
'vector4');
4026 this.addProperty(
'valuer', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4027 this.addInput(
'texcoord',
'vector2');
4028 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4029 this.addOutput(
'out',
'vector4');
4030 this.title =
'ramplr_vector4';
4031 this.desc =
"MaterialX:mtlx/procedural2d/ramplr_vector4";
4032 this.onNodeCreated =
function() {
4035 this.onRemoved =
function() {
4038 this.onPropertyChanged =
function(name, value, prev_value) {
4039 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4041 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4042 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4044 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4045 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4047 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4048 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4050 this.bgcolor =
'#111';
4051 this.color =
'#222';
4052 this.shape = LiteGraph.ROUND_SHAPE;
4053 this.boxcolor =
'#275';
4066 this.nodedef_icon =
'';
4068 this.nodedef_type =
'float';
4070 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramptb.html';
4071 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramptb_float_out_genglsl.png';
4072 this.nodedef_group =
'procedural2d';
4073 this.addInput(
'valuet',
'float');
4074 this.addProperty(
'valuet', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4075 this.addInput(
'valueb',
'float');
4076 this.addProperty(
'valueb', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4077 this.addInput(
'texcoord',
'vector2');
4078 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4079 this.addOutput(
'out',
'float');
4080 this.title =
'ramptb_float';
4081 this.desc =
"MaterialX:mtlx/procedural2d/ramptb_float";
4082 this.onNodeCreated =
function() {
4085 this.onRemoved =
function() {
4088 this.onPropertyChanged =
function(name, value, prev_value) {
4089 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4091 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4092 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4094 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4095 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4097 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4098 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4100 this.bgcolor =
'#111';
4101 this.color =
'#222';
4102 this.shape = LiteGraph.ROUND_SHAPE;
4103 this.boxcolor =
'#161';
4116 this.nodedef_icon =
'';
4118 this.nodedef_type =
'color3';
4120 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramptb.html';
4121 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramptb_color3_out_genglsl.png';
4122 this.nodedef_group =
'procedural2d';
4123 this.addInput(
'valuet',
'color3');
4124 this.addProperty(
'valuet', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4125 this.addInput(
'valueb',
'color3');
4126 this.addProperty(
'valueb', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4127 this.addInput(
'texcoord',
'vector2');
4128 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4129 this.addOutput(
'out',
'color3');
4130 this.title =
'ramptb_color3';
4131 this.desc =
"MaterialX:mtlx/procedural2d/ramptb_color3";
4132 this.onNodeCreated =
function() {
4135 this.onRemoved =
function() {
4138 this.onPropertyChanged =
function(name, value, prev_value) {
4139 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4141 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4142 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4144 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4145 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4147 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4148 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4150 this.bgcolor =
'#111';
4151 this.color =
'#222';
4152 this.shape = LiteGraph.ROUND_SHAPE;
4153 this.boxcolor =
'#37A';
4166 this.nodedef_icon =
'';
4168 this.nodedef_type =
'color4';
4170 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramptb.html';
4171 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramptb_color4_out_genglsl.png';
4172 this.nodedef_group =
'procedural2d';
4173 this.addInput(
'valuet',
'color4');
4174 this.addProperty(
'valuet', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4175 this.addInput(
'valueb',
'color4');
4176 this.addProperty(
'valueb', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4177 this.addInput(
'texcoord',
'vector2');
4178 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4179 this.addOutput(
'out',
'color4');
4180 this.title =
'ramptb_color4';
4181 this.desc =
"MaterialX:mtlx/procedural2d/ramptb_color4";
4182 this.onNodeCreated =
function() {
4185 this.onRemoved =
function() {
4188 this.onPropertyChanged =
function(name, value, prev_value) {
4189 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4191 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4192 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4194 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4195 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4197 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4198 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4200 this.bgcolor =
'#111';
4201 this.color =
'#222';
4202 this.shape = LiteGraph.ROUND_SHAPE;
4203 this.boxcolor =
'#69A';
4216 this.nodedef_icon =
'';
4218 this.nodedef_type =
'vector2';
4220 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramptb.html';
4221 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramptb_vector2_out_genglsl.png';
4222 this.nodedef_group =
'procedural2d';
4223 this.addInput(
'valuet',
'vector2');
4224 this.addProperty(
'valuet', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4225 this.addInput(
'valueb',
'vector2');
4226 this.addProperty(
'valueb', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4227 this.addInput(
'texcoord',
'vector2');
4228 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4229 this.addOutput(
'out',
'vector2');
4230 this.title =
'ramptb_vector2';
4231 this.desc =
"MaterialX:mtlx/procedural2d/ramptb_vector2";
4232 this.onNodeCreated =
function() {
4235 this.onRemoved =
function() {
4238 this.onPropertyChanged =
function(name, value, prev_value) {
4239 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4241 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4242 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4244 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4245 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4247 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4248 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4250 this.bgcolor =
'#111';
4251 this.color =
'#222';
4252 this.shape = LiteGraph.ROUND_SHAPE;
4253 this.boxcolor =
'#265';
4266 this.nodedef_icon =
'';
4268 this.nodedef_type =
'vector3';
4270 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramptb.html';
4271 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramptb_vector3_out_genglsl.png';
4272 this.nodedef_group =
'procedural2d';
4273 this.addInput(
'valuet',
'vector3');
4274 this.addProperty(
'valuet', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4275 this.addInput(
'valueb',
'vector3');
4276 this.addProperty(
'valueb', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4277 this.addInput(
'texcoord',
'vector2');
4278 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4279 this.addOutput(
'out',
'vector3');
4280 this.title =
'ramptb_vector3';
4281 this.desc =
"MaterialX:mtlx/procedural2d/ramptb_vector3";
4282 this.onNodeCreated =
function() {
4285 this.onRemoved =
function() {
4288 this.onPropertyChanged =
function(name, value, prev_value) {
4289 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4291 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4292 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4294 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4295 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4297 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4298 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4300 this.bgcolor =
'#111';
4301 this.color =
'#222';
4302 this.shape = LiteGraph.ROUND_SHAPE;
4303 this.boxcolor =
'#465';
4316 this.nodedef_icon =
'';
4318 this.nodedef_type =
'vector4';
4320 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramptb.html';
4321 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramptb_vector4_out_genglsl.png';
4322 this.nodedef_group =
'procedural2d';
4323 this.addInput(
'valuet',
'vector4');
4324 this.addProperty(
'valuet', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4325 this.addInput(
'valueb',
'vector4');
4326 this.addProperty(
'valueb', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4327 this.addInput(
'texcoord',
'vector2');
4328 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4329 this.addOutput(
'out',
'vector4');
4330 this.title =
'ramptb_vector4';
4331 this.desc =
"MaterialX:mtlx/procedural2d/ramptb_vector4";
4332 this.onNodeCreated =
function() {
4335 this.onRemoved =
function() {
4338 this.onPropertyChanged =
function(name, value, prev_value) {
4339 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4341 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4342 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4344 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4345 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4347 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4348 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4350 this.bgcolor =
'#111';
4351 this.color =
'#222';
4352 this.shape = LiteGraph.ROUND_SHAPE;
4353 this.boxcolor =
'#275';
4366 this.nodedef_icon =
'';
4368 this.nodedef_type =
'float';
4370 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramp4.html';
4371 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramp4_float_out_genglsl.png';
4372 this.nodedef_group =
'procedural2d';
4373 this.addInput(
'valuetl',
'float');
4374 this.addProperty(
'valuetl', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4375 this.addInput(
'valuetr',
'float');
4376 this.addProperty(
'valuetr', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4377 this.addInput(
'valuebl',
'float');
4378 this.addProperty(
'valuebl', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4379 this.addInput(
'valuebr',
'float');
4380 this.addProperty(
'valuebr', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4381 this.addInput(
'texcoord',
'vector2');
4382 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4383 this.addOutput(
'out',
'float');
4384 this.title =
'ramp4_float';
4385 this.desc =
"MaterialX:mtlx/procedural2d/ramp4_float";
4386 this.onNodeCreated =
function() {
4389 this.onRemoved =
function() {
4392 this.onPropertyChanged =
function(name, value, prev_value) {
4393 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4395 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4396 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4398 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4399 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4401 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4402 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4404 this.bgcolor =
'#111';
4405 this.color =
'#222';
4406 this.shape = LiteGraph.ROUND_SHAPE;
4407 this.boxcolor =
'#161';
4420 this.nodedef_icon =
'';
4422 this.nodedef_type =
'color3';
4424 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramp4.html';
4425 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramp4_color3_out_genglsl.png';
4426 this.nodedef_group =
'procedural2d';
4427 this.addInput(
'valuetl',
'color3');
4428 this.addProperty(
'valuetl', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4429 this.addInput(
'valuetr',
'color3');
4430 this.addProperty(
'valuetr', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4431 this.addInput(
'valuebl',
'color3');
4432 this.addProperty(
'valuebl', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4433 this.addInput(
'valuebr',
'color3');
4434 this.addProperty(
'valuebr', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4435 this.addInput(
'texcoord',
'vector2');
4436 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4437 this.addOutput(
'out',
'color3');
4438 this.title =
'ramp4_color3';
4439 this.desc =
"MaterialX:mtlx/procedural2d/ramp4_color3";
4440 this.onNodeCreated =
function() {
4443 this.onRemoved =
function() {
4446 this.onPropertyChanged =
function(name, value, prev_value) {
4447 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4449 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4450 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4452 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4453 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4455 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4456 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4458 this.bgcolor =
'#111';
4459 this.color =
'#222';
4460 this.shape = LiteGraph.ROUND_SHAPE;
4461 this.boxcolor =
'#37A';
4474 this.nodedef_icon =
'';
4476 this.nodedef_type =
'color4';
4478 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramp4.html';
4479 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramp4_color4_out_genglsl.png';
4480 this.nodedef_group =
'procedural2d';
4481 this.addInput(
'valuetl',
'color4');
4482 this.addProperty(
'valuetl', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4483 this.addInput(
'valuetr',
'color4');
4484 this.addProperty(
'valuetr', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4485 this.addInput(
'valuebl',
'color4');
4486 this.addProperty(
'valuebl', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4487 this.addInput(
'valuebr',
'color4');
4488 this.addProperty(
'valuebr', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4489 this.addInput(
'texcoord',
'vector2');
4490 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4491 this.addOutput(
'out',
'color4');
4492 this.title =
'ramp4_color4';
4493 this.desc =
"MaterialX:mtlx/procedural2d/ramp4_color4";
4494 this.onNodeCreated =
function() {
4497 this.onRemoved =
function() {
4500 this.onPropertyChanged =
function(name, value, prev_value) {
4501 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4503 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4504 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4506 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4507 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4509 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4510 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4512 this.bgcolor =
'#111';
4513 this.color =
'#222';
4514 this.shape = LiteGraph.ROUND_SHAPE;
4515 this.boxcolor =
'#69A';
4528 this.nodedef_icon =
'';
4530 this.nodedef_type =
'vector2';
4532 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramp4.html';
4533 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramp4_vector2_out_genglsl.png';
4534 this.nodedef_group =
'procedural2d';
4535 this.addInput(
'valuetl',
'vector2');
4536 this.addProperty(
'valuetl', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4537 this.addInput(
'valuetr',
'vector2');
4538 this.addProperty(
'valuetr', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4539 this.addInput(
'valuebl',
'vector2');
4540 this.addProperty(
'valuebl', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4541 this.addInput(
'valuebr',
'vector2');
4542 this.addProperty(
'valuebr', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4543 this.addInput(
'texcoord',
'vector2');
4544 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4545 this.addOutput(
'out',
'vector2');
4546 this.title =
'ramp4_vector2';
4547 this.desc =
"MaterialX:mtlx/procedural2d/ramp4_vector2";
4548 this.onNodeCreated =
function() {
4551 this.onRemoved =
function() {
4554 this.onPropertyChanged =
function(name, value, prev_value) {
4555 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4557 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4558 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4560 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4561 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4563 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4564 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4566 this.bgcolor =
'#111';
4567 this.color =
'#222';
4568 this.shape = LiteGraph.ROUND_SHAPE;
4569 this.boxcolor =
'#265';
4582 this.nodedef_icon =
'';
4584 this.nodedef_type =
'vector3';
4586 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramp4.html';
4587 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramp4_vector3_out_genglsl.png';
4588 this.nodedef_group =
'procedural2d';
4589 this.addInput(
'valuetl',
'vector3');
4590 this.addProperty(
'valuetl', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4591 this.addInput(
'valuetr',
'vector3');
4592 this.addProperty(
'valuetr', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4593 this.addInput(
'valuebl',
'vector3');
4594 this.addProperty(
'valuebl', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4595 this.addInput(
'valuebr',
'vector3');
4596 this.addProperty(
'valuebr', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4597 this.addInput(
'texcoord',
'vector2');
4598 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4599 this.addOutput(
'out',
'vector3');
4600 this.title =
'ramp4_vector3';
4601 this.desc =
"MaterialX:mtlx/procedural2d/ramp4_vector3";
4602 this.onNodeCreated =
function() {
4605 this.onRemoved =
function() {
4608 this.onPropertyChanged =
function(name, value, prev_value) {
4609 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4611 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4612 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4614 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4615 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4617 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4618 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4620 this.bgcolor =
'#111';
4621 this.color =
'#222';
4622 this.shape = LiteGraph.ROUND_SHAPE;
4623 this.boxcolor =
'#465';
4636 this.nodedef_icon =
'';
4638 this.nodedef_type =
'vector4';
4640 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ramp4.html';
4641 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ramp4_vector4_out_genglsl.png';
4642 this.nodedef_group =
'procedural2d';
4643 this.addInput(
'valuetl',
'vector4');
4644 this.addProperty(
'valuetl', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4645 this.addInput(
'valuetr',
'vector4');
4646 this.addProperty(
'valuetr', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4647 this.addInput(
'valuebl',
'vector4');
4648 this.addProperty(
'valuebl', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4649 this.addInput(
'valuebr',
'vector4');
4650 this.addProperty(
'valuebr', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4651 this.addInput(
'texcoord',
'vector2');
4652 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4653 this.addOutput(
'out',
'vector4');
4654 this.title =
'ramp4_vector4';
4655 this.desc =
"MaterialX:mtlx/procedural2d/ramp4_vector4";
4656 this.onNodeCreated =
function() {
4659 this.onRemoved =
function() {
4662 this.onPropertyChanged =
function(name, value, prev_value) {
4663 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4665 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4666 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4668 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4669 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4671 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4672 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4674 this.bgcolor =
'#111';
4675 this.color =
'#222';
4676 this.shape = LiteGraph.ROUND_SHAPE;
4677 this.boxcolor =
'#275';
4690 this.nodedef_icon =
'';
4692 this.nodedef_type =
'float';
4694 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splitlr.html';
4695 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splitlr_float_out_genglsl.png';
4696 this.nodedef_group =
'procedural2d';
4697 this.addInput(
'valuel',
'float');
4698 this.addProperty(
'valuel', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Left",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4699 this.addInput(
'valuer',
'float');
4700 this.addProperty(
'valuer', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Right",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4701 this.addInput(
'center',
'float');
4702 this.addProperty(
'center', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Center",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
4703 this.addInput(
'texcoord',
'vector2');
4704 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4705 this.addOutput(
'out',
'float');
4706 this.title =
'splitlr_float';
4707 this.desc =
"MaterialX:mtlx/procedural2d/splitlr_float";
4708 this.onNodeCreated =
function() {
4711 this.onRemoved =
function() {
4714 this.onPropertyChanged =
function(name, value, prev_value) {
4715 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4717 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4718 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4720 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4721 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4723 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4724 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4726 this.bgcolor =
'#111';
4727 this.color =
'#222';
4728 this.shape = LiteGraph.ROUND_SHAPE;
4729 this.boxcolor =
'#161';
4742 this.nodedef_icon =
'';
4744 this.nodedef_type =
'color3';
4746 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splitlr.html';
4747 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splitlr_color3_out_genglsl.png';
4748 this.nodedef_group =
'procedural2d';
4749 this.addInput(
'valuel',
'color3');
4750 this.addProperty(
'valuel', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Left",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4751 this.addInput(
'valuer',
'color3');
4752 this.addProperty(
'valuer', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Right",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4753 this.addInput(
'center',
'float');
4754 this.addProperty(
'center', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Center",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
4755 this.addInput(
'texcoord',
'vector2');
4756 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4757 this.addOutput(
'out',
'color3');
4758 this.title =
'splitlr_color3';
4759 this.desc =
"MaterialX:mtlx/procedural2d/splitlr_color3";
4760 this.onNodeCreated =
function() {
4763 this.onRemoved =
function() {
4766 this.onPropertyChanged =
function(name, value, prev_value) {
4767 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4769 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4770 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4772 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4773 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4775 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4776 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4778 this.bgcolor =
'#111';
4779 this.color =
'#222';
4780 this.shape = LiteGraph.ROUND_SHAPE;
4781 this.boxcolor =
'#37A';
4794 this.nodedef_icon =
'';
4796 this.nodedef_type =
'color4';
4798 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splitlr.html';
4799 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splitlr_color4_out_genglsl.png';
4800 this.nodedef_group =
'procedural2d';
4801 this.addInput(
'valuel',
'color4');
4802 this.addProperty(
'valuel', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Left",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4803 this.addInput(
'valuer',
'color4');
4804 this.addProperty(
'valuer', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Right",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4805 this.addInput(
'center',
'float');
4806 this.addProperty(
'center', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Center",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
4807 this.addInput(
'texcoord',
'vector2');
4808 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4809 this.addOutput(
'out',
'color4');
4810 this.title =
'splitlr_color4';
4811 this.desc =
"MaterialX:mtlx/procedural2d/splitlr_color4";
4812 this.onNodeCreated =
function() {
4815 this.onRemoved =
function() {
4818 this.onPropertyChanged =
function(name, value, prev_value) {
4819 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4821 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4822 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4824 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4825 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4827 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4828 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4830 this.bgcolor =
'#111';
4831 this.color =
'#222';
4832 this.shape = LiteGraph.ROUND_SHAPE;
4833 this.boxcolor =
'#69A';
4846 this.nodedef_icon =
'';
4848 this.nodedef_type =
'vector2';
4850 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splitlr.html';
4851 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splitlr_vector2_out_genglsl.png';
4852 this.nodedef_group =
'procedural2d';
4853 this.addInput(
'valuel',
'vector2');
4854 this.addProperty(
'valuel', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Left",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4855 this.addInput(
'valuer',
'vector2');
4856 this.addProperty(
'valuer', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Right",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4857 this.addInput(
'center',
'float');
4858 this.addProperty(
'center', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Center",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
4859 this.addInput(
'texcoord',
'vector2');
4860 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4861 this.addOutput(
'out',
'vector2');
4862 this.title =
'splitlr_vector2';
4863 this.desc =
"MaterialX:mtlx/procedural2d/splitlr_vector2";
4864 this.onNodeCreated =
function() {
4867 this.onRemoved =
function() {
4870 this.onPropertyChanged =
function(name, value, prev_value) {
4871 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4873 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4874 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4876 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4877 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4879 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4880 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4882 this.bgcolor =
'#111';
4883 this.color =
'#222';
4884 this.shape = LiteGraph.ROUND_SHAPE;
4885 this.boxcolor =
'#265';
4898 this.nodedef_icon =
'';
4900 this.nodedef_type =
'vector3';
4902 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splitlr.html';
4903 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splitlr_vector3_out_genglsl.png';
4904 this.nodedef_group =
'procedural2d';
4905 this.addInput(
'valuel',
'vector3');
4906 this.addProperty(
'valuel', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Left",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4907 this.addInput(
'valuer',
'vector3');
4908 this.addProperty(
'valuer', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Right",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4909 this.addInput(
'center',
'float');
4910 this.addProperty(
'center', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Center",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
4911 this.addInput(
'texcoord',
'vector2');
4912 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4913 this.addOutput(
'out',
'vector3');
4914 this.title =
'splitlr_vector3';
4915 this.desc =
"MaterialX:mtlx/procedural2d/splitlr_vector3";
4916 this.onNodeCreated =
function() {
4919 this.onRemoved =
function() {
4922 this.onPropertyChanged =
function(name, value, prev_value) {
4923 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4925 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4926 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4928 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4929 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4931 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4932 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4934 this.bgcolor =
'#111';
4935 this.color =
'#222';
4936 this.shape = LiteGraph.ROUND_SHAPE;
4937 this.boxcolor =
'#465';
4950 this.nodedef_icon =
'';
4952 this.nodedef_type =
'vector4';
4954 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splitlr.html';
4955 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splitlr_vector4_out_genglsl.png';
4956 this.nodedef_group =
'procedural2d';
4957 this.addInput(
'valuel',
'vector4');
4958 this.addProperty(
'valuel', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Left",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4959 this.addInput(
'valuer',
'vector4');
4960 this.addProperty(
'valuer', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Right",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
4961 this.addInput(
'center',
'float');
4962 this.addProperty(
'center', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Center",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
4963 this.addInput(
'texcoord',
'vector2');
4964 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
4965 this.addOutput(
'out',
'vector4');
4966 this.title =
'splitlr_vector4';
4967 this.desc =
"MaterialX:mtlx/procedural2d/splitlr_vector4";
4968 this.onNodeCreated =
function() {
4971 this.onRemoved =
function() {
4974 this.onPropertyChanged =
function(name, value, prev_value) {
4975 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
4977 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
4978 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
4980 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
4981 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
4983 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
4984 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
4986 this.bgcolor =
'#111';
4987 this.color =
'#222';
4988 this.shape = LiteGraph.ROUND_SHAPE;
4989 this.boxcolor =
'#275';
5002 this.nodedef_icon =
'';
5004 this.nodedef_type =
'float';
5006 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splittb.html';
5007 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splittb_float_out_genglsl.png';
5008 this.nodedef_group =
'procedural2d';
5009 this.addInput(
'valuet',
'float');
5010 this.addProperty(
'valuet', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Top",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5011 this.addInput(
'valueb',
'float');
5012 this.addProperty(
'valueb', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Bottom",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5013 this.addInput(
'center',
'float');
5014 this.addProperty(
'center', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Center",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
5015 this.addInput(
'texcoord',
'vector2');
5016 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5017 this.addOutput(
'out',
'float');
5018 this.title =
'splittb_float';
5019 this.desc =
"MaterialX:mtlx/procedural2d/splittb_float";
5020 this.onNodeCreated =
function() {
5023 this.onRemoved =
function() {
5026 this.onPropertyChanged =
function(name, value, prev_value) {
5027 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5029 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5030 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5032 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5033 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5035 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5036 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5038 this.bgcolor =
'#111';
5039 this.color =
'#222';
5040 this.shape = LiteGraph.ROUND_SHAPE;
5041 this.boxcolor =
'#161';
5054 this.nodedef_icon =
'';
5056 this.nodedef_type =
'color3';
5058 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splittb.html';
5059 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splittb_color3_out_genglsl.png';
5060 this.nodedef_group =
'procedural2d';
5061 this.addInput(
'valuet',
'color3');
5062 this.addProperty(
'valuet', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Top",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5063 this.addInput(
'valueb',
'color3');
5064 this.addProperty(
'valueb', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Bottom",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5065 this.addInput(
'center',
'float');
5066 this.addProperty(
'center', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Center",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
5067 this.addInput(
'texcoord',
'vector2');
5068 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5069 this.addOutput(
'out',
'color3');
5070 this.title =
'splittb_color3';
5071 this.desc =
"MaterialX:mtlx/procedural2d/splittb_color3";
5072 this.onNodeCreated =
function() {
5075 this.onRemoved =
function() {
5078 this.onPropertyChanged =
function(name, value, prev_value) {
5079 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5081 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5082 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5084 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5085 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5087 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5088 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5090 this.bgcolor =
'#111';
5091 this.color =
'#222';
5092 this.shape = LiteGraph.ROUND_SHAPE;
5093 this.boxcolor =
'#37A';
5106 this.nodedef_icon =
'';
5108 this.nodedef_type =
'color4';
5110 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splittb.html';
5111 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splittb_color4_out_genglsl.png';
5112 this.nodedef_group =
'procedural2d';
5113 this.addInput(
'valuet',
'color4');
5114 this.addProperty(
'valuet', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Top",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5115 this.addInput(
'valueb',
'color4');
5116 this.addProperty(
'valueb', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Bottom",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5117 this.addInput(
'center',
'float');
5118 this.addProperty(
'center', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Center",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
5119 this.addInput(
'texcoord',
'vector2');
5120 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5121 this.addOutput(
'out',
'color4');
5122 this.title =
'splittb_color4';
5123 this.desc =
"MaterialX:mtlx/procedural2d/splittb_color4";
5124 this.onNodeCreated =
function() {
5127 this.onRemoved =
function() {
5130 this.onPropertyChanged =
function(name, value, prev_value) {
5131 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5133 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5134 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5136 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5137 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5139 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5140 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5142 this.bgcolor =
'#111';
5143 this.color =
'#222';
5144 this.shape = LiteGraph.ROUND_SHAPE;
5145 this.boxcolor =
'#69A';
5158 this.nodedef_icon =
'';
5160 this.nodedef_type =
'vector2';
5162 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splittb.html';
5163 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splittb_vector2_out_genglsl.png';
5164 this.nodedef_group =
'procedural2d';
5165 this.addInput(
'valuet',
'vector2');
5166 this.addProperty(
'valuet', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Top",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5167 this.addInput(
'valueb',
'vector2');
5168 this.addProperty(
'valueb', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Bottom",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5169 this.addInput(
'center',
'float');
5170 this.addProperty(
'center', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Center",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
5171 this.addInput(
'texcoord',
'vector2');
5172 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5173 this.addOutput(
'out',
'vector2');
5174 this.title =
'splittb_vector2';
5175 this.desc =
"MaterialX:mtlx/procedural2d/splittb_vector2";
5176 this.onNodeCreated =
function() {
5179 this.onRemoved =
function() {
5182 this.onPropertyChanged =
function(name, value, prev_value) {
5183 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5185 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5186 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5188 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5189 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5191 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5192 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5194 this.bgcolor =
'#111';
5195 this.color =
'#222';
5196 this.shape = LiteGraph.ROUND_SHAPE;
5197 this.boxcolor =
'#265';
5210 this.nodedef_icon =
'';
5212 this.nodedef_type =
'vector3';
5214 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splittb.html';
5215 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splittb_vector3_out_genglsl.png';
5216 this.nodedef_group =
'procedural2d';
5217 this.addInput(
'valuet',
'vector3');
5218 this.addProperty(
'valuet', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Top",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5219 this.addInput(
'valueb',
'vector3');
5220 this.addProperty(
'valueb', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Bottom",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5221 this.addInput(
'center',
'float');
5222 this.addProperty(
'center', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Center",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
5223 this.addInput(
'texcoord',
'vector2');
5224 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5225 this.addOutput(
'out',
'vector3');
5226 this.title =
'splittb_vector3';
5227 this.desc =
"MaterialX:mtlx/procedural2d/splittb_vector3";
5228 this.onNodeCreated =
function() {
5231 this.onRemoved =
function() {
5234 this.onPropertyChanged =
function(name, value, prev_value) {
5235 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5237 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5238 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5240 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5241 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5243 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5244 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5246 this.bgcolor =
'#111';
5247 this.color =
'#222';
5248 this.shape = LiteGraph.ROUND_SHAPE;
5249 this.boxcolor =
'#465';
5262 this.nodedef_icon =
'';
5264 this.nodedef_type =
'vector4';
5266 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/splittb.html';
5267 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_splittb_vector4_out_genglsl.png';
5268 this.nodedef_group =
'procedural2d';
5269 this.addInput(
'valuet',
'vector4');
5270 this.addProperty(
'valuet', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Top",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5271 this.addInput(
'valueb',
'vector4');
5272 this.addProperty(
'valueb', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Bottom",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5273 this.addInput(
'center',
'float');
5274 this.addProperty(
'center', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Center",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
5275 this.addInput(
'texcoord',
'vector2');
5276 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5277 this.addOutput(
'out',
'vector4');
5278 this.title =
'splittb_vector4';
5279 this.desc =
"MaterialX:mtlx/procedural2d/splittb_vector4";
5280 this.onNodeCreated =
function() {
5283 this.onRemoved =
function() {
5286 this.onPropertyChanged =
function(name, value, prev_value) {
5287 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5289 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5290 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5292 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5293 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5295 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5296 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5298 this.bgcolor =
'#111';
5299 this.color =
'#222';
5300 this.shape = LiteGraph.ROUND_SHAPE;
5301 this.boxcolor =
'#275';
5314 this.nodedef_icon =
'';
5316 this.nodedef_type =
'float';
5318 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5319 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_float_out_genglsl.png';
5320 this.nodedef_group =
'procedural2d';
5321 this.addInput(
'amplitude',
'float');
5322 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5323 this.addInput(
'pivot',
'float');
5324 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5325 this.addInput(
'texcoord',
'vector2');
5326 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5327 this.addOutput(
'out',
'float');
5328 this.title =
'noise2d_float';
5329 this.desc =
"MaterialX:mtlx/procedural2d/noise2d_float";
5330 this.onNodeCreated =
function() {
5333 this.onRemoved =
function() {
5336 this.onPropertyChanged =
function(name, value, prev_value) {
5337 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5339 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5340 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5342 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5343 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5345 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5346 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5348 this.bgcolor =
'#111';
5349 this.color =
'#222';
5350 this.shape = LiteGraph.ROUND_SHAPE;
5351 this.boxcolor =
'#161';
5364 this.nodedef_icon =
'';
5366 this.nodedef_type =
'color3';
5368 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5369 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_color3_out_genglsl.png';
5370 this.nodedef_group =
'procedural2d';
5371 this.addInput(
'amplitude',
'vector3');
5372 this.addProperty(
'amplitude', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5373 this.addInput(
'pivot',
'float');
5374 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5375 this.addInput(
'texcoord',
'vector2');
5376 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5377 this.addOutput(
'out',
'color3');
5378 this.title =
'noise2d_color3';
5379 this.desc =
"MaterialX:mtlx/procedural2d/noise2d_color3";
5380 this.onNodeCreated =
function() {
5383 this.onRemoved =
function() {
5386 this.onPropertyChanged =
function(name, value, prev_value) {
5387 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5389 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5390 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5392 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5393 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5395 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5396 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5398 this.bgcolor =
'#111';
5399 this.color =
'#222';
5400 this.shape = LiteGraph.ROUND_SHAPE;
5401 this.boxcolor =
'#37A';
5414 this.nodedef_icon =
'';
5416 this.nodedef_type =
'color4';
5418 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5419 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_color4_out_genglsl.png';
5420 this.nodedef_group =
'procedural2d';
5421 this.addInput(
'amplitude',
'vector4');
5422 this.addProperty(
'amplitude', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5423 this.addInput(
'pivot',
'float');
5424 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5425 this.addInput(
'texcoord',
'vector2');
5426 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5427 this.addOutput(
'out',
'color4');
5428 this.title =
'noise2d_color4';
5429 this.desc =
"MaterialX:mtlx/procedural2d/noise2d_color4";
5430 this.onNodeCreated =
function() {
5433 this.onRemoved =
function() {
5436 this.onPropertyChanged =
function(name, value, prev_value) {
5437 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5439 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5440 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5442 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5443 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5445 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5446 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5448 this.bgcolor =
'#111';
5449 this.color =
'#222';
5450 this.shape = LiteGraph.ROUND_SHAPE;
5451 this.boxcolor =
'#69A';
5464 this.nodedef_icon =
'';
5466 this.nodedef_type =
'vector2';
5468 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5469 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_vector2_out_genglsl.png';
5470 this.nodedef_group =
'procedural2d';
5471 this.addInput(
'amplitude',
'vector2');
5472 this.addProperty(
'amplitude', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5473 this.addInput(
'pivot',
'float');
5474 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5475 this.addInput(
'texcoord',
'vector2');
5476 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5477 this.addOutput(
'out',
'vector2');
5478 this.title =
'noise2d_vector2';
5479 this.desc =
"MaterialX:mtlx/procedural2d/noise2d_vector2";
5480 this.onNodeCreated =
function() {
5483 this.onRemoved =
function() {
5486 this.onPropertyChanged =
function(name, value, prev_value) {
5487 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5489 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5490 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5492 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5493 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5495 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5496 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5498 this.bgcolor =
'#111';
5499 this.color =
'#222';
5500 this.shape = LiteGraph.ROUND_SHAPE;
5501 this.boxcolor =
'#265';
5514 this.nodedef_icon =
'';
5516 this.nodedef_type =
'vector3';
5518 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5519 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_vector3_out_genglsl.png';
5520 this.nodedef_group =
'procedural2d';
5521 this.addInput(
'amplitude',
'vector3');
5522 this.addProperty(
'amplitude', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5523 this.addInput(
'pivot',
'float');
5524 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5525 this.addInput(
'texcoord',
'vector2');
5526 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5527 this.addOutput(
'out',
'vector3');
5528 this.title =
'noise2d_vector3';
5529 this.desc =
"MaterialX:mtlx/procedural2d/noise2d_vector3";
5530 this.onNodeCreated =
function() {
5533 this.onRemoved =
function() {
5536 this.onPropertyChanged =
function(name, value, prev_value) {
5537 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5539 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5540 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5542 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5543 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5545 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5546 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5548 this.bgcolor =
'#111';
5549 this.color =
'#222';
5550 this.shape = LiteGraph.ROUND_SHAPE;
5551 this.boxcolor =
'#465';
5564 this.nodedef_icon =
'';
5566 this.nodedef_type =
'vector4';
5568 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5569 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_vector4_out_genglsl.png';
5570 this.nodedef_group =
'procedural2d';
5571 this.addInput(
'amplitude',
'vector4');
5572 this.addProperty(
'amplitude', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5573 this.addInput(
'pivot',
'float');
5574 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5575 this.addInput(
'texcoord',
'vector2');
5576 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5577 this.addOutput(
'out',
'vector4');
5578 this.title =
'noise2d_vector4';
5579 this.desc =
"MaterialX:mtlx/procedural2d/noise2d_vector4";
5580 this.onNodeCreated =
function() {
5583 this.onRemoved =
function() {
5586 this.onPropertyChanged =
function(name, value, prev_value) {
5587 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5589 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5590 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5592 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5593 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5595 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5596 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5598 this.bgcolor =
'#111';
5599 this.color =
'#222';
5600 this.shape = LiteGraph.ROUND_SHAPE;
5601 this.boxcolor =
'#275';
5614 this.nodedef_icon =
'';
5616 this.nodedef_type =
'color3';
5618 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5619 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_color3FA_out_genglsl.png';
5620 this.nodedef_group =
'procedural2d';
5621 this.addInput(
'amplitude',
'float');
5622 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5623 this.addInput(
'pivot',
'float');
5624 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5625 this.addInput(
'texcoord',
'vector2');
5626 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5627 this.addOutput(
'out',
'color3');
5628 this.title =
'noise2d_color3';
5629 this.desc =
"MaterialX:mtlx/procedural2d/noise2d_color3FA";
5630 this.onNodeCreated =
function() {
5633 this.onRemoved =
function() {
5636 this.onPropertyChanged =
function(name, value, prev_value) {
5637 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5639 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5640 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5642 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5643 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5645 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5646 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5648 this.bgcolor =
'#111';
5649 this.color =
'#222';
5650 this.shape = LiteGraph.ROUND_SHAPE;
5651 this.boxcolor =
'#37A';
5664 this.nodedef_icon =
'';
5666 this.nodedef_type =
'color4';
5668 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5669 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_color4FA_out_genglsl.png';
5670 this.nodedef_group =
'procedural2d';
5671 this.addInput(
'amplitude',
'float');
5672 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5673 this.addInput(
'pivot',
'float');
5674 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5675 this.addInput(
'texcoord',
'vector2');
5676 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5677 this.addOutput(
'out',
'color4');
5678 this.title =
'noise2d_color4';
5679 this.desc =
"MaterialX:mtlx/procedural2d/noise2d_color4FA";
5680 this.onNodeCreated =
function() {
5683 this.onRemoved =
function() {
5686 this.onPropertyChanged =
function(name, value, prev_value) {
5687 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5689 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5690 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5692 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5693 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5695 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5696 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5698 this.bgcolor =
'#111';
5699 this.color =
'#222';
5700 this.shape = LiteGraph.ROUND_SHAPE;
5701 this.boxcolor =
'#69A';
5714 this.nodedef_icon =
'';
5716 this.nodedef_type =
'vector2';
5718 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5719 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_vector2FA_out_genglsl.png';
5720 this.nodedef_group =
'procedural2d';
5721 this.addInput(
'amplitude',
'float');
5722 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5723 this.addInput(
'pivot',
'float');
5724 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5725 this.addInput(
'texcoord',
'vector2');
5726 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5727 this.addOutput(
'out',
'vector2');
5728 this.title =
'noise2d_vector2';
5729 this.desc =
"MaterialX:mtlx/procedural2d/noise2d_vector2FA";
5730 this.onNodeCreated =
function() {
5733 this.onRemoved =
function() {
5736 this.onPropertyChanged =
function(name, value, prev_value) {
5737 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5739 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5740 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5742 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5743 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5745 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5746 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5748 this.bgcolor =
'#111';
5749 this.color =
'#222';
5750 this.shape = LiteGraph.ROUND_SHAPE;
5751 this.boxcolor =
'#265';
5764 this.nodedef_icon =
'';
5766 this.nodedef_type =
'vector3';
5768 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5769 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_vector3FA_out_genglsl.png';
5770 this.nodedef_group =
'procedural2d';
5771 this.addInput(
'amplitude',
'float');
5772 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5773 this.addInput(
'pivot',
'float');
5774 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5775 this.addInput(
'texcoord',
'vector2');
5776 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5777 this.addOutput(
'out',
'vector3');
5778 this.title =
'noise2d_vector3';
5779 this.desc =
"MaterialX:mtlx/procedural2d/noise2d_vector3FA";
5780 this.onNodeCreated =
function() {
5783 this.onRemoved =
function() {
5786 this.onPropertyChanged =
function(name, value, prev_value) {
5787 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5789 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5790 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5792 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5793 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5795 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5796 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5798 this.bgcolor =
'#111';
5799 this.color =
'#222';
5800 this.shape = LiteGraph.ROUND_SHAPE;
5801 this.boxcolor =
'#465';
5814 this.nodedef_icon =
'';
5816 this.nodedef_type =
'vector4';
5818 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise2d.html';
5819 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise2d_vector4FA_out_genglsl.png';
5820 this.nodedef_group =
'procedural2d';
5821 this.addInput(
'amplitude',
'float');
5822 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5823 this.addInput(
'pivot',
'float');
5824 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5825 this.addInput(
'texcoord',
'vector2');
5826 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
5827 this.addOutput(
'out',
'vector4');
5828 this.title =
'noise2d_vector4';
5829 this.desc =
"MaterialX:mtlx/procedural2d/noise2d_vector4FA";
5830 this.onNodeCreated =
function() {
5833 this.onRemoved =
function() {
5836 this.onPropertyChanged =
function(name, value, prev_value) {
5837 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5839 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5840 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5842 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5843 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5845 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5846 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5848 this.bgcolor =
'#111';
5849 this.color =
'#222';
5850 this.shape = LiteGraph.ROUND_SHAPE;
5851 this.boxcolor =
'#275';
5864 this.nodedef_icon =
'';
5866 this.nodedef_type =
'float';
5868 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
5869 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_float_out_genglsl.png';
5870 this.nodedef_group =
'procedural3d';
5871 this.addInput(
'amplitude',
'float');
5872 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5873 this.addInput(
'pivot',
'float');
5874 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5875 this.addInput(
'position',
'vector3');
5876 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
5877 this.addOutput(
'out',
'float');
5878 this.title =
'noise3d_float';
5879 this.desc =
"MaterialX:mtlx/procedural3d/noise3d_float";
5880 this.onNodeCreated =
function() {
5883 this.onRemoved =
function() {
5886 this.onPropertyChanged =
function(name, value, prev_value) {
5887 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5889 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5890 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5892 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5893 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5895 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5896 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5898 this.bgcolor =
'#111';
5899 this.color =
'#222';
5900 this.shape = LiteGraph.ROUND_SHAPE;
5901 this.boxcolor =
'#161';
5914 this.nodedef_icon =
'';
5916 this.nodedef_type =
'color3';
5918 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
5919 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_color3_out_genglsl.png';
5920 this.nodedef_group =
'procedural3d';
5921 this.addInput(
'amplitude',
'vector3');
5922 this.addProperty(
'amplitude', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5923 this.addInput(
'pivot',
'float');
5924 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5925 this.addInput(
'position',
'vector3');
5926 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
5927 this.addOutput(
'out',
'color3');
5928 this.title =
'noise3d_color3';
5929 this.desc =
"MaterialX:mtlx/procedural3d/noise3d_color3";
5930 this.onNodeCreated =
function() {
5933 this.onRemoved =
function() {
5936 this.onPropertyChanged =
function(name, value, prev_value) {
5937 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5939 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5940 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5942 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5943 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5945 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5946 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5948 this.bgcolor =
'#111';
5949 this.color =
'#222';
5950 this.shape = LiteGraph.ROUND_SHAPE;
5951 this.boxcolor =
'#37A';
5964 this.nodedef_icon =
'';
5966 this.nodedef_type =
'color4';
5968 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
5969 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_color4_out_genglsl.png';
5970 this.nodedef_group =
'procedural3d';
5971 this.addInput(
'amplitude',
'vector4');
5972 this.addProperty(
'amplitude', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5973 this.addInput(
'pivot',
'float');
5974 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
5975 this.addInput(
'position',
'vector3');
5976 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
5977 this.addOutput(
'out',
'color4');
5978 this.title =
'noise3d_color4';
5979 this.desc =
"MaterialX:mtlx/procedural3d/noise3d_color4";
5980 this.onNodeCreated =
function() {
5983 this.onRemoved =
function() {
5986 this.onPropertyChanged =
function(name, value, prev_value) {
5987 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
5989 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
5990 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
5992 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
5993 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
5995 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
5996 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
5998 this.bgcolor =
'#111';
5999 this.color =
'#222';
6000 this.shape = LiteGraph.ROUND_SHAPE;
6001 this.boxcolor =
'#69A';
6014 this.nodedef_icon =
'';
6016 this.nodedef_type =
'vector2';
6018 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6019 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_vector2_out_genglsl.png';
6020 this.nodedef_group =
'procedural3d';
6021 this.addInput(
'amplitude',
'vector2');
6022 this.addProperty(
'amplitude', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6023 this.addInput(
'pivot',
'float');
6024 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6025 this.addInput(
'position',
'vector3');
6026 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6027 this.addOutput(
'out',
'vector2');
6028 this.title =
'noise3d_vector2';
6029 this.desc =
"MaterialX:mtlx/procedural3d/noise3d_vector2";
6030 this.onNodeCreated =
function() {
6033 this.onRemoved =
function() {
6036 this.onPropertyChanged =
function(name, value, prev_value) {
6037 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6039 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6040 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6042 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6043 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6045 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6046 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6048 this.bgcolor =
'#111';
6049 this.color =
'#222';
6050 this.shape = LiteGraph.ROUND_SHAPE;
6051 this.boxcolor =
'#265';
6064 this.nodedef_icon =
'';
6066 this.nodedef_type =
'vector3';
6068 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6069 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_vector3_out_genglsl.png';
6070 this.nodedef_group =
'procedural3d';
6071 this.addInput(
'amplitude',
'vector3');
6072 this.addProperty(
'amplitude', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6073 this.addInput(
'pivot',
'float');
6074 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6075 this.addInput(
'position',
'vector3');
6076 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6077 this.addOutput(
'out',
'vector3');
6078 this.title =
'noise3d_vector3';
6079 this.desc =
"MaterialX:mtlx/procedural3d/noise3d_vector3";
6080 this.onNodeCreated =
function() {
6083 this.onRemoved =
function() {
6086 this.onPropertyChanged =
function(name, value, prev_value) {
6087 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6089 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6090 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6092 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6093 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6095 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6096 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6098 this.bgcolor =
'#111';
6099 this.color =
'#222';
6100 this.shape = LiteGraph.ROUND_SHAPE;
6101 this.boxcolor =
'#465';
6114 this.nodedef_icon =
'';
6116 this.nodedef_type =
'vector4';
6118 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6119 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_vector4_out_genglsl.png';
6120 this.nodedef_group =
'procedural3d';
6121 this.addInput(
'amplitude',
'vector4');
6122 this.addProperty(
'amplitude', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6123 this.addInput(
'pivot',
'float');
6124 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6125 this.addInput(
'position',
'vector3');
6126 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6127 this.addOutput(
'out',
'vector4');
6128 this.title =
'noise3d_vector4';
6129 this.desc =
"MaterialX:mtlx/procedural3d/noise3d_vector4";
6130 this.onNodeCreated =
function() {
6133 this.onRemoved =
function() {
6136 this.onPropertyChanged =
function(name, value, prev_value) {
6137 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6139 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6140 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6142 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6143 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6145 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6146 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6148 this.bgcolor =
'#111';
6149 this.color =
'#222';
6150 this.shape = LiteGraph.ROUND_SHAPE;
6151 this.boxcolor =
'#275';
6164 this.nodedef_icon =
'';
6166 this.nodedef_type =
'color3';
6168 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6169 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_color3FA_out_genglsl.png';
6170 this.nodedef_group =
'procedural3d';
6171 this.addInput(
'amplitude',
'float');
6172 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6173 this.addInput(
'pivot',
'float');
6174 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6175 this.addInput(
'position',
'vector3');
6176 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6177 this.addOutput(
'out',
'color3');
6178 this.title =
'noise3d_color3';
6179 this.desc =
"MaterialX:mtlx/procedural3d/noise3d_color3FA";
6180 this.onNodeCreated =
function() {
6183 this.onRemoved =
function() {
6186 this.onPropertyChanged =
function(name, value, prev_value) {
6187 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6189 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6190 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6192 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6193 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6195 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6196 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6198 this.bgcolor =
'#111';
6199 this.color =
'#222';
6200 this.shape = LiteGraph.ROUND_SHAPE;
6201 this.boxcolor =
'#37A';
6214 this.nodedef_icon =
'';
6216 this.nodedef_type =
'color4';
6218 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6219 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_color4FA_out_genglsl.png';
6220 this.nodedef_group =
'procedural3d';
6221 this.addInput(
'amplitude',
'float');
6222 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6223 this.addInput(
'pivot',
'float');
6224 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6225 this.addInput(
'position',
'vector3');
6226 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6227 this.addOutput(
'out',
'color4');
6228 this.title =
'noise3d_color4';
6229 this.desc =
"MaterialX:mtlx/procedural3d/noise3d_color4FA";
6230 this.onNodeCreated =
function() {
6233 this.onRemoved =
function() {
6236 this.onPropertyChanged =
function(name, value, prev_value) {
6237 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6239 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6240 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6242 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6243 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6245 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6246 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6248 this.bgcolor =
'#111';
6249 this.color =
'#222';
6250 this.shape = LiteGraph.ROUND_SHAPE;
6251 this.boxcolor =
'#69A';
6264 this.nodedef_icon =
'';
6266 this.nodedef_type =
'vector2';
6268 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6269 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_vector2FA_out_genglsl.png';
6270 this.nodedef_group =
'procedural3d';
6271 this.addInput(
'amplitude',
'float');
6272 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6273 this.addInput(
'pivot',
'float');
6274 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6275 this.addInput(
'position',
'vector3');
6276 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6277 this.addOutput(
'out',
'vector2');
6278 this.title =
'noise3d_vector2';
6279 this.desc =
"MaterialX:mtlx/procedural3d/noise3d_vector2FA";
6280 this.onNodeCreated =
function() {
6283 this.onRemoved =
function() {
6286 this.onPropertyChanged =
function(name, value, prev_value) {
6287 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6289 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6290 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6292 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6293 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6295 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6296 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6298 this.bgcolor =
'#111';
6299 this.color =
'#222';
6300 this.shape = LiteGraph.ROUND_SHAPE;
6301 this.boxcolor =
'#265';
6314 this.nodedef_icon =
'';
6316 this.nodedef_type =
'vector3';
6318 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6319 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_vector3FA_out_genglsl.png';
6320 this.nodedef_group =
'procedural3d';
6321 this.addInput(
'amplitude',
'float');
6322 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6323 this.addInput(
'pivot',
'float');
6324 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6325 this.addInput(
'position',
'vector3');
6326 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6327 this.addOutput(
'out',
'vector3');
6328 this.title =
'noise3d_vector3';
6329 this.desc =
"MaterialX:mtlx/procedural3d/noise3d_vector3FA";
6330 this.onNodeCreated =
function() {
6333 this.onRemoved =
function() {
6336 this.onPropertyChanged =
function(name, value, prev_value) {
6337 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6339 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6340 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6342 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6343 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6345 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6346 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6348 this.bgcolor =
'#111';
6349 this.color =
'#222';
6350 this.shape = LiteGraph.ROUND_SHAPE;
6351 this.boxcolor =
'#465';
6364 this.nodedef_icon =
'';
6366 this.nodedef_type =
'vector4';
6368 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/noise3d.html';
6369 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_noise3d_vector4FA_out_genglsl.png';
6370 this.nodedef_group =
'procedural3d';
6371 this.addInput(
'amplitude',
'float');
6372 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6373 this.addInput(
'pivot',
'float');
6374 this.addProperty(
'pivot', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6375 this.addInput(
'position',
'vector3');
6376 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6377 this.addOutput(
'out',
'vector4');
6378 this.title =
'noise3d_vector4';
6379 this.desc =
"MaterialX:mtlx/procedural3d/noise3d_vector4FA";
6380 this.onNodeCreated =
function() {
6383 this.onRemoved =
function() {
6386 this.onPropertyChanged =
function(name, value, prev_value) {
6387 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6389 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6390 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6392 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6393 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6395 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6396 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6398 this.bgcolor =
'#111';
6399 this.color =
'#222';
6400 this.shape = LiteGraph.ROUND_SHAPE;
6401 this.boxcolor =
'#275';
6414 this.nodedef_icon =
'';
6416 this.nodedef_type =
'float';
6418 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6419 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_float_out_genglsl.png';
6420 this.nodedef_group =
'procedural3d';
6421 this.addInput(
'amplitude',
'float');
6422 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6423 this.addInput(
'octaves',
'integer');
6424 this.addProperty(
'octaves', 3,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6425 this.addInput(
'lacunarity',
'float');
6426 this.addProperty(
'lacunarity', 2.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6427 this.addInput(
'diminish',
'float');
6428 this.addProperty(
'diminish', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6429 this.addInput(
'position',
'vector3');
6430 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6431 this.addOutput(
'out',
'float');
6432 this.title =
'fractal3d_float';
6433 this.desc =
"MaterialX:mtlx/procedural3d/fractal3d_float";
6434 this.onNodeCreated =
function() {
6437 this.onRemoved =
function() {
6440 this.onPropertyChanged =
function(name, value, prev_value) {
6441 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6443 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6444 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6446 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6447 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6449 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6450 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6452 this.bgcolor =
'#111';
6453 this.color =
'#222';
6454 this.shape = LiteGraph.ROUND_SHAPE;
6455 this.boxcolor =
'#161';
6468 this.nodedef_icon =
'';
6470 this.nodedef_type =
'color3';
6472 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6473 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_color3_out_genglsl.png';
6474 this.nodedef_group =
'procedural3d';
6475 this.addInput(
'amplitude',
'vector3');
6476 this.addProperty(
'amplitude', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6477 this.addInput(
'octaves',
'integer');
6478 this.addProperty(
'octaves', 3,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6479 this.addInput(
'lacunarity',
'float');
6480 this.addProperty(
'lacunarity', 2.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6481 this.addInput(
'diminish',
'float');
6482 this.addProperty(
'diminish', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6483 this.addInput(
'position',
'vector3');
6484 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6485 this.addOutput(
'out',
'color3');
6486 this.title =
'fractal3d_color3';
6487 this.desc =
"MaterialX:mtlx/procedural3d/fractal3d_color3";
6488 this.onNodeCreated =
function() {
6491 this.onRemoved =
function() {
6494 this.onPropertyChanged =
function(name, value, prev_value) {
6495 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6497 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6498 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6500 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6501 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6503 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6504 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6506 this.bgcolor =
'#111';
6507 this.color =
'#222';
6508 this.shape = LiteGraph.ROUND_SHAPE;
6509 this.boxcolor =
'#37A';
6522 this.nodedef_icon =
'';
6524 this.nodedef_type =
'color4';
6526 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6527 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_color4_out_genglsl.png';
6528 this.nodedef_group =
'procedural3d';
6529 this.addInput(
'amplitude',
'vector4');
6530 this.addProperty(
'amplitude', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6531 this.addInput(
'octaves',
'integer');
6532 this.addProperty(
'octaves', 3,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6533 this.addInput(
'lacunarity',
'float');
6534 this.addProperty(
'lacunarity', 2.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6535 this.addInput(
'diminish',
'float');
6536 this.addProperty(
'diminish', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6537 this.addInput(
'position',
'vector3');
6538 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6539 this.addOutput(
'out',
'color4');
6540 this.title =
'fractal3d_color4';
6541 this.desc =
"MaterialX:mtlx/procedural3d/fractal3d_color4";
6542 this.onNodeCreated =
function() {
6545 this.onRemoved =
function() {
6548 this.onPropertyChanged =
function(name, value, prev_value) {
6549 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6551 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6552 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6554 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6555 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6557 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6558 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6560 this.bgcolor =
'#111';
6561 this.color =
'#222';
6562 this.shape = LiteGraph.ROUND_SHAPE;
6563 this.boxcolor =
'#69A';
6576 this.nodedef_icon =
'';
6578 this.nodedef_type =
'vector2';
6580 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6581 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_vector2_out_genglsl.png';
6582 this.nodedef_group =
'procedural3d';
6583 this.addInput(
'amplitude',
'vector2');
6584 this.addProperty(
'amplitude', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6585 this.addInput(
'octaves',
'integer');
6586 this.addProperty(
'octaves', 3,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6587 this.addInput(
'lacunarity',
'float');
6588 this.addProperty(
'lacunarity', 2.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6589 this.addInput(
'diminish',
'float');
6590 this.addProperty(
'diminish', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6591 this.addInput(
'position',
'vector3');
6592 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6593 this.addOutput(
'out',
'vector2');
6594 this.title =
'fractal3d_vector2';
6595 this.desc =
"MaterialX:mtlx/procedural3d/fractal3d_vector2";
6596 this.onNodeCreated =
function() {
6599 this.onRemoved =
function() {
6602 this.onPropertyChanged =
function(name, value, prev_value) {
6603 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6605 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6606 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6608 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6609 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6611 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6612 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6614 this.bgcolor =
'#111';
6615 this.color =
'#222';
6616 this.shape = LiteGraph.ROUND_SHAPE;
6617 this.boxcolor =
'#265';
6630 this.nodedef_icon =
'';
6632 this.nodedef_type =
'vector3';
6634 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6635 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_vector3_out_genglsl.png';
6636 this.nodedef_group =
'procedural3d';
6637 this.addInput(
'amplitude',
'vector3');
6638 this.addProperty(
'amplitude', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6639 this.addInput(
'octaves',
'integer');
6640 this.addProperty(
'octaves', 3,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6641 this.addInput(
'lacunarity',
'float');
6642 this.addProperty(
'lacunarity', 2.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6643 this.addInput(
'diminish',
'float');
6644 this.addProperty(
'diminish', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6645 this.addInput(
'position',
'vector3');
6646 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6647 this.addOutput(
'out',
'vector3');
6648 this.title =
'fractal3d_vector3';
6649 this.desc =
"MaterialX:mtlx/procedural3d/fractal3d_vector3";
6650 this.onNodeCreated =
function() {
6653 this.onRemoved =
function() {
6656 this.onPropertyChanged =
function(name, value, prev_value) {
6657 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6659 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6660 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6662 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6663 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6665 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6666 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6668 this.bgcolor =
'#111';
6669 this.color =
'#222';
6670 this.shape = LiteGraph.ROUND_SHAPE;
6671 this.boxcolor =
'#465';
6684 this.nodedef_icon =
'';
6686 this.nodedef_type =
'vector4';
6688 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6689 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_vector4_out_genglsl.png';
6690 this.nodedef_group =
'procedural3d';
6691 this.addInput(
'amplitude',
'vector4');
6692 this.addProperty(
'amplitude', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6693 this.addInput(
'octaves',
'integer');
6694 this.addProperty(
'octaves', 3,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6695 this.addInput(
'lacunarity',
'float');
6696 this.addProperty(
'lacunarity', 2.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6697 this.addInput(
'diminish',
'float');
6698 this.addProperty(
'diminish', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6699 this.addInput(
'position',
'vector3');
6700 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6701 this.addOutput(
'out',
'vector4');
6702 this.title =
'fractal3d_vector4';
6703 this.desc =
"MaterialX:mtlx/procedural3d/fractal3d_vector4";
6704 this.onNodeCreated =
function() {
6707 this.onRemoved =
function() {
6710 this.onPropertyChanged =
function(name, value, prev_value) {
6711 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6713 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6714 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6716 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6717 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6719 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6720 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6722 this.bgcolor =
'#111';
6723 this.color =
'#222';
6724 this.shape = LiteGraph.ROUND_SHAPE;
6725 this.boxcolor =
'#275';
6738 this.nodedef_icon =
'';
6740 this.nodedef_type =
'color3';
6742 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6743 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_color3FA_out_genglsl.png';
6744 this.nodedef_group =
'procedural3d';
6745 this.addInput(
'amplitude',
'float');
6746 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6747 this.addInput(
'octaves',
'integer');
6748 this.addProperty(
'octaves', 3,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6749 this.addInput(
'lacunarity',
'float');
6750 this.addProperty(
'lacunarity', 2.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6751 this.addInput(
'diminish',
'float');
6752 this.addProperty(
'diminish', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6753 this.addInput(
'position',
'vector3');
6754 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6755 this.addOutput(
'out',
'color3');
6756 this.title =
'fractal3d_color3';
6757 this.desc =
"MaterialX:mtlx/procedural3d/fractal3d_color3FA";
6758 this.onNodeCreated =
function() {
6761 this.onRemoved =
function() {
6764 this.onPropertyChanged =
function(name, value, prev_value) {
6765 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6767 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6768 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6770 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6771 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6773 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6774 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6776 this.bgcolor =
'#111';
6777 this.color =
'#222';
6778 this.shape = LiteGraph.ROUND_SHAPE;
6779 this.boxcolor =
'#37A';
6792 this.nodedef_icon =
'';
6794 this.nodedef_type =
'color4';
6796 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6797 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_color4FA_out_genglsl.png';
6798 this.nodedef_group =
'procedural3d';
6799 this.addInput(
'amplitude',
'float');
6800 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6801 this.addInput(
'octaves',
'integer');
6802 this.addProperty(
'octaves', 3,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6803 this.addInput(
'lacunarity',
'float');
6804 this.addProperty(
'lacunarity', 2.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6805 this.addInput(
'diminish',
'float');
6806 this.addProperty(
'diminish', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6807 this.addInput(
'position',
'vector3');
6808 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6809 this.addOutput(
'out',
'color4');
6810 this.title =
'fractal3d_color4';
6811 this.desc =
"MaterialX:mtlx/procedural3d/fractal3d_color4FA";
6812 this.onNodeCreated =
function() {
6815 this.onRemoved =
function() {
6818 this.onPropertyChanged =
function(name, value, prev_value) {
6819 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6821 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6822 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6824 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6825 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6827 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6828 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6830 this.bgcolor =
'#111';
6831 this.color =
'#222';
6832 this.shape = LiteGraph.ROUND_SHAPE;
6833 this.boxcolor =
'#69A';
6846 this.nodedef_icon =
'';
6848 this.nodedef_type =
'vector2';
6850 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6851 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_vector2FA_out_genglsl.png';
6852 this.nodedef_group =
'procedural3d';
6853 this.addInput(
'amplitude',
'float');
6854 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6855 this.addInput(
'octaves',
'integer');
6856 this.addProperty(
'octaves', 3,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6857 this.addInput(
'lacunarity',
'float');
6858 this.addProperty(
'lacunarity', 2.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6859 this.addInput(
'diminish',
'float');
6860 this.addProperty(
'diminish', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6861 this.addInput(
'position',
'vector3');
6862 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6863 this.addOutput(
'out',
'vector2');
6864 this.title =
'fractal3d_vector2';
6865 this.desc =
"MaterialX:mtlx/procedural3d/fractal3d_vector2FA";
6866 this.onNodeCreated =
function() {
6869 this.onRemoved =
function() {
6872 this.onPropertyChanged =
function(name, value, prev_value) {
6873 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6875 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6876 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6878 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6879 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6881 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6882 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6884 this.bgcolor =
'#111';
6885 this.color =
'#222';
6886 this.shape = LiteGraph.ROUND_SHAPE;
6887 this.boxcolor =
'#265';
6900 this.nodedef_icon =
'';
6902 this.nodedef_type =
'vector3';
6904 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6905 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_vector3FA_out_genglsl.png';
6906 this.nodedef_group =
'procedural3d';
6907 this.addInput(
'amplitude',
'float');
6908 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6909 this.addInput(
'octaves',
'integer');
6910 this.addProperty(
'octaves', 3,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6911 this.addInput(
'lacunarity',
'float');
6912 this.addProperty(
'lacunarity', 2.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6913 this.addInput(
'diminish',
'float');
6914 this.addProperty(
'diminish', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6915 this.addInput(
'position',
'vector3');
6916 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6917 this.addOutput(
'out',
'vector3');
6918 this.title =
'fractal3d_vector3';
6919 this.desc =
"MaterialX:mtlx/procedural3d/fractal3d_vector3FA";
6920 this.onNodeCreated =
function() {
6923 this.onRemoved =
function() {
6926 this.onPropertyChanged =
function(name, value, prev_value) {
6927 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6929 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6930 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6932 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6933 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6935 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6936 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6938 this.bgcolor =
'#111';
6939 this.color =
'#222';
6940 this.shape = LiteGraph.ROUND_SHAPE;
6941 this.boxcolor =
'#465';
6954 this.nodedef_icon =
'';
6956 this.nodedef_type =
'vector4';
6958 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/fractal3d.html';
6959 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_fractal3d_vector4FA_out_genglsl.png';
6960 this.nodedef_group =
'procedural3d';
6961 this.addInput(
'amplitude',
'float');
6962 this.addProperty(
'amplitude', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6963 this.addInput(
'octaves',
'integer');
6964 this.addProperty(
'octaves', 3,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6965 this.addInput(
'lacunarity',
'float');
6966 this.addProperty(
'lacunarity', 2.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6967 this.addInput(
'diminish',
'float');
6968 this.addProperty(
'diminish', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
6969 this.addInput(
'position',
'vector3');
6970 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
6971 this.addOutput(
'out',
'vector4');
6972 this.title =
'fractal3d_vector4';
6973 this.desc =
"MaterialX:mtlx/procedural3d/fractal3d_vector4FA";
6974 this.onNodeCreated =
function() {
6977 this.onRemoved =
function() {
6980 this.onPropertyChanged =
function(name, value, prev_value) {
6981 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
6983 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
6984 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
6986 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
6987 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
6989 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
6990 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
6992 this.bgcolor =
'#111';
6993 this.color =
'#222';
6994 this.shape = LiteGraph.ROUND_SHAPE;
6995 this.boxcolor =
'#275';
7008 this.nodedef_icon =
'';
7010 this.nodedef_type =
'float';
7012 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cellnoise2d.html';
7013 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_cellnoise2d_float_out_genglsl.png';
7014 this.nodedef_group =
'procedural2d';
7015 this.addInput(
'texcoord',
'vector2');
7016 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
7017 this.addOutput(
'out',
'float');
7018 this.title =
'cellnoise2d_float';
7019 this.desc =
"MaterialX:mtlx/procedural2d/cellnoise2d_float";
7020 this.onNodeCreated =
function() {
7023 this.onRemoved =
function() {
7026 this.onPropertyChanged =
function(name, value, prev_value) {
7027 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7029 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7030 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7032 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7033 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7035 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7036 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7038 this.bgcolor =
'#111';
7039 this.color =
'#222';
7040 this.shape = LiteGraph.ROUND_SHAPE;
7041 this.boxcolor =
'#161';
7054 this.nodedef_icon =
'';
7056 this.nodedef_type =
'float';
7058 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cellnoise3d.html';
7059 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_cellnoise3d_float_out_genglsl.png';
7060 this.nodedef_group =
'procedural3d';
7061 this.addInput(
'position',
'vector3');
7062 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
7063 this.addOutput(
'out',
'float');
7064 this.title =
'cellnoise3d_float';
7065 this.desc =
"MaterialX:mtlx/procedural3d/cellnoise3d_float";
7066 this.onNodeCreated =
function() {
7069 this.onRemoved =
function() {
7072 this.onPropertyChanged =
function(name, value, prev_value) {
7073 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7075 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7076 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7078 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7079 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7081 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7082 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7084 this.bgcolor =
'#111';
7085 this.color =
'#222';
7086 this.shape = LiteGraph.ROUND_SHAPE;
7087 this.boxcolor =
'#161';
7100 this.nodedef_icon =
'';
7102 this.nodedef_type =
'float';
7104 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/worleynoise2d.html';
7105 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_worleynoise2d_float_out_genglsl.png';
7106 this.nodedef_group =
'procedural2d';
7107 this.addInput(
'texcoord',
'vector2');
7108 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
7109 this.addInput(
'jitter',
'float');
7110 this.addProperty(
'jitter', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7111 this.addOutput(
'out',
'float');
7112 this.title =
'worleynoise2d_float';
7113 this.desc =
"MaterialX:mtlx/procedural2d/worleynoise2d_float";
7114 this.onNodeCreated =
function() {
7117 this.onRemoved =
function() {
7120 this.onPropertyChanged =
function(name, value, prev_value) {
7121 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7123 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7124 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7126 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7127 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7129 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7130 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7132 this.bgcolor =
'#111';
7133 this.color =
'#222';
7134 this.shape = LiteGraph.ROUND_SHAPE;
7135 this.boxcolor =
'#161';
7148 this.nodedef_icon =
'';
7150 this.nodedef_type =
'vector2';
7152 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/worleynoise2d.html';
7153 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_worleynoise2d_vector2_out_genglsl.png';
7154 this.nodedef_group =
'procedural2d';
7155 this.addInput(
'texcoord',
'vector2');
7156 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
7157 this.addInput(
'jitter',
'float');
7158 this.addProperty(
'jitter', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7159 this.addOutput(
'out',
'vector2');
7160 this.title =
'worleynoise2d_vector2';
7161 this.desc =
"MaterialX:mtlx/procedural2d/worleynoise2d_vector2";
7162 this.onNodeCreated =
function() {
7165 this.onRemoved =
function() {
7168 this.onPropertyChanged =
function(name, value, prev_value) {
7169 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7171 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7172 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7174 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7175 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7177 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7178 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7180 this.bgcolor =
'#111';
7181 this.color =
'#222';
7182 this.shape = LiteGraph.ROUND_SHAPE;
7183 this.boxcolor =
'#265';
7196 this.nodedef_icon =
'';
7198 this.nodedef_type =
'vector3';
7200 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/worleynoise2d.html';
7201 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_worleynoise2d_vector3_out_genglsl.png';
7202 this.nodedef_group =
'procedural2d';
7203 this.addInput(
'texcoord',
'vector2');
7204 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
7205 this.addInput(
'jitter',
'float');
7206 this.addProperty(
'jitter', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7207 this.addOutput(
'out',
'vector3');
7208 this.title =
'worleynoise2d_vector3';
7209 this.desc =
"MaterialX:mtlx/procedural2d/worleynoise2d_vector3";
7210 this.onNodeCreated =
function() {
7213 this.onRemoved =
function() {
7216 this.onPropertyChanged =
function(name, value, prev_value) {
7217 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7219 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7220 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7222 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7223 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7225 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7226 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7228 this.bgcolor =
'#111';
7229 this.color =
'#222';
7230 this.shape = LiteGraph.ROUND_SHAPE;
7231 this.boxcolor =
'#465';
7244 this.nodedef_icon =
'';
7246 this.nodedef_type =
'float';
7248 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/worleynoise3d.html';
7249 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_worleynoise3d_float_out_genglsl.png';
7250 this.nodedef_group =
'procedural3d';
7251 this.addInput(
'position',
'vector3');
7252 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
7253 this.addInput(
'jitter',
'float');
7254 this.addProperty(
'jitter', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7255 this.addOutput(
'out',
'float');
7256 this.title =
'worleynoise3d_float';
7257 this.desc =
"MaterialX:mtlx/procedural3d/worleynoise3d_float";
7258 this.onNodeCreated =
function() {
7261 this.onRemoved =
function() {
7264 this.onPropertyChanged =
function(name, value, prev_value) {
7265 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7267 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7268 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7270 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7271 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7273 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7274 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7276 this.bgcolor =
'#111';
7277 this.color =
'#222';
7278 this.shape = LiteGraph.ROUND_SHAPE;
7279 this.boxcolor =
'#161';
7292 this.nodedef_icon =
'';
7294 this.nodedef_type =
'vector2';
7296 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/worleynoise3d.html';
7297 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_worleynoise3d_vector2_out_genglsl.png';
7298 this.nodedef_group =
'procedural3d';
7299 this.addInput(
'position',
'vector3');
7300 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
7301 this.addInput(
'jitter',
'float');
7302 this.addProperty(
'jitter', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7303 this.addOutput(
'out',
'vector2');
7304 this.title =
'worleynoise3d_vector2';
7305 this.desc =
"MaterialX:mtlx/procedural3d/worleynoise3d_vector2";
7306 this.onNodeCreated =
function() {
7309 this.onRemoved =
function() {
7312 this.onPropertyChanged =
function(name, value, prev_value) {
7313 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7315 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7316 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7318 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7319 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7321 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7322 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7324 this.bgcolor =
'#111';
7325 this.color =
'#222';
7326 this.shape = LiteGraph.ROUND_SHAPE;
7327 this.boxcolor =
'#265';
7340 this.nodedef_icon =
'';
7342 this.nodedef_type =
'vector3';
7344 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/worleynoise3d.html';
7345 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_worleynoise3d_vector3_out_genglsl.png';
7346 this.nodedef_group =
'procedural3d';
7347 this.addInput(
'position',
'vector3');
7348 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Pobject"});
7349 this.addInput(
'jitter',
'float');
7350 this.addProperty(
'jitter', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7351 this.addOutput(
'out',
'vector3');
7352 this.title =
'worleynoise3d_vector3';
7353 this.desc =
"MaterialX:mtlx/procedural3d/worleynoise3d_vector3";
7354 this.onNodeCreated =
function() {
7357 this.onRemoved =
function() {
7360 this.onPropertyChanged =
function(name, value, prev_value) {
7361 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7363 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7364 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7366 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7367 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7369 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7370 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7372 this.bgcolor =
'#111';
7373 this.color =
'#222';
7374 this.shape = LiteGraph.ROUND_SHAPE;
7375 this.boxcolor =
'#465';
7388 this.nodedef_icon =
'';
7390 this.nodedef_type =
'float';
7392 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/unifiednoise2d.html';
7393 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_unifiednoise2d_float_out_genglsl.png';
7394 this.nodedef_group =
'procedural2d';
7395 this.addInput(
'texcoord',
'vector2');
7396 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Common",
"defaultgeomprop":
"UV0"});
7397 this.addInput(
'freq',
'vector2');
7398 this.addProperty(
'freq', [1, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frequency",
"uimin":
null,
"uimax":
null,
"uifolder":
"Common",
"defaultgeomprop":
""});
7399 this.addInput(
'offset',
'vector2');
7400 this.addProperty(
'offset', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Offset",
"uimin":
null,
"uimax":
null,
"uifolder":
"Common",
"defaultgeomprop":
""});
7401 this.addInput(
'jitter',
'float');
7402 this.addProperty(
'jitter', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Jitter",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Common",
"defaultgeomprop":
""});
7403 this.addInput(
'outmin',
'float');
7404 this.addProperty(
'outmin', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Output Min",
"uimin":
null,
"uimax":
null,
"uifolder":
"Post Process",
"defaultgeomprop":
""});
7405 this.addInput(
'outmax',
'float');
7406 this.addProperty(
'outmax', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Output Max",
"uimin":
null,
"uimax":
null,
"uifolder":
"Post Process",
"defaultgeomprop":
""});
7407 this.addInput(
'clampoutput',
'boolean');
7408 this.addProperty(
'clampoutput',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Clamp Output",
"uimin":
null,
"uimax":
null,
"uifolder":
"Post Process",
"defaultgeomprop":
""});
7409 this.addInput(
'octaves',
'integer');
7410 this.addProperty(
'octaves', 3,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Octaves",
"uimin":
null,
"uimax":
null,
"uifolder":
"Fractal",
"defaultgeomprop":
""});
7411 this.addInput(
'lacunarity',
'float');
7412 this.addProperty(
'lacunarity', 2,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Lacunarity",
"uimin":
null,
"uimax":
null,
"uifolder":
"Fractal",
"defaultgeomprop":
""});
7413 this.addInput(
'diminish',
'float');
7414 this.addProperty(
'diminish', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Diminish",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Fractal",
"defaultgeomprop":
""});
7415 this.addInput(
'type',
'integer');
7416 this.addProperty(
'type', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Noise Type",
"uimin":
"0",
"uimax":
"3",
"uifolder":
"Common",
"defaultgeomprop":
"",
"enum":[
"Perlin",
"Cell",
"Worley",
"Fractal"],
"enumvalues":[
"0",
"1",
"2",
"3"]});
7417 this.addOutput(
'out',
'float');
7418 this.title =
'unifiednoise2d_float';
7419 this.desc =
"MaterialX:mtlx/procedural2d/unifiednoise2d_float";
7420 this.onNodeCreated =
function() {
7423 this.onRemoved =
function() {
7426 this.onPropertyChanged =
function(name, value, prev_value) {
7427 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7429 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7430 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7432 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7433 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7435 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7436 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7438 this.bgcolor =
'#111';
7439 this.color =
'#222';
7440 this.shape = LiteGraph.ROUND_SHAPE;
7441 this.boxcolor =
'#161';
7454 this.nodedef_icon =
'';
7456 this.nodedef_type =
'float';
7458 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/unifiednoise3d.html';
7459 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_unifiednoise3d_float_out_genglsl.png';
7460 this.nodedef_group =
'procedural3d';
7461 this.addInput(
'position',
'vector3');
7462 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Common",
"defaultgeomprop":
"Pobject"});
7463 this.addInput(
'freq',
'vector3');
7464 this.addProperty(
'freq', [1, 1, 1],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Frequency",
"uimin":
null,
"uimax":
null,
"uifolder":
"Common",
"defaultgeomprop":
""});
7465 this.addInput(
'offset',
'vector3');
7466 this.addProperty(
'offset', [0, 0, 0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Offset",
"uimin":
null,
"uimax":
null,
"uifolder":
"Common",
"defaultgeomprop":
""});
7467 this.addInput(
'jitter',
'float');
7468 this.addProperty(
'jitter', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Jitter",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Common",
"defaultgeomprop":
""});
7469 this.addInput(
'outmin',
'float');
7470 this.addProperty(
'outmin', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Output Min",
"uimin":
null,
"uimax":
null,
"uifolder":
"Post Process",
"defaultgeomprop":
""});
7471 this.addInput(
'outmax',
'float');
7472 this.addProperty(
'outmax', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Output Max",
"uimin":
null,
"uimax":
null,
"uifolder":
"Post Process",
"defaultgeomprop":
""});
7473 this.addInput(
'clampoutput',
'boolean');
7474 this.addProperty(
'clampoutput',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Clamp Output",
"uimin":
null,
"uimax":
null,
"uifolder":
"Post Process",
"defaultgeomprop":
""});
7475 this.addInput(
'octaves',
'integer');
7476 this.addProperty(
'octaves', 3,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Octaves",
"uimin":
null,
"uimax":
null,
"uifolder":
"Fractal",
"defaultgeomprop":
""});
7477 this.addInput(
'lacunarity',
'float');
7478 this.addProperty(
'lacunarity', 2,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Lacunarity",
"uimin":
null,
"uimax":
null,
"uifolder":
"Fractal",
"defaultgeomprop":
""});
7479 this.addInput(
'diminish',
'float');
7480 this.addProperty(
'diminish', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Diminish",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Fractal",
"defaultgeomprop":
""});
7481 this.addInput(
'type',
'integer');
7482 this.addProperty(
'type', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Noise Type",
"uimin":
"0",
"uimax":
"3",
"uifolder":
"Common",
"defaultgeomprop":
"",
"enum":[
"Perlin",
"Cell",
"Worley",
"Fractal"],
"enumvalues":[
"0",
"1",
"2",
"3"]});
7483 this.addOutput(
'out',
'float');
7484 this.title =
'unifiednoise3d_float';
7485 this.desc =
"MaterialX:mtlx/procedural3d/unifiednoise3d_float";
7486 this.onNodeCreated =
function() {
7489 this.onRemoved =
function() {
7492 this.onPropertyChanged =
function(name, value, prev_value) {
7493 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7495 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7496 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7498 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7499 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7501 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7502 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7504 this.bgcolor =
'#111';
7505 this.color =
'#222';
7506 this.shape = LiteGraph.ROUND_SHAPE;
7507 this.boxcolor =
'#161';
7520 this.nodedef_icon =
'';
7522 this.nodedef_type =
'float';
7524 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/randomfloat.html';
7525 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_randomfloat_float_out_genglsl.png';
7526 this.nodedef_group =
'procedural';
7527 this.addInput(
'in',
'float');
7528 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Input",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7529 this.addInput(
'min',
'float');
7530 this.addProperty(
'min', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Minimum",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7531 this.addInput(
'max',
'float');
7532 this.addProperty(
'max', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Maximum",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7533 this.addInput(
'seed',
'integer');
7534 this.addProperty(
'seed', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Seed",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7535 this.addOutput(
'out',
'float');
7536 this.title =
'randomfloat_float';
7537 this.desc =
"MaterialX:mtlx/procedural/randomfloat_float";
7538 this.onNodeCreated =
function() {
7541 this.onRemoved =
function() {
7544 this.onPropertyChanged =
function(name, value, prev_value) {
7545 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7547 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7548 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7550 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7551 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7553 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7554 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7556 this.bgcolor =
'#111';
7557 this.color =
'#222';
7558 this.shape = LiteGraph.ROUND_SHAPE;
7559 this.boxcolor =
'#161';
7572 this.nodedef_icon =
'';
7574 this.nodedef_type =
'float';
7576 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/randomfloat.html';
7577 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_randomfloat_integer_out_genglsl.png';
7578 this.nodedef_group =
'procedural';
7579 this.addInput(
'in',
'integer');
7580 this.addProperty(
'in', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Input",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7581 this.addInput(
'min',
'float');
7582 this.addProperty(
'min', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Minimum",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7583 this.addInput(
'max',
'float');
7584 this.addProperty(
'max', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Maximum",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7585 this.addInput(
'seed',
'integer');
7586 this.addProperty(
'seed', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Seed",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7587 this.addOutput(
'out',
'float');
7588 this.title =
'randomfloat_float';
7589 this.desc =
"MaterialX:mtlx/procedural/randomfloat_integer";
7590 this.onNodeCreated =
function() {
7593 this.onRemoved =
function() {
7596 this.onPropertyChanged =
function(name, value, prev_value) {
7597 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7599 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7600 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7602 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7603 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7605 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7606 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7608 this.bgcolor =
'#111';
7609 this.color =
'#222';
7610 this.shape = LiteGraph.ROUND_SHAPE;
7611 this.boxcolor =
'#161';
7624 this.nodedef_icon =
'';
7626 this.nodedef_type =
'color3';
7628 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/randomcolor.html';
7629 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_randomcolor_float_out_genglsl.png';
7630 this.nodedef_group =
'procedural3d';
7631 this.addInput(
'in',
'float');
7632 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Input",
"uimin":
"0.0",
"uimax":
"10.0",
"uifolder":
"",
"defaultgeomprop":
""});
7633 this.addInput(
'huelow',
'float');
7634 this.addProperty(
'huelow', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Hue Low",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
7635 this.addInput(
'huehigh',
'float');
7636 this.addProperty(
'huehigh', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Hue High",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
7637 this.addInput(
'saturationlow',
'float');
7638 this.addProperty(
'saturationlow', 0.825,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Saturation Low",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
7639 this.addInput(
'saturationhigh',
'float');
7640 this.addProperty(
'saturationhigh', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Saturation High",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
7641 this.addInput(
'brightnesslow',
'float');
7642 this.addProperty(
'brightnesslow', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Brightness Low",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
7643 this.addInput(
'brightnesshigh',
'float');
7644 this.addProperty(
'brightnesshigh', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Brightness High",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
7645 this.addInput(
'seed',
'integer');
7646 this.addProperty(
'seed', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Seed",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7647 this.addOutput(
'out',
'color3');
7648 this.title =
'randomcolor_color3';
7649 this.desc =
"MaterialX:mtlx/procedural3d/randomcolor_float";
7650 this.onNodeCreated =
function() {
7653 this.onRemoved =
function() {
7656 this.onPropertyChanged =
function(name, value, prev_value) {
7657 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7659 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7660 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7662 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7663 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7665 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7666 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7668 this.bgcolor =
'#111';
7669 this.color =
'#222';
7670 this.shape = LiteGraph.ROUND_SHAPE;
7671 this.boxcolor =
'#37A';
7684 this.nodedef_icon =
'';
7686 this.nodedef_type =
'color3';
7688 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/randomcolor.html';
7689 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_randomcolor_integer_out_genglsl.png';
7690 this.nodedef_group =
'procedural3d';
7691 this.addInput(
'in',
'integer');
7692 this.addProperty(
'in', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Input",
"uimin":
"0",
"uimax":
"10",
"uifolder":
"",
"defaultgeomprop":
""});
7693 this.addInput(
'huelow',
'float');
7694 this.addProperty(
'huelow', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Hue Low",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
7695 this.addInput(
'huehigh',
'float');
7696 this.addProperty(
'huehigh', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Hue High",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
7697 this.addInput(
'saturationlow',
'float');
7698 this.addProperty(
'saturationlow', 0.825,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Saturation Low",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
7699 this.addInput(
'saturationhigh',
'float');
7700 this.addProperty(
'saturationhigh', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Saturation High",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
7701 this.addInput(
'brightnesslow',
'float');
7702 this.addProperty(
'brightnesslow', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Brightness Low",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
7703 this.addInput(
'brightnesshigh',
'float');
7704 this.addProperty(
'brightnesshigh', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Brightness High",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
7705 this.addInput(
'seed',
'integer');
7706 this.addProperty(
'seed', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Seed",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7707 this.addOutput(
'out',
'color3');
7708 this.title =
'randomcolor_color3';
7709 this.desc =
"MaterialX:mtlx/procedural3d/randomcolor_integer";
7710 this.onNodeCreated =
function() {
7713 this.onRemoved =
function() {
7716 this.onPropertyChanged =
function(name, value, prev_value) {
7717 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7719 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7720 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7722 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7723 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7725 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7726 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7728 this.bgcolor =
'#111';
7729 this.color =
'#222';
7730 this.shape = LiteGraph.ROUND_SHAPE;
7731 this.boxcolor =
'#37A';
7744 this.nodedef_icon =
'';
7746 this.nodedef_type =
'color3';
7748 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/checkerboard.html';
7749 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_checkerboard_color3_out_genglsl.png';
7750 this.nodedef_group =
'procedural2d';
7751 this.addInput(
'color1',
'color3');
7752 this.addProperty(
'color1', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Color 1",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7753 this.addInput(
'color2',
'color3');
7754 this.addProperty(
'color2', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Color 2",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7755 this.addInput(
'uvtiling',
'vector2');
7756 this.addProperty(
'uvtiling', [8, 8],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"UV Tiling",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7757 this.addInput(
'uvoffset',
'vector2');
7758 this.addProperty(
'uvoffset', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"UV Offset",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7759 this.addInput(
'texcoord',
'vector2');
7760 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Texture Coordinates",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
7761 this.addOutput(
'out',
'color3');
7762 this.title =
'checkerboard_color3';
7763 this.desc =
"MaterialX:mtlx/procedural2d/checkerboard_color3";
7764 this.onNodeCreated =
function() {
7767 this.onRemoved =
function() {
7770 this.onPropertyChanged =
function(name, value, prev_value) {
7771 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7773 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7774 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7776 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7777 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7779 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7780 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7782 this.bgcolor =
'#111';
7783 this.color =
'#222';
7784 this.shape = LiteGraph.ROUND_SHAPE;
7785 this.boxcolor =
'#37A';
7798 this.nodedef_icon =
'';
7800 this.nodedef_type =
'float';
7802 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/line.html';
7803 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_line_float_out_genglsl.png';
7804 this.nodedef_group =
'procedural2d';
7805 this.addInput(
'texcoord',
'vector2');
7806 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
7807 this.addInput(
'center',
'vector2');
7808 this.addProperty(
'center', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7809 this.addInput(
'radius',
'float');
7810 this.addProperty(
'radius', 0.1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7811 this.addInput(
'point1',
'vector2');
7812 this.addProperty(
'point1', [0.25, 0.25],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7813 this.addInput(
'point2',
'vector2');
7814 this.addProperty(
'point2', [0.75, 0.75],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7815 this.addOutput(
'out',
'float');
7816 this.title =
'line_float';
7817 this.desc =
"MaterialX:mtlx/procedural2d/line_float";
7818 this.onNodeCreated =
function() {
7821 this.onRemoved =
function() {
7824 this.onPropertyChanged =
function(name, value, prev_value) {
7825 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7827 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7828 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7830 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7831 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7833 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7834 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7836 this.bgcolor =
'#111';
7837 this.color =
'#222';
7838 this.shape = LiteGraph.ROUND_SHAPE;
7839 this.boxcolor =
'#161';
7852 this.nodedef_icon =
'';
7854 this.nodedef_type =
'float';
7856 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/circle.html';
7857 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_circle_float_out_genglsl.png';
7858 this.nodedef_group =
'procedural2d';
7859 this.addInput(
'texcoord',
'vector2');
7860 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
7861 this.addInput(
'center',
'vector2');
7862 this.addProperty(
'center', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7863 this.addInput(
'radius',
'float');
7864 this.addProperty(
'radius', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7865 this.addOutput(
'out',
'float');
7866 this.title =
'circle_float';
7867 this.desc =
"MaterialX:mtlx/procedural2d/circle_float";
7868 this.onNodeCreated =
function() {
7871 this.onRemoved =
function() {
7874 this.onPropertyChanged =
function(name, value, prev_value) {
7875 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7877 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7878 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7880 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7881 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7883 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7884 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7886 this.bgcolor =
'#111';
7887 this.color =
'#222';
7888 this.shape = LiteGraph.ROUND_SHAPE;
7889 this.boxcolor =
'#161';
7902 this.nodedef_icon =
'';
7904 this.nodedef_type =
'float';
7906 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cloverleaf.html';
7907 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_cloverleaf_float_out_genglsl.png';
7908 this.nodedef_group =
'procedural2d';
7909 this.addInput(
'texcoord',
'vector2');
7910 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
7911 this.addInput(
'center',
'vector2');
7912 this.addProperty(
'center', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7913 this.addInput(
'radius',
'float');
7914 this.addProperty(
'radius', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7915 this.addOutput(
'out',
'float');
7916 this.title =
'cloverleaf_float';
7917 this.desc =
"MaterialX:mtlx/procedural2d/cloverleaf_float";
7918 this.onNodeCreated =
function() {
7921 this.onRemoved =
function() {
7924 this.onPropertyChanged =
function(name, value, prev_value) {
7925 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7927 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7928 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7930 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7931 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7933 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7934 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7936 this.bgcolor =
'#111';
7937 this.color =
'#222';
7938 this.shape = LiteGraph.ROUND_SHAPE;
7939 this.boxcolor =
'#161';
7952 this.nodedef_icon =
'';
7954 this.nodedef_type =
'float';
7956 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/hexagon.html';
7957 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_hexagon_float_out_genglsl.png';
7958 this.nodedef_group =
'procedural2d';
7959 this.addInput(
'texcoord',
'vector2');
7960 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
7961 this.addInput(
'center',
'vector2');
7962 this.addProperty(
'center', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7963 this.addInput(
'radius',
'float');
7964 this.addProperty(
'radius', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
7965 this.addOutput(
'out',
'float');
7966 this.title =
'hexagon_float';
7967 this.desc =
"MaterialX:mtlx/procedural2d/hexagon_float";
7968 this.onNodeCreated =
function() {
7971 this.onRemoved =
function() {
7974 this.onPropertyChanged =
function(name, value, prev_value) {
7975 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
7977 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
7978 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
7980 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
7981 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
7983 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
7984 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
7986 this.bgcolor =
'#111';
7987 this.color =
'#222';
7988 this.shape = LiteGraph.ROUND_SHAPE;
7989 this.boxcolor =
'#161';
8002 this.nodedef_icon =
'';
8004 this.nodedef_type =
'color3';
8006 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/grid.html';
8007 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_grid_color3_out_genglsl.png';
8008 this.nodedef_group =
'procedural2d';
8009 this.addInput(
'texcoord',
'vector2');
8010 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
8011 this.addInput(
'uvtiling',
'vector2');
8012 this.addProperty(
'uvtiling', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8013 this.addInput(
'uvoffset',
'vector2');
8014 this.addProperty(
'uvoffset', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8015 this.addInput(
'thickness',
'float');
8016 this.addProperty(
'thickness', 0.05,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8017 this.addInput(
'staggered',
'boolean');
8018 this.addProperty(
'staggered',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8019 this.addOutput(
'out',
'color3');
8020 this.title =
'grid_color3';
8021 this.desc =
"MaterialX:mtlx/procedural2d/grid_color3";
8022 this.onNodeCreated =
function() {
8025 this.onRemoved =
function() {
8028 this.onPropertyChanged =
function(name, value, prev_value) {
8029 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8031 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8032 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8034 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8035 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8037 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8038 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8040 this.bgcolor =
'#111';
8041 this.color =
'#222';
8042 this.shape = LiteGraph.ROUND_SHAPE;
8043 this.boxcolor =
'#37A';
8056 this.nodedef_icon =
'';
8058 this.nodedef_type =
'color3';
8060 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/crosshatch.html';
8061 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_crosshatch_color3_out_genglsl.png';
8062 this.nodedef_group =
'procedural2d';
8063 this.addInput(
'texcoord',
'vector2');
8064 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
8065 this.addInput(
'uvtiling',
'vector2');
8066 this.addProperty(
'uvtiling', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8067 this.addInput(
'uvoffset',
'vector2');
8068 this.addProperty(
'uvoffset', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8069 this.addInput(
'thickness',
'float');
8070 this.addProperty(
'thickness', 0.05,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8071 this.addInput(
'staggered',
'boolean');
8072 this.addProperty(
'staggered',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8073 this.addOutput(
'out',
'color3');
8074 this.title =
'crosshatch_color3';
8075 this.desc =
"MaterialX:mtlx/procedural2d/crosshatch_color3";
8076 this.onNodeCreated =
function() {
8079 this.onRemoved =
function() {
8082 this.onPropertyChanged =
function(name, value, prev_value) {
8083 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8085 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8086 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8088 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8089 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8091 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8092 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8094 this.bgcolor =
'#111';
8095 this.color =
'#222';
8096 this.shape = LiteGraph.ROUND_SHAPE;
8097 this.boxcolor =
'#37A';
8110 this.nodedef_icon =
'';
8112 this.nodedef_type =
'color3';
8114 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledcircles.html';
8115 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledcircles_color3_out_genglsl.png';
8116 this.nodedef_group =
'procedural2d';
8117 this.addInput(
'texcoord',
'vector2');
8118 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
8119 this.addInput(
'uvtiling',
'vector2');
8120 this.addProperty(
'uvtiling', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8121 this.addInput(
'uvoffset',
'vector2');
8122 this.addProperty(
'uvoffset', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8123 this.addInput(
'size',
'float');
8124 this.addProperty(
'size', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8125 this.addInput(
'staggered',
'boolean');
8126 this.addProperty(
'staggered',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8127 this.addOutput(
'out',
'color3');
8128 this.title =
'tiledcircles_color3';
8129 this.desc =
"MaterialX:mtlx/procedural2d/tiledcircles_color3";
8130 this.onNodeCreated =
function() {
8133 this.onRemoved =
function() {
8136 this.onPropertyChanged =
function(name, value, prev_value) {
8137 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8139 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8140 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8142 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8143 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8145 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8146 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8148 this.bgcolor =
'#111';
8149 this.color =
'#222';
8150 this.shape = LiteGraph.ROUND_SHAPE;
8151 this.boxcolor =
'#37A';
8164 this.nodedef_icon =
'';
8166 this.nodedef_type =
'color3';
8168 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledcloverleafs.html';
8169 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledcloverleafs_color3_out_genglsl.png';
8170 this.nodedef_group =
'procedural2d';
8171 this.addInput(
'texcoord',
'vector2');
8172 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
8173 this.addInput(
'uvtiling',
'vector2');
8174 this.addProperty(
'uvtiling', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8175 this.addInput(
'uvoffset',
'vector2');
8176 this.addProperty(
'uvoffset', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8177 this.addInput(
'size',
'float');
8178 this.addProperty(
'size', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8179 this.addInput(
'staggered',
'boolean');
8180 this.addProperty(
'staggered',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8181 this.addOutput(
'out',
'color3');
8182 this.title =
'tiledcloverleafs_color3';
8183 this.desc =
"MaterialX:mtlx/procedural2d/tiledcloverleafs_color3";
8184 this.onNodeCreated =
function() {
8187 this.onRemoved =
function() {
8190 this.onPropertyChanged =
function(name, value, prev_value) {
8191 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8193 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8194 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8196 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8197 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8199 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8200 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8202 this.bgcolor =
'#111';
8203 this.color =
'#222';
8204 this.shape = LiteGraph.ROUND_SHAPE;
8205 this.boxcolor =
'#37A';
8218 this.nodedef_icon =
'';
8220 this.nodedef_type =
'color3';
8222 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledhexagons.html';
8223 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledhexagons_color3_out_genglsl.png';
8224 this.nodedef_group =
'procedural2d';
8225 this.addInput(
'texcoord',
'vector2');
8226 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
8227 this.addInput(
'uvtiling',
'vector2');
8228 this.addProperty(
'uvtiling', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8229 this.addInput(
'uvoffset',
'vector2');
8230 this.addProperty(
'uvoffset', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8231 this.addInput(
'size',
'float');
8232 this.addProperty(
'size', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8233 this.addInput(
'staggered',
'boolean');
8234 this.addProperty(
'staggered',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8235 this.addOutput(
'out',
'color3');
8236 this.title =
'tiledhexagons_color3';
8237 this.desc =
"MaterialX:mtlx/procedural2d/tiledhexagons_color3";
8238 this.onNodeCreated =
function() {
8241 this.onRemoved =
function() {
8244 this.onPropertyChanged =
function(name, value, prev_value) {
8245 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8247 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8248 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8250 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8251 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8253 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8254 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8256 this.bgcolor =
'#111';
8257 this.color =
'#222';
8258 this.shape = LiteGraph.ROUND_SHAPE;
8259 this.boxcolor =
'#37A';
8272 this.nodedef_icon =
'';
8274 this.nodedef_type =
'vector3';
8276 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/position.html';
8277 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_position_vector3_out_genglsl.png';
8278 this.nodedef_group =
'geometric';
8279 this.addInput(
'space',
'string');
8280 this.addProperty(
'space',
'object',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"model",
"object",
"world"]});
8281 this.addOutput(
'out',
'vector3');
8282 this.title =
'position_vector3';
8283 this.desc =
"MaterialX:mtlx/geometric/position_vector3";
8284 this.onNodeCreated =
function() {
8287 this.onRemoved =
function() {
8290 this.onPropertyChanged =
function(name, value, prev_value) {
8291 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8293 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8294 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8296 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8297 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8299 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8300 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8302 this.bgcolor =
'#111';
8303 this.color =
'#222';
8304 this.shape = LiteGraph.ROUND_SHAPE;
8305 this.boxcolor =
'#465';
8318 this.nodedef_icon =
'';
8320 this.nodedef_type =
'vector3';
8322 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/normal.html';
8323 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_normal_vector3_out_genglsl.png';
8324 this.nodedef_group =
'geometric';
8325 this.addInput(
'space',
'string');
8326 this.addProperty(
'space',
'object',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"model",
"object",
"world"]});
8327 this.addOutput(
'out',
'vector3');
8328 this.title =
'normal_vector3';
8329 this.desc =
"MaterialX:mtlx/geometric/normal_vector3";
8330 this.onNodeCreated =
function() {
8333 this.onRemoved =
function() {
8336 this.onPropertyChanged =
function(name, value, prev_value) {
8337 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8339 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8340 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8342 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8343 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8345 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8346 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8348 this.bgcolor =
'#111';
8349 this.color =
'#222';
8350 this.shape = LiteGraph.ROUND_SHAPE;
8351 this.boxcolor =
'#465';
8364 this.nodedef_icon =
'';
8366 this.nodedef_type =
'vector3';
8368 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tangent.html';
8369 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tangent_vector3_out_genglsl.png';
8370 this.nodedef_group =
'geometric';
8371 this.addInput(
'space',
'string');
8372 this.addProperty(
'space',
'object',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"model",
"object",
"world"]});
8373 this.addInput(
'index',
'integer');
8374 this.addProperty(
'index', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8375 this.addOutput(
'out',
'vector3');
8376 this.title =
'tangent_vector3';
8377 this.desc =
"MaterialX:mtlx/geometric/tangent_vector3";
8378 this.onNodeCreated =
function() {
8381 this.onRemoved =
function() {
8384 this.onPropertyChanged =
function(name, value, prev_value) {
8385 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8387 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8388 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8390 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8391 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8393 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8394 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8396 this.bgcolor =
'#111';
8397 this.color =
'#222';
8398 this.shape = LiteGraph.ROUND_SHAPE;
8399 this.boxcolor =
'#465';
8412 this.nodedef_icon =
'';
8414 this.nodedef_type =
'vector3';
8416 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/bitangent.html';
8417 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_bitangent_vector3_out_genglsl.png';
8418 this.nodedef_group =
'geometric';
8419 this.addInput(
'space',
'string');
8420 this.addProperty(
'space',
'object',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"model",
"object",
"world"]});
8421 this.addInput(
'index',
'integer');
8422 this.addProperty(
'index', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8423 this.addOutput(
'out',
'vector3');
8424 this.title =
'bitangent_vector3';
8425 this.desc =
"MaterialX:mtlx/geometric/bitangent_vector3";
8426 this.onNodeCreated =
function() {
8429 this.onRemoved =
function() {
8432 this.onPropertyChanged =
function(name, value, prev_value) {
8433 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8435 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8436 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8438 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8439 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8441 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8442 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8444 this.bgcolor =
'#111';
8445 this.color =
'#222';
8446 this.shape = LiteGraph.ROUND_SHAPE;
8447 this.boxcolor =
'#465';
8460 this.nodedef_icon =
'';
8462 this.nodedef_type =
'vector2';
8464 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/texcoord.html';
8465 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_texcoord_vector2_out_genglsl.png';
8466 this.nodedef_group =
'geometric';
8467 this.addInput(
'index',
'integer');
8468 this.addProperty(
'index', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8469 this.addOutput(
'out',
'vector2');
8470 this.title =
'texcoord_vector2';
8471 this.desc =
"MaterialX:mtlx/geometric/texcoord_vector2";
8472 this.onNodeCreated =
function() {
8475 this.onRemoved =
function() {
8478 this.onPropertyChanged =
function(name, value, prev_value) {
8479 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8481 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8482 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8484 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8485 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8487 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8488 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8490 this.bgcolor =
'#111';
8491 this.color =
'#222';
8492 this.shape = LiteGraph.ROUND_SHAPE;
8493 this.boxcolor =
'#265';
8506 this.nodedef_icon =
'';
8508 this.nodedef_type =
'vector3';
8510 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/texcoord.html';
8511 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_texcoord_vector3_out_genglsl.png';
8512 this.nodedef_group =
'geometric';
8513 this.addInput(
'index',
'integer');
8514 this.addProperty(
'index', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8515 this.addOutput(
'out',
'vector3');
8516 this.title =
'texcoord_vector3';
8517 this.desc =
"MaterialX:mtlx/geometric/texcoord_vector3";
8518 this.onNodeCreated =
function() {
8521 this.onRemoved =
function() {
8524 this.onPropertyChanged =
function(name, value, prev_value) {
8525 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8527 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8528 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8530 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8531 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8533 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8534 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8536 this.bgcolor =
'#111';
8537 this.color =
'#222';
8538 this.shape = LiteGraph.ROUND_SHAPE;
8539 this.boxcolor =
'#465';
8552 this.nodedef_icon =
'';
8554 this.nodedef_type =
'float';
8556 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geomcolor.html';
8557 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geomcolor_float_out_genglsl.png';
8558 this.nodedef_group =
'geometric';
8559 this.addInput(
'index',
'integer');
8560 this.addProperty(
'index', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8561 this.addOutput(
'out',
'float');
8562 this.title =
'geomcolor_float';
8563 this.desc =
"MaterialX:mtlx/geometric/geomcolor_float";
8564 this.onNodeCreated =
function() {
8567 this.onRemoved =
function() {
8570 this.onPropertyChanged =
function(name, value, prev_value) {
8571 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8573 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8574 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8576 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8577 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8579 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8580 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8582 this.bgcolor =
'#111';
8583 this.color =
'#222';
8584 this.shape = LiteGraph.ROUND_SHAPE;
8585 this.boxcolor =
'#161';
8598 this.nodedef_icon =
'';
8600 this.nodedef_type =
'color3';
8602 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geomcolor.html';
8603 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geomcolor_color3_out_genglsl.png';
8604 this.nodedef_group =
'geometric';
8605 this.addInput(
'index',
'integer');
8606 this.addProperty(
'index', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8607 this.addOutput(
'out',
'color3');
8608 this.title =
'geomcolor_color3';
8609 this.desc =
"MaterialX:mtlx/geometric/geomcolor_color3";
8610 this.onNodeCreated =
function() {
8613 this.onRemoved =
function() {
8616 this.onPropertyChanged =
function(name, value, prev_value) {
8617 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8619 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8620 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8622 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8623 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8625 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8626 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8628 this.bgcolor =
'#111';
8629 this.color =
'#222';
8630 this.shape = LiteGraph.ROUND_SHAPE;
8631 this.boxcolor =
'#37A';
8644 this.nodedef_icon =
'';
8646 this.nodedef_type =
'color4';
8648 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geomcolor.html';
8649 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geomcolor_color4_out_genglsl.png';
8650 this.nodedef_group =
'geometric';
8651 this.addInput(
'index',
'integer');
8652 this.addProperty(
'index', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8653 this.addOutput(
'out',
'color4');
8654 this.title =
'geomcolor_color4';
8655 this.desc =
"MaterialX:mtlx/geometric/geomcolor_color4";
8656 this.onNodeCreated =
function() {
8659 this.onRemoved =
function() {
8662 this.onPropertyChanged =
function(name, value, prev_value) {
8663 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8665 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8666 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8668 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8669 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8671 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8672 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8674 this.bgcolor =
'#111';
8675 this.color =
'#222';
8676 this.shape = LiteGraph.ROUND_SHAPE;
8677 this.boxcolor =
'#69A';
8690 this.nodedef_icon =
'';
8692 this.nodedef_type =
'integer';
8694 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
8695 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_integer_out_genglsl.png';
8696 this.nodedef_group =
'geometric';
8697 this.addInput(
'geomprop',
'string');
8698 this.addProperty(
'geomprop',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8699 this.addInput(
'default',
'integer');
8700 this.addProperty(
'default', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8701 this.addOutput(
'out',
'integer');
8702 this.title =
'geompropvalue_integer';
8703 this.desc =
"MaterialX:mtlx/geometric/geompropvalue_integer";
8704 this.onNodeCreated =
function() {
8707 this.onRemoved =
function() {
8710 this.onPropertyChanged =
function(name, value, prev_value) {
8711 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8713 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8714 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8716 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8717 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8719 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8720 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8722 this.bgcolor =
'#111';
8723 this.color =
'#222';
8724 this.shape = LiteGraph.ROUND_SHAPE;
8725 this.boxcolor =
'#A32';
8738 this.nodedef_icon =
'';
8740 this.nodedef_type =
'boolean';
8742 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
8743 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_boolean_out_genglsl.png';
8744 this.nodedef_group =
'geometric';
8745 this.addInput(
'geomprop',
'string');
8746 this.addProperty(
'geomprop',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8747 this.addInput(
'default',
'boolean');
8748 this.addProperty(
'default',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8749 this.addOutput(
'out',
'boolean');
8750 this.title =
'geompropvalue_boolean';
8751 this.desc =
"MaterialX:mtlx/geometric/geompropvalue_boolean";
8752 this.onNodeCreated =
function() {
8755 this.onRemoved =
function() {
8758 this.onPropertyChanged =
function(name, value, prev_value) {
8759 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8761 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8762 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8764 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8765 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8767 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8768 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8770 this.bgcolor =
'#111';
8771 this.color =
'#222';
8772 this.shape = LiteGraph.ROUND_SHAPE;
8773 this.boxcolor =
'#060';
8786 this.nodedef_icon =
'';
8788 this.nodedef_type =
'string';
8790 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
8791 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_string_out_genglsl.png';
8792 this.nodedef_group =
'geometric';
8793 this.addInput(
'geomprop',
'string');
8794 this.addProperty(
'geomprop',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8795 this.addInput(
'default',
'string');
8796 this.addProperty(
'default',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8797 this.addOutput(
'out',
'string');
8798 this.title =
'geompropvalue_string';
8799 this.desc =
"MaterialX:mtlx/geometric/geompropvalue_string";
8800 this.onNodeCreated =
function() {
8803 this.onRemoved =
function() {
8806 this.onPropertyChanged =
function(name, value, prev_value) {
8807 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8809 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8810 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8812 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8813 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8815 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8816 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8818 this.bgcolor =
'#111';
8819 this.color =
'#222';
8820 this.shape = LiteGraph.ROUND_SHAPE;
8821 this.boxcolor =
'#395';
8834 this.nodedef_icon =
'';
8836 this.nodedef_type =
'float';
8838 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
8839 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_float_out_genglsl.png';
8840 this.nodedef_group =
'geometric';
8841 this.addInput(
'geomprop',
'string');
8842 this.addProperty(
'geomprop',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8843 this.addInput(
'default',
'float');
8844 this.addProperty(
'default', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8845 this.addOutput(
'out',
'float');
8846 this.title =
'geompropvalue_float';
8847 this.desc =
"MaterialX:mtlx/geometric/geompropvalue_float";
8848 this.onNodeCreated =
function() {
8851 this.onRemoved =
function() {
8854 this.onPropertyChanged =
function(name, value, prev_value) {
8855 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8857 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8858 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8860 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8861 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8863 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8864 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8866 this.bgcolor =
'#111';
8867 this.color =
'#222';
8868 this.shape = LiteGraph.ROUND_SHAPE;
8869 this.boxcolor =
'#161';
8882 this.nodedef_icon =
'';
8884 this.nodedef_type =
'color3';
8886 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
8887 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_color3_out_genglsl.png';
8888 this.nodedef_group =
'geometric';
8889 this.addInput(
'geomprop',
'string');
8890 this.addProperty(
'geomprop',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8891 this.addInput(
'default',
'color3');
8892 this.addProperty(
'default', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8893 this.addOutput(
'out',
'color3');
8894 this.title =
'geompropvalue_color3';
8895 this.desc =
"MaterialX:mtlx/geometric/geompropvalue_color3";
8896 this.onNodeCreated =
function() {
8899 this.onRemoved =
function() {
8902 this.onPropertyChanged =
function(name, value, prev_value) {
8903 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8905 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8906 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8908 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8909 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8911 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8912 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8914 this.bgcolor =
'#111';
8915 this.color =
'#222';
8916 this.shape = LiteGraph.ROUND_SHAPE;
8917 this.boxcolor =
'#37A';
8930 this.nodedef_icon =
'';
8932 this.nodedef_type =
'color4';
8934 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
8935 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_color4_out_genglsl.png';
8936 this.nodedef_group =
'geometric';
8937 this.addInput(
'geomprop',
'string');
8938 this.addProperty(
'geomprop',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8939 this.addInput(
'default',
'color4');
8940 this.addProperty(
'default', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8941 this.addOutput(
'out',
'color4');
8942 this.title =
'geompropvalue_color4';
8943 this.desc =
"MaterialX:mtlx/geometric/geompropvalue_color4";
8944 this.onNodeCreated =
function() {
8947 this.onRemoved =
function() {
8950 this.onPropertyChanged =
function(name, value, prev_value) {
8951 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
8953 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
8954 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
8956 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
8957 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
8959 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
8960 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
8962 this.bgcolor =
'#111';
8963 this.color =
'#222';
8964 this.shape = LiteGraph.ROUND_SHAPE;
8965 this.boxcolor =
'#69A';
8978 this.nodedef_icon =
'';
8980 this.nodedef_type =
'vector2';
8982 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
8983 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_vector2_out_genglsl.png';
8984 this.nodedef_group =
'geometric';
8985 this.addInput(
'geomprop',
'string');
8986 this.addProperty(
'geomprop',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8987 this.addInput(
'default',
'vector2');
8988 this.addProperty(
'default', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
8989 this.addOutput(
'out',
'vector2');
8990 this.title =
'geompropvalue_vector2';
8991 this.desc =
"MaterialX:mtlx/geometric/geompropvalue_vector2";
8992 this.onNodeCreated =
function() {
8995 this.onRemoved =
function() {
8998 this.onPropertyChanged =
function(name, value, prev_value) {
8999 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9001 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9002 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9004 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9005 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9007 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9008 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9010 this.bgcolor =
'#111';
9011 this.color =
'#222';
9012 this.shape = LiteGraph.ROUND_SHAPE;
9013 this.boxcolor =
'#265';
9026 this.nodedef_icon =
'';
9028 this.nodedef_type =
'vector3';
9030 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
9031 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_vector3_out_genglsl.png';
9032 this.nodedef_group =
'geometric';
9033 this.addInput(
'geomprop',
'string');
9034 this.addProperty(
'geomprop',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9035 this.addInput(
'default',
'vector3');
9036 this.addProperty(
'default', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9037 this.addOutput(
'out',
'vector3');
9038 this.title =
'geompropvalue_vector3';
9039 this.desc =
"MaterialX:mtlx/geometric/geompropvalue_vector3";
9040 this.onNodeCreated =
function() {
9043 this.onRemoved =
function() {
9046 this.onPropertyChanged =
function(name, value, prev_value) {
9047 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9049 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9050 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9052 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9053 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9055 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9056 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9058 this.bgcolor =
'#111';
9059 this.color =
'#222';
9060 this.shape = LiteGraph.ROUND_SHAPE;
9061 this.boxcolor =
'#465';
9074 this.nodedef_icon =
'';
9076 this.nodedef_type =
'vector4';
9078 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/geompropvalue.html';
9079 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_geompropvalue_vector4_out_genglsl.png';
9080 this.nodedef_group =
'geometric';
9081 this.addInput(
'geomprop',
'string');
9082 this.addProperty(
'geomprop',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9083 this.addInput(
'default',
'vector4');
9084 this.addProperty(
'default', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9085 this.addOutput(
'out',
'vector4');
9086 this.title =
'geompropvalue_vector4';
9087 this.desc =
"MaterialX:mtlx/geometric/geompropvalue_vector4";
9088 this.onNodeCreated =
function() {
9091 this.onRemoved =
function() {
9094 this.onPropertyChanged =
function(name, value, prev_value) {
9095 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9097 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9098 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9100 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9101 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9103 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9104 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9106 this.bgcolor =
'#111';
9107 this.color =
'#222';
9108 this.shape = LiteGraph.ROUND_SHAPE;
9109 this.boxcolor =
'#275';
9122 this.nodedef_icon =
'';
9124 this.nodedef_type =
'vector3';
9126 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/bump.html';
9127 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_bump_vector3_out_genglsl.png';
9128 this.nodedef_group =
'geometric';
9129 this.addInput(
'height',
'float');
9130 this.addProperty(
'height', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Height",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
9131 this.addInput(
'scale',
'float');
9132 this.addProperty(
'scale', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Scale",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
9133 this.addInput(
'normal',
'vector3');
9134 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
9135 this.addInput(
'tangent',
'vector3');
9136 this.addProperty(
'tangent', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Tangent",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Tworld"});
9137 this.addOutput(
'out',
'vector3');
9138 this.title =
'bump_vector3';
9139 this.desc =
"MaterialX:mtlx/geometric/bump_vector3";
9140 this.onNodeCreated =
function() {
9143 this.onRemoved =
function() {
9146 this.onPropertyChanged =
function(name, value, prev_value) {
9147 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9149 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9150 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9152 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9153 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9155 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9156 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9158 this.bgcolor =
'#111';
9159 this.color =
'#222';
9160 this.shape = LiteGraph.ROUND_SHAPE;
9161 this.boxcolor =
'#465';
9174 this.nodedef_icon =
'';
9176 this.nodedef_type =
'float';
9178 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ambientocclusion.html';
9179 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ambientocclusion_float_out_genglsl.png';
9180 this.nodedef_group =
'global';
9181 this.addInput(
'coneangle',
'float');
9182 this.addProperty(
'coneangle', 90.0,
'float',{
"colorspace":
"",
"unit":
"degree",
"unittype":
"angle",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9183 this.addInput(
'maxdistance',
'float');
9184 this.addProperty(
'maxdistance', 1e38,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9185 this.addOutput(
'out',
'float');
9186 this.title =
'ambientocclusion_float';
9187 this.desc =
"MaterialX:mtlx/global/ambientocclusion_float";
9188 this.onNodeCreated =
function() {
9191 this.onRemoved =
function() {
9194 this.onPropertyChanged =
function(name, value, prev_value) {
9195 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9197 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9198 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9200 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9201 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9203 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9204 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9206 this.bgcolor =
'#111';
9207 this.color =
'#222';
9208 this.shape = LiteGraph.ROUND_SHAPE;
9209 this.boxcolor =
'#161';
9222 this.nodedef_icon =
'';
9224 this.nodedef_type =
'float';
9226 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/frame.html';
9227 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_frame_float_out_genglsl.png';
9228 this.nodedef_group =
'application';
9229 this.addOutput(
'out',
'float');
9230 this.title =
'frame_float';
9231 this.desc =
"MaterialX:mtlx/application/frame_float";
9232 this.onNodeCreated =
function() {
9235 this.onRemoved =
function() {
9238 this.onPropertyChanged =
function(name, value, prev_value) {
9239 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9241 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9242 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9244 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9245 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9247 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9248 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9250 this.bgcolor =
'#111';
9251 this.color =
'#222';
9252 this.shape = LiteGraph.ROUND_SHAPE;
9253 this.boxcolor =
'#161';
9266 this.nodedef_icon =
'';
9268 this.nodedef_type =
'float';
9270 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/time.html';
9271 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_time_float_out_genglsl.png';
9272 this.nodedef_group =
'application';
9273 this.addInput(
'fps',
'float');
9274 this.addProperty(
'fps', 24.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9275 this.addOutput(
'out',
'float');
9276 this.title =
'time_float';
9277 this.desc =
"MaterialX:mtlx/application/time_float";
9278 this.onNodeCreated =
function() {
9281 this.onRemoved =
function() {
9284 this.onPropertyChanged =
function(name, value, prev_value) {
9285 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9287 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9288 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9290 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9291 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9293 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9294 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9296 this.bgcolor =
'#111';
9297 this.color =
'#222';
9298 this.shape = LiteGraph.ROUND_SHAPE;
9299 this.boxcolor =
'#161';
9312 this.nodedef_icon =
'';
9314 this.nodedef_type =
'float';
9316 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9317 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_float_out_genglsl.png';
9318 this.nodedef_group =
'math';
9319 this.addInput(
'in1',
'float');
9320 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9321 this.addInput(
'in2',
'float');
9322 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9323 this.addOutput(
'out',
'float');
9324 this.title =
'add_float';
9325 this.desc =
"MaterialX:mtlx/math/add_float";
9326 this.onNodeCreated =
function() {
9329 this.onRemoved =
function() {
9332 this.onPropertyChanged =
function(name, value, prev_value) {
9333 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9335 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9336 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9338 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9339 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9341 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9342 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9344 this.bgcolor =
'#111';
9345 this.color =
'#222';
9346 this.shape = LiteGraph.ROUND_SHAPE;
9347 this.boxcolor =
'#161';
9351mtlx_math_add_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9360 this.nodedef_icon =
'';
9362 this.nodedef_type =
'integer';
9364 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9365 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_integer_out_genglsl.png';
9366 this.nodedef_group =
'math';
9367 this.addInput(
'in1',
'integer');
9368 this.addProperty(
'in1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9369 this.addInput(
'in2',
'integer');
9370 this.addProperty(
'in2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9371 this.addOutput(
'out',
'integer');
9372 this.title =
'add_integer';
9373 this.desc =
"MaterialX:mtlx/math/add_integer";
9374 this.onNodeCreated =
function() {
9377 this.onRemoved =
function() {
9380 this.onPropertyChanged =
function(name, value, prev_value) {
9381 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9383 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9384 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9386 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9387 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9389 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9390 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9392 this.bgcolor =
'#111';
9393 this.color =
'#222';
9394 this.shape = LiteGraph.ROUND_SHAPE;
9395 this.boxcolor =
'#A32';
9399mtlx_math_add_integer.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9408 this.nodedef_icon =
'';
9410 this.nodedef_type =
'color3';
9412 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9413 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_color3_out_genglsl.png';
9414 this.nodedef_group =
'math';
9415 this.addInput(
'in1',
'color3');
9416 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9417 this.addInput(
'in2',
'color3');
9418 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9419 this.addOutput(
'out',
'color3');
9420 this.title =
'add_color3';
9421 this.desc =
"MaterialX:mtlx/math/add_color3";
9422 this.onNodeCreated =
function() {
9425 this.onRemoved =
function() {
9428 this.onPropertyChanged =
function(name, value, prev_value) {
9429 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9431 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9432 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9434 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9435 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9437 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9438 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9440 this.bgcolor =
'#111';
9441 this.color =
'#222';
9442 this.shape = LiteGraph.ROUND_SHAPE;
9443 this.boxcolor =
'#37A';
9447mtlx_math_add_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9456 this.nodedef_icon =
'';
9458 this.nodedef_type =
'color4';
9460 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9461 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_color4_out_genglsl.png';
9462 this.nodedef_group =
'math';
9463 this.addInput(
'in1',
'color4');
9464 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9465 this.addInput(
'in2',
'color4');
9466 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9467 this.addOutput(
'out',
'color4');
9468 this.title =
'add_color4';
9469 this.desc =
"MaterialX:mtlx/math/add_color4";
9470 this.onNodeCreated =
function() {
9473 this.onRemoved =
function() {
9476 this.onPropertyChanged =
function(name, value, prev_value) {
9477 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9479 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9480 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9482 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9483 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9485 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9486 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9488 this.bgcolor =
'#111';
9489 this.color =
'#222';
9490 this.shape = LiteGraph.ROUND_SHAPE;
9491 this.boxcolor =
'#69A';
9495mtlx_math_add_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9504 this.nodedef_icon =
'';
9506 this.nodedef_type =
'vector2';
9508 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9509 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_vector2_out_genglsl.png';
9510 this.nodedef_group =
'math';
9511 this.addInput(
'in1',
'vector2');
9512 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9513 this.addInput(
'in2',
'vector2');
9514 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9515 this.addOutput(
'out',
'vector2');
9516 this.title =
'add_vector2';
9517 this.desc =
"MaterialX:mtlx/math/add_vector2";
9518 this.onNodeCreated =
function() {
9521 this.onRemoved =
function() {
9524 this.onPropertyChanged =
function(name, value, prev_value) {
9525 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9527 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9528 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9530 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9531 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9533 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9534 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9536 this.bgcolor =
'#111';
9537 this.color =
'#222';
9538 this.shape = LiteGraph.ROUND_SHAPE;
9539 this.boxcolor =
'#265';
9543mtlx_math_add_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9552 this.nodedef_icon =
'';
9554 this.nodedef_type =
'vector3';
9556 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9557 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_vector3_out_genglsl.png';
9558 this.nodedef_group =
'math';
9559 this.addInput(
'in1',
'vector3');
9560 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9561 this.addInput(
'in2',
'vector3');
9562 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9563 this.addOutput(
'out',
'vector3');
9564 this.title =
'add_vector3';
9565 this.desc =
"MaterialX:mtlx/math/add_vector3";
9566 this.onNodeCreated =
function() {
9569 this.onRemoved =
function() {
9572 this.onPropertyChanged =
function(name, value, prev_value) {
9573 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9575 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9576 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9578 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9579 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9581 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9582 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9584 this.bgcolor =
'#111';
9585 this.color =
'#222';
9586 this.shape = LiteGraph.ROUND_SHAPE;
9587 this.boxcolor =
'#465';
9591mtlx_math_add_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9600 this.nodedef_icon =
'';
9602 this.nodedef_type =
'vector4';
9604 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9605 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_vector4_out_genglsl.png';
9606 this.nodedef_group =
'math';
9607 this.addInput(
'in1',
'vector4');
9608 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9609 this.addInput(
'in2',
'vector4');
9610 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9611 this.addOutput(
'out',
'vector4');
9612 this.title =
'add_vector4';
9613 this.desc =
"MaterialX:mtlx/math/add_vector4";
9614 this.onNodeCreated =
function() {
9617 this.onRemoved =
function() {
9620 this.onPropertyChanged =
function(name, value, prev_value) {
9621 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9623 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9624 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9626 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9627 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9629 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9630 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9632 this.bgcolor =
'#111';
9633 this.color =
'#222';
9634 this.shape = LiteGraph.ROUND_SHAPE;
9635 this.boxcolor =
'#275';
9639mtlx_math_add_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9648 this.nodedef_icon =
'';
9650 this.nodedef_type =
'matrix33';
9652 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9653 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_matrix33_out_genglsl.png';
9654 this.nodedef_group =
'math';
9655 this.addInput(
'in1',
'matrix33');
9656 this.addProperty(
'in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9657 this.addInput(
'in2',
'matrix33');
9658 this.addProperty(
'in2', [0.0,0.0,0.0, 0.0,0.0,0.0, 0.0,0.0,0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9659 this.addOutput(
'out',
'matrix33');
9660 this.title =
'add_matrix33';
9661 this.desc =
"MaterialX:mtlx/math/add_matrix33";
9662 this.onNodeCreated =
function() {
9665 this.onRemoved =
function() {
9668 this.onPropertyChanged =
function(name, value, prev_value) {
9669 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9671 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9672 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9674 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9675 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9677 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9678 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9680 this.bgcolor =
'#111';
9681 this.color =
'#222';
9682 this.shape = LiteGraph.ROUND_SHAPE;
9683 this.boxcolor =
'#333';
9687mtlx_math_add_matrix33.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9696 this.nodedef_icon =
'';
9698 this.nodedef_type =
'matrix44';
9700 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9701 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_matrix44_out_genglsl.png';
9702 this.nodedef_group =
'math';
9703 this.addInput(
'in1',
'matrix44');
9704 this.addProperty(
'in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9705 this.addInput(
'in2',
'matrix44');
9706 this.addProperty(
'in2', [0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9707 this.addOutput(
'out',
'matrix44');
9708 this.title =
'add_matrix44';
9709 this.desc =
"MaterialX:mtlx/math/add_matrix44";
9710 this.onNodeCreated =
function() {
9713 this.onRemoved =
function() {
9716 this.onPropertyChanged =
function(name, value, prev_value) {
9717 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9719 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9720 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9722 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9723 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9725 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9726 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9728 this.bgcolor =
'#111';
9729 this.color =
'#222';
9730 this.shape = LiteGraph.ROUND_SHAPE;
9731 this.boxcolor =
'#444';
9735mtlx_math_add_matrix44.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9744 this.nodedef_icon =
'';
9746 this.nodedef_type =
'color3';
9748 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9749 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_color3FA_out_genglsl.png';
9750 this.nodedef_group =
'math';
9751 this.addInput(
'in1',
'color3');
9752 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9753 this.addInput(
'in2',
'float');
9754 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9755 this.addOutput(
'out',
'color3');
9756 this.title =
'add_color3';
9757 this.desc =
"MaterialX:mtlx/math/add_color3FA";
9758 this.onNodeCreated =
function() {
9761 this.onRemoved =
function() {
9764 this.onPropertyChanged =
function(name, value, prev_value) {
9765 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9767 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9768 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9770 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9771 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9773 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9774 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9776 this.bgcolor =
'#111';
9777 this.color =
'#222';
9778 this.shape = LiteGraph.ROUND_SHAPE;
9779 this.boxcolor =
'#37A';
9783mtlx_math_add_color3FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9792 this.nodedef_icon =
'';
9794 this.nodedef_type =
'color4';
9796 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9797 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_color4FA_out_genglsl.png';
9798 this.nodedef_group =
'math';
9799 this.addInput(
'in1',
'color4');
9800 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9801 this.addInput(
'in2',
'float');
9802 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9803 this.addOutput(
'out',
'color4');
9804 this.title =
'add_color4';
9805 this.desc =
"MaterialX:mtlx/math/add_color4FA";
9806 this.onNodeCreated =
function() {
9809 this.onRemoved =
function() {
9812 this.onPropertyChanged =
function(name, value, prev_value) {
9813 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9815 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9816 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9818 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9819 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9821 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9822 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9824 this.bgcolor =
'#111';
9825 this.color =
'#222';
9826 this.shape = LiteGraph.ROUND_SHAPE;
9827 this.boxcolor =
'#69A';
9831mtlx_math_add_color4FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9840 this.nodedef_icon =
'';
9842 this.nodedef_type =
'vector2';
9844 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9845 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_vector2FA_out_genglsl.png';
9846 this.nodedef_group =
'math';
9847 this.addInput(
'in1',
'vector2');
9848 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9849 this.addInput(
'in2',
'float');
9850 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9851 this.addOutput(
'out',
'vector2');
9852 this.title =
'add_vector2';
9853 this.desc =
"MaterialX:mtlx/math/add_vector2FA";
9854 this.onNodeCreated =
function() {
9857 this.onRemoved =
function() {
9860 this.onPropertyChanged =
function(name, value, prev_value) {
9861 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9863 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9864 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9866 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9867 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9869 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9870 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9872 this.bgcolor =
'#111';
9873 this.color =
'#222';
9874 this.shape = LiteGraph.ROUND_SHAPE;
9875 this.boxcolor =
'#265';
9879mtlx_math_add_vector2FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9888 this.nodedef_icon =
'';
9890 this.nodedef_type =
'vector3';
9892 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9893 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_vector3FA_out_genglsl.png';
9894 this.nodedef_group =
'math';
9895 this.addInput(
'in1',
'vector3');
9896 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9897 this.addInput(
'in2',
'float');
9898 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9899 this.addOutput(
'out',
'vector3');
9900 this.title =
'add_vector3';
9901 this.desc =
"MaterialX:mtlx/math/add_vector3FA";
9902 this.onNodeCreated =
function() {
9905 this.onRemoved =
function() {
9908 this.onPropertyChanged =
function(name, value, prev_value) {
9909 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9911 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9912 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9914 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9915 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9917 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9918 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9920 this.bgcolor =
'#111';
9921 this.color =
'#222';
9922 this.shape = LiteGraph.ROUND_SHAPE;
9923 this.boxcolor =
'#465';
9927mtlx_math_add_vector3FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9936 this.nodedef_icon =
'';
9938 this.nodedef_type =
'vector4';
9940 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9941 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_vector4FA_out_genglsl.png';
9942 this.nodedef_group =
'math';
9943 this.addInput(
'in1',
'vector4');
9944 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9945 this.addInput(
'in2',
'float');
9946 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9947 this.addOutput(
'out',
'vector4');
9948 this.title =
'add_vector4';
9949 this.desc =
"MaterialX:mtlx/math/add_vector4FA";
9950 this.onNodeCreated =
function() {
9953 this.onRemoved =
function() {
9956 this.onPropertyChanged =
function(name, value, prev_value) {
9957 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
9959 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
9960 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
9962 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
9963 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
9965 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
9966 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
9968 this.bgcolor =
'#111';
9969 this.color =
'#222';
9970 this.shape = LiteGraph.ROUND_SHAPE;
9971 this.boxcolor =
'#275';
9975mtlx_math_add_vector4FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9984 this.nodedef_icon =
'';
9986 this.nodedef_type =
'matrix33';
9988 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
9989 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_matrix33FA_out_genglsl.png';
9990 this.nodedef_group =
'math';
9991 this.addInput(
'in1',
'matrix33');
9992 this.addProperty(
'in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9993 this.addInput(
'in2',
'float');
9994 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
9995 this.addOutput(
'out',
'matrix33');
9996 this.title =
'add_matrix33';
9997 this.desc =
"MaterialX:mtlx/math/add_matrix33FA";
9998 this.onNodeCreated =
function() {
10001 this.onRemoved =
function() {
10004 this.onPropertyChanged =
function(name, value, prev_value) {
10005 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10007 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10008 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10010 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10011 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10013 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10014 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10016 this.bgcolor =
'#111';
10017 this.color =
'#222';
10018 this.shape = LiteGraph.ROUND_SHAPE;
10019 this.boxcolor =
'#333';
10032 this.nodedef_icon =
'';
10034 this.nodedef_type =
'matrix44';
10036 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
10037 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_matrix44FA_out_genglsl.png';
10038 this.nodedef_group =
'math';
10039 this.addInput(
'in1',
'matrix44');
10040 this.addProperty(
'in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10041 this.addInput(
'in2',
'float');
10042 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10043 this.addOutput(
'out',
'matrix44');
10044 this.title =
'add_matrix44';
10045 this.desc =
"MaterialX:mtlx/math/add_matrix44FA";
10046 this.onNodeCreated =
function() {
10049 this.onRemoved =
function() {
10052 this.onPropertyChanged =
function(name, value, prev_value) {
10053 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10055 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10056 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10058 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10059 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10061 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10062 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10064 this.bgcolor =
'#111';
10065 this.color =
'#222';
10066 this.shape = LiteGraph.ROUND_SHAPE;
10067 this.boxcolor =
'#444';
10080 this.nodedef_icon =
'';
10082 this.nodedef_type =
'float';
10084 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10085 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_float_out_genglsl.png';
10086 this.nodedef_group =
'math';
10087 this.addInput(
'in1',
'float');
10088 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10089 this.addInput(
'in2',
'float');
10090 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10091 this.addOutput(
'out',
'float');
10092 this.title =
'subtract_float';
10093 this.desc =
"MaterialX:mtlx/math/subtract_float";
10094 this.onNodeCreated =
function() {
10097 this.onRemoved =
function() {
10100 this.onPropertyChanged =
function(name, value, prev_value) {
10101 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10103 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10104 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10106 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10107 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10109 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10110 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10112 this.bgcolor =
'#111';
10113 this.color =
'#222';
10114 this.shape = LiteGraph.ROUND_SHAPE;
10115 this.boxcolor =
'#161';
10119mtlx_math_subtract_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10128 this.nodedef_icon =
'';
10130 this.nodedef_type =
'integer';
10132 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10133 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_integer_out_genglsl.png';
10134 this.nodedef_group =
'math';
10135 this.addInput(
'in1',
'integer');
10136 this.addProperty(
'in1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10137 this.addInput(
'in2',
'integer');
10138 this.addProperty(
'in2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10139 this.addOutput(
'out',
'integer');
10140 this.title =
'subtract_integer';
10141 this.desc =
"MaterialX:mtlx/math/subtract_integer";
10142 this.onNodeCreated =
function() {
10145 this.onRemoved =
function() {
10148 this.onPropertyChanged =
function(name, value, prev_value) {
10149 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10151 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10152 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10154 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10155 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10157 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10158 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10160 this.bgcolor =
'#111';
10161 this.color =
'#222';
10162 this.shape = LiteGraph.ROUND_SHAPE;
10163 this.boxcolor =
'#A32';
10176 this.nodedef_icon =
'';
10178 this.nodedef_type =
'color3';
10180 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10181 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_color3_out_genglsl.png';
10182 this.nodedef_group =
'math';
10183 this.addInput(
'in1',
'color3');
10184 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10185 this.addInput(
'in2',
'color3');
10186 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10187 this.addOutput(
'out',
'color3');
10188 this.title =
'subtract_color3';
10189 this.desc =
"MaterialX:mtlx/math/subtract_color3";
10190 this.onNodeCreated =
function() {
10193 this.onRemoved =
function() {
10196 this.onPropertyChanged =
function(name, value, prev_value) {
10197 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10199 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10200 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10202 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10203 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10205 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10206 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10208 this.bgcolor =
'#111';
10209 this.color =
'#222';
10210 this.shape = LiteGraph.ROUND_SHAPE;
10211 this.boxcolor =
'#37A';
10215mtlx_math_subtract_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10224 this.nodedef_icon =
'';
10226 this.nodedef_type =
'color4';
10228 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10229 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_color4_out_genglsl.png';
10230 this.nodedef_group =
'math';
10231 this.addInput(
'in1',
'color4');
10232 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10233 this.addInput(
'in2',
'color4');
10234 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10235 this.addOutput(
'out',
'color4');
10236 this.title =
'subtract_color4';
10237 this.desc =
"MaterialX:mtlx/math/subtract_color4";
10238 this.onNodeCreated =
function() {
10241 this.onRemoved =
function() {
10244 this.onPropertyChanged =
function(name, value, prev_value) {
10245 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10247 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10248 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10250 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10251 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10253 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10254 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10256 this.bgcolor =
'#111';
10257 this.color =
'#222';
10258 this.shape = LiteGraph.ROUND_SHAPE;
10259 this.boxcolor =
'#69A';
10263mtlx_math_subtract_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10272 this.nodedef_icon =
'';
10274 this.nodedef_type =
'vector2';
10276 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10277 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_vector2_out_genglsl.png';
10278 this.nodedef_group =
'math';
10279 this.addInput(
'in1',
'vector2');
10280 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10281 this.addInput(
'in2',
'vector2');
10282 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10283 this.addOutput(
'out',
'vector2');
10284 this.title =
'subtract_vector2';
10285 this.desc =
"MaterialX:mtlx/math/subtract_vector2";
10286 this.onNodeCreated =
function() {
10289 this.onRemoved =
function() {
10292 this.onPropertyChanged =
function(name, value, prev_value) {
10293 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10295 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10296 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10298 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10299 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10301 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10302 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10304 this.bgcolor =
'#111';
10305 this.color =
'#222';
10306 this.shape = LiteGraph.ROUND_SHAPE;
10307 this.boxcolor =
'#265';
10320 this.nodedef_icon =
'';
10322 this.nodedef_type =
'vector3';
10324 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10325 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_vector3_out_genglsl.png';
10326 this.nodedef_group =
'math';
10327 this.addInput(
'in1',
'vector3');
10328 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10329 this.addInput(
'in2',
'vector3');
10330 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10331 this.addOutput(
'out',
'vector3');
10332 this.title =
'subtract_vector3';
10333 this.desc =
"MaterialX:mtlx/math/subtract_vector3";
10334 this.onNodeCreated =
function() {
10337 this.onRemoved =
function() {
10340 this.onPropertyChanged =
function(name, value, prev_value) {
10341 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10343 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10344 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10346 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10347 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10349 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10350 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10352 this.bgcolor =
'#111';
10353 this.color =
'#222';
10354 this.shape = LiteGraph.ROUND_SHAPE;
10355 this.boxcolor =
'#465';
10368 this.nodedef_icon =
'';
10370 this.nodedef_type =
'vector4';
10372 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10373 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_vector4_out_genglsl.png';
10374 this.nodedef_group =
'math';
10375 this.addInput(
'in1',
'vector4');
10376 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10377 this.addInput(
'in2',
'vector4');
10378 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10379 this.addOutput(
'out',
'vector4');
10380 this.title =
'subtract_vector4';
10381 this.desc =
"MaterialX:mtlx/math/subtract_vector4";
10382 this.onNodeCreated =
function() {
10385 this.onRemoved =
function() {
10388 this.onPropertyChanged =
function(name, value, prev_value) {
10389 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10391 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10392 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10394 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10395 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10397 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10398 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10400 this.bgcolor =
'#111';
10401 this.color =
'#222';
10402 this.shape = LiteGraph.ROUND_SHAPE;
10403 this.boxcolor =
'#275';
10416 this.nodedef_icon =
'';
10418 this.nodedef_type =
'matrix33';
10420 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10421 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_matrix33_out_genglsl.png';
10422 this.nodedef_group =
'math';
10423 this.addInput(
'in1',
'matrix33');
10424 this.addProperty(
'in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10425 this.addInput(
'in2',
'matrix33');
10426 this.addProperty(
'in2', [0.0,0.0,0.0, 0.0,0.0,0.0, 0.0,0.0,0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10427 this.addOutput(
'out',
'matrix33');
10428 this.title =
'subtract_matrix33';
10429 this.desc =
"MaterialX:mtlx/math/subtract_matrix33";
10430 this.onNodeCreated =
function() {
10433 this.onRemoved =
function() {
10436 this.onPropertyChanged =
function(name, value, prev_value) {
10437 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10439 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10440 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10442 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10443 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10445 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10446 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10448 this.bgcolor =
'#111';
10449 this.color =
'#222';
10450 this.shape = LiteGraph.ROUND_SHAPE;
10451 this.boxcolor =
'#333';
10464 this.nodedef_icon =
'';
10466 this.nodedef_type =
'matrix44';
10468 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10469 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_matrix44_out_genglsl.png';
10470 this.nodedef_group =
'math';
10471 this.addInput(
'in1',
'matrix44');
10472 this.addProperty(
'in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10473 this.addInput(
'in2',
'matrix44');
10474 this.addProperty(
'in2', [0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0, 0.0,0.0,0.0,0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10475 this.addOutput(
'out',
'matrix44');
10476 this.title =
'subtract_matrix44';
10477 this.desc =
"MaterialX:mtlx/math/subtract_matrix44";
10478 this.onNodeCreated =
function() {
10481 this.onRemoved =
function() {
10484 this.onPropertyChanged =
function(name, value, prev_value) {
10485 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10487 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10488 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10490 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10491 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10493 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10494 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10496 this.bgcolor =
'#111';
10497 this.color =
'#222';
10498 this.shape = LiteGraph.ROUND_SHAPE;
10499 this.boxcolor =
'#444';
10512 this.nodedef_icon =
'';
10514 this.nodedef_type =
'color3';
10516 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10517 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_color3FA_out_genglsl.png';
10518 this.nodedef_group =
'math';
10519 this.addInput(
'in1',
'color3');
10520 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10521 this.addInput(
'in2',
'float');
10522 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10523 this.addOutput(
'out',
'color3');
10524 this.title =
'subtract_color3';
10525 this.desc =
"MaterialX:mtlx/math/subtract_color3FA";
10526 this.onNodeCreated =
function() {
10529 this.onRemoved =
function() {
10532 this.onPropertyChanged =
function(name, value, prev_value) {
10533 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10535 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10536 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10538 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10539 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10541 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10542 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10544 this.bgcolor =
'#111';
10545 this.color =
'#222';
10546 this.shape = LiteGraph.ROUND_SHAPE;
10547 this.boxcolor =
'#37A';
10560 this.nodedef_icon =
'';
10562 this.nodedef_type =
'color4';
10564 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10565 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_color4FA_out_genglsl.png';
10566 this.nodedef_group =
'math';
10567 this.addInput(
'in1',
'color4');
10568 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10569 this.addInput(
'in2',
'float');
10570 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10571 this.addOutput(
'out',
'color4');
10572 this.title =
'subtract_color4';
10573 this.desc =
"MaterialX:mtlx/math/subtract_color4FA";
10574 this.onNodeCreated =
function() {
10577 this.onRemoved =
function() {
10580 this.onPropertyChanged =
function(name, value, prev_value) {
10581 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10583 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10584 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10586 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10587 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10589 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10590 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10592 this.bgcolor =
'#111';
10593 this.color =
'#222';
10594 this.shape = LiteGraph.ROUND_SHAPE;
10595 this.boxcolor =
'#69A';
10608 this.nodedef_icon =
'';
10610 this.nodedef_type =
'vector2';
10612 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10613 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_vector2FA_out_genglsl.png';
10614 this.nodedef_group =
'math';
10615 this.addInput(
'in1',
'vector2');
10616 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10617 this.addInput(
'in2',
'float');
10618 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10619 this.addOutput(
'out',
'vector2');
10620 this.title =
'subtract_vector2';
10621 this.desc =
"MaterialX:mtlx/math/subtract_vector2FA";
10622 this.onNodeCreated =
function() {
10625 this.onRemoved =
function() {
10628 this.onPropertyChanged =
function(name, value, prev_value) {
10629 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10631 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10632 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10634 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10635 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10637 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10638 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10640 this.bgcolor =
'#111';
10641 this.color =
'#222';
10642 this.shape = LiteGraph.ROUND_SHAPE;
10643 this.boxcolor =
'#265';
10656 this.nodedef_icon =
'';
10658 this.nodedef_type =
'vector3';
10660 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10661 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_vector3FA_out_genglsl.png';
10662 this.nodedef_group =
'math';
10663 this.addInput(
'in1',
'vector3');
10664 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10665 this.addInput(
'in2',
'float');
10666 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10667 this.addOutput(
'out',
'vector3');
10668 this.title =
'subtract_vector3';
10669 this.desc =
"MaterialX:mtlx/math/subtract_vector3FA";
10670 this.onNodeCreated =
function() {
10673 this.onRemoved =
function() {
10676 this.onPropertyChanged =
function(name, value, prev_value) {
10677 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10679 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10680 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10682 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10683 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10685 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10686 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10688 this.bgcolor =
'#111';
10689 this.color =
'#222';
10690 this.shape = LiteGraph.ROUND_SHAPE;
10691 this.boxcolor =
'#465';
10704 this.nodedef_icon =
'';
10706 this.nodedef_type =
'vector4';
10708 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10709 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_vector4FA_out_genglsl.png';
10710 this.nodedef_group =
'math';
10711 this.addInput(
'in1',
'vector4');
10712 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10713 this.addInput(
'in2',
'float');
10714 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10715 this.addOutput(
'out',
'vector4');
10716 this.title =
'subtract_vector4';
10717 this.desc =
"MaterialX:mtlx/math/subtract_vector4FA";
10718 this.onNodeCreated =
function() {
10721 this.onRemoved =
function() {
10724 this.onPropertyChanged =
function(name, value, prev_value) {
10725 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10727 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10728 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10730 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10731 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10733 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10734 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10736 this.bgcolor =
'#111';
10737 this.color =
'#222';
10738 this.shape = LiteGraph.ROUND_SHAPE;
10739 this.boxcolor =
'#275';
10752 this.nodedef_icon =
'';
10754 this.nodedef_type =
'matrix33';
10756 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10757 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_matrix33FA_out_genglsl.png';
10758 this.nodedef_group =
'math';
10759 this.addInput(
'in1',
'matrix33');
10760 this.addProperty(
'in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10761 this.addInput(
'in2',
'float');
10762 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10763 this.addOutput(
'out',
'matrix33');
10764 this.title =
'subtract_matrix33';
10765 this.desc =
"MaterialX:mtlx/math/subtract_matrix33FA";
10766 this.onNodeCreated =
function() {
10769 this.onRemoved =
function() {
10772 this.onPropertyChanged =
function(name, value, prev_value) {
10773 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10775 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10776 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10778 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10779 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10781 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10782 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10784 this.bgcolor =
'#111';
10785 this.color =
'#222';
10786 this.shape = LiteGraph.ROUND_SHAPE;
10787 this.boxcolor =
'#333';
10800 this.nodedef_icon =
'';
10802 this.nodedef_type =
'matrix44';
10804 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subtract.html';
10805 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subtract_matrix44FA_out_genglsl.png';
10806 this.nodedef_group =
'math';
10807 this.addInput(
'in1',
'matrix44');
10808 this.addProperty(
'in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10809 this.addInput(
'in2',
'float');
10810 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10811 this.addOutput(
'out',
'matrix44');
10812 this.title =
'subtract_matrix44';
10813 this.desc =
"MaterialX:mtlx/math/subtract_matrix44FA";
10814 this.onNodeCreated =
function() {
10817 this.onRemoved =
function() {
10820 this.onPropertyChanged =
function(name, value, prev_value) {
10821 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10823 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10824 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10826 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10827 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10829 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10830 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10832 this.bgcolor =
'#111';
10833 this.color =
'#222';
10834 this.shape = LiteGraph.ROUND_SHAPE;
10835 this.boxcolor =
'#444';
10848 this.nodedef_icon =
'';
10850 this.nodedef_type =
'float';
10852 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
10853 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_float_out_genglsl.png';
10854 this.nodedef_group =
'math';
10855 this.addInput(
'in1',
'float');
10856 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10857 this.addInput(
'in2',
'float');
10858 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10859 this.addOutput(
'out',
'float');
10860 this.title =
'multiply_float';
10861 this.desc =
"MaterialX:mtlx/math/multiply_float";
10862 this.onNodeCreated =
function() {
10865 this.onRemoved =
function() {
10868 this.onPropertyChanged =
function(name, value, prev_value) {
10869 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10871 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10872 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10874 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10875 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10877 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10878 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10880 this.bgcolor =
'#111';
10881 this.color =
'#222';
10882 this.shape = LiteGraph.ROUND_SHAPE;
10883 this.boxcolor =
'#161';
10887mtlx_math_multiply_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
10896 this.nodedef_icon =
'';
10898 this.nodedef_type =
'color3';
10900 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
10901 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_color3_out_genglsl.png';
10902 this.nodedef_group =
'math';
10903 this.addInput(
'in1',
'color3');
10904 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10905 this.addInput(
'in2',
'color3');
10906 this.addProperty(
'in2', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10907 this.addOutput(
'out',
'color3');
10908 this.title =
'multiply_color3';
10909 this.desc =
"MaterialX:mtlx/math/multiply_color3";
10910 this.onNodeCreated =
function() {
10913 this.onRemoved =
function() {
10916 this.onPropertyChanged =
function(name, value, prev_value) {
10917 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10919 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10920 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10922 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10923 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10925 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10926 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10928 this.bgcolor =
'#111';
10929 this.color =
'#222';
10930 this.shape = LiteGraph.ROUND_SHAPE;
10931 this.boxcolor =
'#37A';
10935mtlx_math_multiply_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
10944 this.nodedef_icon =
'';
10946 this.nodedef_type =
'color4';
10948 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
10949 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_color4_out_genglsl.png';
10950 this.nodedef_group =
'math';
10951 this.addInput(
'in1',
'color4');
10952 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10953 this.addInput(
'in2',
'color4');
10954 this.addProperty(
'in2', [1.0, 1.0, 1.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
10955 this.addOutput(
'out',
'color4');
10956 this.title =
'multiply_color4';
10957 this.desc =
"MaterialX:mtlx/math/multiply_color4";
10958 this.onNodeCreated =
function() {
10961 this.onRemoved =
function() {
10964 this.onPropertyChanged =
function(name, value, prev_value) {
10965 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
10967 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
10968 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
10970 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
10971 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
10973 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
10974 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
10976 this.bgcolor =
'#111';
10977 this.color =
'#222';
10978 this.shape = LiteGraph.ROUND_SHAPE;
10979 this.boxcolor =
'#69A';
10983mtlx_math_multiply_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
10992 this.nodedef_icon =
'';
10994 this.nodedef_type =
'vector2';
10996 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
10997 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vector2_out_genglsl.png';
10998 this.nodedef_group =
'math';
10999 this.addInput(
'in1',
'vector2');
11000 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11001 this.addInput(
'in2',
'vector2');
11002 this.addProperty(
'in2', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11003 this.addOutput(
'out',
'vector2');
11004 this.title =
'multiply_vector2';
11005 this.desc =
"MaterialX:mtlx/math/multiply_vector2";
11006 this.onNodeCreated =
function() {
11009 this.onRemoved =
function() {
11012 this.onPropertyChanged =
function(name, value, prev_value) {
11013 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11015 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11016 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11018 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11019 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11021 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11022 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11024 this.bgcolor =
'#111';
11025 this.color =
'#222';
11026 this.shape = LiteGraph.ROUND_SHAPE;
11027 this.boxcolor =
'#265';
11040 this.nodedef_icon =
'';
11042 this.nodedef_type =
'vector3';
11044 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11045 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vector3_out_genglsl.png';
11046 this.nodedef_group =
'math';
11047 this.addInput(
'in1',
'vector3');
11048 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11049 this.addInput(
'in2',
'vector3');
11050 this.addProperty(
'in2', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11051 this.addOutput(
'out',
'vector3');
11052 this.title =
'multiply_vector3';
11053 this.desc =
"MaterialX:mtlx/math/multiply_vector3";
11054 this.onNodeCreated =
function() {
11057 this.onRemoved =
function() {
11060 this.onPropertyChanged =
function(name, value, prev_value) {
11061 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11063 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11064 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11066 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11067 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11069 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11070 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11072 this.bgcolor =
'#111';
11073 this.color =
'#222';
11074 this.shape = LiteGraph.ROUND_SHAPE;
11075 this.boxcolor =
'#465';
11088 this.nodedef_icon =
'';
11090 this.nodedef_type =
'vector4';
11092 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11093 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vector4_out_genglsl.png';
11094 this.nodedef_group =
'math';
11095 this.addInput(
'in1',
'vector4');
11096 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11097 this.addInput(
'in2',
'vector4');
11098 this.addProperty(
'in2', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11099 this.addOutput(
'out',
'vector4');
11100 this.title =
'multiply_vector4';
11101 this.desc =
"MaterialX:mtlx/math/multiply_vector4";
11102 this.onNodeCreated =
function() {
11105 this.onRemoved =
function() {
11108 this.onPropertyChanged =
function(name, value, prev_value) {
11109 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11111 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11112 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11114 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11115 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11117 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11118 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11120 this.bgcolor =
'#111';
11121 this.color =
'#222';
11122 this.shape = LiteGraph.ROUND_SHAPE;
11123 this.boxcolor =
'#275';
11136 this.nodedef_icon =
'';
11138 this.nodedef_type =
'matrix33';
11140 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11141 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_matrix33_out_genglsl.png';
11142 this.nodedef_group =
'math';
11143 this.addInput(
'in1',
'matrix33');
11144 this.addProperty(
'in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11145 this.addInput(
'in2',
'matrix33');
11146 this.addProperty(
'in2', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11147 this.addOutput(
'out',
'matrix33');
11148 this.title =
'multiply_matrix33';
11149 this.desc =
"MaterialX:mtlx/math/multiply_matrix33";
11150 this.onNodeCreated =
function() {
11153 this.onRemoved =
function() {
11156 this.onPropertyChanged =
function(name, value, prev_value) {
11157 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11159 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11160 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11162 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11163 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11165 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11166 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11168 this.bgcolor =
'#111';
11169 this.color =
'#222';
11170 this.shape = LiteGraph.ROUND_SHAPE;
11171 this.boxcolor =
'#333';
11184 this.nodedef_icon =
'';
11186 this.nodedef_type =
'matrix44';
11188 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11189 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_matrix44_out_genglsl.png';
11190 this.nodedef_group =
'math';
11191 this.addInput(
'in1',
'matrix44');
11192 this.addProperty(
'in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11193 this.addInput(
'in2',
'matrix44');
11194 this.addProperty(
'in2', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11195 this.addOutput(
'out',
'matrix44');
11196 this.title =
'multiply_matrix44';
11197 this.desc =
"MaterialX:mtlx/math/multiply_matrix44";
11198 this.onNodeCreated =
function() {
11201 this.onRemoved =
function() {
11204 this.onPropertyChanged =
function(name, value, prev_value) {
11205 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11207 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11208 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11210 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11211 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11213 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11214 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11216 this.bgcolor =
'#111';
11217 this.color =
'#222';
11218 this.shape = LiteGraph.ROUND_SHAPE;
11219 this.boxcolor =
'#444';
11232 this.nodedef_icon =
'';
11234 this.nodedef_type =
'color3';
11236 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11237 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_color3FA_out_genglsl.png';
11238 this.nodedef_group =
'math';
11239 this.addInput(
'in1',
'color3');
11240 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11241 this.addInput(
'in2',
'float');
11242 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11243 this.addOutput(
'out',
'color3');
11244 this.title =
'multiply_color3';
11245 this.desc =
"MaterialX:mtlx/math/multiply_color3FA";
11246 this.onNodeCreated =
function() {
11249 this.onRemoved =
function() {
11252 this.onPropertyChanged =
function(name, value, prev_value) {
11253 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11255 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11256 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11258 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11259 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11261 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11262 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11264 this.bgcolor =
'#111';
11265 this.color =
'#222';
11266 this.shape = LiteGraph.ROUND_SHAPE;
11267 this.boxcolor =
'#37A';
11280 this.nodedef_icon =
'';
11282 this.nodedef_type =
'color4';
11284 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11285 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_color4FA_out_genglsl.png';
11286 this.nodedef_group =
'math';
11287 this.addInput(
'in1',
'color4');
11288 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11289 this.addInput(
'in2',
'float');
11290 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11291 this.addOutput(
'out',
'color4');
11292 this.title =
'multiply_color4';
11293 this.desc =
"MaterialX:mtlx/math/multiply_color4FA";
11294 this.onNodeCreated =
function() {
11297 this.onRemoved =
function() {
11300 this.onPropertyChanged =
function(name, value, prev_value) {
11301 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11303 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11304 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11306 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11307 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11309 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11310 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11312 this.bgcolor =
'#111';
11313 this.color =
'#222';
11314 this.shape = LiteGraph.ROUND_SHAPE;
11315 this.boxcolor =
'#69A';
11328 this.nodedef_icon =
'';
11330 this.nodedef_type =
'vector2';
11332 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11333 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vector2FA_out_genglsl.png';
11334 this.nodedef_group =
'math';
11335 this.addInput(
'in1',
'vector2');
11336 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11337 this.addInput(
'in2',
'float');
11338 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11339 this.addOutput(
'out',
'vector2');
11340 this.title =
'multiply_vector2';
11341 this.desc =
"MaterialX:mtlx/math/multiply_vector2FA";
11342 this.onNodeCreated =
function() {
11345 this.onRemoved =
function() {
11348 this.onPropertyChanged =
function(name, value, prev_value) {
11349 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11351 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11352 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11354 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11355 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11357 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11358 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11360 this.bgcolor =
'#111';
11361 this.color =
'#222';
11362 this.shape = LiteGraph.ROUND_SHAPE;
11363 this.boxcolor =
'#265';
11376 this.nodedef_icon =
'';
11378 this.nodedef_type =
'vector3';
11380 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11381 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vector3FA_out_genglsl.png';
11382 this.nodedef_group =
'math';
11383 this.addInput(
'in1',
'vector3');
11384 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11385 this.addInput(
'in2',
'float');
11386 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11387 this.addOutput(
'out',
'vector3');
11388 this.title =
'multiply_vector3';
11389 this.desc =
"MaterialX:mtlx/math/multiply_vector3FA";
11390 this.onNodeCreated =
function() {
11393 this.onRemoved =
function() {
11396 this.onPropertyChanged =
function(name, value, prev_value) {
11397 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11399 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11400 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11402 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11403 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11405 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11406 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11408 this.bgcolor =
'#111';
11409 this.color =
'#222';
11410 this.shape = LiteGraph.ROUND_SHAPE;
11411 this.boxcolor =
'#465';
11424 this.nodedef_icon =
'';
11426 this.nodedef_type =
'vector4';
11428 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
11429 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vector4FA_out_genglsl.png';
11430 this.nodedef_group =
'math';
11431 this.addInput(
'in1',
'vector4');
11432 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11433 this.addInput(
'in2',
'float');
11434 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11435 this.addOutput(
'out',
'vector4');
11436 this.title =
'multiply_vector4';
11437 this.desc =
"MaterialX:mtlx/math/multiply_vector4FA";
11438 this.onNodeCreated =
function() {
11441 this.onRemoved =
function() {
11444 this.onPropertyChanged =
function(name, value, prev_value) {
11445 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11447 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11448 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11450 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11451 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11453 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11454 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11456 this.bgcolor =
'#111';
11457 this.color =
'#222';
11458 this.shape = LiteGraph.ROUND_SHAPE;
11459 this.boxcolor =
'#275';
11472 this.nodedef_icon =
'';
11474 this.nodedef_type =
'float';
11476 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11477 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_float_out_genglsl.png';
11478 this.nodedef_group =
'math';
11479 this.addInput(
'in1',
'float');
11480 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11481 this.addInput(
'in2',
'float');
11482 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11483 this.addOutput(
'out',
'float');
11484 this.title =
'divide_float';
11485 this.desc =
"MaterialX:mtlx/math/divide_float";
11486 this.onNodeCreated =
function() {
11489 this.onRemoved =
function() {
11492 this.onPropertyChanged =
function(name, value, prev_value) {
11493 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11495 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11496 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11498 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11499 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11501 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11502 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11504 this.bgcolor =
'#111';
11505 this.color =
'#222';
11506 this.shape = LiteGraph.ROUND_SHAPE;
11507 this.boxcolor =
'#161';
11511mtlx_math_divide_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11520 this.nodedef_icon =
'';
11522 this.nodedef_type =
'color3';
11524 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11525 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_color3_out_genglsl.png';
11526 this.nodedef_group =
'math';
11527 this.addInput(
'in1',
'color3');
11528 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11529 this.addInput(
'in2',
'color3');
11530 this.addProperty(
'in2', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11531 this.addOutput(
'out',
'color3');
11532 this.title =
'divide_color3';
11533 this.desc =
"MaterialX:mtlx/math/divide_color3";
11534 this.onNodeCreated =
function() {
11537 this.onRemoved =
function() {
11540 this.onPropertyChanged =
function(name, value, prev_value) {
11541 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11543 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11544 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11546 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11547 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11549 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11550 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11552 this.bgcolor =
'#111';
11553 this.color =
'#222';
11554 this.shape = LiteGraph.ROUND_SHAPE;
11555 this.boxcolor =
'#37A';
11559mtlx_math_divide_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11568 this.nodedef_icon =
'';
11570 this.nodedef_type =
'color4';
11572 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11573 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_color4_out_genglsl.png';
11574 this.nodedef_group =
'math';
11575 this.addInput(
'in1',
'color4');
11576 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11577 this.addInput(
'in2',
'color4');
11578 this.addProperty(
'in2', [1.0, 1.0, 1.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11579 this.addOutput(
'out',
'color4');
11580 this.title =
'divide_color4';
11581 this.desc =
"MaterialX:mtlx/math/divide_color4";
11582 this.onNodeCreated =
function() {
11585 this.onRemoved =
function() {
11588 this.onPropertyChanged =
function(name, value, prev_value) {
11589 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11591 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11592 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11594 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11595 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11597 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11598 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11600 this.bgcolor =
'#111';
11601 this.color =
'#222';
11602 this.shape = LiteGraph.ROUND_SHAPE;
11603 this.boxcolor =
'#69A';
11607mtlx_math_divide_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11616 this.nodedef_icon =
'';
11618 this.nodedef_type =
'vector2';
11620 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11621 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_vector2_out_genglsl.png';
11622 this.nodedef_group =
'math';
11623 this.addInput(
'in1',
'vector2');
11624 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11625 this.addInput(
'in2',
'vector2');
11626 this.addProperty(
'in2', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11627 this.addOutput(
'out',
'vector2');
11628 this.title =
'divide_vector2';
11629 this.desc =
"MaterialX:mtlx/math/divide_vector2";
11630 this.onNodeCreated =
function() {
11633 this.onRemoved =
function() {
11636 this.onPropertyChanged =
function(name, value, prev_value) {
11637 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11639 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11640 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11642 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11643 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11645 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11646 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11648 this.bgcolor =
'#111';
11649 this.color =
'#222';
11650 this.shape = LiteGraph.ROUND_SHAPE;
11651 this.boxcolor =
'#265';
11655mtlx_math_divide_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11664 this.nodedef_icon =
'';
11666 this.nodedef_type =
'vector3';
11668 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11669 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_vector3_out_genglsl.png';
11670 this.nodedef_group =
'math';
11671 this.addInput(
'in1',
'vector3');
11672 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11673 this.addInput(
'in2',
'vector3');
11674 this.addProperty(
'in2', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11675 this.addOutput(
'out',
'vector3');
11676 this.title =
'divide_vector3';
11677 this.desc =
"MaterialX:mtlx/math/divide_vector3";
11678 this.onNodeCreated =
function() {
11681 this.onRemoved =
function() {
11684 this.onPropertyChanged =
function(name, value, prev_value) {
11685 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11687 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11688 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11690 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11691 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11693 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11694 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11696 this.bgcolor =
'#111';
11697 this.color =
'#222';
11698 this.shape = LiteGraph.ROUND_SHAPE;
11699 this.boxcolor =
'#465';
11703mtlx_math_divide_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11712 this.nodedef_icon =
'';
11714 this.nodedef_type =
'vector4';
11716 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11717 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_vector4_out_genglsl.png';
11718 this.nodedef_group =
'math';
11719 this.addInput(
'in1',
'vector4');
11720 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11721 this.addInput(
'in2',
'vector4');
11722 this.addProperty(
'in2', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11723 this.addOutput(
'out',
'vector4');
11724 this.title =
'divide_vector4';
11725 this.desc =
"MaterialX:mtlx/math/divide_vector4";
11726 this.onNodeCreated =
function() {
11729 this.onRemoved =
function() {
11732 this.onPropertyChanged =
function(name, value, prev_value) {
11733 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11735 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11736 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11738 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11739 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11741 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11742 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11744 this.bgcolor =
'#111';
11745 this.color =
'#222';
11746 this.shape = LiteGraph.ROUND_SHAPE;
11747 this.boxcolor =
'#275';
11751mtlx_math_divide_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11760 this.nodedef_icon =
'';
11762 this.nodedef_type =
'matrix33';
11764 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11765 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_matrix33_out_genglsl.png';
11766 this.nodedef_group =
'math';
11767 this.addInput(
'in1',
'matrix33');
11768 this.addProperty(
'in1', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11769 this.addInput(
'in2',
'matrix33');
11770 this.addProperty(
'in2', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11771 this.addOutput(
'out',
'matrix33');
11772 this.title =
'divide_matrix33';
11773 this.desc =
"MaterialX:mtlx/math/divide_matrix33";
11774 this.onNodeCreated =
function() {
11777 this.onRemoved =
function() {
11780 this.onPropertyChanged =
function(name, value, prev_value) {
11781 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11783 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11784 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11786 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11787 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11789 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11790 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11792 this.bgcolor =
'#111';
11793 this.color =
'#222';
11794 this.shape = LiteGraph.ROUND_SHAPE;
11795 this.boxcolor =
'#333';
11808 this.nodedef_icon =
'';
11810 this.nodedef_type =
'matrix44';
11812 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11813 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_matrix44_out_genglsl.png';
11814 this.nodedef_group =
'math';
11815 this.addInput(
'in1',
'matrix44');
11816 this.addProperty(
'in1', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11817 this.addInput(
'in2',
'matrix44');
11818 this.addProperty(
'in2', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11819 this.addOutput(
'out',
'matrix44');
11820 this.title =
'divide_matrix44';
11821 this.desc =
"MaterialX:mtlx/math/divide_matrix44";
11822 this.onNodeCreated =
function() {
11825 this.onRemoved =
function() {
11828 this.onPropertyChanged =
function(name, value, prev_value) {
11829 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11831 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11832 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11834 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11835 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11837 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11838 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11840 this.bgcolor =
'#111';
11841 this.color =
'#222';
11842 this.shape = LiteGraph.ROUND_SHAPE;
11843 this.boxcolor =
'#444';
11856 this.nodedef_icon =
'';
11858 this.nodedef_type =
'color3';
11860 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11861 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_color3FA_out_genglsl.png';
11862 this.nodedef_group =
'math';
11863 this.addInput(
'in1',
'color3');
11864 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11865 this.addInput(
'in2',
'float');
11866 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11867 this.addOutput(
'out',
'color3');
11868 this.title =
'divide_color3';
11869 this.desc =
"MaterialX:mtlx/math/divide_color3FA";
11870 this.onNodeCreated =
function() {
11873 this.onRemoved =
function() {
11876 this.onPropertyChanged =
function(name, value, prev_value) {
11877 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11879 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11880 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11882 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11883 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11885 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11886 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11888 this.bgcolor =
'#111';
11889 this.color =
'#222';
11890 this.shape = LiteGraph.ROUND_SHAPE;
11891 this.boxcolor =
'#37A';
11904 this.nodedef_icon =
'';
11906 this.nodedef_type =
'color4';
11908 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11909 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_color4FA_out_genglsl.png';
11910 this.nodedef_group =
'math';
11911 this.addInput(
'in1',
'color4');
11912 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11913 this.addInput(
'in2',
'float');
11914 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11915 this.addOutput(
'out',
'color4');
11916 this.title =
'divide_color4';
11917 this.desc =
"MaterialX:mtlx/math/divide_color4FA";
11918 this.onNodeCreated =
function() {
11921 this.onRemoved =
function() {
11924 this.onPropertyChanged =
function(name, value, prev_value) {
11925 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11927 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11928 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11930 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11931 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11933 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11934 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11936 this.bgcolor =
'#111';
11937 this.color =
'#222';
11938 this.shape = LiteGraph.ROUND_SHAPE;
11939 this.boxcolor =
'#69A';
11952 this.nodedef_icon =
'';
11954 this.nodedef_type =
'vector2';
11956 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
11957 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_vector2FA_out_genglsl.png';
11958 this.nodedef_group =
'math';
11959 this.addInput(
'in1',
'vector2');
11960 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11961 this.addInput(
'in2',
'float');
11962 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
11963 this.addOutput(
'out',
'vector2');
11964 this.title =
'divide_vector2';
11965 this.desc =
"MaterialX:mtlx/math/divide_vector2FA";
11966 this.onNodeCreated =
function() {
11969 this.onRemoved =
function() {
11972 this.onPropertyChanged =
function(name, value, prev_value) {
11973 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
11975 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
11976 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
11978 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
11979 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
11981 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
11982 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
11984 this.bgcolor =
'#111';
11985 this.color =
'#222';
11986 this.shape = LiteGraph.ROUND_SHAPE;
11987 this.boxcolor =
'#265';
12000 this.nodedef_icon =
'';
12002 this.nodedef_type =
'vector3';
12004 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
12005 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_vector3FA_out_genglsl.png';
12006 this.nodedef_group =
'math';
12007 this.addInput(
'in1',
'vector3');
12008 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12009 this.addInput(
'in2',
'float');
12010 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12011 this.addOutput(
'out',
'vector3');
12012 this.title =
'divide_vector3';
12013 this.desc =
"MaterialX:mtlx/math/divide_vector3FA";
12014 this.onNodeCreated =
function() {
12017 this.onRemoved =
function() {
12020 this.onPropertyChanged =
function(name, value, prev_value) {
12021 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12023 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12024 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12026 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12027 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12029 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12030 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12032 this.bgcolor =
'#111';
12033 this.color =
'#222';
12034 this.shape = LiteGraph.ROUND_SHAPE;
12035 this.boxcolor =
'#465';
12048 this.nodedef_icon =
'';
12050 this.nodedef_type =
'vector4';
12052 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/divide.html';
12053 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_divide_vector4FA_out_genglsl.png';
12054 this.nodedef_group =
'math';
12055 this.addInput(
'in1',
'vector4');
12056 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12057 this.addInput(
'in2',
'float');
12058 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12059 this.addOutput(
'out',
'vector4');
12060 this.title =
'divide_vector4';
12061 this.desc =
"MaterialX:mtlx/math/divide_vector4FA";
12062 this.onNodeCreated =
function() {
12065 this.onRemoved =
function() {
12068 this.onPropertyChanged =
function(name, value, prev_value) {
12069 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12071 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12072 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12074 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12075 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12077 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12078 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12080 this.bgcolor =
'#111';
12081 this.color =
'#222';
12082 this.shape = LiteGraph.ROUND_SHAPE;
12083 this.boxcolor =
'#275';
12096 this.nodedef_icon =
'';
12098 this.nodedef_type =
'float';
12100 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12101 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_float_out_genglsl.png';
12102 this.nodedef_group =
'math';
12103 this.addInput(
'in1',
'float');
12104 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12105 this.addInput(
'in2',
'float');
12106 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12107 this.addOutput(
'out',
'float');
12108 this.title =
'modulo_float';
12109 this.desc =
"MaterialX:mtlx/math/modulo_float";
12110 this.onNodeCreated =
function() {
12113 this.onRemoved =
function() {
12116 this.onPropertyChanged =
function(name, value, prev_value) {
12117 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12119 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12120 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12122 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12123 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12125 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12126 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12128 this.bgcolor =
'#111';
12129 this.color =
'#222';
12130 this.shape = LiteGraph.ROUND_SHAPE;
12131 this.boxcolor =
'#161';
12135mtlx_math_modulo_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12144 this.nodedef_icon =
'';
12146 this.nodedef_type =
'color3';
12148 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12149 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_color3_out_genglsl.png';
12150 this.nodedef_group =
'math';
12151 this.addInput(
'in1',
'color3');
12152 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12153 this.addInput(
'in2',
'color3');
12154 this.addProperty(
'in2', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12155 this.addOutput(
'out',
'color3');
12156 this.title =
'modulo_color3';
12157 this.desc =
"MaterialX:mtlx/math/modulo_color3";
12158 this.onNodeCreated =
function() {
12161 this.onRemoved =
function() {
12164 this.onPropertyChanged =
function(name, value, prev_value) {
12165 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12167 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12168 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12170 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12171 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12173 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12174 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12176 this.bgcolor =
'#111';
12177 this.color =
'#222';
12178 this.shape = LiteGraph.ROUND_SHAPE;
12179 this.boxcolor =
'#37A';
12183mtlx_math_modulo_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12192 this.nodedef_icon =
'';
12194 this.nodedef_type =
'color4';
12196 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12197 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_color4_out_genglsl.png';
12198 this.nodedef_group =
'math';
12199 this.addInput(
'in1',
'color4');
12200 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12201 this.addInput(
'in2',
'color4');
12202 this.addProperty(
'in2', [1.0, 1.0, 1.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12203 this.addOutput(
'out',
'color4');
12204 this.title =
'modulo_color4';
12205 this.desc =
"MaterialX:mtlx/math/modulo_color4";
12206 this.onNodeCreated =
function() {
12209 this.onRemoved =
function() {
12212 this.onPropertyChanged =
function(name, value, prev_value) {
12213 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12215 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12216 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12218 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12219 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12221 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12222 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12224 this.bgcolor =
'#111';
12225 this.color =
'#222';
12226 this.shape = LiteGraph.ROUND_SHAPE;
12227 this.boxcolor =
'#69A';
12231mtlx_math_modulo_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12240 this.nodedef_icon =
'';
12242 this.nodedef_type =
'vector2';
12244 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12245 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_vector2_out_genglsl.png';
12246 this.nodedef_group =
'math';
12247 this.addInput(
'in1',
'vector2');
12248 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12249 this.addInput(
'in2',
'vector2');
12250 this.addProperty(
'in2', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12251 this.addOutput(
'out',
'vector2');
12252 this.title =
'modulo_vector2';
12253 this.desc =
"MaterialX:mtlx/math/modulo_vector2";
12254 this.onNodeCreated =
function() {
12257 this.onRemoved =
function() {
12260 this.onPropertyChanged =
function(name, value, prev_value) {
12261 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12263 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12264 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12266 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12267 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12269 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12270 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12272 this.bgcolor =
'#111';
12273 this.color =
'#222';
12274 this.shape = LiteGraph.ROUND_SHAPE;
12275 this.boxcolor =
'#265';
12279mtlx_math_modulo_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12288 this.nodedef_icon =
'';
12290 this.nodedef_type =
'vector3';
12292 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12293 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_vector3_out_genglsl.png';
12294 this.nodedef_group =
'math';
12295 this.addInput(
'in1',
'vector3');
12296 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12297 this.addInput(
'in2',
'vector3');
12298 this.addProperty(
'in2', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12299 this.addOutput(
'out',
'vector3');
12300 this.title =
'modulo_vector3';
12301 this.desc =
"MaterialX:mtlx/math/modulo_vector3";
12302 this.onNodeCreated =
function() {
12305 this.onRemoved =
function() {
12308 this.onPropertyChanged =
function(name, value, prev_value) {
12309 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12311 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12312 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12314 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12315 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12317 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12318 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12320 this.bgcolor =
'#111';
12321 this.color =
'#222';
12322 this.shape = LiteGraph.ROUND_SHAPE;
12323 this.boxcolor =
'#465';
12327mtlx_math_modulo_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12336 this.nodedef_icon =
'';
12338 this.nodedef_type =
'vector4';
12340 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12341 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_vector4_out_genglsl.png';
12342 this.nodedef_group =
'math';
12343 this.addInput(
'in1',
'vector4');
12344 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12345 this.addInput(
'in2',
'vector4');
12346 this.addProperty(
'in2', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12347 this.addOutput(
'out',
'vector4');
12348 this.title =
'modulo_vector4';
12349 this.desc =
"MaterialX:mtlx/math/modulo_vector4";
12350 this.onNodeCreated =
function() {
12353 this.onRemoved =
function() {
12356 this.onPropertyChanged =
function(name, value, prev_value) {
12357 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12359 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12360 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12362 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12363 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12365 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12366 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12368 this.bgcolor =
'#111';
12369 this.color =
'#222';
12370 this.shape = LiteGraph.ROUND_SHAPE;
12371 this.boxcolor =
'#275';
12375mtlx_math_modulo_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12384 this.nodedef_icon =
'';
12386 this.nodedef_type =
'color3';
12388 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12389 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_color3FA_out_genglsl.png';
12390 this.nodedef_group =
'math';
12391 this.addInput(
'in1',
'color3');
12392 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12393 this.addInput(
'in2',
'float');
12394 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12395 this.addOutput(
'out',
'color3');
12396 this.title =
'modulo_color3';
12397 this.desc =
"MaterialX:mtlx/math/modulo_color3FA";
12398 this.onNodeCreated =
function() {
12401 this.onRemoved =
function() {
12404 this.onPropertyChanged =
function(name, value, prev_value) {
12405 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12407 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12408 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12410 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12411 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12413 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12414 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12416 this.bgcolor =
'#111';
12417 this.color =
'#222';
12418 this.shape = LiteGraph.ROUND_SHAPE;
12419 this.boxcolor =
'#37A';
12432 this.nodedef_icon =
'';
12434 this.nodedef_type =
'color4';
12436 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12437 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_color4FA_out_genglsl.png';
12438 this.nodedef_group =
'math';
12439 this.addInput(
'in1',
'color4');
12440 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12441 this.addInput(
'in2',
'float');
12442 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12443 this.addOutput(
'out',
'color4');
12444 this.title =
'modulo_color4';
12445 this.desc =
"MaterialX:mtlx/math/modulo_color4FA";
12446 this.onNodeCreated =
function() {
12449 this.onRemoved =
function() {
12452 this.onPropertyChanged =
function(name, value, prev_value) {
12453 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12455 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12456 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12458 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12459 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12461 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12462 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12464 this.bgcolor =
'#111';
12465 this.color =
'#222';
12466 this.shape = LiteGraph.ROUND_SHAPE;
12467 this.boxcolor =
'#69A';
12480 this.nodedef_icon =
'';
12482 this.nodedef_type =
'vector2';
12484 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12485 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_vector2FA_out_genglsl.png';
12486 this.nodedef_group =
'math';
12487 this.addInput(
'in1',
'vector2');
12488 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12489 this.addInput(
'in2',
'float');
12490 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12491 this.addOutput(
'out',
'vector2');
12492 this.title =
'modulo_vector2';
12493 this.desc =
"MaterialX:mtlx/math/modulo_vector2FA";
12494 this.onNodeCreated =
function() {
12497 this.onRemoved =
function() {
12500 this.onPropertyChanged =
function(name, value, prev_value) {
12501 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12503 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12504 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12506 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12507 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12509 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12510 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12512 this.bgcolor =
'#111';
12513 this.color =
'#222';
12514 this.shape = LiteGraph.ROUND_SHAPE;
12515 this.boxcolor =
'#265';
12528 this.nodedef_icon =
'';
12530 this.nodedef_type =
'vector3';
12532 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12533 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_vector3FA_out_genglsl.png';
12534 this.nodedef_group =
'math';
12535 this.addInput(
'in1',
'vector3');
12536 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12537 this.addInput(
'in2',
'float');
12538 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12539 this.addOutput(
'out',
'vector3');
12540 this.title =
'modulo_vector3';
12541 this.desc =
"MaterialX:mtlx/math/modulo_vector3FA";
12542 this.onNodeCreated =
function() {
12545 this.onRemoved =
function() {
12548 this.onPropertyChanged =
function(name, value, prev_value) {
12549 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12551 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12552 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12554 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12555 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12557 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12558 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12560 this.bgcolor =
'#111';
12561 this.color =
'#222';
12562 this.shape = LiteGraph.ROUND_SHAPE;
12563 this.boxcolor =
'#465';
12576 this.nodedef_icon =
'';
12578 this.nodedef_type =
'vector4';
12580 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/modulo.html';
12581 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_modulo_vector4FA_out_genglsl.png';
12582 this.nodedef_group =
'math';
12583 this.addInput(
'in1',
'vector4');
12584 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12585 this.addInput(
'in2',
'float');
12586 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12587 this.addOutput(
'out',
'vector4');
12588 this.title =
'modulo_vector4';
12589 this.desc =
"MaterialX:mtlx/math/modulo_vector4FA";
12590 this.onNodeCreated =
function() {
12593 this.onRemoved =
function() {
12596 this.onPropertyChanged =
function(name, value, prev_value) {
12597 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12599 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12600 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12602 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12603 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12605 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12606 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12608 this.bgcolor =
'#111';
12609 this.color =
'#222';
12610 this.shape = LiteGraph.ROUND_SHAPE;
12611 this.boxcolor =
'#275';
12624 this.nodedef_icon =
'';
12626 this.nodedef_type =
'float';
12628 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12629 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_float_out_genglsl.png';
12630 this.nodedef_group =
'math';
12631 this.addInput(
'in',
'float');
12632 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12633 this.addInput(
'amount',
'float');
12634 this.addProperty(
'amount', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12635 this.addOutput(
'out',
'float');
12636 this.title =
'invert_float';
12637 this.desc =
"MaterialX:mtlx/math/invert_float";
12638 this.onNodeCreated =
function() {
12641 this.onRemoved =
function() {
12644 this.onPropertyChanged =
function(name, value, prev_value) {
12645 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12647 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12648 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12650 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12651 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12653 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12654 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12656 this.bgcolor =
'#111';
12657 this.color =
'#222';
12658 this.shape = LiteGraph.ROUND_SHAPE;
12659 this.boxcolor =
'#161';
12663mtlx_math_invert_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12672 this.nodedef_icon =
'';
12674 this.nodedef_type =
'color3';
12676 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12677 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_color3_out_genglsl.png';
12678 this.nodedef_group =
'math';
12679 this.addInput(
'in',
'color3');
12680 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12681 this.addInput(
'amount',
'color3');
12682 this.addProperty(
'amount', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12683 this.addOutput(
'out',
'color3');
12684 this.title =
'invert_color3';
12685 this.desc =
"MaterialX:mtlx/math/invert_color3";
12686 this.onNodeCreated =
function() {
12689 this.onRemoved =
function() {
12692 this.onPropertyChanged =
function(name, value, prev_value) {
12693 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12695 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12696 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12698 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12699 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12701 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12702 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12704 this.bgcolor =
'#111';
12705 this.color =
'#222';
12706 this.shape = LiteGraph.ROUND_SHAPE;
12707 this.boxcolor =
'#37A';
12711mtlx_math_invert_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12720 this.nodedef_icon =
'';
12722 this.nodedef_type =
'color4';
12724 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12725 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_color4_out_genglsl.png';
12726 this.nodedef_group =
'math';
12727 this.addInput(
'in',
'color4');
12728 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12729 this.addInput(
'amount',
'color4');
12730 this.addProperty(
'amount', [1.0, 1.0, 1.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12731 this.addOutput(
'out',
'color4');
12732 this.title =
'invert_color4';
12733 this.desc =
"MaterialX:mtlx/math/invert_color4";
12734 this.onNodeCreated =
function() {
12737 this.onRemoved =
function() {
12740 this.onPropertyChanged =
function(name, value, prev_value) {
12741 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12743 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12744 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12746 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12747 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12749 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12750 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12752 this.bgcolor =
'#111';
12753 this.color =
'#222';
12754 this.shape = LiteGraph.ROUND_SHAPE;
12755 this.boxcolor =
'#69A';
12759mtlx_math_invert_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12768 this.nodedef_icon =
'';
12770 this.nodedef_type =
'vector2';
12772 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12773 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_vector2_out_genglsl.png';
12774 this.nodedef_group =
'math';
12775 this.addInput(
'in',
'vector2');
12776 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12777 this.addInput(
'amount',
'vector2');
12778 this.addProperty(
'amount', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12779 this.addOutput(
'out',
'vector2');
12780 this.title =
'invert_vector2';
12781 this.desc =
"MaterialX:mtlx/math/invert_vector2";
12782 this.onNodeCreated =
function() {
12785 this.onRemoved =
function() {
12788 this.onPropertyChanged =
function(name, value, prev_value) {
12789 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12791 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12792 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12794 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12795 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12797 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12798 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12800 this.bgcolor =
'#111';
12801 this.color =
'#222';
12802 this.shape = LiteGraph.ROUND_SHAPE;
12803 this.boxcolor =
'#265';
12807mtlx_math_invert_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12816 this.nodedef_icon =
'';
12818 this.nodedef_type =
'vector3';
12820 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12821 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_vector3_out_genglsl.png';
12822 this.nodedef_group =
'math';
12823 this.addInput(
'in',
'vector3');
12824 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12825 this.addInput(
'amount',
'vector3');
12826 this.addProperty(
'amount', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12827 this.addOutput(
'out',
'vector3');
12828 this.title =
'invert_vector3';
12829 this.desc =
"MaterialX:mtlx/math/invert_vector3";
12830 this.onNodeCreated =
function() {
12833 this.onRemoved =
function() {
12836 this.onPropertyChanged =
function(name, value, prev_value) {
12837 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12839 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12840 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12842 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12843 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12845 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12846 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12848 this.bgcolor =
'#111';
12849 this.color =
'#222';
12850 this.shape = LiteGraph.ROUND_SHAPE;
12851 this.boxcolor =
'#465';
12855mtlx_math_invert_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12864 this.nodedef_icon =
'';
12866 this.nodedef_type =
'vector4';
12868 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12869 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_vector4_out_genglsl.png';
12870 this.nodedef_group =
'math';
12871 this.addInput(
'in',
'vector4');
12872 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12873 this.addInput(
'amount',
'vector4');
12874 this.addProperty(
'amount', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12875 this.addOutput(
'out',
'vector4');
12876 this.title =
'invert_vector4';
12877 this.desc =
"MaterialX:mtlx/math/invert_vector4";
12878 this.onNodeCreated =
function() {
12881 this.onRemoved =
function() {
12884 this.onPropertyChanged =
function(name, value, prev_value) {
12885 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12887 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12888 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12890 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12891 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12893 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12894 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12896 this.bgcolor =
'#111';
12897 this.color =
'#222';
12898 this.shape = LiteGraph.ROUND_SHAPE;
12899 this.boxcolor =
'#275';
12903mtlx_math_invert_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12912 this.nodedef_icon =
'';
12914 this.nodedef_type =
'color3';
12916 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12917 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_color3FA_out_genglsl.png';
12918 this.nodedef_group =
'math';
12919 this.addInput(
'in',
'color3');
12920 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12921 this.addInput(
'amount',
'float');
12922 this.addProperty(
'amount', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12923 this.addOutput(
'out',
'color3');
12924 this.title =
'invert_color3';
12925 this.desc =
"MaterialX:mtlx/math/invert_color3FA";
12926 this.onNodeCreated =
function() {
12929 this.onRemoved =
function() {
12932 this.onPropertyChanged =
function(name, value, prev_value) {
12933 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12935 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12936 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12938 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12939 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12941 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12942 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12944 this.bgcolor =
'#111';
12945 this.color =
'#222';
12946 this.shape = LiteGraph.ROUND_SHAPE;
12947 this.boxcolor =
'#37A';
12960 this.nodedef_icon =
'';
12962 this.nodedef_type =
'color4';
12964 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
12965 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_color4FA_out_genglsl.png';
12966 this.nodedef_group =
'math';
12967 this.addInput(
'in',
'color4');
12968 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12969 this.addInput(
'amount',
'float');
12970 this.addProperty(
'amount', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
12971 this.addOutput(
'out',
'color4');
12972 this.title =
'invert_color4';
12973 this.desc =
"MaterialX:mtlx/math/invert_color4FA";
12974 this.onNodeCreated =
function() {
12977 this.onRemoved =
function() {
12980 this.onPropertyChanged =
function(name, value, prev_value) {
12981 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
12983 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
12984 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
12986 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
12987 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
12989 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
12990 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
12992 this.bgcolor =
'#111';
12993 this.color =
'#222';
12994 this.shape = LiteGraph.ROUND_SHAPE;
12995 this.boxcolor =
'#69A';
13008 this.nodedef_icon =
'';
13010 this.nodedef_type =
'vector2';
13012 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
13013 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_vector2FA_out_genglsl.png';
13014 this.nodedef_group =
'math';
13015 this.addInput(
'in',
'vector2');
13016 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13017 this.addInput(
'amount',
'float');
13018 this.addProperty(
'amount', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13019 this.addOutput(
'out',
'vector2');
13020 this.title =
'invert_vector2';
13021 this.desc =
"MaterialX:mtlx/math/invert_vector2FA";
13022 this.onNodeCreated =
function() {
13025 this.onRemoved =
function() {
13028 this.onPropertyChanged =
function(name, value, prev_value) {
13029 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13031 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13032 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13034 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13035 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13037 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13038 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13040 this.bgcolor =
'#111';
13041 this.color =
'#222';
13042 this.shape = LiteGraph.ROUND_SHAPE;
13043 this.boxcolor =
'#265';
13056 this.nodedef_icon =
'';
13058 this.nodedef_type =
'vector3';
13060 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
13061 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_vector3FA_out_genglsl.png';
13062 this.nodedef_group =
'math';
13063 this.addInput(
'in',
'vector3');
13064 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13065 this.addInput(
'amount',
'float');
13066 this.addProperty(
'amount', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13067 this.addOutput(
'out',
'vector3');
13068 this.title =
'invert_vector3';
13069 this.desc =
"MaterialX:mtlx/math/invert_vector3FA";
13070 this.onNodeCreated =
function() {
13073 this.onRemoved =
function() {
13076 this.onPropertyChanged =
function(name, value, prev_value) {
13077 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13079 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13080 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13082 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13083 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13085 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13086 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13088 this.bgcolor =
'#111';
13089 this.color =
'#222';
13090 this.shape = LiteGraph.ROUND_SHAPE;
13091 this.boxcolor =
'#465';
13104 this.nodedef_icon =
'';
13106 this.nodedef_type =
'vector4';
13108 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invert.html';
13109 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invert_vector4FA_out_genglsl.png';
13110 this.nodedef_group =
'math';
13111 this.addInput(
'in',
'vector4');
13112 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13113 this.addInput(
'amount',
'float');
13114 this.addProperty(
'amount', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13115 this.addOutput(
'out',
'vector4');
13116 this.title =
'invert_vector4';
13117 this.desc =
"MaterialX:mtlx/math/invert_vector4FA";
13118 this.onNodeCreated =
function() {
13121 this.onRemoved =
function() {
13124 this.onPropertyChanged =
function(name, value, prev_value) {
13125 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13127 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13128 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13130 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13131 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13133 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13134 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13136 this.bgcolor =
'#111';
13137 this.color =
'#222';
13138 this.shape = LiteGraph.ROUND_SHAPE;
13139 this.boxcolor =
'#275';
13152 this.nodedef_icon =
'';
13154 this.nodedef_type =
'float';
13156 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13157 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_absval_float_out_genglsl.png';
13158 this.nodedef_group =
'math';
13159 this.addInput(
'in',
'float');
13160 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13161 this.addOutput(
'out',
'float');
13162 this.title =
'absval_float';
13163 this.desc =
"MaterialX:mtlx/math/absval_float";
13164 this.onNodeCreated =
function() {
13167 this.onRemoved =
function() {
13170 this.onPropertyChanged =
function(name, value, prev_value) {
13171 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13173 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13174 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13176 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13177 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13179 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13180 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13182 this.bgcolor =
'#111';
13183 this.color =
'#222';
13184 this.shape = LiteGraph.ROUND_SHAPE;
13185 this.boxcolor =
'#161';
13189mtlx_math_absval_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13198 this.nodedef_icon =
'';
13200 this.nodedef_type =
'color3';
13202 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13203 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_absval_color3_out_genglsl.png';
13204 this.nodedef_group =
'math';
13205 this.addInput(
'in',
'color3');
13206 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13207 this.addOutput(
'out',
'color3');
13208 this.title =
'absval_color3';
13209 this.desc =
"MaterialX:mtlx/math/absval_color3";
13210 this.onNodeCreated =
function() {
13213 this.onRemoved =
function() {
13216 this.onPropertyChanged =
function(name, value, prev_value) {
13217 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13219 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13220 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13222 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13223 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13225 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13226 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13228 this.bgcolor =
'#111';
13229 this.color =
'#222';
13230 this.shape = LiteGraph.ROUND_SHAPE;
13231 this.boxcolor =
'#37A';
13235mtlx_math_absval_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13244 this.nodedef_icon =
'';
13246 this.nodedef_type =
'color4';
13248 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13249 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_absval_color4_out_genglsl.png';
13250 this.nodedef_group =
'math';
13251 this.addInput(
'in',
'color4');
13252 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13253 this.addOutput(
'out',
'color4');
13254 this.title =
'absval_color4';
13255 this.desc =
"MaterialX:mtlx/math/absval_color4";
13256 this.onNodeCreated =
function() {
13259 this.onRemoved =
function() {
13262 this.onPropertyChanged =
function(name, value, prev_value) {
13263 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13265 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13266 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13268 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13269 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13271 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13272 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13274 this.bgcolor =
'#111';
13275 this.color =
'#222';
13276 this.shape = LiteGraph.ROUND_SHAPE;
13277 this.boxcolor =
'#69A';
13281mtlx_math_absval_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13290 this.nodedef_icon =
'';
13292 this.nodedef_type =
'vector2';
13294 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13295 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_absval_vector2_out_genglsl.png';
13296 this.nodedef_group =
'math';
13297 this.addInput(
'in',
'vector2');
13298 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13299 this.addOutput(
'out',
'vector2');
13300 this.title =
'absval_vector2';
13301 this.desc =
"MaterialX:mtlx/math/absval_vector2";
13302 this.onNodeCreated =
function() {
13305 this.onRemoved =
function() {
13308 this.onPropertyChanged =
function(name, value, prev_value) {
13309 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13311 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13312 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13314 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13315 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13317 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13318 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13320 this.bgcolor =
'#111';
13321 this.color =
'#222';
13322 this.shape = LiteGraph.ROUND_SHAPE;
13323 this.boxcolor =
'#265';
13327mtlx_math_absval_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13336 this.nodedef_icon =
'';
13338 this.nodedef_type =
'vector3';
13340 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13341 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_absval_vector3_out_genglsl.png';
13342 this.nodedef_group =
'math';
13343 this.addInput(
'in',
'vector3');
13344 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13345 this.addOutput(
'out',
'vector3');
13346 this.title =
'absval_vector3';
13347 this.desc =
"MaterialX:mtlx/math/absval_vector3";
13348 this.onNodeCreated =
function() {
13351 this.onRemoved =
function() {
13354 this.onPropertyChanged =
function(name, value, prev_value) {
13355 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13357 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13358 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13360 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13361 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13363 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13364 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13366 this.bgcolor =
'#111';
13367 this.color =
'#222';
13368 this.shape = LiteGraph.ROUND_SHAPE;
13369 this.boxcolor =
'#465';
13373mtlx_math_absval_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13382 this.nodedef_icon =
'';
13384 this.nodedef_type =
'vector4';
13386 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13387 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_absval_vector4_out_genglsl.png';
13388 this.nodedef_group =
'math';
13389 this.addInput(
'in',
'vector4');
13390 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13391 this.addOutput(
'out',
'vector4');
13392 this.title =
'absval_vector4';
13393 this.desc =
"MaterialX:mtlx/math/absval_vector4";
13394 this.onNodeCreated =
function() {
13397 this.onRemoved =
function() {
13400 this.onPropertyChanged =
function(name, value, prev_value) {
13401 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13403 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13404 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13406 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13407 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13409 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13410 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13412 this.bgcolor =
'#111';
13413 this.color =
'#222';
13414 this.shape = LiteGraph.ROUND_SHAPE;
13415 this.boxcolor =
'#275';
13419mtlx_math_absval_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absval.html';
13428 this.nodedef_icon =
'';
13430 this.nodedef_type =
'float';
13432 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13433 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_floor_float_out_genglsl.png';
13434 this.nodedef_group =
'math';
13435 this.addInput(
'in',
'float');
13436 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13437 this.addOutput(
'out',
'float');
13438 this.title =
'floor_float';
13439 this.desc =
"MaterialX:mtlx/math/floor_float";
13440 this.onNodeCreated =
function() {
13443 this.onRemoved =
function() {
13446 this.onPropertyChanged =
function(name, value, prev_value) {
13447 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13449 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13450 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13452 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13453 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13455 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13456 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13458 this.bgcolor =
'#111';
13459 this.color =
'#222';
13460 this.shape = LiteGraph.ROUND_SHAPE;
13461 this.boxcolor =
'#161';
13465mtlx_math_floor_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13474 this.nodedef_icon =
'';
13476 this.nodedef_type =
'color3';
13478 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13479 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_floor_color3_out_genglsl.png';
13480 this.nodedef_group =
'math';
13481 this.addInput(
'in',
'color3');
13482 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13483 this.addOutput(
'out',
'color3');
13484 this.title =
'floor_color3';
13485 this.desc =
"MaterialX:mtlx/math/floor_color3";
13486 this.onNodeCreated =
function() {
13489 this.onRemoved =
function() {
13492 this.onPropertyChanged =
function(name, value, prev_value) {
13493 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13495 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13496 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13498 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13499 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13501 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13502 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13504 this.bgcolor =
'#111';
13505 this.color =
'#222';
13506 this.shape = LiteGraph.ROUND_SHAPE;
13507 this.boxcolor =
'#37A';
13511mtlx_math_floor_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13520 this.nodedef_icon =
'';
13522 this.nodedef_type =
'color4';
13524 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13525 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_floor_color4_out_genglsl.png';
13526 this.nodedef_group =
'math';
13527 this.addInput(
'in',
'color4');
13528 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13529 this.addOutput(
'out',
'color4');
13530 this.title =
'floor_color4';
13531 this.desc =
"MaterialX:mtlx/math/floor_color4";
13532 this.onNodeCreated =
function() {
13535 this.onRemoved =
function() {
13538 this.onPropertyChanged =
function(name, value, prev_value) {
13539 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13541 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13542 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13544 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13545 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13547 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13548 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13550 this.bgcolor =
'#111';
13551 this.color =
'#222';
13552 this.shape = LiteGraph.ROUND_SHAPE;
13553 this.boxcolor =
'#69A';
13557mtlx_math_floor_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13566 this.nodedef_icon =
'';
13568 this.nodedef_type =
'vector2';
13570 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13571 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_floor_vector2_out_genglsl.png';
13572 this.nodedef_group =
'math';
13573 this.addInput(
'in',
'vector2');
13574 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13575 this.addOutput(
'out',
'vector2');
13576 this.title =
'floor_vector2';
13577 this.desc =
"MaterialX:mtlx/math/floor_vector2";
13578 this.onNodeCreated =
function() {
13581 this.onRemoved =
function() {
13584 this.onPropertyChanged =
function(name, value, prev_value) {
13585 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13587 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13588 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13590 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13591 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13593 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13594 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13596 this.bgcolor =
'#111';
13597 this.color =
'#222';
13598 this.shape = LiteGraph.ROUND_SHAPE;
13599 this.boxcolor =
'#265';
13603mtlx_math_floor_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13612 this.nodedef_icon =
'';
13614 this.nodedef_type =
'vector3';
13616 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13617 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_floor_vector3_out_genglsl.png';
13618 this.nodedef_group =
'math';
13619 this.addInput(
'in',
'vector3');
13620 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13621 this.addOutput(
'out',
'vector3');
13622 this.title =
'floor_vector3';
13623 this.desc =
"MaterialX:mtlx/math/floor_vector3";
13624 this.onNodeCreated =
function() {
13627 this.onRemoved =
function() {
13630 this.onPropertyChanged =
function(name, value, prev_value) {
13631 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13633 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13634 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13636 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13637 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13639 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13640 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13642 this.bgcolor =
'#111';
13643 this.color =
'#222';
13644 this.shape = LiteGraph.ROUND_SHAPE;
13645 this.boxcolor =
'#465';
13649mtlx_math_floor_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13658 this.nodedef_icon =
'';
13660 this.nodedef_type =
'vector4';
13662 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13663 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_floor_vector4_out_genglsl.png';
13664 this.nodedef_group =
'math';
13665 this.addInput(
'in',
'vector4');
13666 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13667 this.addOutput(
'out',
'vector4');
13668 this.title =
'floor_vector4';
13669 this.desc =
"MaterialX:mtlx/math/floor_vector4";
13670 this.onNodeCreated =
function() {
13673 this.onRemoved =
function() {
13676 this.onPropertyChanged =
function(name, value, prev_value) {
13677 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13679 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13680 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13682 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13683 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13685 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13686 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13688 this.bgcolor =
'#111';
13689 this.color =
'#222';
13690 this.shape = LiteGraph.ROUND_SHAPE;
13691 this.boxcolor =
'#275';
13695mtlx_math_floor_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13704 this.nodedef_icon =
'';
13706 this.nodedef_type =
'integer';
13708 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13709 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_floor_integer_out_genglsl.png';
13710 this.nodedef_group =
'math';
13711 this.addInput(
'in',
'float');
13712 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13713 this.addOutput(
'out',
'integer');
13714 this.title =
'floor_integer';
13715 this.desc =
"MaterialX:mtlx/math/floor_integer";
13716 this.onNodeCreated =
function() {
13719 this.onRemoved =
function() {
13722 this.onPropertyChanged =
function(name, value, prev_value) {
13723 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13725 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13726 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13728 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13729 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13731 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13732 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13734 this.bgcolor =
'#111';
13735 this.color =
'#222';
13736 this.shape = LiteGraph.ROUND_SHAPE;
13737 this.boxcolor =
'#A32';
13741mtlx_math_floor_integer.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/floor.html';
13750 this.nodedef_icon =
'';
13752 this.nodedef_type =
'float';
13754 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13755 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ceil_float_out_genglsl.png';
13756 this.nodedef_group =
'math';
13757 this.addInput(
'in',
'float');
13758 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13759 this.addOutput(
'out',
'float');
13760 this.title =
'ceil_float';
13761 this.desc =
"MaterialX:mtlx/math/ceil_float";
13762 this.onNodeCreated =
function() {
13765 this.onRemoved =
function() {
13768 this.onPropertyChanged =
function(name, value, prev_value) {
13769 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13771 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13772 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13774 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13775 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13777 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13778 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13780 this.bgcolor =
'#111';
13781 this.color =
'#222';
13782 this.shape = LiteGraph.ROUND_SHAPE;
13783 this.boxcolor =
'#161';
13787mtlx_math_ceil_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13796 this.nodedef_icon =
'';
13798 this.nodedef_type =
'color3';
13800 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13801 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ceil_color3_out_genglsl.png';
13802 this.nodedef_group =
'math';
13803 this.addInput(
'in',
'color3');
13804 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13805 this.addOutput(
'out',
'color3');
13806 this.title =
'ceil_color3';
13807 this.desc =
"MaterialX:mtlx/math/ceil_color3";
13808 this.onNodeCreated =
function() {
13811 this.onRemoved =
function() {
13814 this.onPropertyChanged =
function(name, value, prev_value) {
13815 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13817 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13818 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13820 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13821 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13823 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13824 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13826 this.bgcolor =
'#111';
13827 this.color =
'#222';
13828 this.shape = LiteGraph.ROUND_SHAPE;
13829 this.boxcolor =
'#37A';
13833mtlx_math_ceil_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13842 this.nodedef_icon =
'';
13844 this.nodedef_type =
'color4';
13846 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13847 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ceil_color4_out_genglsl.png';
13848 this.nodedef_group =
'math';
13849 this.addInput(
'in',
'color4');
13850 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13851 this.addOutput(
'out',
'color4');
13852 this.title =
'ceil_color4';
13853 this.desc =
"MaterialX:mtlx/math/ceil_color4";
13854 this.onNodeCreated =
function() {
13857 this.onRemoved =
function() {
13860 this.onPropertyChanged =
function(name, value, prev_value) {
13861 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13863 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13864 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13866 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13867 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13869 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13870 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13872 this.bgcolor =
'#111';
13873 this.color =
'#222';
13874 this.shape = LiteGraph.ROUND_SHAPE;
13875 this.boxcolor =
'#69A';
13879mtlx_math_ceil_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13888 this.nodedef_icon =
'';
13890 this.nodedef_type =
'vector2';
13892 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13893 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ceil_vector2_out_genglsl.png';
13894 this.nodedef_group =
'math';
13895 this.addInput(
'in',
'vector2');
13896 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13897 this.addOutput(
'out',
'vector2');
13898 this.title =
'ceil_vector2';
13899 this.desc =
"MaterialX:mtlx/math/ceil_vector2";
13900 this.onNodeCreated =
function() {
13903 this.onRemoved =
function() {
13906 this.onPropertyChanged =
function(name, value, prev_value) {
13907 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13909 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13910 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13912 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13913 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13915 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13916 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13918 this.bgcolor =
'#111';
13919 this.color =
'#222';
13920 this.shape = LiteGraph.ROUND_SHAPE;
13921 this.boxcolor =
'#265';
13925mtlx_math_ceil_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13934 this.nodedef_icon =
'';
13936 this.nodedef_type =
'vector3';
13938 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13939 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ceil_vector3_out_genglsl.png';
13940 this.nodedef_group =
'math';
13941 this.addInput(
'in',
'vector3');
13942 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13943 this.addOutput(
'out',
'vector3');
13944 this.title =
'ceil_vector3';
13945 this.desc =
"MaterialX:mtlx/math/ceil_vector3";
13946 this.onNodeCreated =
function() {
13949 this.onRemoved =
function() {
13952 this.onPropertyChanged =
function(name, value, prev_value) {
13953 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
13955 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
13956 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
13958 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
13959 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
13961 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
13962 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
13964 this.bgcolor =
'#111';
13965 this.color =
'#222';
13966 this.shape = LiteGraph.ROUND_SHAPE;
13967 this.boxcolor =
'#465';
13971mtlx_math_ceil_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13980 this.nodedef_icon =
'';
13982 this.nodedef_type =
'vector4';
13984 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
13985 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ceil_vector4_out_genglsl.png';
13986 this.nodedef_group =
'math';
13987 this.addInput(
'in',
'vector4');
13988 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
13989 this.addOutput(
'out',
'vector4');
13990 this.title =
'ceil_vector4';
13991 this.desc =
"MaterialX:mtlx/math/ceil_vector4";
13992 this.onNodeCreated =
function() {
13995 this.onRemoved =
function() {
13998 this.onPropertyChanged =
function(name, value, prev_value) {
13999 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14001 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14002 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14004 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14005 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14007 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14008 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14010 this.bgcolor =
'#111';
14011 this.color =
'#222';
14012 this.shape = LiteGraph.ROUND_SHAPE;
14013 this.boxcolor =
'#275';
14017mtlx_math_ceil_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
14026 this.nodedef_icon =
'';
14028 this.nodedef_type =
'integer';
14030 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
14031 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ceil_integer_out_genglsl.png';
14032 this.nodedef_group =
'math';
14033 this.addInput(
'in',
'float');
14034 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14035 this.addOutput(
'out',
'integer');
14036 this.title =
'ceil_integer';
14037 this.desc =
"MaterialX:mtlx/math/ceil_integer";
14038 this.onNodeCreated =
function() {
14041 this.onRemoved =
function() {
14044 this.onPropertyChanged =
function(name, value, prev_value) {
14045 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14047 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14048 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14050 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14051 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14053 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14054 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14056 this.bgcolor =
'#111';
14057 this.color =
'#222';
14058 this.shape = LiteGraph.ROUND_SHAPE;
14059 this.boxcolor =
'#A32';
14063mtlx_math_ceil_integer.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ceil.html';
14072 this.nodedef_icon =
'';
14074 this.nodedef_type =
'float';
14076 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14077 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_round_float_out_genglsl.png';
14078 this.nodedef_group =
'math';
14079 this.addInput(
'in',
'float');
14080 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14081 this.addOutput(
'out',
'float');
14082 this.title =
'round_float';
14083 this.desc =
"MaterialX:mtlx/math/round_float";
14084 this.onNodeCreated =
function() {
14087 this.onRemoved =
function() {
14090 this.onPropertyChanged =
function(name, value, prev_value) {
14091 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14093 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14094 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14096 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14097 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14099 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14100 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14102 this.bgcolor =
'#111';
14103 this.color =
'#222';
14104 this.shape = LiteGraph.ROUND_SHAPE;
14105 this.boxcolor =
'#161';
14109mtlx_math_round_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14118 this.nodedef_icon =
'';
14120 this.nodedef_type =
'color3';
14122 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14123 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_round_color3_out_genglsl.png';
14124 this.nodedef_group =
'math';
14125 this.addInput(
'in',
'color3');
14126 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14127 this.addOutput(
'out',
'color3');
14128 this.title =
'round_color3';
14129 this.desc =
"MaterialX:mtlx/math/round_color3";
14130 this.onNodeCreated =
function() {
14133 this.onRemoved =
function() {
14136 this.onPropertyChanged =
function(name, value, prev_value) {
14137 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14139 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14140 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14142 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14143 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14145 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14146 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14148 this.bgcolor =
'#111';
14149 this.color =
'#222';
14150 this.shape = LiteGraph.ROUND_SHAPE;
14151 this.boxcolor =
'#37A';
14155mtlx_math_round_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14164 this.nodedef_icon =
'';
14166 this.nodedef_type =
'color4';
14168 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14169 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_round_color4_out_genglsl.png';
14170 this.nodedef_group =
'math';
14171 this.addInput(
'in',
'color4');
14172 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14173 this.addOutput(
'out',
'color4');
14174 this.title =
'round_color4';
14175 this.desc =
"MaterialX:mtlx/math/round_color4";
14176 this.onNodeCreated =
function() {
14179 this.onRemoved =
function() {
14182 this.onPropertyChanged =
function(name, value, prev_value) {
14183 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14185 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14186 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14188 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14189 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14191 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14192 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14194 this.bgcolor =
'#111';
14195 this.color =
'#222';
14196 this.shape = LiteGraph.ROUND_SHAPE;
14197 this.boxcolor =
'#69A';
14201mtlx_math_round_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14210 this.nodedef_icon =
'';
14212 this.nodedef_type =
'vector2';
14214 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14215 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_round_vector2_out_genglsl.png';
14216 this.nodedef_group =
'math';
14217 this.addInput(
'in',
'vector2');
14218 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14219 this.addOutput(
'out',
'vector2');
14220 this.title =
'round_vector2';
14221 this.desc =
"MaterialX:mtlx/math/round_vector2";
14222 this.onNodeCreated =
function() {
14225 this.onRemoved =
function() {
14228 this.onPropertyChanged =
function(name, value, prev_value) {
14229 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14231 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14232 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14234 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14235 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14237 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14238 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14240 this.bgcolor =
'#111';
14241 this.color =
'#222';
14242 this.shape = LiteGraph.ROUND_SHAPE;
14243 this.boxcolor =
'#265';
14247mtlx_math_round_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14256 this.nodedef_icon =
'';
14258 this.nodedef_type =
'vector3';
14260 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14261 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_round_vector3_out_genglsl.png';
14262 this.nodedef_group =
'math';
14263 this.addInput(
'in',
'vector3');
14264 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14265 this.addOutput(
'out',
'vector3');
14266 this.title =
'round_vector3';
14267 this.desc =
"MaterialX:mtlx/math/round_vector3";
14268 this.onNodeCreated =
function() {
14271 this.onRemoved =
function() {
14274 this.onPropertyChanged =
function(name, value, prev_value) {
14275 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14277 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14278 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14280 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14281 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14283 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14284 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14286 this.bgcolor =
'#111';
14287 this.color =
'#222';
14288 this.shape = LiteGraph.ROUND_SHAPE;
14289 this.boxcolor =
'#465';
14293mtlx_math_round_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14302 this.nodedef_icon =
'';
14304 this.nodedef_type =
'vector4';
14306 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14307 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_round_vector4_out_genglsl.png';
14308 this.nodedef_group =
'math';
14309 this.addInput(
'in',
'vector4');
14310 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14311 this.addOutput(
'out',
'vector4');
14312 this.title =
'round_vector4';
14313 this.desc =
"MaterialX:mtlx/math/round_vector4";
14314 this.onNodeCreated =
function() {
14317 this.onRemoved =
function() {
14320 this.onPropertyChanged =
function(name, value, prev_value) {
14321 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14323 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14324 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14326 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14327 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14329 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14330 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14332 this.bgcolor =
'#111';
14333 this.color =
'#222';
14334 this.shape = LiteGraph.ROUND_SHAPE;
14335 this.boxcolor =
'#275';
14339mtlx_math_round_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14348 this.nodedef_icon =
'';
14350 this.nodedef_type =
'integer';
14352 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14353 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_round_integer_out_genglsl.png';
14354 this.nodedef_group =
'math';
14355 this.addInput(
'in',
'float');
14356 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14357 this.addOutput(
'out',
'integer');
14358 this.title =
'round_integer';
14359 this.desc =
"MaterialX:mtlx/math/round_integer";
14360 this.onNodeCreated =
function() {
14363 this.onRemoved =
function() {
14366 this.onPropertyChanged =
function(name, value, prev_value) {
14367 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14369 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14370 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14372 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14373 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14375 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14376 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14378 this.bgcolor =
'#111';
14379 this.color =
'#222';
14380 this.shape = LiteGraph.ROUND_SHAPE;
14381 this.boxcolor =
'#A32';
14385mtlx_math_round_integer.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/round.html';
14394 this.nodedef_icon =
'';
14396 this.nodedef_type =
'float';
14398 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14399 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_float_out_genglsl.png';
14400 this.nodedef_group =
'math';
14401 this.addInput(
'in1',
'float');
14402 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14403 this.addInput(
'in2',
'float');
14404 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14405 this.addOutput(
'out',
'float');
14406 this.title =
'power_float';
14407 this.desc =
"MaterialX:mtlx/math/power_float";
14408 this.onNodeCreated =
function() {
14411 this.onRemoved =
function() {
14414 this.onPropertyChanged =
function(name, value, prev_value) {
14415 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14417 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14418 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14420 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14421 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14423 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14424 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14426 this.bgcolor =
'#111';
14427 this.color =
'#222';
14428 this.shape = LiteGraph.ROUND_SHAPE;
14429 this.boxcolor =
'#161';
14433mtlx_math_power_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14442 this.nodedef_icon =
'';
14444 this.nodedef_type =
'color3';
14446 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14447 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_color3_out_genglsl.png';
14448 this.nodedef_group =
'math';
14449 this.addInput(
'in1',
'color3');
14450 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14451 this.addInput(
'in2',
'color3');
14452 this.addProperty(
'in2', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14453 this.addOutput(
'out',
'color3');
14454 this.title =
'power_color3';
14455 this.desc =
"MaterialX:mtlx/math/power_color3";
14456 this.onNodeCreated =
function() {
14459 this.onRemoved =
function() {
14462 this.onPropertyChanged =
function(name, value, prev_value) {
14463 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14465 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14466 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14468 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14469 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14471 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14472 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14474 this.bgcolor =
'#111';
14475 this.color =
'#222';
14476 this.shape = LiteGraph.ROUND_SHAPE;
14477 this.boxcolor =
'#37A';
14481mtlx_math_power_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14490 this.nodedef_icon =
'';
14492 this.nodedef_type =
'color4';
14494 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14495 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_color4_out_genglsl.png';
14496 this.nodedef_group =
'math';
14497 this.addInput(
'in1',
'color4');
14498 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14499 this.addInput(
'in2',
'color4');
14500 this.addProperty(
'in2', [1.0, 1.0, 1.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14501 this.addOutput(
'out',
'color4');
14502 this.title =
'power_color4';
14503 this.desc =
"MaterialX:mtlx/math/power_color4";
14504 this.onNodeCreated =
function() {
14507 this.onRemoved =
function() {
14510 this.onPropertyChanged =
function(name, value, prev_value) {
14511 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14513 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14514 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14516 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14517 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14519 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14520 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14522 this.bgcolor =
'#111';
14523 this.color =
'#222';
14524 this.shape = LiteGraph.ROUND_SHAPE;
14525 this.boxcolor =
'#69A';
14529mtlx_math_power_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14538 this.nodedef_icon =
'';
14540 this.nodedef_type =
'vector2';
14542 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14543 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_vector2_out_genglsl.png';
14544 this.nodedef_group =
'math';
14545 this.addInput(
'in1',
'vector2');
14546 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14547 this.addInput(
'in2',
'vector2');
14548 this.addProperty(
'in2', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14549 this.addOutput(
'out',
'vector2');
14550 this.title =
'power_vector2';
14551 this.desc =
"MaterialX:mtlx/math/power_vector2";
14552 this.onNodeCreated =
function() {
14555 this.onRemoved =
function() {
14558 this.onPropertyChanged =
function(name, value, prev_value) {
14559 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14561 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14562 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14564 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14565 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14567 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14568 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14570 this.bgcolor =
'#111';
14571 this.color =
'#222';
14572 this.shape = LiteGraph.ROUND_SHAPE;
14573 this.boxcolor =
'#265';
14577mtlx_math_power_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14586 this.nodedef_icon =
'';
14588 this.nodedef_type =
'vector3';
14590 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14591 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_vector3_out_genglsl.png';
14592 this.nodedef_group =
'math';
14593 this.addInput(
'in1',
'vector3');
14594 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14595 this.addInput(
'in2',
'vector3');
14596 this.addProperty(
'in2', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14597 this.addOutput(
'out',
'vector3');
14598 this.title =
'power_vector3';
14599 this.desc =
"MaterialX:mtlx/math/power_vector3";
14600 this.onNodeCreated =
function() {
14603 this.onRemoved =
function() {
14606 this.onPropertyChanged =
function(name, value, prev_value) {
14607 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14609 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14610 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14612 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14613 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14615 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14616 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14618 this.bgcolor =
'#111';
14619 this.color =
'#222';
14620 this.shape = LiteGraph.ROUND_SHAPE;
14621 this.boxcolor =
'#465';
14625mtlx_math_power_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14634 this.nodedef_icon =
'';
14636 this.nodedef_type =
'vector4';
14638 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14639 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_vector4_out_genglsl.png';
14640 this.nodedef_group =
'math';
14641 this.addInput(
'in1',
'vector4');
14642 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14643 this.addInput(
'in2',
'vector4');
14644 this.addProperty(
'in2', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14645 this.addOutput(
'out',
'vector4');
14646 this.title =
'power_vector4';
14647 this.desc =
"MaterialX:mtlx/math/power_vector4";
14648 this.onNodeCreated =
function() {
14651 this.onRemoved =
function() {
14654 this.onPropertyChanged =
function(name, value, prev_value) {
14655 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14657 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14658 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14660 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14661 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14663 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14664 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14666 this.bgcolor =
'#111';
14667 this.color =
'#222';
14668 this.shape = LiteGraph.ROUND_SHAPE;
14669 this.boxcolor =
'#275';
14673mtlx_math_power_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14682 this.nodedef_icon =
'';
14684 this.nodedef_type =
'color3';
14686 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14687 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_color3FA_out_genglsl.png';
14688 this.nodedef_group =
'math';
14689 this.addInput(
'in1',
'color3');
14690 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14691 this.addInput(
'in2',
'float');
14692 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14693 this.addOutput(
'out',
'color3');
14694 this.title =
'power_color3';
14695 this.desc =
"MaterialX:mtlx/math/power_color3FA";
14696 this.onNodeCreated =
function() {
14699 this.onRemoved =
function() {
14702 this.onPropertyChanged =
function(name, value, prev_value) {
14703 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14705 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14706 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14708 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14709 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14711 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14712 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14714 this.bgcolor =
'#111';
14715 this.color =
'#222';
14716 this.shape = LiteGraph.ROUND_SHAPE;
14717 this.boxcolor =
'#37A';
14721mtlx_math_power_color3FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14730 this.nodedef_icon =
'';
14732 this.nodedef_type =
'color4';
14734 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14735 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_color4FA_out_genglsl.png';
14736 this.nodedef_group =
'math';
14737 this.addInput(
'in1',
'color4');
14738 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14739 this.addInput(
'in2',
'float');
14740 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14741 this.addOutput(
'out',
'color4');
14742 this.title =
'power_color4';
14743 this.desc =
"MaterialX:mtlx/math/power_color4FA";
14744 this.onNodeCreated =
function() {
14747 this.onRemoved =
function() {
14750 this.onPropertyChanged =
function(name, value, prev_value) {
14751 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14753 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14754 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14756 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14757 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14759 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14760 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14762 this.bgcolor =
'#111';
14763 this.color =
'#222';
14764 this.shape = LiteGraph.ROUND_SHAPE;
14765 this.boxcolor =
'#69A';
14769mtlx_math_power_color4FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14778 this.nodedef_icon =
'';
14780 this.nodedef_type =
'vector2';
14782 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14783 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_vector2FA_out_genglsl.png';
14784 this.nodedef_group =
'math';
14785 this.addInput(
'in1',
'vector2');
14786 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14787 this.addInput(
'in2',
'float');
14788 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14789 this.addOutput(
'out',
'vector2');
14790 this.title =
'power_vector2';
14791 this.desc =
"MaterialX:mtlx/math/power_vector2FA";
14792 this.onNodeCreated =
function() {
14795 this.onRemoved =
function() {
14798 this.onPropertyChanged =
function(name, value, prev_value) {
14799 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14801 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14802 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14804 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14805 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14807 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14808 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14810 this.bgcolor =
'#111';
14811 this.color =
'#222';
14812 this.shape = LiteGraph.ROUND_SHAPE;
14813 this.boxcolor =
'#265';
14826 this.nodedef_icon =
'';
14828 this.nodedef_type =
'vector3';
14830 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14831 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_vector3FA_out_genglsl.png';
14832 this.nodedef_group =
'math';
14833 this.addInput(
'in1',
'vector3');
14834 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14835 this.addInput(
'in2',
'float');
14836 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14837 this.addOutput(
'out',
'vector3');
14838 this.title =
'power_vector3';
14839 this.desc =
"MaterialX:mtlx/math/power_vector3FA";
14840 this.onNodeCreated =
function() {
14843 this.onRemoved =
function() {
14846 this.onPropertyChanged =
function(name, value, prev_value) {
14847 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14849 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14850 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14852 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14853 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14855 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14856 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14858 this.bgcolor =
'#111';
14859 this.color =
'#222';
14860 this.shape = LiteGraph.ROUND_SHAPE;
14861 this.boxcolor =
'#465';
14874 this.nodedef_icon =
'';
14876 this.nodedef_type =
'vector4';
14878 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/power.html';
14879 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_power_vector4FA_out_genglsl.png';
14880 this.nodedef_group =
'math';
14881 this.addInput(
'in1',
'vector4');
14882 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14883 this.addInput(
'in2',
'float');
14884 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14885 this.addOutput(
'out',
'vector4');
14886 this.title =
'power_vector4';
14887 this.desc =
"MaterialX:mtlx/math/power_vector4FA";
14888 this.onNodeCreated =
function() {
14891 this.onRemoved =
function() {
14894 this.onPropertyChanged =
function(name, value, prev_value) {
14895 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14897 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14898 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14900 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14901 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14903 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14904 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14906 this.bgcolor =
'#111';
14907 this.color =
'#222';
14908 this.shape = LiteGraph.ROUND_SHAPE;
14909 this.boxcolor =
'#275';
14922 this.nodedef_icon =
'';
14924 this.nodedef_type =
'float';
14926 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
14927 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_float_out_genglsl.png';
14928 this.nodedef_group =
'math';
14929 this.addInput(
'in1',
'float');
14930 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14931 this.addInput(
'in2',
'float');
14932 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14933 this.addOutput(
'out',
'float');
14934 this.title =
'safepower_float';
14935 this.desc =
"MaterialX:mtlx/math/safepower_float";
14936 this.onNodeCreated =
function() {
14939 this.onRemoved =
function() {
14942 this.onPropertyChanged =
function(name, value, prev_value) {
14943 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14945 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14946 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14948 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14949 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14951 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
14952 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
14954 this.bgcolor =
'#111';
14955 this.color =
'#222';
14956 this.shape = LiteGraph.ROUND_SHAPE;
14957 this.boxcolor =
'#161';
14961mtlx_math_safepower_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
14970 this.nodedef_icon =
'';
14972 this.nodedef_type =
'color3';
14974 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
14975 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_color3_out_genglsl.png';
14976 this.nodedef_group =
'math';
14977 this.addInput(
'in1',
'color3');
14978 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14979 this.addInput(
'in2',
'color3');
14980 this.addProperty(
'in2', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
14981 this.addOutput(
'out',
'color3');
14982 this.title =
'safepower_color3';
14983 this.desc =
"MaterialX:mtlx/math/safepower_color3";
14984 this.onNodeCreated =
function() {
14987 this.onRemoved =
function() {
14990 this.onPropertyChanged =
function(name, value, prev_value) {
14991 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
14993 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
14994 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
14996 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
14997 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
14999 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15000 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15002 this.bgcolor =
'#111';
15003 this.color =
'#222';
15004 this.shape = LiteGraph.ROUND_SHAPE;
15005 this.boxcolor =
'#37A';
15018 this.nodedef_icon =
'';
15020 this.nodedef_type =
'color4';
15022 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15023 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_color4_out_genglsl.png';
15024 this.nodedef_group =
'math';
15025 this.addInput(
'in1',
'color4');
15026 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15027 this.addInput(
'in2',
'color4');
15028 this.addProperty(
'in2', [1.0, 1.0, 1.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15029 this.addOutput(
'out',
'color4');
15030 this.title =
'safepower_color4';
15031 this.desc =
"MaterialX:mtlx/math/safepower_color4";
15032 this.onNodeCreated =
function() {
15035 this.onRemoved =
function() {
15038 this.onPropertyChanged =
function(name, value, prev_value) {
15039 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15041 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15042 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15044 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15045 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15047 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15048 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15050 this.bgcolor =
'#111';
15051 this.color =
'#222';
15052 this.shape = LiteGraph.ROUND_SHAPE;
15053 this.boxcolor =
'#69A';
15066 this.nodedef_icon =
'';
15068 this.nodedef_type =
'vector2';
15070 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15071 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_vector2_out_genglsl.png';
15072 this.nodedef_group =
'math';
15073 this.addInput(
'in1',
'vector2');
15074 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15075 this.addInput(
'in2',
'vector2');
15076 this.addProperty(
'in2', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15077 this.addOutput(
'out',
'vector2');
15078 this.title =
'safepower_vector2';
15079 this.desc =
"MaterialX:mtlx/math/safepower_vector2";
15080 this.onNodeCreated =
function() {
15083 this.onRemoved =
function() {
15086 this.onPropertyChanged =
function(name, value, prev_value) {
15087 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15089 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15090 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15092 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15093 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15095 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15096 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15098 this.bgcolor =
'#111';
15099 this.color =
'#222';
15100 this.shape = LiteGraph.ROUND_SHAPE;
15101 this.boxcolor =
'#265';
15114 this.nodedef_icon =
'';
15116 this.nodedef_type =
'vector3';
15118 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15119 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_vector3_out_genglsl.png';
15120 this.nodedef_group =
'math';
15121 this.addInput(
'in1',
'vector3');
15122 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15123 this.addInput(
'in2',
'vector3');
15124 this.addProperty(
'in2', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15125 this.addOutput(
'out',
'vector3');
15126 this.title =
'safepower_vector3';
15127 this.desc =
"MaterialX:mtlx/math/safepower_vector3";
15128 this.onNodeCreated =
function() {
15131 this.onRemoved =
function() {
15134 this.onPropertyChanged =
function(name, value, prev_value) {
15135 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15137 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15138 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15140 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15141 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15143 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15144 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15146 this.bgcolor =
'#111';
15147 this.color =
'#222';
15148 this.shape = LiteGraph.ROUND_SHAPE;
15149 this.boxcolor =
'#465';
15162 this.nodedef_icon =
'';
15164 this.nodedef_type =
'vector4';
15166 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15167 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_vector4_out_genglsl.png';
15168 this.nodedef_group =
'math';
15169 this.addInput(
'in1',
'vector4');
15170 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15171 this.addInput(
'in2',
'vector4');
15172 this.addProperty(
'in2', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15173 this.addOutput(
'out',
'vector4');
15174 this.title =
'safepower_vector4';
15175 this.desc =
"MaterialX:mtlx/math/safepower_vector4";
15176 this.onNodeCreated =
function() {
15179 this.onRemoved =
function() {
15182 this.onPropertyChanged =
function(name, value, prev_value) {
15183 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15185 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15186 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15188 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15189 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15191 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15192 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15194 this.bgcolor =
'#111';
15195 this.color =
'#222';
15196 this.shape = LiteGraph.ROUND_SHAPE;
15197 this.boxcolor =
'#275';
15210 this.nodedef_icon =
'';
15212 this.nodedef_type =
'color3';
15214 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15215 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_color3FA_out_genglsl.png';
15216 this.nodedef_group =
'math';
15217 this.addInput(
'in1',
'color3');
15218 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15219 this.addInput(
'in2',
'float');
15220 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15221 this.addOutput(
'out',
'color3');
15222 this.title =
'safepower_color3';
15223 this.desc =
"MaterialX:mtlx/math/safepower_color3FA";
15224 this.onNodeCreated =
function() {
15227 this.onRemoved =
function() {
15230 this.onPropertyChanged =
function(name, value, prev_value) {
15231 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15233 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15234 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15236 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15237 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15239 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15240 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15242 this.bgcolor =
'#111';
15243 this.color =
'#222';
15244 this.shape = LiteGraph.ROUND_SHAPE;
15245 this.boxcolor =
'#37A';
15258 this.nodedef_icon =
'';
15260 this.nodedef_type =
'color4';
15262 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15263 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_color4FA_out_genglsl.png';
15264 this.nodedef_group =
'math';
15265 this.addInput(
'in1',
'color4');
15266 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15267 this.addInput(
'in2',
'float');
15268 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15269 this.addOutput(
'out',
'color4');
15270 this.title =
'safepower_color4';
15271 this.desc =
"MaterialX:mtlx/math/safepower_color4FA";
15272 this.onNodeCreated =
function() {
15275 this.onRemoved =
function() {
15278 this.onPropertyChanged =
function(name, value, prev_value) {
15279 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15281 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15282 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15284 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15285 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15287 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15288 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15290 this.bgcolor =
'#111';
15291 this.color =
'#222';
15292 this.shape = LiteGraph.ROUND_SHAPE;
15293 this.boxcolor =
'#69A';
15306 this.nodedef_icon =
'';
15308 this.nodedef_type =
'vector2';
15310 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15311 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_vector2FA_out_genglsl.png';
15312 this.nodedef_group =
'math';
15313 this.addInput(
'in1',
'vector2');
15314 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15315 this.addInput(
'in2',
'float');
15316 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15317 this.addOutput(
'out',
'vector2');
15318 this.title =
'safepower_vector2';
15319 this.desc =
"MaterialX:mtlx/math/safepower_vector2FA";
15320 this.onNodeCreated =
function() {
15323 this.onRemoved =
function() {
15326 this.onPropertyChanged =
function(name, value, prev_value) {
15327 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15329 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15330 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15332 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15333 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15335 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15336 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15338 this.bgcolor =
'#111';
15339 this.color =
'#222';
15340 this.shape = LiteGraph.ROUND_SHAPE;
15341 this.boxcolor =
'#265';
15354 this.nodedef_icon =
'';
15356 this.nodedef_type =
'vector3';
15358 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15359 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_vector3FA_out_genglsl.png';
15360 this.nodedef_group =
'math';
15361 this.addInput(
'in1',
'vector3');
15362 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15363 this.addInput(
'in2',
'float');
15364 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15365 this.addOutput(
'out',
'vector3');
15366 this.title =
'safepower_vector3';
15367 this.desc =
"MaterialX:mtlx/math/safepower_vector3FA";
15368 this.onNodeCreated =
function() {
15371 this.onRemoved =
function() {
15374 this.onPropertyChanged =
function(name, value, prev_value) {
15375 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15377 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15378 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15380 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15381 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15383 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15384 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15386 this.bgcolor =
'#111';
15387 this.color =
'#222';
15388 this.shape = LiteGraph.ROUND_SHAPE;
15389 this.boxcolor =
'#465';
15402 this.nodedef_icon =
'';
15404 this.nodedef_type =
'vector4';
15406 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/safepower.html';
15407 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_safepower_vector4FA_out_genglsl.png';
15408 this.nodedef_group =
'math';
15409 this.addInput(
'in1',
'vector4');
15410 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15411 this.addInput(
'in2',
'float');
15412 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15413 this.addOutput(
'out',
'vector4');
15414 this.title =
'safepower_vector4';
15415 this.desc =
"MaterialX:mtlx/math/safepower_vector4FA";
15416 this.onNodeCreated =
function() {
15419 this.onRemoved =
function() {
15422 this.onPropertyChanged =
function(name, value, prev_value) {
15423 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15425 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15426 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15428 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15429 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15431 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15432 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15434 this.bgcolor =
'#111';
15435 this.color =
'#222';
15436 this.shape = LiteGraph.ROUND_SHAPE;
15437 this.boxcolor =
'#275';
15450 this.nodedef_icon =
'';
15452 this.nodedef_type =
'float';
15454 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sin.html';
15455 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sin_float_out_genglsl.png';
15456 this.nodedef_group =
'math';
15457 this.addInput(
'in',
'float');
15458 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15459 this.addOutput(
'out',
'float');
15460 this.title =
'sin_float';
15461 this.desc =
"MaterialX:mtlx/math/sin_float";
15462 this.onNodeCreated =
function() {
15465 this.onRemoved =
function() {
15468 this.onPropertyChanged =
function(name, value, prev_value) {
15469 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15471 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15472 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15474 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15475 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15477 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15478 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15480 this.bgcolor =
'#111';
15481 this.color =
'#222';
15482 this.shape = LiteGraph.ROUND_SHAPE;
15483 this.boxcolor =
'#161';
15487mtlx_math_sin_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sin.html';
15496 this.nodedef_icon =
'';
15498 this.nodedef_type =
'float';
15500 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cos.html';
15501 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_cos_float_out_genglsl.png';
15502 this.nodedef_group =
'math';
15503 this.addInput(
'in',
'float');
15504 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15505 this.addOutput(
'out',
'float');
15506 this.title =
'cos_float';
15507 this.desc =
"MaterialX:mtlx/math/cos_float";
15508 this.onNodeCreated =
function() {
15511 this.onRemoved =
function() {
15514 this.onPropertyChanged =
function(name, value, prev_value) {
15515 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15517 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15518 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15520 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15521 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15523 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15524 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15526 this.bgcolor =
'#111';
15527 this.color =
'#222';
15528 this.shape = LiteGraph.ROUND_SHAPE;
15529 this.boxcolor =
'#161';
15533mtlx_math_cos_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cos.html';
15542 this.nodedef_icon =
'';
15544 this.nodedef_type =
'float';
15546 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tan.html';
15547 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tan_float_out_genglsl.png';
15548 this.nodedef_group =
'math';
15549 this.addInput(
'in',
'float');
15550 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15551 this.addOutput(
'out',
'float');
15552 this.title =
'tan_float';
15553 this.desc =
"MaterialX:mtlx/math/tan_float";
15554 this.onNodeCreated =
function() {
15557 this.onRemoved =
function() {
15560 this.onPropertyChanged =
function(name, value, prev_value) {
15561 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15563 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15564 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15566 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15567 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15569 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15570 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15572 this.bgcolor =
'#111';
15573 this.color =
'#222';
15574 this.shape = LiteGraph.ROUND_SHAPE;
15575 this.boxcolor =
'#161';
15579mtlx_math_tan_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tan.html';
15588 this.nodedef_icon =
'';
15590 this.nodedef_type =
'float';
15592 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/asin.html';
15593 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_asin_float_out_genglsl.png';
15594 this.nodedef_group =
'math';
15595 this.addInput(
'in',
'float');
15596 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15597 this.addOutput(
'out',
'float');
15598 this.title =
'asin_float';
15599 this.desc =
"MaterialX:mtlx/math/asin_float";
15600 this.onNodeCreated =
function() {
15603 this.onRemoved =
function() {
15606 this.onPropertyChanged =
function(name, value, prev_value) {
15607 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15609 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15610 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15612 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15613 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15615 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15616 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15618 this.bgcolor =
'#111';
15619 this.color =
'#222';
15620 this.shape = LiteGraph.ROUND_SHAPE;
15621 this.boxcolor =
'#161';
15625mtlx_math_asin_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/asin.html';
15634 this.nodedef_icon =
'';
15636 this.nodedef_type =
'float';
15638 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acos.html';
15639 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_acos_float_out_genglsl.png';
15640 this.nodedef_group =
'math';
15641 this.addInput(
'in',
'float');
15642 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15643 this.addOutput(
'out',
'float');
15644 this.title =
'acos_float';
15645 this.desc =
"MaterialX:mtlx/math/acos_float";
15646 this.onNodeCreated =
function() {
15649 this.onRemoved =
function() {
15652 this.onPropertyChanged =
function(name, value, prev_value) {
15653 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15655 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15656 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15658 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15659 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15661 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15662 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15664 this.bgcolor =
'#111';
15665 this.color =
'#222';
15666 this.shape = LiteGraph.ROUND_SHAPE;
15667 this.boxcolor =
'#161';
15671mtlx_math_acos_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acos.html';
15680 this.nodedef_icon =
'';
15682 this.nodedef_type =
'float';
15684 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/atan2.html';
15685 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_atan2_float_out_genglsl.png';
15686 this.nodedef_group =
'math';
15687 this.addInput(
'iny',
'float');
15688 this.addProperty(
'iny', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15689 this.addInput(
'inx',
'float');
15690 this.addProperty(
'inx', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15691 this.addOutput(
'out',
'float');
15692 this.title =
'atan2_float';
15693 this.desc =
"MaterialX:mtlx/math/atan2_float";
15694 this.onNodeCreated =
function() {
15697 this.onRemoved =
function() {
15700 this.onPropertyChanged =
function(name, value, prev_value) {
15701 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15703 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15704 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15706 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15707 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15709 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15710 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15712 this.bgcolor =
'#111';
15713 this.color =
'#222';
15714 this.shape = LiteGraph.ROUND_SHAPE;
15715 this.boxcolor =
'#161';
15719mtlx_math_atan2_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/atan2.html';
15728 this.nodedef_icon =
'';
15730 this.nodedef_type =
'vector2';
15732 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sin.html';
15733 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sin_vector2_out_genglsl.png';
15734 this.nodedef_group =
'math';
15735 this.addInput(
'in',
'vector2');
15736 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15737 this.addOutput(
'out',
'vector2');
15738 this.title =
'sin_vector2';
15739 this.desc =
"MaterialX:mtlx/math/sin_vector2";
15740 this.onNodeCreated =
function() {
15743 this.onRemoved =
function() {
15746 this.onPropertyChanged =
function(name, value, prev_value) {
15747 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15749 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15750 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15752 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15753 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15755 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15756 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15758 this.bgcolor =
'#111';
15759 this.color =
'#222';
15760 this.shape = LiteGraph.ROUND_SHAPE;
15761 this.boxcolor =
'#265';
15765mtlx_math_sin_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sin.html';
15774 this.nodedef_icon =
'';
15776 this.nodedef_type =
'vector2';
15778 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cos.html';
15779 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_cos_vector2_out_genglsl.png';
15780 this.nodedef_group =
'math';
15781 this.addInput(
'in',
'vector2');
15782 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15783 this.addOutput(
'out',
'vector2');
15784 this.title =
'cos_vector2';
15785 this.desc =
"MaterialX:mtlx/math/cos_vector2";
15786 this.onNodeCreated =
function() {
15789 this.onRemoved =
function() {
15792 this.onPropertyChanged =
function(name, value, prev_value) {
15793 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15795 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15796 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15798 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15799 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15801 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15802 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15804 this.bgcolor =
'#111';
15805 this.color =
'#222';
15806 this.shape = LiteGraph.ROUND_SHAPE;
15807 this.boxcolor =
'#265';
15811mtlx_math_cos_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cos.html';
15820 this.nodedef_icon =
'';
15822 this.nodedef_type =
'vector2';
15824 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tan.html';
15825 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tan_vector2_out_genglsl.png';
15826 this.nodedef_group =
'math';
15827 this.addInput(
'in',
'vector2');
15828 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15829 this.addOutput(
'out',
'vector2');
15830 this.title =
'tan_vector2';
15831 this.desc =
"MaterialX:mtlx/math/tan_vector2";
15832 this.onNodeCreated =
function() {
15835 this.onRemoved =
function() {
15838 this.onPropertyChanged =
function(name, value, prev_value) {
15839 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15841 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15842 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15844 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15845 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15847 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15848 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15850 this.bgcolor =
'#111';
15851 this.color =
'#222';
15852 this.shape = LiteGraph.ROUND_SHAPE;
15853 this.boxcolor =
'#265';
15857mtlx_math_tan_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tan.html';
15866 this.nodedef_icon =
'';
15868 this.nodedef_type =
'vector2';
15870 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/asin.html';
15871 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_asin_vector2_out_genglsl.png';
15872 this.nodedef_group =
'math';
15873 this.addInput(
'in',
'vector2');
15874 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15875 this.addOutput(
'out',
'vector2');
15876 this.title =
'asin_vector2';
15877 this.desc =
"MaterialX:mtlx/math/asin_vector2";
15878 this.onNodeCreated =
function() {
15881 this.onRemoved =
function() {
15884 this.onPropertyChanged =
function(name, value, prev_value) {
15885 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15887 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15888 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15890 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15891 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15893 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15894 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15896 this.bgcolor =
'#111';
15897 this.color =
'#222';
15898 this.shape = LiteGraph.ROUND_SHAPE;
15899 this.boxcolor =
'#265';
15903mtlx_math_asin_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/asin.html';
15912 this.nodedef_icon =
'';
15914 this.nodedef_type =
'vector2';
15916 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acos.html';
15917 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_acos_vector2_out_genglsl.png';
15918 this.nodedef_group =
'math';
15919 this.addInput(
'in',
'vector2');
15920 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15921 this.addOutput(
'out',
'vector2');
15922 this.title =
'acos_vector2';
15923 this.desc =
"MaterialX:mtlx/math/acos_vector2";
15924 this.onNodeCreated =
function() {
15927 this.onRemoved =
function() {
15930 this.onPropertyChanged =
function(name, value, prev_value) {
15931 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15933 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15934 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15936 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15937 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15939 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15940 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15942 this.bgcolor =
'#111';
15943 this.color =
'#222';
15944 this.shape = LiteGraph.ROUND_SHAPE;
15945 this.boxcolor =
'#265';
15949mtlx_math_acos_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acos.html';
15958 this.nodedef_icon =
'';
15960 this.nodedef_type =
'vector2';
15962 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/atan2.html';
15963 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_atan2_vector2_out_genglsl.png';
15964 this.nodedef_group =
'math';
15965 this.addInput(
'iny',
'vector2');
15966 this.addProperty(
'iny', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15967 this.addInput(
'inx',
'vector2');
15968 this.addProperty(
'inx', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
15969 this.addOutput(
'out',
'vector2');
15970 this.title =
'atan2_vector2';
15971 this.desc =
"MaterialX:mtlx/math/atan2_vector2";
15972 this.onNodeCreated =
function() {
15975 this.onRemoved =
function() {
15978 this.onPropertyChanged =
function(name, value, prev_value) {
15979 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
15981 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
15982 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
15984 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
15985 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
15987 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
15988 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
15990 this.bgcolor =
'#111';
15991 this.color =
'#222';
15992 this.shape = LiteGraph.ROUND_SHAPE;
15993 this.boxcolor =
'#265';
15997mtlx_math_atan2_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/atan2.html';
16006 this.nodedef_icon =
'';
16008 this.nodedef_type =
'vector3';
16010 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sin.html';
16011 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sin_vector3_out_genglsl.png';
16012 this.nodedef_group =
'math';
16013 this.addInput(
'in',
'vector3');
16014 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16015 this.addOutput(
'out',
'vector3');
16016 this.title =
'sin_vector3';
16017 this.desc =
"MaterialX:mtlx/math/sin_vector3";
16018 this.onNodeCreated =
function() {
16021 this.onRemoved =
function() {
16024 this.onPropertyChanged =
function(name, value, prev_value) {
16025 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16027 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16028 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16030 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16031 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16033 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16034 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16036 this.bgcolor =
'#111';
16037 this.color =
'#222';
16038 this.shape = LiteGraph.ROUND_SHAPE;
16039 this.boxcolor =
'#465';
16043mtlx_math_sin_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sin.html';
16052 this.nodedef_icon =
'';
16054 this.nodedef_type =
'vector3';
16056 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cos.html';
16057 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_cos_vector3_out_genglsl.png';
16058 this.nodedef_group =
'math';
16059 this.addInput(
'in',
'vector3');
16060 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16061 this.addOutput(
'out',
'vector3');
16062 this.title =
'cos_vector3';
16063 this.desc =
"MaterialX:mtlx/math/cos_vector3";
16064 this.onNodeCreated =
function() {
16067 this.onRemoved =
function() {
16070 this.onPropertyChanged =
function(name, value, prev_value) {
16071 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16073 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16074 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16076 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16077 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16079 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16080 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16082 this.bgcolor =
'#111';
16083 this.color =
'#222';
16084 this.shape = LiteGraph.ROUND_SHAPE;
16085 this.boxcolor =
'#465';
16089mtlx_math_cos_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cos.html';
16098 this.nodedef_icon =
'';
16100 this.nodedef_type =
'vector3';
16102 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tan.html';
16103 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tan_vector3_out_genglsl.png';
16104 this.nodedef_group =
'math';
16105 this.addInput(
'in',
'vector3');
16106 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16107 this.addOutput(
'out',
'vector3');
16108 this.title =
'tan_vector3';
16109 this.desc =
"MaterialX:mtlx/math/tan_vector3";
16110 this.onNodeCreated =
function() {
16113 this.onRemoved =
function() {
16116 this.onPropertyChanged =
function(name, value, prev_value) {
16117 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16119 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16120 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16122 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16123 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16125 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16126 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16128 this.bgcolor =
'#111';
16129 this.color =
'#222';
16130 this.shape = LiteGraph.ROUND_SHAPE;
16131 this.boxcolor =
'#465';
16135mtlx_math_tan_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tan.html';
16144 this.nodedef_icon =
'';
16146 this.nodedef_type =
'vector3';
16148 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/asin.html';
16149 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_asin_vector3_out_genglsl.png';
16150 this.nodedef_group =
'math';
16151 this.addInput(
'in',
'vector3');
16152 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16153 this.addOutput(
'out',
'vector3');
16154 this.title =
'asin_vector3';
16155 this.desc =
"MaterialX:mtlx/math/asin_vector3";
16156 this.onNodeCreated =
function() {
16159 this.onRemoved =
function() {
16162 this.onPropertyChanged =
function(name, value, prev_value) {
16163 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16165 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16166 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16168 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16169 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16171 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16172 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16174 this.bgcolor =
'#111';
16175 this.color =
'#222';
16176 this.shape = LiteGraph.ROUND_SHAPE;
16177 this.boxcolor =
'#465';
16181mtlx_math_asin_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/asin.html';
16190 this.nodedef_icon =
'';
16192 this.nodedef_type =
'vector3';
16194 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acos.html';
16195 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_acos_vector3_out_genglsl.png';
16196 this.nodedef_group =
'math';
16197 this.addInput(
'in',
'vector3');
16198 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16199 this.addOutput(
'out',
'vector3');
16200 this.title =
'acos_vector3';
16201 this.desc =
"MaterialX:mtlx/math/acos_vector3";
16202 this.onNodeCreated =
function() {
16205 this.onRemoved =
function() {
16208 this.onPropertyChanged =
function(name, value, prev_value) {
16209 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16211 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16212 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16214 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16215 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16217 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16218 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16220 this.bgcolor =
'#111';
16221 this.color =
'#222';
16222 this.shape = LiteGraph.ROUND_SHAPE;
16223 this.boxcolor =
'#465';
16227mtlx_math_acos_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acos.html';
16236 this.nodedef_icon =
'';
16238 this.nodedef_type =
'vector3';
16240 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/atan2.html';
16241 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_atan2_vector3_out_genglsl.png';
16242 this.nodedef_group =
'math';
16243 this.addInput(
'iny',
'vector3');
16244 this.addProperty(
'iny', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16245 this.addInput(
'inx',
'vector3');
16246 this.addProperty(
'inx', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16247 this.addOutput(
'out',
'vector3');
16248 this.title =
'atan2_vector3';
16249 this.desc =
"MaterialX:mtlx/math/atan2_vector3";
16250 this.onNodeCreated =
function() {
16253 this.onRemoved =
function() {
16256 this.onPropertyChanged =
function(name, value, prev_value) {
16257 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16259 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16260 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16262 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16263 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16265 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16266 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16268 this.bgcolor =
'#111';
16269 this.color =
'#222';
16270 this.shape = LiteGraph.ROUND_SHAPE;
16271 this.boxcolor =
'#465';
16275mtlx_math_atan2_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/atan2.html';
16284 this.nodedef_icon =
'';
16286 this.nodedef_type =
'vector4';
16288 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sin.html';
16289 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sin_vector4_out_genglsl.png';
16290 this.nodedef_group =
'math';
16291 this.addInput(
'in',
'vector4');
16292 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16293 this.addOutput(
'out',
'vector4');
16294 this.title =
'sin_vector4';
16295 this.desc =
"MaterialX:mtlx/math/sin_vector4";
16296 this.onNodeCreated =
function() {
16299 this.onRemoved =
function() {
16302 this.onPropertyChanged =
function(name, value, prev_value) {
16303 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16305 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16306 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16308 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16309 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16311 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16312 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16314 this.bgcolor =
'#111';
16315 this.color =
'#222';
16316 this.shape = LiteGraph.ROUND_SHAPE;
16317 this.boxcolor =
'#275';
16321mtlx_math_sin_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sin.html';
16330 this.nodedef_icon =
'';
16332 this.nodedef_type =
'vector4';
16334 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cos.html';
16335 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_cos_vector4_out_genglsl.png';
16336 this.nodedef_group =
'math';
16337 this.addInput(
'in',
'vector4');
16338 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16339 this.addOutput(
'out',
'vector4');
16340 this.title =
'cos_vector4';
16341 this.desc =
"MaterialX:mtlx/math/cos_vector4";
16342 this.onNodeCreated =
function() {
16345 this.onRemoved =
function() {
16348 this.onPropertyChanged =
function(name, value, prev_value) {
16349 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16351 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16352 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16354 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16355 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16357 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16358 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16360 this.bgcolor =
'#111';
16361 this.color =
'#222';
16362 this.shape = LiteGraph.ROUND_SHAPE;
16363 this.boxcolor =
'#275';
16367mtlx_math_cos_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/cos.html';
16376 this.nodedef_icon =
'';
16378 this.nodedef_type =
'vector4';
16380 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tan.html';
16381 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tan_vector4_out_genglsl.png';
16382 this.nodedef_group =
'math';
16383 this.addInput(
'in',
'vector4');
16384 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16385 this.addOutput(
'out',
'vector4');
16386 this.title =
'tan_vector4';
16387 this.desc =
"MaterialX:mtlx/math/tan_vector4";
16388 this.onNodeCreated =
function() {
16391 this.onRemoved =
function() {
16394 this.onPropertyChanged =
function(name, value, prev_value) {
16395 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16397 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16398 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16400 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16401 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16403 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16404 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16406 this.bgcolor =
'#111';
16407 this.color =
'#222';
16408 this.shape = LiteGraph.ROUND_SHAPE;
16409 this.boxcolor =
'#275';
16413mtlx_math_tan_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tan.html';
16422 this.nodedef_icon =
'';
16424 this.nodedef_type =
'vector4';
16426 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/asin.html';
16427 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_asin_vector4_out_genglsl.png';
16428 this.nodedef_group =
'math';
16429 this.addInput(
'in',
'vector4');
16430 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16431 this.addOutput(
'out',
'vector4');
16432 this.title =
'asin_vector4';
16433 this.desc =
"MaterialX:mtlx/math/asin_vector4";
16434 this.onNodeCreated =
function() {
16437 this.onRemoved =
function() {
16440 this.onPropertyChanged =
function(name, value, prev_value) {
16441 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16443 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16444 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16446 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16447 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16449 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16450 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16452 this.bgcolor =
'#111';
16453 this.color =
'#222';
16454 this.shape = LiteGraph.ROUND_SHAPE;
16455 this.boxcolor =
'#275';
16459mtlx_math_asin_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/asin.html';
16468 this.nodedef_icon =
'';
16470 this.nodedef_type =
'vector4';
16472 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acos.html';
16473 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_acos_vector4_out_genglsl.png';
16474 this.nodedef_group =
'math';
16475 this.addInput(
'in',
'vector4');
16476 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16477 this.addOutput(
'out',
'vector4');
16478 this.title =
'acos_vector4';
16479 this.desc =
"MaterialX:mtlx/math/acos_vector4";
16480 this.onNodeCreated =
function() {
16483 this.onRemoved =
function() {
16486 this.onPropertyChanged =
function(name, value, prev_value) {
16487 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16489 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16490 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16492 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16493 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16495 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16496 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16498 this.bgcolor =
'#111';
16499 this.color =
'#222';
16500 this.shape = LiteGraph.ROUND_SHAPE;
16501 this.boxcolor =
'#275';
16505mtlx_math_acos_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acos.html';
16514 this.nodedef_icon =
'';
16516 this.nodedef_type =
'vector4';
16518 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/atan2.html';
16519 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_atan2_vector4_out_genglsl.png';
16520 this.nodedef_group =
'math';
16521 this.addInput(
'iny',
'vector4');
16522 this.addProperty(
'iny', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16523 this.addInput(
'inx',
'vector4');
16524 this.addProperty(
'inx', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16525 this.addOutput(
'out',
'vector4');
16526 this.title =
'atan2_vector4';
16527 this.desc =
"MaterialX:mtlx/math/atan2_vector4";
16528 this.onNodeCreated =
function() {
16531 this.onRemoved =
function() {
16534 this.onPropertyChanged =
function(name, value, prev_value) {
16535 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16537 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16538 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16540 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16541 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16543 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16544 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16546 this.bgcolor =
'#111';
16547 this.color =
'#222';
16548 this.shape = LiteGraph.ROUND_SHAPE;
16549 this.boxcolor =
'#275';
16553mtlx_math_atan2_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/atan2.html';
16562 this.nodedef_icon =
'';
16564 this.nodedef_type =
'float';
16566 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sqrt.html';
16567 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sqrt_float_out_genglsl.png';
16568 this.nodedef_group =
'math';
16569 this.addInput(
'in',
'float');
16570 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16571 this.addOutput(
'out',
'float');
16572 this.title =
'sqrt_float';
16573 this.desc =
"MaterialX:mtlx/math/sqrt_float";
16574 this.onNodeCreated =
function() {
16577 this.onRemoved =
function() {
16580 this.onPropertyChanged =
function(name, value, prev_value) {
16581 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16583 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16584 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16586 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16587 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16589 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16590 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16592 this.bgcolor =
'#111';
16593 this.color =
'#222';
16594 this.shape = LiteGraph.ROUND_SHAPE;
16595 this.boxcolor =
'#161';
16599mtlx_math_sqrt_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sqrt.html';
16608 this.nodedef_icon =
'';
16610 this.nodedef_type =
'float';
16612 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ln.html';
16613 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ln_float_out_genglsl.png';
16614 this.nodedef_group =
'math';
16615 this.addInput(
'in',
'float');
16616 this.addProperty(
'in', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16617 this.addOutput(
'out',
'float');
16618 this.title =
'ln_float';
16619 this.desc =
"MaterialX:mtlx/math/ln_float";
16620 this.onNodeCreated =
function() {
16623 this.onRemoved =
function() {
16626 this.onPropertyChanged =
function(name, value, prev_value) {
16627 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16629 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16630 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16632 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16633 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16635 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16636 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16638 this.bgcolor =
'#111';
16639 this.color =
'#222';
16640 this.shape = LiteGraph.ROUND_SHAPE;
16641 this.boxcolor =
'#161';
16645mtlx_math_ln_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ln.html';
16654 this.nodedef_icon =
'';
16656 this.nodedef_type =
'float';
16658 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/exp.html';
16659 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_exp_float_out_genglsl.png';
16660 this.nodedef_group =
'math';
16661 this.addInput(
'in',
'float');
16662 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16663 this.addOutput(
'out',
'float');
16664 this.title =
'exp_float';
16665 this.desc =
"MaterialX:mtlx/math/exp_float";
16666 this.onNodeCreated =
function() {
16669 this.onRemoved =
function() {
16672 this.onPropertyChanged =
function(name, value, prev_value) {
16673 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16675 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16676 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16678 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16679 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16681 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16682 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16684 this.bgcolor =
'#111';
16685 this.color =
'#222';
16686 this.shape = LiteGraph.ROUND_SHAPE;
16687 this.boxcolor =
'#161';
16691mtlx_math_exp_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/exp.html';
16700 this.nodedef_icon =
'';
16702 this.nodedef_type =
'vector2';
16704 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sqrt.html';
16705 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sqrt_vector2_out_genglsl.png';
16706 this.nodedef_group =
'math';
16707 this.addInput(
'in',
'vector2');
16708 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16709 this.addOutput(
'out',
'vector2');
16710 this.title =
'sqrt_vector2';
16711 this.desc =
"MaterialX:mtlx/math/sqrt_vector2";
16712 this.onNodeCreated =
function() {
16715 this.onRemoved =
function() {
16718 this.onPropertyChanged =
function(name, value, prev_value) {
16719 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16721 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16722 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16724 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16725 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16727 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16728 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16730 this.bgcolor =
'#111';
16731 this.color =
'#222';
16732 this.shape = LiteGraph.ROUND_SHAPE;
16733 this.boxcolor =
'#265';
16737mtlx_math_sqrt_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sqrt.html';
16746 this.nodedef_icon =
'';
16748 this.nodedef_type =
'vector2';
16750 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ln.html';
16751 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ln_vector2_out_genglsl.png';
16752 this.nodedef_group =
'math';
16753 this.addInput(
'in',
'vector2');
16754 this.addProperty(
'in', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16755 this.addOutput(
'out',
'vector2');
16756 this.title =
'ln_vector2';
16757 this.desc =
"MaterialX:mtlx/math/ln_vector2";
16758 this.onNodeCreated =
function() {
16761 this.onRemoved =
function() {
16764 this.onPropertyChanged =
function(name, value, prev_value) {
16765 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16767 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16768 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16770 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16771 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16773 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16774 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16776 this.bgcolor =
'#111';
16777 this.color =
'#222';
16778 this.shape = LiteGraph.ROUND_SHAPE;
16779 this.boxcolor =
'#265';
16783mtlx_math_ln_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ln.html';
16792 this.nodedef_icon =
'';
16794 this.nodedef_type =
'vector2';
16796 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/exp.html';
16797 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_exp_vector2_out_genglsl.png';
16798 this.nodedef_group =
'math';
16799 this.addInput(
'in',
'vector2');
16800 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16801 this.addOutput(
'out',
'vector2');
16802 this.title =
'exp_vector2';
16803 this.desc =
"MaterialX:mtlx/math/exp_vector2";
16804 this.onNodeCreated =
function() {
16807 this.onRemoved =
function() {
16810 this.onPropertyChanged =
function(name, value, prev_value) {
16811 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16813 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16814 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16816 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16817 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16819 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16820 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16822 this.bgcolor =
'#111';
16823 this.color =
'#222';
16824 this.shape = LiteGraph.ROUND_SHAPE;
16825 this.boxcolor =
'#265';
16829mtlx_math_exp_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/exp.html';
16838 this.nodedef_icon =
'';
16840 this.nodedef_type =
'vector3';
16842 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sqrt.html';
16843 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sqrt_vector3_out_genglsl.png';
16844 this.nodedef_group =
'math';
16845 this.addInput(
'in',
'vector3');
16846 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16847 this.addOutput(
'out',
'vector3');
16848 this.title =
'sqrt_vector3';
16849 this.desc =
"MaterialX:mtlx/math/sqrt_vector3";
16850 this.onNodeCreated =
function() {
16853 this.onRemoved =
function() {
16856 this.onPropertyChanged =
function(name, value, prev_value) {
16857 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16859 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16860 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16862 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16863 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16865 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16866 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16868 this.bgcolor =
'#111';
16869 this.color =
'#222';
16870 this.shape = LiteGraph.ROUND_SHAPE;
16871 this.boxcolor =
'#465';
16875mtlx_math_sqrt_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sqrt.html';
16884 this.nodedef_icon =
'';
16886 this.nodedef_type =
'vector3';
16888 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ln.html';
16889 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ln_vector3_out_genglsl.png';
16890 this.nodedef_group =
'math';
16891 this.addInput(
'in',
'vector3');
16892 this.addProperty(
'in', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16893 this.addOutput(
'out',
'vector3');
16894 this.title =
'ln_vector3';
16895 this.desc =
"MaterialX:mtlx/math/ln_vector3";
16896 this.onNodeCreated =
function() {
16899 this.onRemoved =
function() {
16902 this.onPropertyChanged =
function(name, value, prev_value) {
16903 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16905 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16906 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16908 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16909 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16911 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16912 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16914 this.bgcolor =
'#111';
16915 this.color =
'#222';
16916 this.shape = LiteGraph.ROUND_SHAPE;
16917 this.boxcolor =
'#465';
16921mtlx_math_ln_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ln.html';
16930 this.nodedef_icon =
'';
16932 this.nodedef_type =
'vector3';
16934 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/exp.html';
16935 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_exp_vector3_out_genglsl.png';
16936 this.nodedef_group =
'math';
16937 this.addInput(
'in',
'vector3');
16938 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16939 this.addOutput(
'out',
'vector3');
16940 this.title =
'exp_vector3';
16941 this.desc =
"MaterialX:mtlx/math/exp_vector3";
16942 this.onNodeCreated =
function() {
16945 this.onRemoved =
function() {
16948 this.onPropertyChanged =
function(name, value, prev_value) {
16949 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16951 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16952 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
16954 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
16955 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
16957 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
16958 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
16960 this.bgcolor =
'#111';
16961 this.color =
'#222';
16962 this.shape = LiteGraph.ROUND_SHAPE;
16963 this.boxcolor =
'#465';
16967mtlx_math_exp_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/exp.html';
16976 this.nodedef_icon =
'';
16978 this.nodedef_type =
'vector4';
16980 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sqrt.html';
16981 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sqrt_vector4_out_genglsl.png';
16982 this.nodedef_group =
'math';
16983 this.addInput(
'in',
'vector4');
16984 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
16985 this.addOutput(
'out',
'vector4');
16986 this.title =
'sqrt_vector4';
16987 this.desc =
"MaterialX:mtlx/math/sqrt_vector4";
16988 this.onNodeCreated =
function() {
16991 this.onRemoved =
function() {
16994 this.onPropertyChanged =
function(name, value, prev_value) {
16995 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
16997 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
16998 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17000 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17001 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17003 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17004 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17006 this.bgcolor =
'#111';
17007 this.color =
'#222';
17008 this.shape = LiteGraph.ROUND_SHAPE;
17009 this.boxcolor =
'#275';
17013mtlx_math_sqrt_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sqrt.html';
17022 this.nodedef_icon =
'';
17024 this.nodedef_type =
'vector4';
17026 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ln.html';
17027 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ln_vector4_out_genglsl.png';
17028 this.nodedef_group =
'math';
17029 this.addInput(
'in',
'vector4');
17030 this.addProperty(
'in', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17031 this.addOutput(
'out',
'vector4');
17032 this.title =
'ln_vector4';
17033 this.desc =
"MaterialX:mtlx/math/ln_vector4";
17034 this.onNodeCreated =
function() {
17037 this.onRemoved =
function() {
17040 this.onPropertyChanged =
function(name, value, prev_value) {
17041 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17043 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17044 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17046 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17047 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17049 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17050 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17052 this.bgcolor =
'#111';
17053 this.color =
'#222';
17054 this.shape = LiteGraph.ROUND_SHAPE;
17055 this.boxcolor =
'#275';
17059mtlx_math_ln_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ln.html';
17068 this.nodedef_icon =
'';
17070 this.nodedef_type =
'vector4';
17072 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/exp.html';
17073 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_exp_vector4_out_genglsl.png';
17074 this.nodedef_group =
'math';
17075 this.addInput(
'in',
'vector4');
17076 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17077 this.addOutput(
'out',
'vector4');
17078 this.title =
'exp_vector4';
17079 this.desc =
"MaterialX:mtlx/math/exp_vector4";
17080 this.onNodeCreated =
function() {
17083 this.onRemoved =
function() {
17086 this.onPropertyChanged =
function(name, value, prev_value) {
17087 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17089 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17090 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17092 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17093 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17095 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17096 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17098 this.bgcolor =
'#111';
17099 this.color =
'#222';
17100 this.shape = LiteGraph.ROUND_SHAPE;
17101 this.boxcolor =
'#275';
17105mtlx_math_exp_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/exp.html';
17114 this.nodedef_icon =
'';
17116 this.nodedef_type =
'float';
17118 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17119 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sign_float_out_genglsl.png';
17120 this.nodedef_group =
'math';
17121 this.addInput(
'in',
'float');
17122 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17123 this.addOutput(
'out',
'float');
17124 this.title =
'sign_float';
17125 this.desc =
"MaterialX:mtlx/math/sign_float";
17126 this.onNodeCreated =
function() {
17129 this.onRemoved =
function() {
17132 this.onPropertyChanged =
function(name, value, prev_value) {
17133 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17135 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17136 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17138 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17139 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17141 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17142 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17144 this.bgcolor =
'#111';
17145 this.color =
'#222';
17146 this.shape = LiteGraph.ROUND_SHAPE;
17147 this.boxcolor =
'#161';
17151mtlx_math_sign_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17160 this.nodedef_icon =
'';
17162 this.nodedef_type =
'color3';
17164 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17165 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sign_color3_out_genglsl.png';
17166 this.nodedef_group =
'math';
17167 this.addInput(
'in',
'color3');
17168 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17169 this.addOutput(
'out',
'color3');
17170 this.title =
'sign_color3';
17171 this.desc =
"MaterialX:mtlx/math/sign_color3";
17172 this.onNodeCreated =
function() {
17175 this.onRemoved =
function() {
17178 this.onPropertyChanged =
function(name, value, prev_value) {
17179 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17181 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17182 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17184 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17185 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17187 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17188 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17190 this.bgcolor =
'#111';
17191 this.color =
'#222';
17192 this.shape = LiteGraph.ROUND_SHAPE;
17193 this.boxcolor =
'#37A';
17197mtlx_math_sign_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17206 this.nodedef_icon =
'';
17208 this.nodedef_type =
'color4';
17210 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17211 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sign_color4_out_genglsl.png';
17212 this.nodedef_group =
'math';
17213 this.addInput(
'in',
'color4');
17214 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17215 this.addOutput(
'out',
'color4');
17216 this.title =
'sign_color4';
17217 this.desc =
"MaterialX:mtlx/math/sign_color4";
17218 this.onNodeCreated =
function() {
17221 this.onRemoved =
function() {
17224 this.onPropertyChanged =
function(name, value, prev_value) {
17225 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17227 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17228 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17230 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17231 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17233 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17234 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17236 this.bgcolor =
'#111';
17237 this.color =
'#222';
17238 this.shape = LiteGraph.ROUND_SHAPE;
17239 this.boxcolor =
'#69A';
17243mtlx_math_sign_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17252 this.nodedef_icon =
'';
17254 this.nodedef_type =
'vector2';
17256 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17257 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sign_vector2_out_genglsl.png';
17258 this.nodedef_group =
'math';
17259 this.addInput(
'in',
'vector2');
17260 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17261 this.addOutput(
'out',
'vector2');
17262 this.title =
'sign_vector2';
17263 this.desc =
"MaterialX:mtlx/math/sign_vector2";
17264 this.onNodeCreated =
function() {
17267 this.onRemoved =
function() {
17270 this.onPropertyChanged =
function(name, value, prev_value) {
17271 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17273 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17274 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17276 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17277 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17279 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17280 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17282 this.bgcolor =
'#111';
17283 this.color =
'#222';
17284 this.shape = LiteGraph.ROUND_SHAPE;
17285 this.boxcolor =
'#265';
17289mtlx_math_sign_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17298 this.nodedef_icon =
'';
17300 this.nodedef_type =
'vector3';
17302 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17303 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sign_vector3_out_genglsl.png';
17304 this.nodedef_group =
'math';
17305 this.addInput(
'in',
'vector3');
17306 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17307 this.addOutput(
'out',
'vector3');
17308 this.title =
'sign_vector3';
17309 this.desc =
"MaterialX:mtlx/math/sign_vector3";
17310 this.onNodeCreated =
function() {
17313 this.onRemoved =
function() {
17316 this.onPropertyChanged =
function(name, value, prev_value) {
17317 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17319 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17320 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17322 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17323 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17325 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17326 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17328 this.bgcolor =
'#111';
17329 this.color =
'#222';
17330 this.shape = LiteGraph.ROUND_SHAPE;
17331 this.boxcolor =
'#465';
17335mtlx_math_sign_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17344 this.nodedef_icon =
'';
17346 this.nodedef_type =
'vector4';
17348 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17349 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sign_vector4_out_genglsl.png';
17350 this.nodedef_group =
'math';
17351 this.addInput(
'in',
'vector4');
17352 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17353 this.addOutput(
'out',
'vector4');
17354 this.title =
'sign_vector4';
17355 this.desc =
"MaterialX:mtlx/math/sign_vector4";
17356 this.onNodeCreated =
function() {
17359 this.onRemoved =
function() {
17362 this.onPropertyChanged =
function(name, value, prev_value) {
17363 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17365 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17366 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17368 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17369 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17371 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17372 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17374 this.bgcolor =
'#111';
17375 this.color =
'#222';
17376 this.shape = LiteGraph.ROUND_SHAPE;
17377 this.boxcolor =
'#275';
17381mtlx_math_sign_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sign.html';
17390 this.nodedef_icon =
'';
17392 this.nodedef_type =
'float';
17394 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17395 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_float_out_genglsl.png';
17396 this.nodedef_group =
'math';
17397 this.addInput(
'in',
'float');
17398 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17399 this.addInput(
'low',
'float');
17400 this.addProperty(
'low', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17401 this.addInput(
'high',
'float');
17402 this.addProperty(
'high', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17403 this.addOutput(
'out',
'float');
17404 this.title =
'clamp_float';
17405 this.desc =
"MaterialX:mtlx/math/clamp_float";
17406 this.onNodeCreated =
function() {
17409 this.onRemoved =
function() {
17412 this.onPropertyChanged =
function(name, value, prev_value) {
17413 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17415 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17416 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17418 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17419 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17421 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17422 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17424 this.bgcolor =
'#111';
17425 this.color =
'#222';
17426 this.shape = LiteGraph.ROUND_SHAPE;
17427 this.boxcolor =
'#161';
17431mtlx_math_clamp_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17440 this.nodedef_icon =
'';
17442 this.nodedef_type =
'color3';
17444 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17445 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_color3_out_genglsl.png';
17446 this.nodedef_group =
'math';
17447 this.addInput(
'in',
'color3');
17448 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17449 this.addInput(
'low',
'color3');
17450 this.addProperty(
'low', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17451 this.addInput(
'high',
'color3');
17452 this.addProperty(
'high', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17453 this.addOutput(
'out',
'color3');
17454 this.title =
'clamp_color3';
17455 this.desc =
"MaterialX:mtlx/math/clamp_color3";
17456 this.onNodeCreated =
function() {
17459 this.onRemoved =
function() {
17462 this.onPropertyChanged =
function(name, value, prev_value) {
17463 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17465 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17466 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17468 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17469 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17471 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17472 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17474 this.bgcolor =
'#111';
17475 this.color =
'#222';
17476 this.shape = LiteGraph.ROUND_SHAPE;
17477 this.boxcolor =
'#37A';
17481mtlx_math_clamp_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17490 this.nodedef_icon =
'';
17492 this.nodedef_type =
'color4';
17494 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17495 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_color4_out_genglsl.png';
17496 this.nodedef_group =
'math';
17497 this.addInput(
'in',
'color4');
17498 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17499 this.addInput(
'low',
'color4');
17500 this.addProperty(
'low', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17501 this.addInput(
'high',
'color4');
17502 this.addProperty(
'high', [1.0, 1.0, 1.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17503 this.addOutput(
'out',
'color4');
17504 this.title =
'clamp_color4';
17505 this.desc =
"MaterialX:mtlx/math/clamp_color4";
17506 this.onNodeCreated =
function() {
17509 this.onRemoved =
function() {
17512 this.onPropertyChanged =
function(name, value, prev_value) {
17513 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17515 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17516 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17518 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17519 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17521 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17522 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17524 this.bgcolor =
'#111';
17525 this.color =
'#222';
17526 this.shape = LiteGraph.ROUND_SHAPE;
17527 this.boxcolor =
'#69A';
17531mtlx_math_clamp_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17540 this.nodedef_icon =
'';
17542 this.nodedef_type =
'vector2';
17544 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17545 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_vector2_out_genglsl.png';
17546 this.nodedef_group =
'math';
17547 this.addInput(
'in',
'vector2');
17548 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17549 this.addInput(
'low',
'vector2');
17550 this.addProperty(
'low', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17551 this.addInput(
'high',
'vector2');
17552 this.addProperty(
'high', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17553 this.addOutput(
'out',
'vector2');
17554 this.title =
'clamp_vector2';
17555 this.desc =
"MaterialX:mtlx/math/clamp_vector2";
17556 this.onNodeCreated =
function() {
17559 this.onRemoved =
function() {
17562 this.onPropertyChanged =
function(name, value, prev_value) {
17563 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17565 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17566 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17568 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17569 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17571 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17572 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17574 this.bgcolor =
'#111';
17575 this.color =
'#222';
17576 this.shape = LiteGraph.ROUND_SHAPE;
17577 this.boxcolor =
'#265';
17581mtlx_math_clamp_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17590 this.nodedef_icon =
'';
17592 this.nodedef_type =
'vector3';
17594 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17595 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_vector3_out_genglsl.png';
17596 this.nodedef_group =
'math';
17597 this.addInput(
'in',
'vector3');
17598 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17599 this.addInput(
'low',
'vector3');
17600 this.addProperty(
'low', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17601 this.addInput(
'high',
'vector3');
17602 this.addProperty(
'high', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17603 this.addOutput(
'out',
'vector3');
17604 this.title =
'clamp_vector3';
17605 this.desc =
"MaterialX:mtlx/math/clamp_vector3";
17606 this.onNodeCreated =
function() {
17609 this.onRemoved =
function() {
17612 this.onPropertyChanged =
function(name, value, prev_value) {
17613 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17615 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17616 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17618 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17619 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17621 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17622 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17624 this.bgcolor =
'#111';
17625 this.color =
'#222';
17626 this.shape = LiteGraph.ROUND_SHAPE;
17627 this.boxcolor =
'#465';
17631mtlx_math_clamp_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17640 this.nodedef_icon =
'';
17642 this.nodedef_type =
'vector4';
17644 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17645 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_vector4_out_genglsl.png';
17646 this.nodedef_group =
'math';
17647 this.addInput(
'in',
'vector4');
17648 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17649 this.addInput(
'low',
'vector4');
17650 this.addProperty(
'low', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17651 this.addInput(
'high',
'vector4');
17652 this.addProperty(
'high', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17653 this.addOutput(
'out',
'vector4');
17654 this.title =
'clamp_vector4';
17655 this.desc =
"MaterialX:mtlx/math/clamp_vector4";
17656 this.onNodeCreated =
function() {
17659 this.onRemoved =
function() {
17662 this.onPropertyChanged =
function(name, value, prev_value) {
17663 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17665 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17666 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17668 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17669 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17671 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17672 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17674 this.bgcolor =
'#111';
17675 this.color =
'#222';
17676 this.shape = LiteGraph.ROUND_SHAPE;
17677 this.boxcolor =
'#275';
17681mtlx_math_clamp_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17690 this.nodedef_icon =
'';
17692 this.nodedef_type =
'color3';
17694 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17695 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_color3FA_out_genglsl.png';
17696 this.nodedef_group =
'math';
17697 this.addInput(
'in',
'color3');
17698 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17699 this.addInput(
'low',
'float');
17700 this.addProperty(
'low', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17701 this.addInput(
'high',
'float');
17702 this.addProperty(
'high', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17703 this.addOutput(
'out',
'color3');
17704 this.title =
'clamp_color3';
17705 this.desc =
"MaterialX:mtlx/math/clamp_color3FA";
17706 this.onNodeCreated =
function() {
17709 this.onRemoved =
function() {
17712 this.onPropertyChanged =
function(name, value, prev_value) {
17713 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17715 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17716 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17718 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17719 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17721 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17722 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17724 this.bgcolor =
'#111';
17725 this.color =
'#222';
17726 this.shape = LiteGraph.ROUND_SHAPE;
17727 this.boxcolor =
'#37A';
17731mtlx_math_clamp_color3FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17740 this.nodedef_icon =
'';
17742 this.nodedef_type =
'color4';
17744 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17745 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_color4FA_out_genglsl.png';
17746 this.nodedef_group =
'math';
17747 this.addInput(
'in',
'color4');
17748 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17749 this.addInput(
'low',
'float');
17750 this.addProperty(
'low', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17751 this.addInput(
'high',
'float');
17752 this.addProperty(
'high', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17753 this.addOutput(
'out',
'color4');
17754 this.title =
'clamp_color4';
17755 this.desc =
"MaterialX:mtlx/math/clamp_color4FA";
17756 this.onNodeCreated =
function() {
17759 this.onRemoved =
function() {
17762 this.onPropertyChanged =
function(name, value, prev_value) {
17763 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17765 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17766 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17768 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17769 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17771 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17772 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17774 this.bgcolor =
'#111';
17775 this.color =
'#222';
17776 this.shape = LiteGraph.ROUND_SHAPE;
17777 this.boxcolor =
'#69A';
17781mtlx_math_clamp_color4FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17790 this.nodedef_icon =
'';
17792 this.nodedef_type =
'vector2';
17794 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17795 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_vector2FA_out_genglsl.png';
17796 this.nodedef_group =
'math';
17797 this.addInput(
'in',
'vector2');
17798 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17799 this.addInput(
'low',
'float');
17800 this.addProperty(
'low', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17801 this.addInput(
'high',
'float');
17802 this.addProperty(
'high', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17803 this.addOutput(
'out',
'vector2');
17804 this.title =
'clamp_vector2';
17805 this.desc =
"MaterialX:mtlx/math/clamp_vector2FA";
17806 this.onNodeCreated =
function() {
17809 this.onRemoved =
function() {
17812 this.onPropertyChanged =
function(name, value, prev_value) {
17813 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17815 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17816 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17818 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17819 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17821 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17822 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17824 this.bgcolor =
'#111';
17825 this.color =
'#222';
17826 this.shape = LiteGraph.ROUND_SHAPE;
17827 this.boxcolor =
'#265';
17840 this.nodedef_icon =
'';
17842 this.nodedef_type =
'vector3';
17844 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17845 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_vector3FA_out_genglsl.png';
17846 this.nodedef_group =
'math';
17847 this.addInput(
'in',
'vector3');
17848 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17849 this.addInput(
'low',
'float');
17850 this.addProperty(
'low', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17851 this.addInput(
'high',
'float');
17852 this.addProperty(
'high', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17853 this.addOutput(
'out',
'vector3');
17854 this.title =
'clamp_vector3';
17855 this.desc =
"MaterialX:mtlx/math/clamp_vector3FA";
17856 this.onNodeCreated =
function() {
17859 this.onRemoved =
function() {
17862 this.onPropertyChanged =
function(name, value, prev_value) {
17863 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17865 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17866 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17868 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17869 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17871 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17872 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17874 this.bgcolor =
'#111';
17875 this.color =
'#222';
17876 this.shape = LiteGraph.ROUND_SHAPE;
17877 this.boxcolor =
'#465';
17890 this.nodedef_icon =
'';
17892 this.nodedef_type =
'vector4';
17894 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/clamp.html';
17895 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_clamp_vector4FA_out_genglsl.png';
17896 this.nodedef_group =
'math';
17897 this.addInput(
'in',
'vector4');
17898 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17899 this.addInput(
'low',
'float');
17900 this.addProperty(
'low', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17901 this.addInput(
'high',
'float');
17902 this.addProperty(
'high', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17903 this.addOutput(
'out',
'vector4');
17904 this.title =
'clamp_vector4';
17905 this.desc =
"MaterialX:mtlx/math/clamp_vector4FA";
17906 this.onNodeCreated =
function() {
17909 this.onRemoved =
function() {
17912 this.onPropertyChanged =
function(name, value, prev_value) {
17913 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17915 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17916 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17918 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17919 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17921 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17922 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17924 this.bgcolor =
'#111';
17925 this.color =
'#222';
17926 this.shape = LiteGraph.ROUND_SHAPE;
17927 this.boxcolor =
'#275';
17940 this.nodedef_icon =
'';
17942 this.nodedef_type =
'float';
17944 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
17945 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_float_out_genglsl.png';
17946 this.nodedef_group =
'math';
17947 this.addInput(
'in1',
'float');
17948 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17949 this.addInput(
'in2',
'float');
17950 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17951 this.addOutput(
'out',
'float');
17952 this.title =
'min_float';
17953 this.desc =
"MaterialX:mtlx/math/min_float";
17954 this.onNodeCreated =
function() {
17957 this.onRemoved =
function() {
17960 this.onPropertyChanged =
function(name, value, prev_value) {
17961 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
17963 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
17964 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
17966 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
17967 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
17969 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
17970 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
17972 this.bgcolor =
'#111';
17973 this.color =
'#222';
17974 this.shape = LiteGraph.ROUND_SHAPE;
17975 this.boxcolor =
'#161';
17979mtlx_math_min_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
17988 this.nodedef_icon =
'';
17990 this.nodedef_type =
'color3';
17992 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
17993 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_color3_out_genglsl.png';
17994 this.nodedef_group =
'math';
17995 this.addInput(
'in1',
'color3');
17996 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17997 this.addInput(
'in2',
'color3');
17998 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
17999 this.addOutput(
'out',
'color3');
18000 this.title =
'min_color3';
18001 this.desc =
"MaterialX:mtlx/math/min_color3";
18002 this.onNodeCreated =
function() {
18005 this.onRemoved =
function() {
18008 this.onPropertyChanged =
function(name, value, prev_value) {
18009 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18011 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18012 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18014 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18015 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18017 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18018 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18020 this.bgcolor =
'#111';
18021 this.color =
'#222';
18022 this.shape = LiteGraph.ROUND_SHAPE;
18023 this.boxcolor =
'#37A';
18027mtlx_math_min_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18036 this.nodedef_icon =
'';
18038 this.nodedef_type =
'color4';
18040 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18041 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_color4_out_genglsl.png';
18042 this.nodedef_group =
'math';
18043 this.addInput(
'in1',
'color4');
18044 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18045 this.addInput(
'in2',
'color4');
18046 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18047 this.addOutput(
'out',
'color4');
18048 this.title =
'min_color4';
18049 this.desc =
"MaterialX:mtlx/math/min_color4";
18050 this.onNodeCreated =
function() {
18053 this.onRemoved =
function() {
18056 this.onPropertyChanged =
function(name, value, prev_value) {
18057 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18059 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18060 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18062 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18063 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18065 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18066 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18068 this.bgcolor =
'#111';
18069 this.color =
'#222';
18070 this.shape = LiteGraph.ROUND_SHAPE;
18071 this.boxcolor =
'#69A';
18075mtlx_math_min_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18084 this.nodedef_icon =
'';
18086 this.nodedef_type =
'vector2';
18088 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18089 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_vector2_out_genglsl.png';
18090 this.nodedef_group =
'math';
18091 this.addInput(
'in1',
'vector2');
18092 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18093 this.addInput(
'in2',
'vector2');
18094 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18095 this.addOutput(
'out',
'vector2');
18096 this.title =
'min_vector2';
18097 this.desc =
"MaterialX:mtlx/math/min_vector2";
18098 this.onNodeCreated =
function() {
18101 this.onRemoved =
function() {
18104 this.onPropertyChanged =
function(name, value, prev_value) {
18105 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18107 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18108 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18110 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18111 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18113 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18114 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18116 this.bgcolor =
'#111';
18117 this.color =
'#222';
18118 this.shape = LiteGraph.ROUND_SHAPE;
18119 this.boxcolor =
'#265';
18123mtlx_math_min_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18132 this.nodedef_icon =
'';
18134 this.nodedef_type =
'vector3';
18136 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18137 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_vector3_out_genglsl.png';
18138 this.nodedef_group =
'math';
18139 this.addInput(
'in1',
'vector3');
18140 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18141 this.addInput(
'in2',
'vector3');
18142 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18143 this.addOutput(
'out',
'vector3');
18144 this.title =
'min_vector3';
18145 this.desc =
"MaterialX:mtlx/math/min_vector3";
18146 this.onNodeCreated =
function() {
18149 this.onRemoved =
function() {
18152 this.onPropertyChanged =
function(name, value, prev_value) {
18153 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18155 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18156 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18158 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18159 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18161 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18162 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18164 this.bgcolor =
'#111';
18165 this.color =
'#222';
18166 this.shape = LiteGraph.ROUND_SHAPE;
18167 this.boxcolor =
'#465';
18171mtlx_math_min_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18180 this.nodedef_icon =
'';
18182 this.nodedef_type =
'vector4';
18184 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18185 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_vector4_out_genglsl.png';
18186 this.nodedef_group =
'math';
18187 this.addInput(
'in1',
'vector4');
18188 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18189 this.addInput(
'in2',
'vector4');
18190 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18191 this.addOutput(
'out',
'vector4');
18192 this.title =
'min_vector4';
18193 this.desc =
"MaterialX:mtlx/math/min_vector4";
18194 this.onNodeCreated =
function() {
18197 this.onRemoved =
function() {
18200 this.onPropertyChanged =
function(name, value, prev_value) {
18201 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18203 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18204 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18206 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18207 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18209 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18210 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18212 this.bgcolor =
'#111';
18213 this.color =
'#222';
18214 this.shape = LiteGraph.ROUND_SHAPE;
18215 this.boxcolor =
'#275';
18219mtlx_math_min_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18228 this.nodedef_icon =
'';
18230 this.nodedef_type =
'color3';
18232 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18233 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_color3FA_out_genglsl.png';
18234 this.nodedef_group =
'math';
18235 this.addInput(
'in1',
'color3');
18236 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18237 this.addInput(
'in2',
'float');
18238 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18239 this.addOutput(
'out',
'color3');
18240 this.title =
'min_color3';
18241 this.desc =
"MaterialX:mtlx/math/min_color3FA";
18242 this.onNodeCreated =
function() {
18245 this.onRemoved =
function() {
18248 this.onPropertyChanged =
function(name, value, prev_value) {
18249 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18251 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18252 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18254 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18255 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18257 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18258 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18260 this.bgcolor =
'#111';
18261 this.color =
'#222';
18262 this.shape = LiteGraph.ROUND_SHAPE;
18263 this.boxcolor =
'#37A';
18267mtlx_math_min_color3FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18276 this.nodedef_icon =
'';
18278 this.nodedef_type =
'color4';
18280 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18281 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_color4FA_out_genglsl.png';
18282 this.nodedef_group =
'math';
18283 this.addInput(
'in1',
'color4');
18284 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18285 this.addInput(
'in2',
'float');
18286 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18287 this.addOutput(
'out',
'color4');
18288 this.title =
'min_color4';
18289 this.desc =
"MaterialX:mtlx/math/min_color4FA";
18290 this.onNodeCreated =
function() {
18293 this.onRemoved =
function() {
18296 this.onPropertyChanged =
function(name, value, prev_value) {
18297 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18299 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18300 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18302 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18303 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18305 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18306 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18308 this.bgcolor =
'#111';
18309 this.color =
'#222';
18310 this.shape = LiteGraph.ROUND_SHAPE;
18311 this.boxcolor =
'#69A';
18315mtlx_math_min_color4FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18324 this.nodedef_icon =
'';
18326 this.nodedef_type =
'vector2';
18328 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18329 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_vector2FA_out_genglsl.png';
18330 this.nodedef_group =
'math';
18331 this.addInput(
'in1',
'vector2');
18332 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18333 this.addInput(
'in2',
'float');
18334 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18335 this.addOutput(
'out',
'vector2');
18336 this.title =
'min_vector2';
18337 this.desc =
"MaterialX:mtlx/math/min_vector2FA";
18338 this.onNodeCreated =
function() {
18341 this.onRemoved =
function() {
18344 this.onPropertyChanged =
function(name, value, prev_value) {
18345 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18347 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18348 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18350 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18351 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18353 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18354 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18356 this.bgcolor =
'#111';
18357 this.color =
'#222';
18358 this.shape = LiteGraph.ROUND_SHAPE;
18359 this.boxcolor =
'#265';
18363mtlx_math_min_vector2FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18372 this.nodedef_icon =
'';
18374 this.nodedef_type =
'vector3';
18376 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18377 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_vector3FA_out_genglsl.png';
18378 this.nodedef_group =
'math';
18379 this.addInput(
'in1',
'vector3');
18380 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18381 this.addInput(
'in2',
'float');
18382 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18383 this.addOutput(
'out',
'vector3');
18384 this.title =
'min_vector3';
18385 this.desc =
"MaterialX:mtlx/math/min_vector3FA";
18386 this.onNodeCreated =
function() {
18389 this.onRemoved =
function() {
18392 this.onPropertyChanged =
function(name, value, prev_value) {
18393 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18395 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18396 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18398 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18399 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18401 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18402 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18404 this.bgcolor =
'#111';
18405 this.color =
'#222';
18406 this.shape = LiteGraph.ROUND_SHAPE;
18407 this.boxcolor =
'#465';
18411mtlx_math_min_vector3FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18420 this.nodedef_icon =
'';
18422 this.nodedef_type =
'vector4';
18424 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18425 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_min_vector4FA_out_genglsl.png';
18426 this.nodedef_group =
'math';
18427 this.addInput(
'in1',
'vector4');
18428 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18429 this.addInput(
'in2',
'float');
18430 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18431 this.addOutput(
'out',
'vector4');
18432 this.title =
'min_vector4';
18433 this.desc =
"MaterialX:mtlx/math/min_vector4FA";
18434 this.onNodeCreated =
function() {
18437 this.onRemoved =
function() {
18440 this.onPropertyChanged =
function(name, value, prev_value) {
18441 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18443 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18444 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18446 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18447 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18449 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18450 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18452 this.bgcolor =
'#111';
18453 this.color =
'#222';
18454 this.shape = LiteGraph.ROUND_SHAPE;
18455 this.boxcolor =
'#275';
18459mtlx_math_min_vector4FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/min.html';
18468 this.nodedef_icon =
'';
18470 this.nodedef_type =
'float';
18472 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18473 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_float_out_genglsl.png';
18474 this.nodedef_group =
'math';
18475 this.addInput(
'in1',
'float');
18476 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18477 this.addInput(
'in2',
'float');
18478 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18479 this.addOutput(
'out',
'float');
18480 this.title =
'max_float';
18481 this.desc =
"MaterialX:mtlx/math/max_float";
18482 this.onNodeCreated =
function() {
18485 this.onRemoved =
function() {
18488 this.onPropertyChanged =
function(name, value, prev_value) {
18489 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18491 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18492 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18494 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18495 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18497 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18498 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18500 this.bgcolor =
'#111';
18501 this.color =
'#222';
18502 this.shape = LiteGraph.ROUND_SHAPE;
18503 this.boxcolor =
'#161';
18507mtlx_math_max_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18516 this.nodedef_icon =
'';
18518 this.nodedef_type =
'color3';
18520 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18521 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_color3_out_genglsl.png';
18522 this.nodedef_group =
'math';
18523 this.addInput(
'in1',
'color3');
18524 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18525 this.addInput(
'in2',
'color3');
18526 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18527 this.addOutput(
'out',
'color3');
18528 this.title =
'max_color3';
18529 this.desc =
"MaterialX:mtlx/math/max_color3";
18530 this.onNodeCreated =
function() {
18533 this.onRemoved =
function() {
18536 this.onPropertyChanged =
function(name, value, prev_value) {
18537 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18539 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18540 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18542 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18543 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18545 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18546 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18548 this.bgcolor =
'#111';
18549 this.color =
'#222';
18550 this.shape = LiteGraph.ROUND_SHAPE;
18551 this.boxcolor =
'#37A';
18555mtlx_math_max_color3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18564 this.nodedef_icon =
'';
18566 this.nodedef_type =
'color4';
18568 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18569 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_color4_out_genglsl.png';
18570 this.nodedef_group =
'math';
18571 this.addInput(
'in1',
'color4');
18572 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18573 this.addInput(
'in2',
'color4');
18574 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18575 this.addOutput(
'out',
'color4');
18576 this.title =
'max_color4';
18577 this.desc =
"MaterialX:mtlx/math/max_color4";
18578 this.onNodeCreated =
function() {
18581 this.onRemoved =
function() {
18584 this.onPropertyChanged =
function(name, value, prev_value) {
18585 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18587 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18588 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18590 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18591 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18593 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18594 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18596 this.bgcolor =
'#111';
18597 this.color =
'#222';
18598 this.shape = LiteGraph.ROUND_SHAPE;
18599 this.boxcolor =
'#69A';
18603mtlx_math_max_color4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18612 this.nodedef_icon =
'';
18614 this.nodedef_type =
'vector2';
18616 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18617 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_vector2_out_genglsl.png';
18618 this.nodedef_group =
'math';
18619 this.addInput(
'in1',
'vector2');
18620 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18621 this.addInput(
'in2',
'vector2');
18622 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18623 this.addOutput(
'out',
'vector2');
18624 this.title =
'max_vector2';
18625 this.desc =
"MaterialX:mtlx/math/max_vector2";
18626 this.onNodeCreated =
function() {
18629 this.onRemoved =
function() {
18632 this.onPropertyChanged =
function(name, value, prev_value) {
18633 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18635 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18636 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18638 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18639 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18641 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18642 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18644 this.bgcolor =
'#111';
18645 this.color =
'#222';
18646 this.shape = LiteGraph.ROUND_SHAPE;
18647 this.boxcolor =
'#265';
18651mtlx_math_max_vector2.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18660 this.nodedef_icon =
'';
18662 this.nodedef_type =
'vector3';
18664 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18665 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_vector3_out_genglsl.png';
18666 this.nodedef_group =
'math';
18667 this.addInput(
'in1',
'vector3');
18668 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18669 this.addInput(
'in2',
'vector3');
18670 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18671 this.addOutput(
'out',
'vector3');
18672 this.title =
'max_vector3';
18673 this.desc =
"MaterialX:mtlx/math/max_vector3";
18674 this.onNodeCreated =
function() {
18677 this.onRemoved =
function() {
18680 this.onPropertyChanged =
function(name, value, prev_value) {
18681 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18683 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18684 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18686 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18687 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18689 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18690 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18692 this.bgcolor =
'#111';
18693 this.color =
'#222';
18694 this.shape = LiteGraph.ROUND_SHAPE;
18695 this.boxcolor =
'#465';
18699mtlx_math_max_vector3.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18708 this.nodedef_icon =
'';
18710 this.nodedef_type =
'vector4';
18712 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18713 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_vector4_out_genglsl.png';
18714 this.nodedef_group =
'math';
18715 this.addInput(
'in1',
'vector4');
18716 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18717 this.addInput(
'in2',
'vector4');
18718 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18719 this.addOutput(
'out',
'vector4');
18720 this.title =
'max_vector4';
18721 this.desc =
"MaterialX:mtlx/math/max_vector4";
18722 this.onNodeCreated =
function() {
18725 this.onRemoved =
function() {
18728 this.onPropertyChanged =
function(name, value, prev_value) {
18729 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18731 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18732 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18734 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18735 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18737 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18738 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18740 this.bgcolor =
'#111';
18741 this.color =
'#222';
18742 this.shape = LiteGraph.ROUND_SHAPE;
18743 this.boxcolor =
'#275';
18747mtlx_math_max_vector4.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18756 this.nodedef_icon =
'';
18758 this.nodedef_type =
'color3';
18760 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18761 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_color3FA_out_genglsl.png';
18762 this.nodedef_group =
'math';
18763 this.addInput(
'in1',
'color3');
18764 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18765 this.addInput(
'in2',
'float');
18766 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18767 this.addOutput(
'out',
'color3');
18768 this.title =
'max_color3';
18769 this.desc =
"MaterialX:mtlx/math/max_color3FA";
18770 this.onNodeCreated =
function() {
18773 this.onRemoved =
function() {
18776 this.onPropertyChanged =
function(name, value, prev_value) {
18777 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18779 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18780 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18782 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18783 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18785 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18786 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18788 this.bgcolor =
'#111';
18789 this.color =
'#222';
18790 this.shape = LiteGraph.ROUND_SHAPE;
18791 this.boxcolor =
'#37A';
18795mtlx_math_max_color3FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18804 this.nodedef_icon =
'';
18806 this.nodedef_type =
'color4';
18808 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18809 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_color4FA_out_genglsl.png';
18810 this.nodedef_group =
'math';
18811 this.addInput(
'in1',
'color4');
18812 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18813 this.addInput(
'in2',
'float');
18814 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18815 this.addOutput(
'out',
'color4');
18816 this.title =
'max_color4';
18817 this.desc =
"MaterialX:mtlx/math/max_color4FA";
18818 this.onNodeCreated =
function() {
18821 this.onRemoved =
function() {
18824 this.onPropertyChanged =
function(name, value, prev_value) {
18825 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18827 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18828 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18830 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18831 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18833 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18834 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18836 this.bgcolor =
'#111';
18837 this.color =
'#222';
18838 this.shape = LiteGraph.ROUND_SHAPE;
18839 this.boxcolor =
'#69A';
18843mtlx_math_max_color4FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18852 this.nodedef_icon =
'';
18854 this.nodedef_type =
'vector2';
18856 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18857 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_vector2FA_out_genglsl.png';
18858 this.nodedef_group =
'math';
18859 this.addInput(
'in1',
'vector2');
18860 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18861 this.addInput(
'in2',
'float');
18862 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18863 this.addOutput(
'out',
'vector2');
18864 this.title =
'max_vector2';
18865 this.desc =
"MaterialX:mtlx/math/max_vector2FA";
18866 this.onNodeCreated =
function() {
18869 this.onRemoved =
function() {
18872 this.onPropertyChanged =
function(name, value, prev_value) {
18873 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18875 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18876 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18878 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18879 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18881 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18882 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18884 this.bgcolor =
'#111';
18885 this.color =
'#222';
18886 this.shape = LiteGraph.ROUND_SHAPE;
18887 this.boxcolor =
'#265';
18891mtlx_math_max_vector2FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18900 this.nodedef_icon =
'';
18902 this.nodedef_type =
'vector3';
18904 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18905 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_vector3FA_out_genglsl.png';
18906 this.nodedef_group =
'math';
18907 this.addInput(
'in1',
'vector3');
18908 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18909 this.addInput(
'in2',
'float');
18910 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18911 this.addOutput(
'out',
'vector3');
18912 this.title =
'max_vector3';
18913 this.desc =
"MaterialX:mtlx/math/max_vector3FA";
18914 this.onNodeCreated =
function() {
18917 this.onRemoved =
function() {
18920 this.onPropertyChanged =
function(name, value, prev_value) {
18921 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18923 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18924 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18926 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18927 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18929 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18930 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18932 this.bgcolor =
'#111';
18933 this.color =
'#222';
18934 this.shape = LiteGraph.ROUND_SHAPE;
18935 this.boxcolor =
'#465';
18939mtlx_math_max_vector3FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18948 this.nodedef_icon =
'';
18950 this.nodedef_type =
'vector4';
18952 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18953 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_max_vector4FA_out_genglsl.png';
18954 this.nodedef_group =
'math';
18955 this.addInput(
'in1',
'vector4');
18956 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18957 this.addInput(
'in2',
'float');
18958 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
18959 this.addOutput(
'out',
'vector4');
18960 this.title =
'max_vector4';
18961 this.desc =
"MaterialX:mtlx/math/max_vector4FA";
18962 this.onNodeCreated =
function() {
18965 this.onRemoved =
function() {
18968 this.onPropertyChanged =
function(name, value, prev_value) {
18969 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
18971 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
18972 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
18974 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
18975 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
18977 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
18978 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
18980 this.bgcolor =
'#111';
18981 this.color =
'#222';
18982 this.shape = LiteGraph.ROUND_SHAPE;
18983 this.boxcolor =
'#275';
18987mtlx_math_max_vector4FA.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/max.html';
18996 this.nodedef_icon =
'';
18998 this.nodedef_type =
'vector2';
19000 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/normalize.html';
19001 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_normalize_vector2_out_genglsl.png';
19002 this.nodedef_group =
'math';
19003 this.addInput(
'in',
'vector2');
19004 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19005 this.addOutput(
'out',
'vector2');
19006 this.title =
'normalize_vector2';
19007 this.desc =
"MaterialX:mtlx/math/normalize_vector2";
19008 this.onNodeCreated =
function() {
19011 this.onRemoved =
function() {
19014 this.onPropertyChanged =
function(name, value, prev_value) {
19015 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19017 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19018 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19020 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19021 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19023 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19024 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19026 this.bgcolor =
'#111';
19027 this.color =
'#222';
19028 this.shape = LiteGraph.ROUND_SHAPE;
19029 this.boxcolor =
'#265';
19042 this.nodedef_icon =
'';
19044 this.nodedef_type =
'vector3';
19046 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/normalize.html';
19047 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_normalize_vector3_out_genglsl.png';
19048 this.nodedef_group =
'math';
19049 this.addInput(
'in',
'vector3');
19050 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19051 this.addOutput(
'out',
'vector3');
19052 this.title =
'normalize_vector3';
19053 this.desc =
"MaterialX:mtlx/math/normalize_vector3";
19054 this.onNodeCreated =
function() {
19057 this.onRemoved =
function() {
19060 this.onPropertyChanged =
function(name, value, prev_value) {
19061 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19063 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19064 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19066 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19067 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19069 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19070 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19072 this.bgcolor =
'#111';
19073 this.color =
'#222';
19074 this.shape = LiteGraph.ROUND_SHAPE;
19075 this.boxcolor =
'#465';
19088 this.nodedef_icon =
'';
19090 this.nodedef_type =
'vector4';
19092 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/normalize.html';
19093 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_normalize_vector4_out_genglsl.png';
19094 this.nodedef_group =
'math';
19095 this.addInput(
'in',
'vector4');
19096 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19097 this.addOutput(
'out',
'vector4');
19098 this.title =
'normalize_vector4';
19099 this.desc =
"MaterialX:mtlx/math/normalize_vector4";
19100 this.onNodeCreated =
function() {
19103 this.onRemoved =
function() {
19106 this.onPropertyChanged =
function(name, value, prev_value) {
19107 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19109 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19110 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19112 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19113 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19115 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19116 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19118 this.bgcolor =
'#111';
19119 this.color =
'#222';
19120 this.shape = LiteGraph.ROUND_SHAPE;
19121 this.boxcolor =
'#275';
19134 this.nodedef_icon =
'';
19136 this.nodedef_type =
'float';
19138 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/magnitude.html';
19139 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_magnitude_vector2_out_genglsl.png';
19140 this.nodedef_group =
'math';
19141 this.addInput(
'in',
'vector2');
19142 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19143 this.addOutput(
'out',
'float');
19144 this.title =
'magnitude_float';
19145 this.desc =
"MaterialX:mtlx/math/magnitude_vector2";
19146 this.onNodeCreated =
function() {
19149 this.onRemoved =
function() {
19152 this.onPropertyChanged =
function(name, value, prev_value) {
19153 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19155 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19156 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19158 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19159 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19161 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19162 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19164 this.bgcolor =
'#111';
19165 this.color =
'#222';
19166 this.shape = LiteGraph.ROUND_SHAPE;
19167 this.boxcolor =
'#161';
19180 this.nodedef_icon =
'';
19182 this.nodedef_type =
'float';
19184 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/magnitude.html';
19185 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_magnitude_vector3_out_genglsl.png';
19186 this.nodedef_group =
'math';
19187 this.addInput(
'in',
'vector3');
19188 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19189 this.addOutput(
'out',
'float');
19190 this.title =
'magnitude_float';
19191 this.desc =
"MaterialX:mtlx/math/magnitude_vector3";
19192 this.onNodeCreated =
function() {
19195 this.onRemoved =
function() {
19198 this.onPropertyChanged =
function(name, value, prev_value) {
19199 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19201 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19202 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19204 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19205 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19207 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19208 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19210 this.bgcolor =
'#111';
19211 this.color =
'#222';
19212 this.shape = LiteGraph.ROUND_SHAPE;
19213 this.boxcolor =
'#161';
19226 this.nodedef_icon =
'';
19228 this.nodedef_type =
'float';
19230 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/magnitude.html';
19231 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_magnitude_vector4_out_genglsl.png';
19232 this.nodedef_group =
'math';
19233 this.addInput(
'in',
'vector4');
19234 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19235 this.addOutput(
'out',
'float');
19236 this.title =
'magnitude_float';
19237 this.desc =
"MaterialX:mtlx/math/magnitude_vector4";
19238 this.onNodeCreated =
function() {
19241 this.onRemoved =
function() {
19244 this.onPropertyChanged =
function(name, value, prev_value) {
19245 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19247 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19248 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19250 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19251 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19253 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19254 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19256 this.bgcolor =
'#111';
19257 this.color =
'#222';
19258 this.shape = LiteGraph.ROUND_SHAPE;
19259 this.boxcolor =
'#161';
19272 this.nodedef_icon =
'';
19274 this.nodedef_type =
'float';
19276 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/distance.html';
19277 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_distance_vector2_out_genglsl.png';
19278 this.nodedef_group =
'math';
19279 this.addInput(
'in1',
'vector2');
19280 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"in1",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19281 this.addInput(
'in2',
'vector2');
19282 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"in2",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19283 this.addOutput(
'out',
'float');
19284 this.title =
'distance_float';
19285 this.desc =
"MaterialX:mtlx/math/distance_vector2";
19286 this.onNodeCreated =
function() {
19289 this.onRemoved =
function() {
19292 this.onPropertyChanged =
function(name, value, prev_value) {
19293 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19295 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19296 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19298 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19299 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19301 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19302 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19304 this.bgcolor =
'#111';
19305 this.color =
'#222';
19306 this.shape = LiteGraph.ROUND_SHAPE;
19307 this.boxcolor =
'#161';
19320 this.nodedef_icon =
'';
19322 this.nodedef_type =
'float';
19324 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/distance.html';
19325 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_distance_vector3_out_genglsl.png';
19326 this.nodedef_group =
'math';
19327 this.addInput(
'in1',
'vector3');
19328 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"in1",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19329 this.addInput(
'in2',
'vector3');
19330 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"in2",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19331 this.addOutput(
'out',
'float');
19332 this.title =
'distance_float';
19333 this.desc =
"MaterialX:mtlx/math/distance_vector3";
19334 this.onNodeCreated =
function() {
19337 this.onRemoved =
function() {
19340 this.onPropertyChanged =
function(name, value, prev_value) {
19341 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19343 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19344 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19346 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19347 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19349 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19350 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19352 this.bgcolor =
'#111';
19353 this.color =
'#222';
19354 this.shape = LiteGraph.ROUND_SHAPE;
19355 this.boxcolor =
'#161';
19368 this.nodedef_icon =
'';
19370 this.nodedef_type =
'float';
19372 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/distance.html';
19373 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_distance_vector4_out_genglsl.png';
19374 this.nodedef_group =
'math';
19375 this.addInput(
'in1',
'vector4');
19376 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"in1",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19377 this.addInput(
'in2',
'vector4');
19378 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"in2",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19379 this.addOutput(
'out',
'float');
19380 this.title =
'distance_float';
19381 this.desc =
"MaterialX:mtlx/math/distance_vector4";
19382 this.onNodeCreated =
function() {
19385 this.onRemoved =
function() {
19388 this.onPropertyChanged =
function(name, value, prev_value) {
19389 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19391 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19392 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19394 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19395 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19397 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19398 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19400 this.bgcolor =
'#111';
19401 this.color =
'#222';
19402 this.shape = LiteGraph.ROUND_SHAPE;
19403 this.boxcolor =
'#161';
19416 this.nodedef_icon =
'';
19418 this.nodedef_type =
'float';
19420 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dotproduct.html';
19421 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dotproduct_vector2_out_genglsl.png';
19422 this.nodedef_group =
'math';
19423 this.addInput(
'in1',
'vector2');
19424 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19425 this.addInput(
'in2',
'vector2');
19426 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19427 this.addOutput(
'out',
'float');
19428 this.title =
'dotproduct_float';
19429 this.desc =
"MaterialX:mtlx/math/dotproduct_vector2";
19430 this.onNodeCreated =
function() {
19433 this.onRemoved =
function() {
19436 this.onPropertyChanged =
function(name, value, prev_value) {
19437 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19439 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19440 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19442 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19443 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19445 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19446 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19448 this.bgcolor =
'#111';
19449 this.color =
'#222';
19450 this.shape = LiteGraph.ROUND_SHAPE;
19451 this.boxcolor =
'#161';
19464 this.nodedef_icon =
'';
19466 this.nodedef_type =
'float';
19468 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dotproduct.html';
19469 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dotproduct_vector3_out_genglsl.png';
19470 this.nodedef_group =
'math';
19471 this.addInput(
'in1',
'vector3');
19472 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19473 this.addInput(
'in2',
'vector3');
19474 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19475 this.addOutput(
'out',
'float');
19476 this.title =
'dotproduct_float';
19477 this.desc =
"MaterialX:mtlx/math/dotproduct_vector3";
19478 this.onNodeCreated =
function() {
19481 this.onRemoved =
function() {
19484 this.onPropertyChanged =
function(name, value, prev_value) {
19485 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19487 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19488 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19490 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19491 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19493 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19494 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19496 this.bgcolor =
'#111';
19497 this.color =
'#222';
19498 this.shape = LiteGraph.ROUND_SHAPE;
19499 this.boxcolor =
'#161';
19512 this.nodedef_icon =
'';
19514 this.nodedef_type =
'float';
19516 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dotproduct.html';
19517 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dotproduct_vector4_out_genglsl.png';
19518 this.nodedef_group =
'math';
19519 this.addInput(
'in1',
'vector4');
19520 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19521 this.addInput(
'in2',
'vector4');
19522 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19523 this.addOutput(
'out',
'float');
19524 this.title =
'dotproduct_float';
19525 this.desc =
"MaterialX:mtlx/math/dotproduct_vector4";
19526 this.onNodeCreated =
function() {
19529 this.onRemoved =
function() {
19532 this.onPropertyChanged =
function(name, value, prev_value) {
19533 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19535 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19536 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19538 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19539 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19541 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19542 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19544 this.bgcolor =
'#111';
19545 this.color =
'#222';
19546 this.shape = LiteGraph.ROUND_SHAPE;
19547 this.boxcolor =
'#161';
19560 this.nodedef_icon =
'';
19562 this.nodedef_type =
'vector3';
19564 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/crossproduct.html';
19565 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_crossproduct_vector3_out_genglsl.png';
19566 this.nodedef_group =
'math';
19567 this.addInput(
'in1',
'vector3');
19568 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19569 this.addInput(
'in2',
'vector3');
19570 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19571 this.addOutput(
'out',
'vector3');
19572 this.title =
'crossproduct_vector3';
19573 this.desc =
"MaterialX:mtlx/math/crossproduct_vector3";
19574 this.onNodeCreated =
function() {
19577 this.onRemoved =
function() {
19580 this.onPropertyChanged =
function(name, value, prev_value) {
19581 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19583 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19584 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19586 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19587 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19589 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19590 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19592 this.bgcolor =
'#111';
19593 this.color =
'#222';
19594 this.shape = LiteGraph.ROUND_SHAPE;
19595 this.boxcolor =
'#465';
19608 this.nodedef_icon =
'';
19610 this.nodedef_type =
'vector3';
19612 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transformpoint.html';
19613 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transformpoint_vector3_out_genglsl.png';
19614 this.nodedef_group =
'math';
19615 this.addInput(
'in',
'vector3');
19616 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19617 this.addInput(
'fromspace',
'string');
19618 this.addProperty(
'fromspace',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19619 this.addInput(
'tospace',
'string');
19620 this.addProperty(
'tospace',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19621 this.addOutput(
'out',
'vector3');
19622 this.title =
'transformpoint_vector3';
19623 this.desc =
"MaterialX:mtlx/math/transformpoint_vector3";
19624 this.onNodeCreated =
function() {
19627 this.onRemoved =
function() {
19630 this.onPropertyChanged =
function(name, value, prev_value) {
19631 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19633 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19634 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19636 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19637 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19639 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19640 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19642 this.bgcolor =
'#111';
19643 this.color =
'#222';
19644 this.shape = LiteGraph.ROUND_SHAPE;
19645 this.boxcolor =
'#465';
19658 this.nodedef_icon =
'';
19660 this.nodedef_type =
'vector3';
19662 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transformvector.html';
19663 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transformvector_vector3_out_genglsl.png';
19664 this.nodedef_group =
'math';
19665 this.addInput(
'in',
'vector3');
19666 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19667 this.addInput(
'fromspace',
'string');
19668 this.addProperty(
'fromspace',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19669 this.addInput(
'tospace',
'string');
19670 this.addProperty(
'tospace',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19671 this.addOutput(
'out',
'vector3');
19672 this.title =
'transformvector_vector3';
19673 this.desc =
"MaterialX:mtlx/math/transformvector_vector3";
19674 this.onNodeCreated =
function() {
19677 this.onRemoved =
function() {
19680 this.onPropertyChanged =
function(name, value, prev_value) {
19681 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19683 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19684 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19686 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19687 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19689 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19690 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19692 this.bgcolor =
'#111';
19693 this.color =
'#222';
19694 this.shape = LiteGraph.ROUND_SHAPE;
19695 this.boxcolor =
'#465';
19708 this.nodedef_icon =
'';
19710 this.nodedef_type =
'vector3';
19712 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transformnormal.html';
19713 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transformnormal_vector3_out_genglsl.png';
19714 this.nodedef_group =
'math';
19715 this.addInput(
'in',
'vector3');
19716 this.addProperty(
'in', [0.0, 0.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19717 this.addInput(
'fromspace',
'string');
19718 this.addProperty(
'fromspace',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19719 this.addInput(
'tospace',
'string');
19720 this.addProperty(
'tospace',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19721 this.addOutput(
'out',
'vector3');
19722 this.title =
'transformnormal_vector3';
19723 this.desc =
"MaterialX:mtlx/math/transformnormal_vector3";
19724 this.onNodeCreated =
function() {
19727 this.onRemoved =
function() {
19730 this.onPropertyChanged =
function(name, value, prev_value) {
19731 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19733 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19734 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19736 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19737 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19739 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19740 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19742 this.bgcolor =
'#111';
19743 this.color =
'#222';
19744 this.shape = LiteGraph.ROUND_SHAPE;
19745 this.boxcolor =
'#465';
19758 this.nodedef_icon =
'';
19760 this.nodedef_type =
'vector2';
19762 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transformmatrix.html';
19763 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transformmatrix_vector2M3_out_genglsl.png';
19764 this.nodedef_group =
'math';
19765 this.addInput(
'in',
'vector2');
19766 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19767 this.addInput(
'mat',
'matrix33');
19768 this.addProperty(
'mat', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19769 this.addOutput(
'out',
'vector2');
19770 this.title =
'transformmatrix_vector2';
19771 this.desc =
"MaterialX:mtlx/math/transformmatrix_vector2M3";
19772 this.onNodeCreated =
function() {
19775 this.onRemoved =
function() {
19778 this.onPropertyChanged =
function(name, value, prev_value) {
19779 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19781 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19782 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19784 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19785 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19787 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19788 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19790 this.bgcolor =
'#111';
19791 this.color =
'#222';
19792 this.shape = LiteGraph.ROUND_SHAPE;
19793 this.boxcolor =
'#265';
19806 this.nodedef_icon =
'';
19808 this.nodedef_type =
'vector3';
19810 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transformmatrix.html';
19811 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transformmatrix_vector3_out_genglsl.png';
19812 this.nodedef_group =
'math';
19813 this.addInput(
'in',
'vector3');
19814 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19815 this.addInput(
'mat',
'matrix33');
19816 this.addProperty(
'mat', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19817 this.addOutput(
'out',
'vector3');
19818 this.title =
'transformmatrix_vector3';
19819 this.desc =
"MaterialX:mtlx/math/transformmatrix_vector3";
19820 this.onNodeCreated =
function() {
19823 this.onRemoved =
function() {
19826 this.onPropertyChanged =
function(name, value, prev_value) {
19827 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19829 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19830 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19832 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19833 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19835 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19836 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19838 this.bgcolor =
'#111';
19839 this.color =
'#222';
19840 this.shape = LiteGraph.ROUND_SHAPE;
19841 this.boxcolor =
'#465';
19854 this.nodedef_icon =
'';
19856 this.nodedef_type =
'vector3';
19858 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transformmatrix.html';
19859 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transformmatrix_vector3M4_out_genglsl.png';
19860 this.nodedef_group =
'math';
19861 this.addInput(
'in',
'vector3');
19862 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19863 this.addInput(
'mat',
'matrix44');
19864 this.addProperty(
'mat', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19865 this.addOutput(
'out',
'vector3');
19866 this.title =
'transformmatrix_vector3';
19867 this.desc =
"MaterialX:mtlx/math/transformmatrix_vector3M4";
19868 this.onNodeCreated =
function() {
19871 this.onRemoved =
function() {
19874 this.onPropertyChanged =
function(name, value, prev_value) {
19875 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19877 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19878 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19880 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19881 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19883 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19884 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19886 this.bgcolor =
'#111';
19887 this.color =
'#222';
19888 this.shape = LiteGraph.ROUND_SHAPE;
19889 this.boxcolor =
'#465';
19902 this.nodedef_icon =
'';
19904 this.nodedef_type =
'vector4';
19906 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transformmatrix.html';
19907 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transformmatrix_vector4_out_genglsl.png';
19908 this.nodedef_group =
'math';
19909 this.addInput(
'in',
'vector4');
19910 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19911 this.addInput(
'mat',
'matrix44');
19912 this.addProperty(
'mat', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19913 this.addOutput(
'out',
'vector4');
19914 this.title =
'transformmatrix_vector4';
19915 this.desc =
"MaterialX:mtlx/math/transformmatrix_vector4";
19916 this.onNodeCreated =
function() {
19919 this.onRemoved =
function() {
19922 this.onPropertyChanged =
function(name, value, prev_value) {
19923 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19925 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19926 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19928 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19929 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19931 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19932 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19934 this.bgcolor =
'#111';
19935 this.color =
'#222';
19936 this.shape = LiteGraph.ROUND_SHAPE;
19937 this.boxcolor =
'#275';
19950 this.nodedef_icon =
'';
19952 this.nodedef_type =
'vector3';
19954 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/normalmap.html';
19955 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_normalmap_float_out_genglsl.png';
19956 this.nodedef_group =
'math';
19957 this.addInput(
'in',
'vector3');
19958 this.addProperty(
'in', [0.5, 0.5, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19959 this.addInput(
'scale',
'float');
19960 this.addProperty(
'scale', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
19961 this.addInput(
'normal',
'vector3');
19962 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
19963 this.addInput(
'tangent',
'vector3');
19964 this.addProperty(
'tangent', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Tworld"});
19965 this.addInput(
'bitangent',
'vector3');
19966 this.addProperty(
'bitangent', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Bworld"});
19967 this.addOutput(
'out',
'vector3');
19968 this.title =
'normalmap_vector3';
19969 this.desc =
"MaterialX:mtlx/math/normalmap_float";
19970 this.onNodeCreated =
function() {
19973 this.onRemoved =
function() {
19976 this.onPropertyChanged =
function(name, value, prev_value) {
19977 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
19979 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
19980 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
19982 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
19983 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
19985 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
19986 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
19988 this.bgcolor =
'#111';
19989 this.color =
'#222';
19990 this.shape = LiteGraph.ROUND_SHAPE;
19991 this.boxcolor =
'#465';
19995mtlx_math_normalmap_float.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/normalmap.html';
20004 this.nodedef_icon =
'';
20006 this.nodedef_type =
'vector3';
20008 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/normalmap.html';
20009 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_normalmap_vector2_out_genglsl.png';
20010 this.nodedef_group =
'math';
20011 this.addInput(
'in',
'vector3');
20012 this.addProperty(
'in', [0.5, 0.5, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20013 this.addInput(
'scale',
'vector2');
20014 this.addProperty(
'scale', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20015 this.addInput(
'normal',
'vector3');
20016 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
20017 this.addInput(
'tangent',
'vector3');
20018 this.addProperty(
'tangent', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Tworld"});
20019 this.addInput(
'bitangent',
'vector3');
20020 this.addProperty(
'bitangent', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Bworld"});
20021 this.addOutput(
'out',
'vector3');
20022 this.title =
'normalmap_vector3';
20023 this.desc =
"MaterialX:mtlx/math/normalmap_vector2";
20024 this.onNodeCreated =
function() {
20027 this.onRemoved =
function() {
20030 this.onPropertyChanged =
function(name, value, prev_value) {
20031 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20033 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20034 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20036 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20037 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20039 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20040 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20042 this.bgcolor =
'#111';
20043 this.color =
'#222';
20044 this.shape = LiteGraph.ROUND_SHAPE;
20045 this.boxcolor =
'#465';
20058 this.nodedef_icon =
'';
20060 this.nodedef_type =
'matrix33';
20062 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transpose.html';
20063 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transpose_matrix33_out_genglsl.png';
20064 this.nodedef_group =
'math';
20065 this.addInput(
'in',
'matrix33');
20066 this.addProperty(
'in', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20067 this.addOutput(
'out',
'matrix33');
20068 this.title =
'transpose_matrix33';
20069 this.desc =
"MaterialX:mtlx/math/transpose_matrix33";
20070 this.onNodeCreated =
function() {
20073 this.onRemoved =
function() {
20076 this.onPropertyChanged =
function(name, value, prev_value) {
20077 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20079 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20080 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20082 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20083 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20085 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20086 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20088 this.bgcolor =
'#111';
20089 this.color =
'#222';
20090 this.shape = LiteGraph.ROUND_SHAPE;
20091 this.boxcolor =
'#333';
20104 this.nodedef_icon =
'';
20106 this.nodedef_type =
'matrix44';
20108 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/transpose.html';
20109 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_transpose_matrix44_out_genglsl.png';
20110 this.nodedef_group =
'math';
20111 this.addInput(
'in',
'matrix44');
20112 this.addProperty(
'in', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20113 this.addOutput(
'out',
'matrix44');
20114 this.title =
'transpose_matrix44';
20115 this.desc =
"MaterialX:mtlx/math/transpose_matrix44";
20116 this.onNodeCreated =
function() {
20119 this.onRemoved =
function() {
20122 this.onPropertyChanged =
function(name, value, prev_value) {
20123 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20125 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20126 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20128 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20129 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20131 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20132 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20134 this.bgcolor =
'#111';
20135 this.color =
'#222';
20136 this.shape = LiteGraph.ROUND_SHAPE;
20137 this.boxcolor =
'#444';
20150 this.nodedef_icon =
'';
20152 this.nodedef_type =
'float';
20154 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/determinant.html';
20155 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_determinant_matrix33_out_genglsl.png';
20156 this.nodedef_group =
'math';
20157 this.addInput(
'in',
'matrix33');
20158 this.addProperty(
'in', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20159 this.addOutput(
'out',
'float');
20160 this.title =
'determinant_float';
20161 this.desc =
"MaterialX:mtlx/math/determinant_matrix33";
20162 this.onNodeCreated =
function() {
20165 this.onRemoved =
function() {
20168 this.onPropertyChanged =
function(name, value, prev_value) {
20169 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20171 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20172 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20174 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20175 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20177 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20178 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20180 this.bgcolor =
'#111';
20181 this.color =
'#222';
20182 this.shape = LiteGraph.ROUND_SHAPE;
20183 this.boxcolor =
'#161';
20196 this.nodedef_icon =
'';
20198 this.nodedef_type =
'float';
20200 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/determinant.html';
20201 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_determinant_matrix44_out_genglsl.png';
20202 this.nodedef_group =
'math';
20203 this.addInput(
'in',
'matrix44');
20204 this.addProperty(
'in', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20205 this.addOutput(
'out',
'float');
20206 this.title =
'determinant_float';
20207 this.desc =
"MaterialX:mtlx/math/determinant_matrix44";
20208 this.onNodeCreated =
function() {
20211 this.onRemoved =
function() {
20214 this.onPropertyChanged =
function(name, value, prev_value) {
20215 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20217 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20218 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20220 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20221 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20223 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20224 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20226 this.bgcolor =
'#111';
20227 this.color =
'#222';
20228 this.shape = LiteGraph.ROUND_SHAPE;
20229 this.boxcolor =
'#161';
20242 this.nodedef_icon =
'';
20244 this.nodedef_type =
'matrix33';
20246 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invertmatrix.html';
20247 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invertmatrix_matrix33_out_genglsl.png';
20248 this.nodedef_group =
'math';
20249 this.addInput(
'in',
'matrix33');
20250 this.addProperty(
'in', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20251 this.addOutput(
'out',
'matrix33');
20252 this.title =
'invertmatrix_matrix33';
20253 this.desc =
"MaterialX:mtlx/math/invertmatrix_matrix33";
20254 this.onNodeCreated =
function() {
20257 this.onRemoved =
function() {
20260 this.onPropertyChanged =
function(name, value, prev_value) {
20261 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20263 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20264 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20266 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20267 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20269 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20270 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20272 this.bgcolor =
'#111';
20273 this.color =
'#222';
20274 this.shape = LiteGraph.ROUND_SHAPE;
20275 this.boxcolor =
'#333';
20288 this.nodedef_icon =
'';
20290 this.nodedef_type =
'matrix44';
20292 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/invertmatrix.html';
20293 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_invertmatrix_matrix44_out_genglsl.png';
20294 this.nodedef_group =
'math';
20295 this.addInput(
'in',
'matrix44');
20296 this.addProperty(
'in', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20297 this.addOutput(
'out',
'matrix44');
20298 this.title =
'invertmatrix_matrix44';
20299 this.desc =
"MaterialX:mtlx/math/invertmatrix_matrix44";
20300 this.onNodeCreated =
function() {
20303 this.onRemoved =
function() {
20306 this.onPropertyChanged =
function(name, value, prev_value) {
20307 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20309 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20310 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20312 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20313 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20315 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20316 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20318 this.bgcolor =
'#111';
20319 this.color =
'#222';
20320 this.shape = LiteGraph.ROUND_SHAPE;
20321 this.boxcolor =
'#444';
20334 this.nodedef_icon =
'';
20336 this.nodedef_type =
'vector2';
20338 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/rotate2d.html';
20339 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_rotate2d_vector2_out_genglsl.png';
20340 this.nodedef_group =
'math';
20341 this.addInput(
'in',
'vector2');
20342 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20343 this.addInput(
'amount',
'float');
20344 this.addProperty(
'amount', 0.0,
'float',{
"colorspace":
"",
"unit":
"degree",
"unittype":
"angle",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20345 this.addOutput(
'out',
'vector2');
20346 this.title =
'rotate2d_vector2';
20347 this.desc =
"MaterialX:mtlx/math/rotate2d_vector2";
20348 this.onNodeCreated =
function() {
20351 this.onRemoved =
function() {
20354 this.onPropertyChanged =
function(name, value, prev_value) {
20355 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20357 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20358 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20360 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20361 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20363 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20364 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20366 this.bgcolor =
'#111';
20367 this.color =
'#222';
20368 this.shape = LiteGraph.ROUND_SHAPE;
20369 this.boxcolor =
'#265';
20382 this.nodedef_icon =
'';
20384 this.nodedef_type =
'vector3';
20386 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/rotate3d.html';
20387 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_rotate3d_vector3_out_genglsl.png';
20388 this.nodedef_group =
'math';
20389 this.addInput(
'in',
'vector3');
20390 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20391 this.addInput(
'amount',
'float');
20392 this.addProperty(
'amount', 0.0,
'float',{
"colorspace":
"",
"unit":
"degree",
"unittype":
"angle",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20393 this.addInput(
'axis',
'vector3');
20394 this.addProperty(
'axis', [0.0, 1.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20395 this.addOutput(
'out',
'vector3');
20396 this.title =
'rotate3d_vector3';
20397 this.desc =
"MaterialX:mtlx/math/rotate3d_vector3";
20398 this.onNodeCreated =
function() {
20401 this.onRemoved =
function() {
20404 this.onPropertyChanged =
function(name, value, prev_value) {
20405 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20407 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20408 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20410 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20411 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20413 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20414 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20416 this.bgcolor =
'#111';
20417 this.color =
'#222';
20418 this.shape = LiteGraph.ROUND_SHAPE;
20419 this.boxcolor =
'#465';
20432 this.nodedef_icon =
'';
20434 this.nodedef_type =
'vector2';
20436 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/place2d.html';
20437 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_place2d_vector2_out_genglsl.png';
20438 this.nodedef_group =
'math';
20439 this.addInput(
'texcoord',
'vector2');
20440 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20441 this.addInput(
'pivot',
'vector2');
20442 this.addProperty(
'pivot', [0.0,0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20443 this.addInput(
'scale',
'vector2');
20444 this.addProperty(
'scale', [1.0,1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20445 this.addInput(
'rotate',
'float');
20446 this.addProperty(
'rotate', 0.0,
'float',{
"colorspace":
"",
"unit":
"degree",
"unittype":
"angle",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20447 this.addInput(
'offset',
'vector2');
20448 this.addProperty(
'offset', [0.0,0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20449 this.addInput(
'operationorder',
'integer');
20450 this.addProperty(
'operationorder', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"SRT",
" TRS"],
"enumvalues":[
"0",
" 1"]});
20451 this.addOutput(
'out',
'vector2');
20452 this.title =
'place2d_vector2';
20453 this.desc =
"MaterialX:mtlx/math/place2d_vector2";
20454 this.onNodeCreated =
function() {
20457 this.onRemoved =
function() {
20460 this.onPropertyChanged =
function(name, value, prev_value) {
20461 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20463 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20464 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20466 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20467 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20469 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20470 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20472 this.bgcolor =
'#111';
20473 this.color =
'#222';
20474 this.shape = LiteGraph.ROUND_SHAPE;
20475 this.boxcolor =
'#265';
20488 this.nodedef_icon =
'';
20490 this.nodedef_type =
'float';
20492 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/trianglewave.html';
20493 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_trianglewave_float_out_genglsl.png';
20494 this.nodedef_group =
'math';
20495 this.addInput(
'in',
'float');
20496 this.addProperty(
'in', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20497 this.addOutput(
'out',
'float');
20498 this.title =
'trianglewave_float';
20499 this.desc =
"MaterialX:mtlx/math/trianglewave_float";
20500 this.onNodeCreated =
function() {
20503 this.onRemoved =
function() {
20506 this.onPropertyChanged =
function(name, value, prev_value) {
20507 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20509 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20510 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20512 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20513 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20515 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20516 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20518 this.bgcolor =
'#111';
20519 this.color =
'#222';
20520 this.shape = LiteGraph.ROUND_SHAPE;
20521 this.boxcolor =
'#161';
20534 this.nodedef_icon =
'';
20536 this.nodedef_type =
'vector3';
20538 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/reflect.html';
20539 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_reflect_vector3_out_genglsl.png';
20540 this.nodedef_group =
'math';
20541 this.addInput(
'in',
'vector3');
20542 this.addProperty(
'in', [1.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20543 this.addInput(
'normal',
'vector3');
20544 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
20545 this.addOutput(
'out',
'vector3');
20546 this.title =
'reflect_vector3';
20547 this.desc =
"MaterialX:mtlx/math/reflect_vector3";
20548 this.onNodeCreated =
function() {
20551 this.onRemoved =
function() {
20554 this.onPropertyChanged =
function(name, value, prev_value) {
20555 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20557 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20558 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20560 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20561 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20563 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20564 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20566 this.bgcolor =
'#111';
20567 this.color =
'#222';
20568 this.shape = LiteGraph.ROUND_SHAPE;
20569 this.boxcolor =
'#465';
20582 this.nodedef_icon =
'';
20584 this.nodedef_type =
'vector3';
20586 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/refract.html';
20587 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_refract_vector3_out_genglsl.png';
20588 this.nodedef_group =
'math';
20589 this.addInput(
'in',
'vector3');
20590 this.addProperty(
'in', [1.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20591 this.addInput(
'normal',
'vector3');
20592 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
20593 this.addInput(
'ior',
'float');
20594 this.addProperty(
'ior', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20595 this.addOutput(
'out',
'vector3');
20596 this.title =
'refract_vector3';
20597 this.desc =
"MaterialX:mtlx/math/refract_vector3";
20598 this.onNodeCreated =
function() {
20601 this.onRemoved =
function() {
20604 this.onPropertyChanged =
function(name, value, prev_value) {
20605 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20607 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20608 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20610 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20611 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20613 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20614 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20616 this.bgcolor =
'#111';
20617 this.color =
'#222';
20618 this.shape = LiteGraph.ROUND_SHAPE;
20619 this.boxcolor =
'#465';
20632 this.nodedef_icon =
'';
20634 this.nodedef_type =
'float';
20636 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
20637 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_float_out_genglsl.png';
20638 this.nodedef_group =
'adjustment';
20639 this.addInput(
'in',
'float');
20640 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20641 this.addInput(
'inlow',
'float');
20642 this.addProperty(
'inlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20643 this.addInput(
'inhigh',
'float');
20644 this.addProperty(
'inhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20645 this.addInput(
'outlow',
'float');
20646 this.addProperty(
'outlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20647 this.addInput(
'outhigh',
'float');
20648 this.addProperty(
'outhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20649 this.addOutput(
'out',
'float');
20650 this.title =
'remap_float';
20651 this.desc =
"MaterialX:mtlx/adjustment/remap_float";
20652 this.onNodeCreated =
function() {
20655 this.onRemoved =
function() {
20658 this.onPropertyChanged =
function(name, value, prev_value) {
20659 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20661 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20662 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20664 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20665 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20667 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20668 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20670 this.bgcolor =
'#111';
20671 this.color =
'#222';
20672 this.shape = LiteGraph.ROUND_SHAPE;
20673 this.boxcolor =
'#161';
20686 this.nodedef_icon =
'';
20688 this.nodedef_type =
'color3';
20690 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
20691 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_color3_out_genglsl.png';
20692 this.nodedef_group =
'adjustment';
20693 this.addInput(
'in',
'color3');
20694 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20695 this.addInput(
'inlow',
'color3');
20696 this.addProperty(
'inlow', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20697 this.addInput(
'inhigh',
'color3');
20698 this.addProperty(
'inhigh', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20699 this.addInput(
'outlow',
'color3');
20700 this.addProperty(
'outlow', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20701 this.addInput(
'outhigh',
'color3');
20702 this.addProperty(
'outhigh', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20703 this.addOutput(
'out',
'color3');
20704 this.title =
'remap_color3';
20705 this.desc =
"MaterialX:mtlx/adjustment/remap_color3";
20706 this.onNodeCreated =
function() {
20709 this.onRemoved =
function() {
20712 this.onPropertyChanged =
function(name, value, prev_value) {
20713 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20715 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20716 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20718 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20719 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20721 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20722 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20724 this.bgcolor =
'#111';
20725 this.color =
'#222';
20726 this.shape = LiteGraph.ROUND_SHAPE;
20727 this.boxcolor =
'#37A';
20740 this.nodedef_icon =
'';
20742 this.nodedef_type =
'color4';
20744 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
20745 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_color4_out_genglsl.png';
20746 this.nodedef_group =
'adjustment';
20747 this.addInput(
'in',
'color4');
20748 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20749 this.addInput(
'inlow',
'color4');
20750 this.addProperty(
'inlow', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20751 this.addInput(
'inhigh',
'color4');
20752 this.addProperty(
'inhigh', [1.0, 1.0, 1.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20753 this.addInput(
'outlow',
'color4');
20754 this.addProperty(
'outlow', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20755 this.addInput(
'outhigh',
'color4');
20756 this.addProperty(
'outhigh', [1.0, 1.0, 1.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20757 this.addOutput(
'out',
'color4');
20758 this.title =
'remap_color4';
20759 this.desc =
"MaterialX:mtlx/adjustment/remap_color4";
20760 this.onNodeCreated =
function() {
20763 this.onRemoved =
function() {
20766 this.onPropertyChanged =
function(name, value, prev_value) {
20767 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20769 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20770 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20772 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20773 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20775 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20776 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20778 this.bgcolor =
'#111';
20779 this.color =
'#222';
20780 this.shape = LiteGraph.ROUND_SHAPE;
20781 this.boxcolor =
'#69A';
20794 this.nodedef_icon =
'';
20796 this.nodedef_type =
'vector2';
20798 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
20799 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_vector2_out_genglsl.png';
20800 this.nodedef_group =
'adjustment';
20801 this.addInput(
'in',
'vector2');
20802 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20803 this.addInput(
'inlow',
'vector2');
20804 this.addProperty(
'inlow', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20805 this.addInput(
'inhigh',
'vector2');
20806 this.addProperty(
'inhigh', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20807 this.addInput(
'outlow',
'vector2');
20808 this.addProperty(
'outlow', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20809 this.addInput(
'outhigh',
'vector2');
20810 this.addProperty(
'outhigh', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20811 this.addOutput(
'out',
'vector2');
20812 this.title =
'remap_vector2';
20813 this.desc =
"MaterialX:mtlx/adjustment/remap_vector2";
20814 this.onNodeCreated =
function() {
20817 this.onRemoved =
function() {
20820 this.onPropertyChanged =
function(name, value, prev_value) {
20821 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20823 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20824 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20826 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20827 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20829 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20830 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20832 this.bgcolor =
'#111';
20833 this.color =
'#222';
20834 this.shape = LiteGraph.ROUND_SHAPE;
20835 this.boxcolor =
'#265';
20848 this.nodedef_icon =
'';
20850 this.nodedef_type =
'vector3';
20852 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
20853 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_vector3_out_genglsl.png';
20854 this.nodedef_group =
'adjustment';
20855 this.addInput(
'in',
'vector3');
20856 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20857 this.addInput(
'inlow',
'vector3');
20858 this.addProperty(
'inlow', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20859 this.addInput(
'inhigh',
'vector3');
20860 this.addProperty(
'inhigh', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20861 this.addInput(
'outlow',
'vector3');
20862 this.addProperty(
'outlow', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20863 this.addInput(
'outhigh',
'vector3');
20864 this.addProperty(
'outhigh', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20865 this.addOutput(
'out',
'vector3');
20866 this.title =
'remap_vector3';
20867 this.desc =
"MaterialX:mtlx/adjustment/remap_vector3";
20868 this.onNodeCreated =
function() {
20871 this.onRemoved =
function() {
20874 this.onPropertyChanged =
function(name, value, prev_value) {
20875 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20877 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20878 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20880 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20881 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20883 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20884 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20886 this.bgcolor =
'#111';
20887 this.color =
'#222';
20888 this.shape = LiteGraph.ROUND_SHAPE;
20889 this.boxcolor =
'#465';
20902 this.nodedef_icon =
'';
20904 this.nodedef_type =
'vector4';
20906 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
20907 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_vector4_out_genglsl.png';
20908 this.nodedef_group =
'adjustment';
20909 this.addInput(
'in',
'vector4');
20910 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20911 this.addInput(
'inlow',
'vector4');
20912 this.addProperty(
'inlow', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20913 this.addInput(
'inhigh',
'vector4');
20914 this.addProperty(
'inhigh', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20915 this.addInput(
'outlow',
'vector4');
20916 this.addProperty(
'outlow', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20917 this.addInput(
'outhigh',
'vector4');
20918 this.addProperty(
'outhigh', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20919 this.addOutput(
'out',
'vector4');
20920 this.title =
'remap_vector4';
20921 this.desc =
"MaterialX:mtlx/adjustment/remap_vector4";
20922 this.onNodeCreated =
function() {
20925 this.onRemoved =
function() {
20928 this.onPropertyChanged =
function(name, value, prev_value) {
20929 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20931 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20932 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20934 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20935 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20937 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20938 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20940 this.bgcolor =
'#111';
20941 this.color =
'#222';
20942 this.shape = LiteGraph.ROUND_SHAPE;
20943 this.boxcolor =
'#275';
20956 this.nodedef_icon =
'';
20958 this.nodedef_type =
'color3';
20960 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
20961 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_color3FA_out_genglsl.png';
20962 this.nodedef_group =
'adjustment';
20963 this.addInput(
'in',
'color3');
20964 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20965 this.addInput(
'inlow',
'float');
20966 this.addProperty(
'inlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20967 this.addInput(
'inhigh',
'float');
20968 this.addProperty(
'inhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20969 this.addInput(
'outlow',
'float');
20970 this.addProperty(
'outlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20971 this.addInput(
'outhigh',
'float');
20972 this.addProperty(
'outhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
20973 this.addOutput(
'out',
'color3');
20974 this.title =
'remap_color3';
20975 this.desc =
"MaterialX:mtlx/adjustment/remap_color3FA";
20976 this.onNodeCreated =
function() {
20979 this.onRemoved =
function() {
20982 this.onPropertyChanged =
function(name, value, prev_value) {
20983 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
20985 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
20986 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
20988 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
20989 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
20991 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
20992 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
20994 this.bgcolor =
'#111';
20995 this.color =
'#222';
20996 this.shape = LiteGraph.ROUND_SHAPE;
20997 this.boxcolor =
'#37A';
21010 this.nodedef_icon =
'';
21012 this.nodedef_type =
'color4';
21014 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
21015 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_color4FA_out_genglsl.png';
21016 this.nodedef_group =
'adjustment';
21017 this.addInput(
'in',
'color4');
21018 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21019 this.addInput(
'inlow',
'float');
21020 this.addProperty(
'inlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21021 this.addInput(
'inhigh',
'float');
21022 this.addProperty(
'inhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21023 this.addInput(
'outlow',
'float');
21024 this.addProperty(
'outlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21025 this.addInput(
'outhigh',
'float');
21026 this.addProperty(
'outhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21027 this.addOutput(
'out',
'color4');
21028 this.title =
'remap_color4';
21029 this.desc =
"MaterialX:mtlx/adjustment/remap_color4FA";
21030 this.onNodeCreated =
function() {
21033 this.onRemoved =
function() {
21036 this.onPropertyChanged =
function(name, value, prev_value) {
21037 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21039 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21040 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21042 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21043 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21045 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21046 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21048 this.bgcolor =
'#111';
21049 this.color =
'#222';
21050 this.shape = LiteGraph.ROUND_SHAPE;
21051 this.boxcolor =
'#69A';
21064 this.nodedef_icon =
'';
21066 this.nodedef_type =
'vector2';
21068 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
21069 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_vector2FA_out_genglsl.png';
21070 this.nodedef_group =
'adjustment';
21071 this.addInput(
'in',
'vector2');
21072 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21073 this.addInput(
'inlow',
'float');
21074 this.addProperty(
'inlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21075 this.addInput(
'inhigh',
'float');
21076 this.addProperty(
'inhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21077 this.addInput(
'outlow',
'float');
21078 this.addProperty(
'outlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21079 this.addInput(
'outhigh',
'float');
21080 this.addProperty(
'outhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21081 this.addOutput(
'out',
'vector2');
21082 this.title =
'remap_vector2';
21083 this.desc =
"MaterialX:mtlx/adjustment/remap_vector2FA";
21084 this.onNodeCreated =
function() {
21087 this.onRemoved =
function() {
21090 this.onPropertyChanged =
function(name, value, prev_value) {
21091 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21093 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21094 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21096 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21097 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21099 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21100 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21102 this.bgcolor =
'#111';
21103 this.color =
'#222';
21104 this.shape = LiteGraph.ROUND_SHAPE;
21105 this.boxcolor =
'#265';
21118 this.nodedef_icon =
'';
21120 this.nodedef_type =
'vector3';
21122 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
21123 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_vector3FA_out_genglsl.png';
21124 this.nodedef_group =
'adjustment';
21125 this.addInput(
'in',
'vector3');
21126 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21127 this.addInput(
'inlow',
'float');
21128 this.addProperty(
'inlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21129 this.addInput(
'inhigh',
'float');
21130 this.addProperty(
'inhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21131 this.addInput(
'outlow',
'float');
21132 this.addProperty(
'outlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21133 this.addInput(
'outhigh',
'float');
21134 this.addProperty(
'outhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21135 this.addOutput(
'out',
'vector3');
21136 this.title =
'remap_vector3';
21137 this.desc =
"MaterialX:mtlx/adjustment/remap_vector3FA";
21138 this.onNodeCreated =
function() {
21141 this.onRemoved =
function() {
21144 this.onPropertyChanged =
function(name, value, prev_value) {
21145 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21147 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21148 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21150 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21151 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21153 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21154 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21156 this.bgcolor =
'#111';
21157 this.color =
'#222';
21158 this.shape = LiteGraph.ROUND_SHAPE;
21159 this.boxcolor =
'#465';
21172 this.nodedef_icon =
'';
21174 this.nodedef_type =
'vector4';
21176 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/remap.html';
21177 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_remap_vector4FA_out_genglsl.png';
21178 this.nodedef_group =
'adjustment';
21179 this.addInput(
'in',
'vector4');
21180 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21181 this.addInput(
'inlow',
'float');
21182 this.addProperty(
'inlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21183 this.addInput(
'inhigh',
'float');
21184 this.addProperty(
'inhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21185 this.addInput(
'outlow',
'float');
21186 this.addProperty(
'outlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21187 this.addInput(
'outhigh',
'float');
21188 this.addProperty(
'outhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21189 this.addOutput(
'out',
'vector4');
21190 this.title =
'remap_vector4';
21191 this.desc =
"MaterialX:mtlx/adjustment/remap_vector4FA";
21192 this.onNodeCreated =
function() {
21195 this.onRemoved =
function() {
21198 this.onPropertyChanged =
function(name, value, prev_value) {
21199 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21201 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21202 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21204 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21205 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21207 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21208 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21210 this.bgcolor =
'#111';
21211 this.color =
'#222';
21212 this.shape = LiteGraph.ROUND_SHAPE;
21213 this.boxcolor =
'#275';
21226 this.nodedef_icon =
'';
21228 this.nodedef_type =
'float';
21230 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21231 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_float_out_genglsl.png';
21232 this.nodedef_group =
'adjustment';
21233 this.addInput(
'in',
'float');
21234 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21235 this.addInput(
'low',
'float');
21236 this.addProperty(
'low', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21237 this.addInput(
'high',
'float');
21238 this.addProperty(
'high', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21239 this.addOutput(
'out',
'float');
21240 this.title =
'smoothstep_float';
21241 this.desc =
"MaterialX:mtlx/adjustment/smoothstep_float";
21242 this.onNodeCreated =
function() {
21245 this.onRemoved =
function() {
21248 this.onPropertyChanged =
function(name, value, prev_value) {
21249 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21251 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21252 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21254 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21255 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21257 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21258 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21260 this.bgcolor =
'#111';
21261 this.color =
'#222';
21262 this.shape = LiteGraph.ROUND_SHAPE;
21263 this.boxcolor =
'#161';
21276 this.nodedef_icon =
'';
21278 this.nodedef_type =
'color3';
21280 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21281 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_color3_out_genglsl.png';
21282 this.nodedef_group =
'adjustment';
21283 this.addInput(
'in',
'color3');
21284 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21285 this.addInput(
'low',
'color3');
21286 this.addProperty(
'low', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21287 this.addInput(
'high',
'color3');
21288 this.addProperty(
'high', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21289 this.addOutput(
'out',
'color3');
21290 this.title =
'smoothstep_color3';
21291 this.desc =
"MaterialX:mtlx/adjustment/smoothstep_color3";
21292 this.onNodeCreated =
function() {
21295 this.onRemoved =
function() {
21298 this.onPropertyChanged =
function(name, value, prev_value) {
21299 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21301 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21302 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21304 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21305 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21307 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21308 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21310 this.bgcolor =
'#111';
21311 this.color =
'#222';
21312 this.shape = LiteGraph.ROUND_SHAPE;
21313 this.boxcolor =
'#37A';
21326 this.nodedef_icon =
'';
21328 this.nodedef_type =
'color4';
21330 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21331 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_color4_out_genglsl.png';
21332 this.nodedef_group =
'adjustment';
21333 this.addInput(
'in',
'color4');
21334 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21335 this.addInput(
'low',
'color4');
21336 this.addProperty(
'low', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21337 this.addInput(
'high',
'color4');
21338 this.addProperty(
'high', [1.0, 1.0, 1.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21339 this.addOutput(
'out',
'color4');
21340 this.title =
'smoothstep_color4';
21341 this.desc =
"MaterialX:mtlx/adjustment/smoothstep_color4";
21342 this.onNodeCreated =
function() {
21345 this.onRemoved =
function() {
21348 this.onPropertyChanged =
function(name, value, prev_value) {
21349 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21351 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21352 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21354 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21355 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21357 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21358 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21360 this.bgcolor =
'#111';
21361 this.color =
'#222';
21362 this.shape = LiteGraph.ROUND_SHAPE;
21363 this.boxcolor =
'#69A';
21376 this.nodedef_icon =
'';
21378 this.nodedef_type =
'vector2';
21380 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21381 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_vector2_out_genglsl.png';
21382 this.nodedef_group =
'adjustment';
21383 this.addInput(
'in',
'vector2');
21384 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21385 this.addInput(
'low',
'vector2');
21386 this.addProperty(
'low', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21387 this.addInput(
'high',
'vector2');
21388 this.addProperty(
'high', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21389 this.addOutput(
'out',
'vector2');
21390 this.title =
'smoothstep_vector2';
21391 this.desc =
"MaterialX:mtlx/adjustment/smoothstep_vector2";
21392 this.onNodeCreated =
function() {
21395 this.onRemoved =
function() {
21398 this.onPropertyChanged =
function(name, value, prev_value) {
21399 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21401 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21402 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21404 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21405 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21407 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21408 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21410 this.bgcolor =
'#111';
21411 this.color =
'#222';
21412 this.shape = LiteGraph.ROUND_SHAPE;
21413 this.boxcolor =
'#265';
21426 this.nodedef_icon =
'';
21428 this.nodedef_type =
'vector3';
21430 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21431 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_vector3_out_genglsl.png';
21432 this.nodedef_group =
'adjustment';
21433 this.addInput(
'in',
'vector3');
21434 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21435 this.addInput(
'low',
'vector3');
21436 this.addProperty(
'low', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21437 this.addInput(
'high',
'vector3');
21438 this.addProperty(
'high', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21439 this.addOutput(
'out',
'vector3');
21440 this.title =
'smoothstep_vector3';
21441 this.desc =
"MaterialX:mtlx/adjustment/smoothstep_vector3";
21442 this.onNodeCreated =
function() {
21445 this.onRemoved =
function() {
21448 this.onPropertyChanged =
function(name, value, prev_value) {
21449 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21451 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21452 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21454 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21455 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21457 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21458 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21460 this.bgcolor =
'#111';
21461 this.color =
'#222';
21462 this.shape = LiteGraph.ROUND_SHAPE;
21463 this.boxcolor =
'#465';
21476 this.nodedef_icon =
'';
21478 this.nodedef_type =
'vector4';
21480 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21481 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_vector4_out_genglsl.png';
21482 this.nodedef_group =
'adjustment';
21483 this.addInput(
'in',
'vector4');
21484 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21485 this.addInput(
'low',
'vector4');
21486 this.addProperty(
'low', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21487 this.addInput(
'high',
'vector4');
21488 this.addProperty(
'high', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21489 this.addOutput(
'out',
'vector4');
21490 this.title =
'smoothstep_vector4';
21491 this.desc =
"MaterialX:mtlx/adjustment/smoothstep_vector4";
21492 this.onNodeCreated =
function() {
21495 this.onRemoved =
function() {
21498 this.onPropertyChanged =
function(name, value, prev_value) {
21499 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21501 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21502 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21504 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21505 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21507 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21508 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21510 this.bgcolor =
'#111';
21511 this.color =
'#222';
21512 this.shape = LiteGraph.ROUND_SHAPE;
21513 this.boxcolor =
'#275';
21526 this.nodedef_icon =
'';
21528 this.nodedef_type =
'color3';
21530 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21531 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_color3FA_out_genglsl.png';
21532 this.nodedef_group =
'adjustment';
21533 this.addInput(
'in',
'color3');
21534 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21535 this.addInput(
'low',
'float');
21536 this.addProperty(
'low', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21537 this.addInput(
'high',
'float');
21538 this.addProperty(
'high', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21539 this.addOutput(
'out',
'color3');
21540 this.title =
'smoothstep_color3';
21541 this.desc =
"MaterialX:mtlx/adjustment/smoothstep_color3FA";
21542 this.onNodeCreated =
function() {
21545 this.onRemoved =
function() {
21548 this.onPropertyChanged =
function(name, value, prev_value) {
21549 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21551 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21552 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21554 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21555 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21557 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21558 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21560 this.bgcolor =
'#111';
21561 this.color =
'#222';
21562 this.shape = LiteGraph.ROUND_SHAPE;
21563 this.boxcolor =
'#37A';
21576 this.nodedef_icon =
'';
21578 this.nodedef_type =
'color4';
21580 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21581 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_color4FA_out_genglsl.png';
21582 this.nodedef_group =
'adjustment';
21583 this.addInput(
'in',
'color4');
21584 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21585 this.addInput(
'low',
'float');
21586 this.addProperty(
'low', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21587 this.addInput(
'high',
'float');
21588 this.addProperty(
'high', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21589 this.addOutput(
'out',
'color4');
21590 this.title =
'smoothstep_color4';
21591 this.desc =
"MaterialX:mtlx/adjustment/smoothstep_color4FA";
21592 this.onNodeCreated =
function() {
21595 this.onRemoved =
function() {
21598 this.onPropertyChanged =
function(name, value, prev_value) {
21599 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21601 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21602 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21604 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21605 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21607 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21608 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21610 this.bgcolor =
'#111';
21611 this.color =
'#222';
21612 this.shape = LiteGraph.ROUND_SHAPE;
21613 this.boxcolor =
'#69A';
21626 this.nodedef_icon =
'';
21628 this.nodedef_type =
'vector2';
21630 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21631 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_vector2FA_out_genglsl.png';
21632 this.nodedef_group =
'adjustment';
21633 this.addInput(
'in',
'vector2');
21634 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21635 this.addInput(
'low',
'float');
21636 this.addProperty(
'low', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21637 this.addInput(
'high',
'float');
21638 this.addProperty(
'high', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21639 this.addOutput(
'out',
'vector2');
21640 this.title =
'smoothstep_vector2';
21641 this.desc =
"MaterialX:mtlx/adjustment/smoothstep_vector2FA";
21642 this.onNodeCreated =
function() {
21645 this.onRemoved =
function() {
21648 this.onPropertyChanged =
function(name, value, prev_value) {
21649 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21651 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21652 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21654 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21655 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21657 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21658 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21660 this.bgcolor =
'#111';
21661 this.color =
'#222';
21662 this.shape = LiteGraph.ROUND_SHAPE;
21663 this.boxcolor =
'#265';
21676 this.nodedef_icon =
'';
21678 this.nodedef_type =
'vector3';
21680 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21681 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_vector3FA_out_genglsl.png';
21682 this.nodedef_group =
'adjustment';
21683 this.addInput(
'in',
'vector3');
21684 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21685 this.addInput(
'low',
'float');
21686 this.addProperty(
'low', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21687 this.addInput(
'high',
'float');
21688 this.addProperty(
'high', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21689 this.addOutput(
'out',
'vector3');
21690 this.title =
'smoothstep_vector3';
21691 this.desc =
"MaterialX:mtlx/adjustment/smoothstep_vector3FA";
21692 this.onNodeCreated =
function() {
21695 this.onRemoved =
function() {
21698 this.onPropertyChanged =
function(name, value, prev_value) {
21699 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21701 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21702 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21704 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21705 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21707 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21708 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21710 this.bgcolor =
'#111';
21711 this.color =
'#222';
21712 this.shape = LiteGraph.ROUND_SHAPE;
21713 this.boxcolor =
'#465';
21726 this.nodedef_icon =
'';
21728 this.nodedef_type =
'vector4';
21730 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/smoothstep.html';
21731 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_smoothstep_vector4FA_out_genglsl.png';
21732 this.nodedef_group =
'adjustment';
21733 this.addInput(
'in',
'vector4');
21734 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21735 this.addInput(
'low',
'float');
21736 this.addProperty(
'low', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21737 this.addInput(
'high',
'float');
21738 this.addProperty(
'high', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21739 this.addOutput(
'out',
'vector4');
21740 this.title =
'smoothstep_vector4';
21741 this.desc =
"MaterialX:mtlx/adjustment/smoothstep_vector4FA";
21742 this.onNodeCreated =
function() {
21745 this.onRemoved =
function() {
21748 this.onPropertyChanged =
function(name, value, prev_value) {
21749 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21751 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21752 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21754 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21755 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21757 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21758 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21760 this.bgcolor =
'#111';
21761 this.color =
'#222';
21762 this.shape = LiteGraph.ROUND_SHAPE;
21763 this.boxcolor =
'#275';
21776 this.nodedef_icon =
'';
21778 this.nodedef_type =
'float';
21780 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/curveadjust.html';
21781 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_curveadjust_float_out_genglsl.png';
21782 this.nodedef_group =
'adjustment';
21783 this.addInput(
'in',
'float');
21784 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21785 this.addInput(
'knots',
'vector2array');
21786 this.addProperty(
'knots',
'',
'vector2array',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21787 this.addOutput(
'out',
'float');
21788 this.title =
'curveadjust_float';
21789 this.desc =
"MaterialX:mtlx/adjustment/curveadjust_float";
21790 this.onNodeCreated =
function() {
21793 this.onRemoved =
function() {
21796 this.onPropertyChanged =
function(name, value, prev_value) {
21797 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21799 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21800 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21802 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21803 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21805 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21806 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21808 this.bgcolor =
'#111';
21809 this.color =
'#222';
21810 this.shape = LiteGraph.ROUND_SHAPE;
21811 this.boxcolor =
'#161';
21824 this.nodedef_icon =
'';
21826 this.nodedef_type =
'color3';
21828 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/curveadjust.html';
21829 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_curveadjust_color3_out_genglsl.png';
21830 this.nodedef_group =
'adjustment';
21831 this.addInput(
'in',
'color3');
21832 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21833 this.addInput(
'knots',
'vector2array');
21834 this.addProperty(
'knots',
'',
'vector2array',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21835 this.addOutput(
'out',
'color3');
21836 this.title =
'curveadjust_color3';
21837 this.desc =
"MaterialX:mtlx/adjustment/curveadjust_color3";
21838 this.onNodeCreated =
function() {
21841 this.onRemoved =
function() {
21844 this.onPropertyChanged =
function(name, value, prev_value) {
21845 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21847 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21848 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21850 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21851 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21853 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21854 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21856 this.bgcolor =
'#111';
21857 this.color =
'#222';
21858 this.shape = LiteGraph.ROUND_SHAPE;
21859 this.boxcolor =
'#37A';
21872 this.nodedef_icon =
'';
21874 this.nodedef_type =
'color4';
21876 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/curveadjust.html';
21877 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_curveadjust_color4_out_genglsl.png';
21878 this.nodedef_group =
'adjustment';
21879 this.addInput(
'in',
'color4');
21880 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21881 this.addInput(
'knots',
'vector2array');
21882 this.addProperty(
'knots',
'',
'vector2array',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21883 this.addOutput(
'out',
'color4');
21884 this.title =
'curveadjust_color4';
21885 this.desc =
"MaterialX:mtlx/adjustment/curveadjust_color4";
21886 this.onNodeCreated =
function() {
21889 this.onRemoved =
function() {
21892 this.onPropertyChanged =
function(name, value, prev_value) {
21893 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21895 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21896 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21898 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21899 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21901 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21902 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21904 this.bgcolor =
'#111';
21905 this.color =
'#222';
21906 this.shape = LiteGraph.ROUND_SHAPE;
21907 this.boxcolor =
'#69A';
21920 this.nodedef_icon =
'';
21922 this.nodedef_type =
'vector2';
21924 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/curveadjust.html';
21925 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_curveadjust_vector2_out_genglsl.png';
21926 this.nodedef_group =
'adjustment';
21927 this.addInput(
'in',
'vector2');
21928 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21929 this.addInput(
'knots',
'vector2array');
21930 this.addProperty(
'knots',
'',
'vector2array',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21931 this.addOutput(
'out',
'vector2');
21932 this.title =
'curveadjust_vector2';
21933 this.desc =
"MaterialX:mtlx/adjustment/curveadjust_vector2";
21934 this.onNodeCreated =
function() {
21937 this.onRemoved =
function() {
21940 this.onPropertyChanged =
function(name, value, prev_value) {
21941 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21943 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21944 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21946 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21947 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21949 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21950 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
21952 this.bgcolor =
'#111';
21953 this.color =
'#222';
21954 this.shape = LiteGraph.ROUND_SHAPE;
21955 this.boxcolor =
'#265';
21968 this.nodedef_icon =
'';
21970 this.nodedef_type =
'vector3';
21972 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/curveadjust.html';
21973 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_curveadjust_vector3_out_genglsl.png';
21974 this.nodedef_group =
'adjustment';
21975 this.addInput(
'in',
'vector3');
21976 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21977 this.addInput(
'knots',
'vector2array');
21978 this.addProperty(
'knots',
'',
'vector2array',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
21979 this.addOutput(
'out',
'vector3');
21980 this.title =
'curveadjust_vector3';
21981 this.desc =
"MaterialX:mtlx/adjustment/curveadjust_vector3";
21982 this.onNodeCreated =
function() {
21985 this.onRemoved =
function() {
21988 this.onPropertyChanged =
function(name, value, prev_value) {
21989 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
21991 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
21992 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
21994 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
21995 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
21997 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
21998 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22000 this.bgcolor =
'#111';
22001 this.color =
'#222';
22002 this.shape = LiteGraph.ROUND_SHAPE;
22003 this.boxcolor =
'#465';
22016 this.nodedef_icon =
'';
22018 this.nodedef_type =
'vector4';
22020 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/curveadjust.html';
22021 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_curveadjust_vector4_out_genglsl.png';
22022 this.nodedef_group =
'adjustment';
22023 this.addInput(
'in',
'vector4');
22024 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22025 this.addInput(
'knots',
'vector2array');
22026 this.addProperty(
'knots',
'',
'vector2array',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22027 this.addOutput(
'out',
'vector4');
22028 this.title =
'curveadjust_vector4';
22029 this.desc =
"MaterialX:mtlx/adjustment/curveadjust_vector4";
22030 this.onNodeCreated =
function() {
22033 this.onRemoved =
function() {
22036 this.onPropertyChanged =
function(name, value, prev_value) {
22037 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22039 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22040 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22042 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22043 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22045 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22046 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22048 this.bgcolor =
'#111';
22049 this.color =
'#222';
22050 this.shape = LiteGraph.ROUND_SHAPE;
22051 this.boxcolor =
'#275';
22064 this.nodedef_icon =
'';
22066 this.nodedef_type =
'color3';
22068 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/luminance.html';
22069 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_luminance_color3_out_genglsl.png';
22070 this.nodedef_group =
'adjustment';
22071 this.addInput(
'in',
'color3');
22072 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22073 this.addInput(
'lumacoeffs',
'color3');
22074 this.addProperty(
'lumacoeffs', [0.2722287, 0.6740818, 0.0536895],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"acescg",
" rec709",
" rec2020",
" rec2100"],
"enumvalues":[
"0.2722287",
"0.6740818",
"0.0536895",
" 0.2126",
"0.7152",
"0.0722",
" 0.2627",
"0.6780",
"0.0593",
" 0.2627",
"0.6780",
"0.0593"]});
22075 this.addOutput(
'out',
'color3');
22076 this.title =
'luminance_color3';
22077 this.desc =
"MaterialX:mtlx/adjustment/luminance_color3";
22078 this.onNodeCreated =
function() {
22081 this.onRemoved =
function() {
22084 this.onPropertyChanged =
function(name, value, prev_value) {
22085 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22087 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22088 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22090 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22091 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22093 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22094 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22096 this.bgcolor =
'#111';
22097 this.color =
'#222';
22098 this.shape = LiteGraph.ROUND_SHAPE;
22099 this.boxcolor =
'#37A';
22112 this.nodedef_icon =
'';
22114 this.nodedef_type =
'color4';
22116 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/luminance.html';
22117 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_luminance_color4_out_genglsl.png';
22118 this.nodedef_group =
'adjustment';
22119 this.addInput(
'in',
'color4');
22120 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22121 this.addInput(
'lumacoeffs',
'color3');
22122 this.addProperty(
'lumacoeffs', [0.2722287, 0.6740818, 0.0536895],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"acescg",
" rec709",
" rec2020",
" rec2100"],
"enumvalues":[
"0.2722287",
"0.6740818",
"0.0536895",
" 0.2126",
"0.7152",
"0.0722",
" 0.2627",
"0.6780",
"0.0593",
" 0.2627",
"0.6780",
"0.0593"]});
22123 this.addOutput(
'out',
'color4');
22124 this.title =
'luminance_color4';
22125 this.desc =
"MaterialX:mtlx/adjustment/luminance_color4";
22126 this.onNodeCreated =
function() {
22129 this.onRemoved =
function() {
22132 this.onPropertyChanged =
function(name, value, prev_value) {
22133 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22135 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22136 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22138 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22139 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22141 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22142 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22144 this.bgcolor =
'#111';
22145 this.color =
'#222';
22146 this.shape = LiteGraph.ROUND_SHAPE;
22147 this.boxcolor =
'#69A';
22160 this.nodedef_icon =
'';
22162 this.nodedef_type =
'color3';
22164 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/rgbtohsv.html';
22165 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_rgbtohsv_color3_out_genglsl.png';
22166 this.nodedef_group =
'adjustment';
22167 this.addInput(
'in',
'color3');
22168 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22169 this.addOutput(
'out',
'color3');
22170 this.title =
'rgbtohsv_color3';
22171 this.desc =
"MaterialX:mtlx/adjustment/rgbtohsv_color3";
22172 this.onNodeCreated =
function() {
22175 this.onRemoved =
function() {
22178 this.onPropertyChanged =
function(name, value, prev_value) {
22179 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22181 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22182 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22184 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22185 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22187 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22188 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22190 this.bgcolor =
'#111';
22191 this.color =
'#222';
22192 this.shape = LiteGraph.ROUND_SHAPE;
22193 this.boxcolor =
'#37A';
22206 this.nodedef_icon =
'';
22208 this.nodedef_type =
'color4';
22210 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/rgbtohsv.html';
22211 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_rgbtohsv_color4_out_genglsl.png';
22212 this.nodedef_group =
'adjustment';
22213 this.addInput(
'in',
'color4');
22214 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22215 this.addOutput(
'out',
'color4');
22216 this.title =
'rgbtohsv_color4';
22217 this.desc =
"MaterialX:mtlx/adjustment/rgbtohsv_color4";
22218 this.onNodeCreated =
function() {
22221 this.onRemoved =
function() {
22224 this.onPropertyChanged =
function(name, value, prev_value) {
22225 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22227 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22228 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22230 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22231 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22233 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22234 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22236 this.bgcolor =
'#111';
22237 this.color =
'#222';
22238 this.shape = LiteGraph.ROUND_SHAPE;
22239 this.boxcolor =
'#69A';
22252 this.nodedef_icon =
'';
22254 this.nodedef_type =
'color3';
22256 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/hsvtorgb.html';
22257 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_hsvtorgb_color3_out_genglsl.png';
22258 this.nodedef_group =
'adjustment';
22259 this.addInput(
'in',
'color3');
22260 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22261 this.addOutput(
'out',
'color3');
22262 this.title =
'hsvtorgb_color3';
22263 this.desc =
"MaterialX:mtlx/adjustment/hsvtorgb_color3";
22264 this.onNodeCreated =
function() {
22267 this.onRemoved =
function() {
22270 this.onPropertyChanged =
function(name, value, prev_value) {
22271 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22273 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22274 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22276 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22277 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22279 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22280 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22282 this.bgcolor =
'#111';
22283 this.color =
'#222';
22284 this.shape = LiteGraph.ROUND_SHAPE;
22285 this.boxcolor =
'#37A';
22298 this.nodedef_icon =
'';
22300 this.nodedef_type =
'color4';
22302 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/hsvtorgb.html';
22303 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_hsvtorgb_color4_out_genglsl.png';
22304 this.nodedef_group =
'adjustment';
22305 this.addInput(
'in',
'color4');
22306 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22307 this.addOutput(
'out',
'color4');
22308 this.title =
'hsvtorgb_color4';
22309 this.desc =
"MaterialX:mtlx/adjustment/hsvtorgb_color4";
22310 this.onNodeCreated =
function() {
22313 this.onRemoved =
function() {
22316 this.onPropertyChanged =
function(name, value, prev_value) {
22317 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22319 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22320 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22322 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22323 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22325 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22326 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22328 this.bgcolor =
'#111';
22329 this.color =
'#222';
22330 this.shape = LiteGraph.ROUND_SHAPE;
22331 this.boxcolor =
'#69A';
22344 this.nodedef_icon =
'';
22346 this.nodedef_type =
'float';
22348 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22349 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_float_out_genglsl.png';
22350 this.nodedef_group =
'adjustment';
22351 this.addInput(
'in',
'float');
22352 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22353 this.addInput(
'amount',
'float');
22354 this.addProperty(
'amount', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22355 this.addInput(
'pivot',
'float');
22356 this.addProperty(
'pivot', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22357 this.addOutput(
'out',
'float');
22358 this.title =
'contrast_float';
22359 this.desc =
"MaterialX:mtlx/adjustment/contrast_float";
22360 this.onNodeCreated =
function() {
22363 this.onRemoved =
function() {
22366 this.onPropertyChanged =
function(name, value, prev_value) {
22367 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22369 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22370 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22372 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22373 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22375 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22376 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22378 this.bgcolor =
'#111';
22379 this.color =
'#222';
22380 this.shape = LiteGraph.ROUND_SHAPE;
22381 this.boxcolor =
'#161';
22394 this.nodedef_icon =
'';
22396 this.nodedef_type =
'color3';
22398 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22399 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_color3_out_genglsl.png';
22400 this.nodedef_group =
'adjustment';
22401 this.addInput(
'in',
'color3');
22402 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22403 this.addInput(
'amount',
'color3');
22404 this.addProperty(
'amount', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22405 this.addInput(
'pivot',
'color3');
22406 this.addProperty(
'pivot', [0.5, 0.5, 0.5],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22407 this.addOutput(
'out',
'color3');
22408 this.title =
'contrast_color3';
22409 this.desc =
"MaterialX:mtlx/adjustment/contrast_color3";
22410 this.onNodeCreated =
function() {
22413 this.onRemoved =
function() {
22416 this.onPropertyChanged =
function(name, value, prev_value) {
22417 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22419 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22420 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22422 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22423 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22425 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22426 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22428 this.bgcolor =
'#111';
22429 this.color =
'#222';
22430 this.shape = LiteGraph.ROUND_SHAPE;
22431 this.boxcolor =
'#37A';
22444 this.nodedef_icon =
'';
22446 this.nodedef_type =
'color4';
22448 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22449 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_color4_out_genglsl.png';
22450 this.nodedef_group =
'adjustment';
22451 this.addInput(
'in',
'color4');
22452 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22453 this.addInput(
'amount',
'color4');
22454 this.addProperty(
'amount', [1.0, 1.0, 1.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22455 this.addInput(
'pivot',
'color4');
22456 this.addProperty(
'pivot', [0.5, 0.5, 0.5, 0.5],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22457 this.addOutput(
'out',
'color4');
22458 this.title =
'contrast_color4';
22459 this.desc =
"MaterialX:mtlx/adjustment/contrast_color4";
22460 this.onNodeCreated =
function() {
22463 this.onRemoved =
function() {
22466 this.onPropertyChanged =
function(name, value, prev_value) {
22467 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22469 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22470 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22472 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22473 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22475 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22476 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22478 this.bgcolor =
'#111';
22479 this.color =
'#222';
22480 this.shape = LiteGraph.ROUND_SHAPE;
22481 this.boxcolor =
'#69A';
22494 this.nodedef_icon =
'';
22496 this.nodedef_type =
'vector2';
22498 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22499 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_vector2_out_genglsl.png';
22500 this.nodedef_group =
'adjustment';
22501 this.addInput(
'in',
'vector2');
22502 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22503 this.addInput(
'amount',
'vector2');
22504 this.addProperty(
'amount', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22505 this.addInput(
'pivot',
'vector2');
22506 this.addProperty(
'pivot', [0.5, 0.5],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22507 this.addOutput(
'out',
'vector2');
22508 this.title =
'contrast_vector2';
22509 this.desc =
"MaterialX:mtlx/adjustment/contrast_vector2";
22510 this.onNodeCreated =
function() {
22513 this.onRemoved =
function() {
22516 this.onPropertyChanged =
function(name, value, prev_value) {
22517 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22519 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22520 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22522 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22523 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22525 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22526 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22528 this.bgcolor =
'#111';
22529 this.color =
'#222';
22530 this.shape = LiteGraph.ROUND_SHAPE;
22531 this.boxcolor =
'#265';
22544 this.nodedef_icon =
'';
22546 this.nodedef_type =
'vector3';
22548 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22549 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_vector3_out_genglsl.png';
22550 this.nodedef_group =
'adjustment';
22551 this.addInput(
'in',
'vector3');
22552 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22553 this.addInput(
'amount',
'vector3');
22554 this.addProperty(
'amount', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22555 this.addInput(
'pivot',
'vector3');
22556 this.addProperty(
'pivot', [0.5, 0.5, 0.5],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22557 this.addOutput(
'out',
'vector3');
22558 this.title =
'contrast_vector3';
22559 this.desc =
"MaterialX:mtlx/adjustment/contrast_vector3";
22560 this.onNodeCreated =
function() {
22563 this.onRemoved =
function() {
22566 this.onPropertyChanged =
function(name, value, prev_value) {
22567 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22569 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22570 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22572 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22573 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22575 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22576 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22578 this.bgcolor =
'#111';
22579 this.color =
'#222';
22580 this.shape = LiteGraph.ROUND_SHAPE;
22581 this.boxcolor =
'#465';
22594 this.nodedef_icon =
'';
22596 this.nodedef_type =
'vector4';
22598 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22599 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_vector4_out_genglsl.png';
22600 this.nodedef_group =
'adjustment';
22601 this.addInput(
'in',
'vector4');
22602 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22603 this.addInput(
'amount',
'vector4');
22604 this.addProperty(
'amount', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22605 this.addInput(
'pivot',
'vector4');
22606 this.addProperty(
'pivot', [0.5, 0.5, 0.5, 0.5],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22607 this.addOutput(
'out',
'vector4');
22608 this.title =
'contrast_vector4';
22609 this.desc =
"MaterialX:mtlx/adjustment/contrast_vector4";
22610 this.onNodeCreated =
function() {
22613 this.onRemoved =
function() {
22616 this.onPropertyChanged =
function(name, value, prev_value) {
22617 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22619 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22620 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22622 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22623 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22625 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22626 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22628 this.bgcolor =
'#111';
22629 this.color =
'#222';
22630 this.shape = LiteGraph.ROUND_SHAPE;
22631 this.boxcolor =
'#275';
22644 this.nodedef_icon =
'';
22646 this.nodedef_type =
'color3';
22648 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22649 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_color3FA_out_genglsl.png';
22650 this.nodedef_group =
'adjustment';
22651 this.addInput(
'in',
'color3');
22652 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22653 this.addInput(
'amount',
'float');
22654 this.addProperty(
'amount', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22655 this.addInput(
'pivot',
'float');
22656 this.addProperty(
'pivot', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22657 this.addOutput(
'out',
'color3');
22658 this.title =
'contrast_color3';
22659 this.desc =
"MaterialX:mtlx/adjustment/contrast_color3FA";
22660 this.onNodeCreated =
function() {
22663 this.onRemoved =
function() {
22666 this.onPropertyChanged =
function(name, value, prev_value) {
22667 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22669 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22670 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22672 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22673 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22675 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22676 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22678 this.bgcolor =
'#111';
22679 this.color =
'#222';
22680 this.shape = LiteGraph.ROUND_SHAPE;
22681 this.boxcolor =
'#37A';
22694 this.nodedef_icon =
'';
22696 this.nodedef_type =
'color4';
22698 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22699 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_color4FA_out_genglsl.png';
22700 this.nodedef_group =
'adjustment';
22701 this.addInput(
'in',
'color4');
22702 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22703 this.addInput(
'amount',
'float');
22704 this.addProperty(
'amount', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22705 this.addInput(
'pivot',
'float');
22706 this.addProperty(
'pivot', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22707 this.addOutput(
'out',
'color4');
22708 this.title =
'contrast_color4';
22709 this.desc =
"MaterialX:mtlx/adjustment/contrast_color4FA";
22710 this.onNodeCreated =
function() {
22713 this.onRemoved =
function() {
22716 this.onPropertyChanged =
function(name, value, prev_value) {
22717 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22719 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22720 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22722 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22723 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22725 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22726 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22728 this.bgcolor =
'#111';
22729 this.color =
'#222';
22730 this.shape = LiteGraph.ROUND_SHAPE;
22731 this.boxcolor =
'#69A';
22744 this.nodedef_icon =
'';
22746 this.nodedef_type =
'vector2';
22748 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22749 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_vector2FA_out_genglsl.png';
22750 this.nodedef_group =
'adjustment';
22751 this.addInput(
'in',
'vector2');
22752 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22753 this.addInput(
'amount',
'float');
22754 this.addProperty(
'amount', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22755 this.addInput(
'pivot',
'float');
22756 this.addProperty(
'pivot', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22757 this.addOutput(
'out',
'vector2');
22758 this.title =
'contrast_vector2';
22759 this.desc =
"MaterialX:mtlx/adjustment/contrast_vector2FA";
22760 this.onNodeCreated =
function() {
22763 this.onRemoved =
function() {
22766 this.onPropertyChanged =
function(name, value, prev_value) {
22767 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22769 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22770 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22772 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22773 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22775 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22776 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22778 this.bgcolor =
'#111';
22779 this.color =
'#222';
22780 this.shape = LiteGraph.ROUND_SHAPE;
22781 this.boxcolor =
'#265';
22794 this.nodedef_icon =
'';
22796 this.nodedef_type =
'vector3';
22798 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22799 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_vector3FA_out_genglsl.png';
22800 this.nodedef_group =
'adjustment';
22801 this.addInput(
'in',
'vector3');
22802 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22803 this.addInput(
'amount',
'float');
22804 this.addProperty(
'amount', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22805 this.addInput(
'pivot',
'float');
22806 this.addProperty(
'pivot', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22807 this.addOutput(
'out',
'vector3');
22808 this.title =
'contrast_vector3';
22809 this.desc =
"MaterialX:mtlx/adjustment/contrast_vector3FA";
22810 this.onNodeCreated =
function() {
22813 this.onRemoved =
function() {
22816 this.onPropertyChanged =
function(name, value, prev_value) {
22817 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22819 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22820 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22822 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22823 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22825 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22826 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22828 this.bgcolor =
'#111';
22829 this.color =
'#222';
22830 this.shape = LiteGraph.ROUND_SHAPE;
22831 this.boxcolor =
'#465';
22844 this.nodedef_icon =
'';
22846 this.nodedef_type =
'vector4';
22848 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/contrast.html';
22849 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_contrast_vector4FA_out_genglsl.png';
22850 this.nodedef_group =
'adjustment';
22851 this.addInput(
'in',
'vector4');
22852 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22853 this.addInput(
'amount',
'float');
22854 this.addProperty(
'amount', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22855 this.addInput(
'pivot',
'float');
22856 this.addProperty(
'pivot', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22857 this.addOutput(
'out',
'vector4');
22858 this.title =
'contrast_vector4';
22859 this.desc =
"MaterialX:mtlx/adjustment/contrast_vector4FA";
22860 this.onNodeCreated =
function() {
22863 this.onRemoved =
function() {
22866 this.onPropertyChanged =
function(name, value, prev_value) {
22867 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22869 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22870 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22872 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22873 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22875 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22876 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22878 this.bgcolor =
'#111';
22879 this.color =
'#222';
22880 this.shape = LiteGraph.ROUND_SHAPE;
22881 this.boxcolor =
'#275';
22894 this.nodedef_icon =
'';
22896 this.nodedef_type =
'float';
22898 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
22899 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_float_out_genglsl.png';
22900 this.nodedef_group =
'adjustment';
22901 this.addInput(
'in',
'float');
22902 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22903 this.addInput(
'inlow',
'float');
22904 this.addProperty(
'inlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22905 this.addInput(
'inhigh',
'float');
22906 this.addProperty(
'inhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22907 this.addInput(
'gamma',
'float');
22908 this.addProperty(
'gamma', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22909 this.addInput(
'outlow',
'float');
22910 this.addProperty(
'outlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22911 this.addInput(
'outhigh',
'float');
22912 this.addProperty(
'outhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22913 this.addInput(
'doclamp',
'boolean');
22914 this.addProperty(
'doclamp',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22915 this.addOutput(
'out',
'float');
22916 this.title =
'range_float';
22917 this.desc =
"MaterialX:mtlx/adjustment/range_float";
22918 this.onNodeCreated =
function() {
22921 this.onRemoved =
function() {
22924 this.onPropertyChanged =
function(name, value, prev_value) {
22925 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22927 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22928 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22930 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22931 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22933 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22934 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22936 this.bgcolor =
'#111';
22937 this.color =
'#222';
22938 this.shape = LiteGraph.ROUND_SHAPE;
22939 this.boxcolor =
'#161';
22952 this.nodedef_icon =
'';
22954 this.nodedef_type =
'color3';
22956 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
22957 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_color3_out_genglsl.png';
22958 this.nodedef_group =
'adjustment';
22959 this.addInput(
'in',
'color3');
22960 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22961 this.addInput(
'inlow',
'color3');
22962 this.addProperty(
'inlow', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22963 this.addInput(
'inhigh',
'color3');
22964 this.addProperty(
'inhigh', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22965 this.addInput(
'gamma',
'color3');
22966 this.addProperty(
'gamma', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22967 this.addInput(
'outlow',
'color3');
22968 this.addProperty(
'outlow', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22969 this.addInput(
'outhigh',
'color3');
22970 this.addProperty(
'outhigh', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22971 this.addInput(
'doclamp',
'boolean');
22972 this.addProperty(
'doclamp',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
22973 this.addOutput(
'out',
'color3');
22974 this.title =
'range_color3';
22975 this.desc =
"MaterialX:mtlx/adjustment/range_color3";
22976 this.onNodeCreated =
function() {
22979 this.onRemoved =
function() {
22982 this.onPropertyChanged =
function(name, value, prev_value) {
22983 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
22985 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
22986 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
22988 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
22989 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
22991 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
22992 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
22994 this.bgcolor =
'#111';
22995 this.color =
'#222';
22996 this.shape = LiteGraph.ROUND_SHAPE;
22997 this.boxcolor =
'#37A';
23010 this.nodedef_icon =
'';
23012 this.nodedef_type =
'color4';
23014 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23015 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_color4_out_genglsl.png';
23016 this.nodedef_group =
'adjustment';
23017 this.addInput(
'in',
'color4');
23018 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23019 this.addInput(
'inlow',
'color4');
23020 this.addProperty(
'inlow', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23021 this.addInput(
'inhigh',
'color4');
23022 this.addProperty(
'inhigh', [1.0, 1.0, 1.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23023 this.addInput(
'gamma',
'color4');
23024 this.addProperty(
'gamma', [1.0, 1.0, 1.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23025 this.addInput(
'outlow',
'color4');
23026 this.addProperty(
'outlow', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23027 this.addInput(
'outhigh',
'color4');
23028 this.addProperty(
'outhigh', [1.0, 1.0, 1.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23029 this.addInput(
'doclamp',
'boolean');
23030 this.addProperty(
'doclamp',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23031 this.addOutput(
'out',
'color4');
23032 this.title =
'range_color4';
23033 this.desc =
"MaterialX:mtlx/adjustment/range_color4";
23034 this.onNodeCreated =
function() {
23037 this.onRemoved =
function() {
23040 this.onPropertyChanged =
function(name, value, prev_value) {
23041 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23043 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23044 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23046 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23047 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23049 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23050 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23052 this.bgcolor =
'#111';
23053 this.color =
'#222';
23054 this.shape = LiteGraph.ROUND_SHAPE;
23055 this.boxcolor =
'#69A';
23068 this.nodedef_icon =
'';
23070 this.nodedef_type =
'vector2';
23072 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23073 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_vector2_out_genglsl.png';
23074 this.nodedef_group =
'adjustment';
23075 this.addInput(
'in',
'vector2');
23076 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23077 this.addInput(
'inlow',
'vector2');
23078 this.addProperty(
'inlow', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23079 this.addInput(
'inhigh',
'vector2');
23080 this.addProperty(
'inhigh', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23081 this.addInput(
'gamma',
'vector2');
23082 this.addProperty(
'gamma', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23083 this.addInput(
'outlow',
'vector2');
23084 this.addProperty(
'outlow', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23085 this.addInput(
'outhigh',
'vector2');
23086 this.addProperty(
'outhigh', [1.0, 1.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23087 this.addInput(
'doclamp',
'boolean');
23088 this.addProperty(
'doclamp',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23089 this.addOutput(
'out',
'vector2');
23090 this.title =
'range_vector2';
23091 this.desc =
"MaterialX:mtlx/adjustment/range_vector2";
23092 this.onNodeCreated =
function() {
23095 this.onRemoved =
function() {
23098 this.onPropertyChanged =
function(name, value, prev_value) {
23099 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23101 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23102 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23104 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23105 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23107 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23108 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23110 this.bgcolor =
'#111';
23111 this.color =
'#222';
23112 this.shape = LiteGraph.ROUND_SHAPE;
23113 this.boxcolor =
'#265';
23126 this.nodedef_icon =
'';
23128 this.nodedef_type =
'vector3';
23130 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23131 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_vector3_out_genglsl.png';
23132 this.nodedef_group =
'adjustment';
23133 this.addInput(
'in',
'vector3');
23134 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23135 this.addInput(
'inlow',
'vector3');
23136 this.addProperty(
'inlow', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23137 this.addInput(
'inhigh',
'vector3');
23138 this.addProperty(
'inhigh', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23139 this.addInput(
'gamma',
'vector3');
23140 this.addProperty(
'gamma', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23141 this.addInput(
'outlow',
'vector3');
23142 this.addProperty(
'outlow', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23143 this.addInput(
'outhigh',
'vector3');
23144 this.addProperty(
'outhigh', [1.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23145 this.addInput(
'doclamp',
'boolean');
23146 this.addProperty(
'doclamp',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23147 this.addOutput(
'out',
'vector3');
23148 this.title =
'range_vector3';
23149 this.desc =
"MaterialX:mtlx/adjustment/range_vector3";
23150 this.onNodeCreated =
function() {
23153 this.onRemoved =
function() {
23156 this.onPropertyChanged =
function(name, value, prev_value) {
23157 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23159 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23160 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23162 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23163 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23165 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23166 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23168 this.bgcolor =
'#111';
23169 this.color =
'#222';
23170 this.shape = LiteGraph.ROUND_SHAPE;
23171 this.boxcolor =
'#465';
23184 this.nodedef_icon =
'';
23186 this.nodedef_type =
'vector4';
23188 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23189 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_vector4_out_genglsl.png';
23190 this.nodedef_group =
'adjustment';
23191 this.addInput(
'in',
'vector4');
23192 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23193 this.addInput(
'inlow',
'vector4');
23194 this.addProperty(
'inlow', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23195 this.addInput(
'inhigh',
'vector4');
23196 this.addProperty(
'inhigh', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23197 this.addInput(
'gamma',
'vector4');
23198 this.addProperty(
'gamma', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23199 this.addInput(
'outlow',
'vector4');
23200 this.addProperty(
'outlow', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23201 this.addInput(
'outhigh',
'vector4');
23202 this.addProperty(
'outhigh', [1.0, 1.0, 1.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23203 this.addInput(
'doclamp',
'boolean');
23204 this.addProperty(
'doclamp',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23205 this.addOutput(
'out',
'vector4');
23206 this.title =
'range_vector4';
23207 this.desc =
"MaterialX:mtlx/adjustment/range_vector4";
23208 this.onNodeCreated =
function() {
23211 this.onRemoved =
function() {
23214 this.onPropertyChanged =
function(name, value, prev_value) {
23215 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23217 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23218 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23220 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23221 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23223 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23224 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23226 this.bgcolor =
'#111';
23227 this.color =
'#222';
23228 this.shape = LiteGraph.ROUND_SHAPE;
23229 this.boxcolor =
'#275';
23242 this.nodedef_icon =
'';
23244 this.nodedef_type =
'color3';
23246 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23247 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_color3FA_out_genglsl.png';
23248 this.nodedef_group =
'adjustment';
23249 this.addInput(
'in',
'color3');
23250 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23251 this.addInput(
'inlow',
'float');
23252 this.addProperty(
'inlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23253 this.addInput(
'inhigh',
'float');
23254 this.addProperty(
'inhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23255 this.addInput(
'gamma',
'float');
23256 this.addProperty(
'gamma', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23257 this.addInput(
'outlow',
'float');
23258 this.addProperty(
'outlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23259 this.addInput(
'outhigh',
'float');
23260 this.addProperty(
'outhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23261 this.addInput(
'doclamp',
'boolean');
23262 this.addProperty(
'doclamp',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23263 this.addOutput(
'out',
'color3');
23264 this.title =
'range_color3';
23265 this.desc =
"MaterialX:mtlx/adjustment/range_color3FA";
23266 this.onNodeCreated =
function() {
23269 this.onRemoved =
function() {
23272 this.onPropertyChanged =
function(name, value, prev_value) {
23273 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23275 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23276 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23278 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23279 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23281 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23282 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23284 this.bgcolor =
'#111';
23285 this.color =
'#222';
23286 this.shape = LiteGraph.ROUND_SHAPE;
23287 this.boxcolor =
'#37A';
23300 this.nodedef_icon =
'';
23302 this.nodedef_type =
'color4';
23304 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23305 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_color4FA_out_genglsl.png';
23306 this.nodedef_group =
'adjustment';
23307 this.addInput(
'in',
'color4');
23308 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23309 this.addInput(
'inlow',
'float');
23310 this.addProperty(
'inlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23311 this.addInput(
'inhigh',
'float');
23312 this.addProperty(
'inhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23313 this.addInput(
'gamma',
'float');
23314 this.addProperty(
'gamma', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23315 this.addInput(
'outlow',
'float');
23316 this.addProperty(
'outlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23317 this.addInput(
'outhigh',
'float');
23318 this.addProperty(
'outhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23319 this.addInput(
'doclamp',
'boolean');
23320 this.addProperty(
'doclamp',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23321 this.addOutput(
'out',
'color4');
23322 this.title =
'range_color4';
23323 this.desc =
"MaterialX:mtlx/adjustment/range_color4FA";
23324 this.onNodeCreated =
function() {
23327 this.onRemoved =
function() {
23330 this.onPropertyChanged =
function(name, value, prev_value) {
23331 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23333 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23334 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23336 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23337 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23339 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23340 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23342 this.bgcolor =
'#111';
23343 this.color =
'#222';
23344 this.shape = LiteGraph.ROUND_SHAPE;
23345 this.boxcolor =
'#69A';
23358 this.nodedef_icon =
'';
23360 this.nodedef_type =
'vector2';
23362 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23363 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_vector2FA_out_genglsl.png';
23364 this.nodedef_group =
'adjustment';
23365 this.addInput(
'in',
'vector2');
23366 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23367 this.addInput(
'inlow',
'float');
23368 this.addProperty(
'inlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23369 this.addInput(
'inhigh',
'float');
23370 this.addProperty(
'inhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23371 this.addInput(
'gamma',
'float');
23372 this.addProperty(
'gamma', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23373 this.addInput(
'outlow',
'float');
23374 this.addProperty(
'outlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23375 this.addInput(
'outhigh',
'float');
23376 this.addProperty(
'outhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23377 this.addInput(
'doclamp',
'boolean');
23378 this.addProperty(
'doclamp',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23379 this.addOutput(
'out',
'vector2');
23380 this.title =
'range_vector2';
23381 this.desc =
"MaterialX:mtlx/adjustment/range_vector2FA";
23382 this.onNodeCreated =
function() {
23385 this.onRemoved =
function() {
23388 this.onPropertyChanged =
function(name, value, prev_value) {
23389 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23391 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23392 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23394 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23395 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23397 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23398 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23400 this.bgcolor =
'#111';
23401 this.color =
'#222';
23402 this.shape = LiteGraph.ROUND_SHAPE;
23403 this.boxcolor =
'#265';
23416 this.nodedef_icon =
'';
23418 this.nodedef_type =
'vector3';
23420 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23421 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_vector3FA_out_genglsl.png';
23422 this.nodedef_group =
'adjustment';
23423 this.addInput(
'in',
'vector3');
23424 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23425 this.addInput(
'inlow',
'float');
23426 this.addProperty(
'inlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23427 this.addInput(
'inhigh',
'float');
23428 this.addProperty(
'inhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23429 this.addInput(
'gamma',
'float');
23430 this.addProperty(
'gamma', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23431 this.addInput(
'outlow',
'float');
23432 this.addProperty(
'outlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23433 this.addInput(
'outhigh',
'float');
23434 this.addProperty(
'outhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23435 this.addInput(
'doclamp',
'boolean');
23436 this.addProperty(
'doclamp',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23437 this.addOutput(
'out',
'vector3');
23438 this.title =
'range_vector3';
23439 this.desc =
"MaterialX:mtlx/adjustment/range_vector3FA";
23440 this.onNodeCreated =
function() {
23443 this.onRemoved =
function() {
23446 this.onPropertyChanged =
function(name, value, prev_value) {
23447 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23449 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23450 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23452 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23453 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23455 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23456 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23458 this.bgcolor =
'#111';
23459 this.color =
'#222';
23460 this.shape = LiteGraph.ROUND_SHAPE;
23461 this.boxcolor =
'#465';
23474 this.nodedef_icon =
'';
23476 this.nodedef_type =
'vector4';
23478 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/range.html';
23479 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_range_vector4FA_out_genglsl.png';
23480 this.nodedef_group =
'adjustment';
23481 this.addInput(
'in',
'vector4');
23482 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23483 this.addInput(
'inlow',
'float');
23484 this.addProperty(
'inlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23485 this.addInput(
'inhigh',
'float');
23486 this.addProperty(
'inhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23487 this.addInput(
'gamma',
'float');
23488 this.addProperty(
'gamma', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23489 this.addInput(
'outlow',
'float');
23490 this.addProperty(
'outlow', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23491 this.addInput(
'outhigh',
'float');
23492 this.addProperty(
'outhigh', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23493 this.addInput(
'doclamp',
'boolean');
23494 this.addProperty(
'doclamp',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23495 this.addOutput(
'out',
'vector4');
23496 this.title =
'range_vector4';
23497 this.desc =
"MaterialX:mtlx/adjustment/range_vector4FA";
23498 this.onNodeCreated =
function() {
23501 this.onRemoved =
function() {
23504 this.onPropertyChanged =
function(name, value, prev_value) {
23505 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23507 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23508 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23510 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23511 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23513 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23514 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23516 this.bgcolor =
'#111';
23517 this.color =
'#222';
23518 this.shape = LiteGraph.ROUND_SHAPE;
23519 this.boxcolor =
'#275';
23532 this.nodedef_icon =
'';
23534 this.nodedef_type =
'color3';
23536 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/hsvadjust.html';
23537 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_hsvadjust_color3_out_genglsl.png';
23538 this.nodedef_group =
'adjustment';
23539 this.addInput(
'in',
'color3');
23540 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23541 this.addInput(
'amount',
'vector3');
23542 this.addProperty(
'amount', [0.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23543 this.addOutput(
'out',
'color3');
23544 this.title =
'hsvadjust_color3';
23545 this.desc =
"MaterialX:mtlx/adjustment/hsvadjust_color3";
23546 this.onNodeCreated =
function() {
23549 this.onRemoved =
function() {
23552 this.onPropertyChanged =
function(name, value, prev_value) {
23553 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23555 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23556 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23558 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23559 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23561 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23562 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23564 this.bgcolor =
'#111';
23565 this.color =
'#222';
23566 this.shape = LiteGraph.ROUND_SHAPE;
23567 this.boxcolor =
'#37A';
23580 this.nodedef_icon =
'';
23582 this.nodedef_type =
'color4';
23584 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/hsvadjust.html';
23585 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_hsvadjust_color4_out_genglsl.png';
23586 this.nodedef_group =
'adjustment';
23587 this.addInput(
'in',
'color4');
23588 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23589 this.addInput(
'amount',
'vector3');
23590 this.addProperty(
'amount', [0.0, 1.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23591 this.addOutput(
'out',
'color4');
23592 this.title =
'hsvadjust_color4';
23593 this.desc =
"MaterialX:mtlx/adjustment/hsvadjust_color4";
23594 this.onNodeCreated =
function() {
23597 this.onRemoved =
function() {
23600 this.onPropertyChanged =
function(name, value, prev_value) {
23601 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23603 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23604 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23606 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23607 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23609 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23610 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23612 this.bgcolor =
'#111';
23613 this.color =
'#222';
23614 this.shape = LiteGraph.ROUND_SHAPE;
23615 this.boxcolor =
'#69A';
23628 this.nodedef_icon =
'';
23630 this.nodedef_type =
'color3';
23632 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/saturate.html';
23633 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_saturate_color3_out_genglsl.png';
23634 this.nodedef_group =
'adjustment';
23635 this.addInput(
'in',
'color3');
23636 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23637 this.addInput(
'amount',
'float');
23638 this.addProperty(
'amount', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23639 this.addInput(
'lumacoeffs',
'color3');
23640 this.addProperty(
'lumacoeffs', [0.2722287, 0.6740818, 0.0536895],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"acescg",
" rec709",
" rec2020",
" rec2100"],
"enumvalues":[
"0.2722287",
"0.6740818",
"0.0536895",
" 0.2126",
"0.7152",
"0.0722",
" 0.2627",
"0.6780",
"0.0593",
" 0.2627",
"0.6780",
"0.0593"]});
23641 this.addOutput(
'out',
'color3');
23642 this.title =
'saturate_color3';
23643 this.desc =
"MaterialX:mtlx/adjustment/saturate_color3";
23644 this.onNodeCreated =
function() {
23647 this.onRemoved =
function() {
23650 this.onPropertyChanged =
function(name, value, prev_value) {
23651 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23653 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23654 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23656 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23657 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23659 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23660 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23662 this.bgcolor =
'#111';
23663 this.color =
'#222';
23664 this.shape = LiteGraph.ROUND_SHAPE;
23665 this.boxcolor =
'#37A';
23678 this.nodedef_icon =
'';
23680 this.nodedef_type =
'color4';
23682 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/saturate.html';
23683 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_saturate_color4_out_genglsl.png';
23684 this.nodedef_group =
'adjustment';
23685 this.addInput(
'in',
'color4');
23686 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23687 this.addInput(
'amount',
'float');
23688 this.addProperty(
'amount', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23689 this.addInput(
'lumacoeffs',
'color3');
23690 this.addProperty(
'lumacoeffs', [0.2722287, 0.6740818, 0.0536895],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"acescg",
" rec709",
" rec2020",
" rec2100"],
"enumvalues":[
"0.2722287",
"0.6740818",
"0.0536895",
" 0.2126",
"0.7152",
"0.0722",
" 0.2627",
"0.6780",
"0.0593",
" 0.2627",
"0.6780",
"0.0593"]});
23691 this.addOutput(
'out',
'color4');
23692 this.title =
'saturate_color4';
23693 this.desc =
"MaterialX:mtlx/adjustment/saturate_color4";
23694 this.onNodeCreated =
function() {
23697 this.onRemoved =
function() {
23700 this.onPropertyChanged =
function(name, value, prev_value) {
23701 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23703 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23704 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23706 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23707 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23709 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23710 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23712 this.bgcolor =
'#111';
23713 this.color =
'#222';
23714 this.shape = LiteGraph.ROUND_SHAPE;
23715 this.boxcolor =
'#69A';
23728 this.nodedef_icon =
'';
23730 this.nodedef_type =
'color3';
23732 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/colorcorrect.html';
23733 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_colorcorrect_color3_out_genglsl.png';
23734 this.nodedef_group =
'adjustment';
23735 this.addInput(
'in',
'color3');
23736 this.addProperty(
'in', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Input Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23737 this.addInput(
'hue',
'float');
23738 this.addProperty(
'hue', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Hue",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
23739 this.addInput(
'saturation',
'float');
23740 this.addProperty(
'saturation', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Saturation",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
23741 this.addInput(
'gamma',
'float');
23742 this.addProperty(
'gamma', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Gamma",
"uimin":
"0.0",
"uimax":
"3.0",
"uifolder":
"",
"defaultgeomprop":
""});
23743 this.addInput(
'lift',
'float');
23744 this.addProperty(
'lift', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Lift",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
23745 this.addInput(
'gain',
'float');
23746 this.addProperty(
'gain', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Gain",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
23747 this.addInput(
'contrast',
'float');
23748 this.addProperty(
'contrast', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Contrast",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
23749 this.addInput(
'contrastpivot',
'float');
23750 this.addProperty(
'contrastpivot', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Contrast Pivot",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
23751 this.addInput(
'exposure',
'float');
23752 this.addProperty(
'exposure', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Exposure",
"uimin":
"-1.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
23753 this.addOutput(
'out',
'color3');
23754 this.title =
'colorcorrect_color3';
23755 this.desc =
"MaterialX:mtlx/adjustment/colorcorrect_color3";
23756 this.onNodeCreated =
function() {
23759 this.onRemoved =
function() {
23762 this.onPropertyChanged =
function(name, value, prev_value) {
23763 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23765 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23766 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23768 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23769 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23771 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23772 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23774 this.bgcolor =
'#111';
23775 this.color =
'#222';
23776 this.shape = LiteGraph.ROUND_SHAPE;
23777 this.boxcolor =
'#37A';
23790 this.nodedef_icon =
'';
23792 this.nodedef_type =
'color4';
23794 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/colorcorrect.html';
23795 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_colorcorrect_color4_out_genglsl.png';
23796 this.nodedef_group =
'adjustment';
23797 this.addInput(
'in',
'color4');
23798 this.addProperty(
'in', [1, 1, 1, 0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Input Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23799 this.addInput(
'hue',
'float');
23800 this.addProperty(
'hue', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Hue",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
23801 this.addInput(
'saturation',
'float');
23802 this.addProperty(
'saturation', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Saturation",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
23803 this.addInput(
'gamma',
'float');
23804 this.addProperty(
'gamma', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Gamma",
"uimin":
"0.0",
"uimax":
"3.0",
"uifolder":
"",
"defaultgeomprop":
""});
23805 this.addInput(
'lift',
'float');
23806 this.addProperty(
'lift', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Lift",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
23807 this.addInput(
'gain',
'float');
23808 this.addProperty(
'gain', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Gain",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
23809 this.addInput(
'contrast',
'float');
23810 this.addProperty(
'contrast', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Contrast",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
23811 this.addInput(
'contrastpivot',
'float');
23812 this.addProperty(
'contrastpivot', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Contrast Pivot",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
23813 this.addInput(
'exposure',
'float');
23814 this.addProperty(
'exposure', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Exposure",
"uimin":
"-1.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
23815 this.addOutput(
'out',
'color4');
23816 this.title =
'colorcorrect_color4';
23817 this.desc =
"MaterialX:mtlx/adjustment/colorcorrect_color4";
23818 this.onNodeCreated =
function() {
23821 this.onRemoved =
function() {
23824 this.onPropertyChanged =
function(name, value, prev_value) {
23825 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23827 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23828 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23830 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23831 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23833 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23834 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23836 this.bgcolor =
'#111';
23837 this.color =
'#222';
23838 this.shape = LiteGraph.ROUND_SHAPE;
23839 this.boxcolor =
'#69A';
23852 this.nodedef_icon =
'';
23854 this.nodedef_type =
'color4';
23856 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/premult.html';
23857 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_premult_color4_out_genglsl.png';
23858 this.nodedef_group =
'compositing';
23859 this.addInput(
'in',
'color4');
23860 this.addProperty(
'in', [0.0, 0.0, 0.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23861 this.addOutput(
'out',
'color4');
23862 this.title =
'premult_color4';
23863 this.desc =
"MaterialX:mtlx/compositing/premult_color4";
23864 this.onNodeCreated =
function() {
23867 this.onRemoved =
function() {
23870 this.onPropertyChanged =
function(name, value, prev_value) {
23871 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23873 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23874 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23876 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23877 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23879 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23880 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23882 this.bgcolor =
'#111';
23883 this.color =
'#222';
23884 this.shape = LiteGraph.ROUND_SHAPE;
23885 this.boxcolor =
'#69A';
23898 this.nodedef_icon =
'';
23900 this.nodedef_type =
'color4';
23902 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/unpremult.html';
23903 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_unpremult_color4_out_genglsl.png';
23904 this.nodedef_group =
'compositing';
23905 this.addInput(
'in',
'color4');
23906 this.addProperty(
'in', [0.0, 0.0, 0.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23907 this.addOutput(
'out',
'color4');
23908 this.title =
'unpremult_color4';
23909 this.desc =
"MaterialX:mtlx/compositing/unpremult_color4";
23910 this.onNodeCreated =
function() {
23913 this.onRemoved =
function() {
23916 this.onPropertyChanged =
function(name, value, prev_value) {
23917 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23919 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23920 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23922 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23923 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23925 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23926 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23928 this.bgcolor =
'#111';
23929 this.color =
'#222';
23930 this.shape = LiteGraph.ROUND_SHAPE;
23931 this.boxcolor =
'#69A';
23944 this.nodedef_icon =
'';
23946 this.nodedef_type =
'float';
23948 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/plus.html';
23949 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_plus_float_out_genglsl.png';
23950 this.nodedef_group =
'compositing';
23951 this.addInput(
'fg',
'float');
23952 this.addProperty(
'fg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23953 this.addInput(
'bg',
'float');
23954 this.addProperty(
'bg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23955 this.addInput(
'mix',
'float');
23956 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
23957 this.addOutput(
'out',
'float');
23958 this.title =
'plus_float';
23959 this.desc =
"MaterialX:mtlx/compositing/plus_float";
23960 this.onNodeCreated =
function() {
23963 this.onRemoved =
function() {
23966 this.onPropertyChanged =
function(name, value, prev_value) {
23967 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
23969 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
23970 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
23972 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
23973 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
23975 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
23976 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
23978 this.bgcolor =
'#111';
23979 this.color =
'#222';
23980 this.shape = LiteGraph.ROUND_SHAPE;
23981 this.boxcolor =
'#161';
23994 this.nodedef_icon =
'';
23996 this.nodedef_type =
'color3';
23998 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/plus.html';
23999 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_plus_color3_out_genglsl.png';
24000 this.nodedef_group =
'compositing';
24001 this.addInput(
'fg',
'color3');
24002 this.addProperty(
'fg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24003 this.addInput(
'bg',
'color3');
24004 this.addProperty(
'bg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24005 this.addInput(
'mix',
'float');
24006 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24007 this.addOutput(
'out',
'color3');
24008 this.title =
'plus_color3';
24009 this.desc =
"MaterialX:mtlx/compositing/plus_color3";
24010 this.onNodeCreated =
function() {
24013 this.onRemoved =
function() {
24016 this.onPropertyChanged =
function(name, value, prev_value) {
24017 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24019 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24020 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24022 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24023 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24025 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24026 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24028 this.bgcolor =
'#111';
24029 this.color =
'#222';
24030 this.shape = LiteGraph.ROUND_SHAPE;
24031 this.boxcolor =
'#37A';
24044 this.nodedef_icon =
'';
24046 this.nodedef_type =
'color4';
24048 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/plus.html';
24049 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_plus_color4_out_genglsl.png';
24050 this.nodedef_group =
'compositing';
24051 this.addInput(
'fg',
'color4');
24052 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24053 this.addInput(
'bg',
'color4');
24054 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24055 this.addInput(
'mix',
'float');
24056 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24057 this.addOutput(
'out',
'color4');
24058 this.title =
'plus_color4';
24059 this.desc =
"MaterialX:mtlx/compositing/plus_color4";
24060 this.onNodeCreated =
function() {
24063 this.onRemoved =
function() {
24066 this.onPropertyChanged =
function(name, value, prev_value) {
24067 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24069 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24070 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24072 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24073 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24075 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24076 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24078 this.bgcolor =
'#111';
24079 this.color =
'#222';
24080 this.shape = LiteGraph.ROUND_SHAPE;
24081 this.boxcolor =
'#69A';
24094 this.nodedef_icon =
'';
24096 this.nodedef_type =
'float';
24098 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/minus.html';
24099 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_minus_float_out_genglsl.png';
24100 this.nodedef_group =
'compositing';
24101 this.addInput(
'fg',
'float');
24102 this.addProperty(
'fg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24103 this.addInput(
'bg',
'float');
24104 this.addProperty(
'bg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24105 this.addInput(
'mix',
'float');
24106 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24107 this.addOutput(
'out',
'float');
24108 this.title =
'minus_float';
24109 this.desc =
"MaterialX:mtlx/compositing/minus_float";
24110 this.onNodeCreated =
function() {
24113 this.onRemoved =
function() {
24116 this.onPropertyChanged =
function(name, value, prev_value) {
24117 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24119 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24120 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24122 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24123 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24125 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24126 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24128 this.bgcolor =
'#111';
24129 this.color =
'#222';
24130 this.shape = LiteGraph.ROUND_SHAPE;
24131 this.boxcolor =
'#161';
24144 this.nodedef_icon =
'';
24146 this.nodedef_type =
'color3';
24148 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/minus.html';
24149 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_minus_color3_out_genglsl.png';
24150 this.nodedef_group =
'compositing';
24151 this.addInput(
'fg',
'color3');
24152 this.addProperty(
'fg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24153 this.addInput(
'bg',
'color3');
24154 this.addProperty(
'bg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24155 this.addInput(
'mix',
'float');
24156 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24157 this.addOutput(
'out',
'color3');
24158 this.title =
'minus_color3';
24159 this.desc =
"MaterialX:mtlx/compositing/minus_color3";
24160 this.onNodeCreated =
function() {
24163 this.onRemoved =
function() {
24166 this.onPropertyChanged =
function(name, value, prev_value) {
24167 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24169 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24170 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24172 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24173 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24175 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24176 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24178 this.bgcolor =
'#111';
24179 this.color =
'#222';
24180 this.shape = LiteGraph.ROUND_SHAPE;
24181 this.boxcolor =
'#37A';
24194 this.nodedef_icon =
'';
24196 this.nodedef_type =
'color4';
24198 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/minus.html';
24199 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_minus_color4_out_genglsl.png';
24200 this.nodedef_group =
'compositing';
24201 this.addInput(
'fg',
'color4');
24202 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24203 this.addInput(
'bg',
'color4');
24204 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24205 this.addInput(
'mix',
'float');
24206 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24207 this.addOutput(
'out',
'color4');
24208 this.title =
'minus_color4';
24209 this.desc =
"MaterialX:mtlx/compositing/minus_color4";
24210 this.onNodeCreated =
function() {
24213 this.onRemoved =
function() {
24216 this.onPropertyChanged =
function(name, value, prev_value) {
24217 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24219 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24220 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24222 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24223 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24225 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24226 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24228 this.bgcolor =
'#111';
24229 this.color =
'#222';
24230 this.shape = LiteGraph.ROUND_SHAPE;
24231 this.boxcolor =
'#69A';
24244 this.nodedef_icon =
'';
24246 this.nodedef_type =
'float';
24248 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/difference.html';
24249 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_difference_float_out_genglsl.png';
24250 this.nodedef_group =
'compositing';
24251 this.addInput(
'fg',
'float');
24252 this.addProperty(
'fg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24253 this.addInput(
'bg',
'float');
24254 this.addProperty(
'bg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24255 this.addInput(
'mix',
'float');
24256 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24257 this.addOutput(
'out',
'float');
24258 this.title =
'difference_float';
24259 this.desc =
"MaterialX:mtlx/compositing/difference_float";
24260 this.onNodeCreated =
function() {
24263 this.onRemoved =
function() {
24266 this.onPropertyChanged =
function(name, value, prev_value) {
24267 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24269 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24270 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24272 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24273 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24275 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24276 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24278 this.bgcolor =
'#111';
24279 this.color =
'#222';
24280 this.shape = LiteGraph.ROUND_SHAPE;
24281 this.boxcolor =
'#161';
24294 this.nodedef_icon =
'';
24296 this.nodedef_type =
'color3';
24298 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/difference.html';
24299 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_difference_color3_out_genglsl.png';
24300 this.nodedef_group =
'compositing';
24301 this.addInput(
'fg',
'color3');
24302 this.addProperty(
'fg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24303 this.addInput(
'bg',
'color3');
24304 this.addProperty(
'bg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24305 this.addInput(
'mix',
'float');
24306 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24307 this.addOutput(
'out',
'color3');
24308 this.title =
'difference_color3';
24309 this.desc =
"MaterialX:mtlx/compositing/difference_color3";
24310 this.onNodeCreated =
function() {
24313 this.onRemoved =
function() {
24316 this.onPropertyChanged =
function(name, value, prev_value) {
24317 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24319 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24320 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24322 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24323 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24325 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24326 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24328 this.bgcolor =
'#111';
24329 this.color =
'#222';
24330 this.shape = LiteGraph.ROUND_SHAPE;
24331 this.boxcolor =
'#37A';
24344 this.nodedef_icon =
'';
24346 this.nodedef_type =
'color4';
24348 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/difference.html';
24349 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_difference_color4_out_genglsl.png';
24350 this.nodedef_group =
'compositing';
24351 this.addInput(
'fg',
'color4');
24352 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24353 this.addInput(
'bg',
'color4');
24354 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24355 this.addInput(
'mix',
'float');
24356 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24357 this.addOutput(
'out',
'color4');
24358 this.title =
'difference_color4';
24359 this.desc =
"MaterialX:mtlx/compositing/difference_color4";
24360 this.onNodeCreated =
function() {
24363 this.onRemoved =
function() {
24366 this.onPropertyChanged =
function(name, value, prev_value) {
24367 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24369 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24370 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24372 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24373 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24375 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24376 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24378 this.bgcolor =
'#111';
24379 this.color =
'#222';
24380 this.shape = LiteGraph.ROUND_SHAPE;
24381 this.boxcolor =
'#69A';
24394 this.nodedef_icon =
'';
24396 this.nodedef_type =
'float';
24398 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/burn.html';
24399 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_burn_float_out_genglsl.png';
24400 this.nodedef_group =
'compositing';
24401 this.addInput(
'fg',
'float');
24402 this.addProperty(
'fg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24403 this.addInput(
'bg',
'float');
24404 this.addProperty(
'bg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24405 this.addInput(
'mix',
'float');
24406 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24407 this.addOutput(
'out',
'float');
24408 this.title =
'burn_float';
24409 this.desc =
"MaterialX:mtlx/compositing/burn_float";
24410 this.onNodeCreated =
function() {
24413 this.onRemoved =
function() {
24416 this.onPropertyChanged =
function(name, value, prev_value) {
24417 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24419 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24420 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24422 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24423 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24425 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24426 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24428 this.bgcolor =
'#111';
24429 this.color =
'#222';
24430 this.shape = LiteGraph.ROUND_SHAPE;
24431 this.boxcolor =
'#161';
24444 this.nodedef_icon =
'';
24446 this.nodedef_type =
'color3';
24448 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/burn.html';
24449 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_burn_color3_out_genglsl.png';
24450 this.nodedef_group =
'compositing';
24451 this.addInput(
'fg',
'color3');
24452 this.addProperty(
'fg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24453 this.addInput(
'bg',
'color3');
24454 this.addProperty(
'bg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24455 this.addInput(
'mix',
'float');
24456 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24457 this.addOutput(
'out',
'color3');
24458 this.title =
'burn_color3';
24459 this.desc =
"MaterialX:mtlx/compositing/burn_color3";
24460 this.onNodeCreated =
function() {
24463 this.onRemoved =
function() {
24466 this.onPropertyChanged =
function(name, value, prev_value) {
24467 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24469 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24470 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24472 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24473 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24475 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24476 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24478 this.bgcolor =
'#111';
24479 this.color =
'#222';
24480 this.shape = LiteGraph.ROUND_SHAPE;
24481 this.boxcolor =
'#37A';
24494 this.nodedef_icon =
'';
24496 this.nodedef_type =
'color4';
24498 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/burn.html';
24499 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_burn_color4_out_genglsl.png';
24500 this.nodedef_group =
'compositing';
24501 this.addInput(
'fg',
'color4');
24502 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24503 this.addInput(
'bg',
'color4');
24504 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24505 this.addInput(
'mix',
'float');
24506 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24507 this.addOutput(
'out',
'color4');
24508 this.title =
'burn_color4';
24509 this.desc =
"MaterialX:mtlx/compositing/burn_color4";
24510 this.onNodeCreated =
function() {
24513 this.onRemoved =
function() {
24516 this.onPropertyChanged =
function(name, value, prev_value) {
24517 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24519 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24520 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24522 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24523 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24525 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24526 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24528 this.bgcolor =
'#111';
24529 this.color =
'#222';
24530 this.shape = LiteGraph.ROUND_SHAPE;
24531 this.boxcolor =
'#69A';
24544 this.nodedef_icon =
'';
24546 this.nodedef_type =
'float';
24548 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dodge.html';
24549 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dodge_float_out_genglsl.png';
24550 this.nodedef_group =
'compositing';
24551 this.addInput(
'fg',
'float');
24552 this.addProperty(
'fg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24553 this.addInput(
'bg',
'float');
24554 this.addProperty(
'bg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24555 this.addInput(
'mix',
'float');
24556 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24557 this.addOutput(
'out',
'float');
24558 this.title =
'dodge_float';
24559 this.desc =
"MaterialX:mtlx/compositing/dodge_float";
24560 this.onNodeCreated =
function() {
24563 this.onRemoved =
function() {
24566 this.onPropertyChanged =
function(name, value, prev_value) {
24567 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24569 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24570 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24572 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24573 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24575 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24576 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24578 this.bgcolor =
'#111';
24579 this.color =
'#222';
24580 this.shape = LiteGraph.ROUND_SHAPE;
24581 this.boxcolor =
'#161';
24594 this.nodedef_icon =
'';
24596 this.nodedef_type =
'color3';
24598 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dodge.html';
24599 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dodge_color3_out_genglsl.png';
24600 this.nodedef_group =
'compositing';
24601 this.addInput(
'fg',
'color3');
24602 this.addProperty(
'fg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24603 this.addInput(
'bg',
'color3');
24604 this.addProperty(
'bg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24605 this.addInput(
'mix',
'float');
24606 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24607 this.addOutput(
'out',
'color3');
24608 this.title =
'dodge_color3';
24609 this.desc =
"MaterialX:mtlx/compositing/dodge_color3";
24610 this.onNodeCreated =
function() {
24613 this.onRemoved =
function() {
24616 this.onPropertyChanged =
function(name, value, prev_value) {
24617 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24619 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24620 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24622 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24623 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24625 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24626 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24628 this.bgcolor =
'#111';
24629 this.color =
'#222';
24630 this.shape = LiteGraph.ROUND_SHAPE;
24631 this.boxcolor =
'#37A';
24644 this.nodedef_icon =
'';
24646 this.nodedef_type =
'color4';
24648 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dodge.html';
24649 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dodge_color4_out_genglsl.png';
24650 this.nodedef_group =
'compositing';
24651 this.addInput(
'fg',
'color4');
24652 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24653 this.addInput(
'bg',
'color4');
24654 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24655 this.addInput(
'mix',
'float');
24656 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24657 this.addOutput(
'out',
'color4');
24658 this.title =
'dodge_color4';
24659 this.desc =
"MaterialX:mtlx/compositing/dodge_color4";
24660 this.onNodeCreated =
function() {
24663 this.onRemoved =
function() {
24666 this.onPropertyChanged =
function(name, value, prev_value) {
24667 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24669 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24670 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24672 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24673 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24675 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24676 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24678 this.bgcolor =
'#111';
24679 this.color =
'#222';
24680 this.shape = LiteGraph.ROUND_SHAPE;
24681 this.boxcolor =
'#69A';
24694 this.nodedef_icon =
'';
24696 this.nodedef_type =
'float';
24698 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/screen.html';
24699 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_screen_float_out_genglsl.png';
24700 this.nodedef_group =
'compositing';
24701 this.addInput(
'fg',
'float');
24702 this.addProperty(
'fg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24703 this.addInput(
'bg',
'float');
24704 this.addProperty(
'bg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24705 this.addInput(
'mix',
'float');
24706 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24707 this.addOutput(
'out',
'float');
24708 this.title =
'screen_float';
24709 this.desc =
"MaterialX:mtlx/compositing/screen_float";
24710 this.onNodeCreated =
function() {
24713 this.onRemoved =
function() {
24716 this.onPropertyChanged =
function(name, value, prev_value) {
24717 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24719 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24720 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24722 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24723 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24725 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24726 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24728 this.bgcolor =
'#111';
24729 this.color =
'#222';
24730 this.shape = LiteGraph.ROUND_SHAPE;
24731 this.boxcolor =
'#161';
24744 this.nodedef_icon =
'';
24746 this.nodedef_type =
'color3';
24748 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/screen.html';
24749 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_screen_color3_out_genglsl.png';
24750 this.nodedef_group =
'compositing';
24751 this.addInput(
'fg',
'color3');
24752 this.addProperty(
'fg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24753 this.addInput(
'bg',
'color3');
24754 this.addProperty(
'bg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24755 this.addInput(
'mix',
'float');
24756 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24757 this.addOutput(
'out',
'color3');
24758 this.title =
'screen_color3';
24759 this.desc =
"MaterialX:mtlx/compositing/screen_color3";
24760 this.onNodeCreated =
function() {
24763 this.onRemoved =
function() {
24766 this.onPropertyChanged =
function(name, value, prev_value) {
24767 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24769 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24770 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24772 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24773 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24775 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24776 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24778 this.bgcolor =
'#111';
24779 this.color =
'#222';
24780 this.shape = LiteGraph.ROUND_SHAPE;
24781 this.boxcolor =
'#37A';
24794 this.nodedef_icon =
'';
24796 this.nodedef_type =
'color4';
24798 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/screen.html';
24799 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_screen_color4_out_genglsl.png';
24800 this.nodedef_group =
'compositing';
24801 this.addInput(
'fg',
'color4');
24802 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24803 this.addInput(
'bg',
'color4');
24804 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24805 this.addInput(
'mix',
'float');
24806 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24807 this.addOutput(
'out',
'color4');
24808 this.title =
'screen_color4';
24809 this.desc =
"MaterialX:mtlx/compositing/screen_color4";
24810 this.onNodeCreated =
function() {
24813 this.onRemoved =
function() {
24816 this.onPropertyChanged =
function(name, value, prev_value) {
24817 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24819 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24820 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24822 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24823 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24825 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24826 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24828 this.bgcolor =
'#111';
24829 this.color =
'#222';
24830 this.shape = LiteGraph.ROUND_SHAPE;
24831 this.boxcolor =
'#69A';
24844 this.nodedef_icon =
'';
24846 this.nodedef_type =
'float';
24848 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/overlay.html';
24849 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_overlay_float_out_genglsl.png';
24850 this.nodedef_group =
'compositing';
24851 this.addInput(
'fg',
'float');
24852 this.addProperty(
'fg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24853 this.addInput(
'bg',
'float');
24854 this.addProperty(
'bg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24855 this.addInput(
'mix',
'float');
24856 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24857 this.addOutput(
'out',
'float');
24858 this.title =
'overlay_float';
24859 this.desc =
"MaterialX:mtlx/compositing/overlay_float";
24860 this.onNodeCreated =
function() {
24863 this.onRemoved =
function() {
24866 this.onPropertyChanged =
function(name, value, prev_value) {
24867 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24869 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24870 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24872 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24873 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24875 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24876 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24878 this.bgcolor =
'#111';
24879 this.color =
'#222';
24880 this.shape = LiteGraph.ROUND_SHAPE;
24881 this.boxcolor =
'#161';
24894 this.nodedef_icon =
'';
24896 this.nodedef_type =
'color3';
24898 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/overlay.html';
24899 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_overlay_color3_out_genglsl.png';
24900 this.nodedef_group =
'compositing';
24901 this.addInput(
'fg',
'color3');
24902 this.addProperty(
'fg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24903 this.addInput(
'bg',
'color3');
24904 this.addProperty(
'bg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24905 this.addInput(
'mix',
'float');
24906 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24907 this.addOutput(
'out',
'color3');
24908 this.title =
'overlay_color3';
24909 this.desc =
"MaterialX:mtlx/compositing/overlay_color3";
24910 this.onNodeCreated =
function() {
24913 this.onRemoved =
function() {
24916 this.onPropertyChanged =
function(name, value, prev_value) {
24917 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24919 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24920 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24922 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24923 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24925 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24926 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24928 this.bgcolor =
'#111';
24929 this.color =
'#222';
24930 this.shape = LiteGraph.ROUND_SHAPE;
24931 this.boxcolor =
'#37A';
24944 this.nodedef_icon =
'';
24946 this.nodedef_type =
'color4';
24948 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/overlay.html';
24949 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_overlay_color4_out_genglsl.png';
24950 this.nodedef_group =
'compositing';
24951 this.addInput(
'fg',
'color4');
24952 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24953 this.addInput(
'bg',
'color4');
24954 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24955 this.addInput(
'mix',
'float');
24956 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
24957 this.addOutput(
'out',
'color4');
24958 this.title =
'overlay_color4';
24959 this.desc =
"MaterialX:mtlx/compositing/overlay_color4";
24960 this.onNodeCreated =
function() {
24963 this.onRemoved =
function() {
24966 this.onPropertyChanged =
function(name, value, prev_value) {
24967 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
24969 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
24970 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
24972 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
24973 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
24975 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
24976 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
24978 this.bgcolor =
'#111';
24979 this.color =
'#222';
24980 this.shape = LiteGraph.ROUND_SHAPE;
24981 this.boxcolor =
'#69A';
24994 this.nodedef_icon =
'';
24996 this.nodedef_type =
'color4';
24998 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/disjointover.html';
24999 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_disjointover_color4_out_genglsl.png';
25000 this.nodedef_group =
'compositing';
25001 this.addInput(
'fg',
'color4');
25002 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25003 this.addInput(
'bg',
'color4');
25004 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25005 this.addInput(
'mix',
'float');
25006 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25007 this.addOutput(
'out',
'color4');
25008 this.title =
'disjointover_color4';
25009 this.desc =
"MaterialX:mtlx/compositing/disjointover_color4";
25010 this.onNodeCreated =
function() {
25013 this.onRemoved =
function() {
25016 this.onPropertyChanged =
function(name, value, prev_value) {
25017 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25019 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25020 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25022 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25023 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25025 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25026 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25028 this.bgcolor =
'#111';
25029 this.color =
'#222';
25030 this.shape = LiteGraph.ROUND_SHAPE;
25031 this.boxcolor =
'#69A';
25044 this.nodedef_icon =
'';
25046 this.nodedef_type =
'color4';
25048 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/in.html';
25049 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_in_color4_out_genglsl.png';
25050 this.nodedef_group =
'compositing';
25051 this.addInput(
'fg',
'color4');
25052 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25053 this.addInput(
'bg',
'color4');
25054 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25055 this.addInput(
'mix',
'float');
25056 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25057 this.addOutput(
'out',
'color4');
25058 this.title =
'in_color4';
25059 this.desc =
"MaterialX:mtlx/compositing/in_color4";
25060 this.onNodeCreated =
function() {
25063 this.onRemoved =
function() {
25066 this.onPropertyChanged =
function(name, value, prev_value) {
25067 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25069 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25070 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25072 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25073 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25075 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25076 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25078 this.bgcolor =
'#111';
25079 this.color =
'#222';
25080 this.shape = LiteGraph.ROUND_SHAPE;
25081 this.boxcolor =
'#69A';
25094 this.nodedef_icon =
'';
25096 this.nodedef_type =
'color4';
25098 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mask.html';
25099 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mask_color4_out_genglsl.png';
25100 this.nodedef_group =
'compositing';
25101 this.addInput(
'fg',
'color4');
25102 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25103 this.addInput(
'bg',
'color4');
25104 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25105 this.addInput(
'mix',
'float');
25106 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25107 this.addOutput(
'out',
'color4');
25108 this.title =
'mask_color4';
25109 this.desc =
"MaterialX:mtlx/compositing/mask_color4";
25110 this.onNodeCreated =
function() {
25113 this.onRemoved =
function() {
25116 this.onPropertyChanged =
function(name, value, prev_value) {
25117 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25119 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25120 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25122 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25123 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25125 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25126 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25128 this.bgcolor =
'#111';
25129 this.color =
'#222';
25130 this.shape = LiteGraph.ROUND_SHAPE;
25131 this.boxcolor =
'#69A';
25144 this.nodedef_icon =
'';
25146 this.nodedef_type =
'color4';
25148 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/matte.html';
25149 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_matte_color4_out_genglsl.png';
25150 this.nodedef_group =
'compositing';
25151 this.addInput(
'fg',
'color4');
25152 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25153 this.addInput(
'bg',
'color4');
25154 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25155 this.addInput(
'mix',
'float');
25156 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25157 this.addOutput(
'out',
'color4');
25158 this.title =
'matte_color4';
25159 this.desc =
"MaterialX:mtlx/compositing/matte_color4";
25160 this.onNodeCreated =
function() {
25163 this.onRemoved =
function() {
25166 this.onPropertyChanged =
function(name, value, prev_value) {
25167 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25169 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25170 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25172 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25173 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25175 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25176 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25178 this.bgcolor =
'#111';
25179 this.color =
'#222';
25180 this.shape = LiteGraph.ROUND_SHAPE;
25181 this.boxcolor =
'#69A';
25194 this.nodedef_icon =
'';
25196 this.nodedef_type =
'color4';
25198 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/out.html';
25199 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_out_color4_out_genglsl.png';
25200 this.nodedef_group =
'compositing';
25201 this.addInput(
'fg',
'color4');
25202 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25203 this.addInput(
'bg',
'color4');
25204 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25205 this.addInput(
'mix',
'float');
25206 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25207 this.addOutput(
'out',
'color4');
25208 this.title =
'out_color4';
25209 this.desc =
"MaterialX:mtlx/compositing/out_color4";
25210 this.onNodeCreated =
function() {
25213 this.onRemoved =
function() {
25216 this.onPropertyChanged =
function(name, value, prev_value) {
25217 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25219 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25220 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25222 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25223 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25225 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25226 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25228 this.bgcolor =
'#111';
25229 this.color =
'#222';
25230 this.shape = LiteGraph.ROUND_SHAPE;
25231 this.boxcolor =
'#69A';
25244 this.nodedef_icon =
'';
25246 this.nodedef_type =
'color4';
25248 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/over.html';
25249 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_over_color4_out_genglsl.png';
25250 this.nodedef_group =
'compositing';
25251 this.addInput(
'fg',
'color4');
25252 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25253 this.addInput(
'bg',
'color4');
25254 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25255 this.addInput(
'mix',
'float');
25256 this.addProperty(
'mix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25257 this.addOutput(
'out',
'color4');
25258 this.title =
'over_color4';
25259 this.desc =
"MaterialX:mtlx/compositing/over_color4";
25260 this.onNodeCreated =
function() {
25263 this.onRemoved =
function() {
25266 this.onPropertyChanged =
function(name, value, prev_value) {
25267 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25269 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25270 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25272 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25273 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25275 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25276 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25278 this.bgcolor =
'#111';
25279 this.color =
'#222';
25280 this.shape = LiteGraph.ROUND_SHAPE;
25281 this.boxcolor =
'#69A';
25294 this.nodedef_icon =
'';
25296 this.nodedef_type =
'float';
25298 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/inside.html';
25299 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_inside_float_out_genglsl.png';
25300 this.nodedef_group =
'compositing';
25301 this.addInput(
'in',
'float');
25302 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25303 this.addInput(
'mask',
'float');
25304 this.addProperty(
'mask', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25305 this.addOutput(
'out',
'float');
25306 this.title =
'inside_float';
25307 this.desc =
"MaterialX:mtlx/compositing/inside_float";
25308 this.onNodeCreated =
function() {
25311 this.onRemoved =
function() {
25314 this.onPropertyChanged =
function(name, value, prev_value) {
25315 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25317 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25318 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25320 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25321 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25323 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25324 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25326 this.bgcolor =
'#111';
25327 this.color =
'#222';
25328 this.shape = LiteGraph.ROUND_SHAPE;
25329 this.boxcolor =
'#161';
25342 this.nodedef_icon =
'';
25344 this.nodedef_type =
'color3';
25346 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/inside.html';
25347 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_inside_color3_out_genglsl.png';
25348 this.nodedef_group =
'compositing';
25349 this.addInput(
'in',
'color3');
25350 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25351 this.addInput(
'mask',
'float');
25352 this.addProperty(
'mask', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25353 this.addOutput(
'out',
'color3');
25354 this.title =
'inside_color3';
25355 this.desc =
"MaterialX:mtlx/compositing/inside_color3";
25356 this.onNodeCreated =
function() {
25359 this.onRemoved =
function() {
25362 this.onPropertyChanged =
function(name, value, prev_value) {
25363 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25365 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25366 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25368 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25369 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25371 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25372 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25374 this.bgcolor =
'#111';
25375 this.color =
'#222';
25376 this.shape = LiteGraph.ROUND_SHAPE;
25377 this.boxcolor =
'#37A';
25390 this.nodedef_icon =
'';
25392 this.nodedef_type =
'color4';
25394 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/inside.html';
25395 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_inside_color4_out_genglsl.png';
25396 this.nodedef_group =
'compositing';
25397 this.addInput(
'in',
'color4');
25398 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25399 this.addInput(
'mask',
'float');
25400 this.addProperty(
'mask', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25401 this.addOutput(
'out',
'color4');
25402 this.title =
'inside_color4';
25403 this.desc =
"MaterialX:mtlx/compositing/inside_color4";
25404 this.onNodeCreated =
function() {
25407 this.onRemoved =
function() {
25410 this.onPropertyChanged =
function(name, value, prev_value) {
25411 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25413 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25414 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25416 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25417 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25419 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25420 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25422 this.bgcolor =
'#111';
25423 this.color =
'#222';
25424 this.shape = LiteGraph.ROUND_SHAPE;
25425 this.boxcolor =
'#69A';
25438 this.nodedef_icon =
'';
25440 this.nodedef_type =
'float';
25442 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/outside.html';
25443 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_outside_float_out_genglsl.png';
25444 this.nodedef_group =
'compositing';
25445 this.addInput(
'in',
'float');
25446 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25447 this.addInput(
'mask',
'float');
25448 this.addProperty(
'mask', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25449 this.addOutput(
'out',
'float');
25450 this.title =
'outside_float';
25451 this.desc =
"MaterialX:mtlx/compositing/outside_float";
25452 this.onNodeCreated =
function() {
25455 this.onRemoved =
function() {
25458 this.onPropertyChanged =
function(name, value, prev_value) {
25459 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25461 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25462 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25464 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25465 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25467 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25468 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25470 this.bgcolor =
'#111';
25471 this.color =
'#222';
25472 this.shape = LiteGraph.ROUND_SHAPE;
25473 this.boxcolor =
'#161';
25486 this.nodedef_icon =
'';
25488 this.nodedef_type =
'color3';
25490 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/outside.html';
25491 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_outside_color3_out_genglsl.png';
25492 this.nodedef_group =
'compositing';
25493 this.addInput(
'in',
'color3');
25494 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25495 this.addInput(
'mask',
'float');
25496 this.addProperty(
'mask', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25497 this.addOutput(
'out',
'color3');
25498 this.title =
'outside_color3';
25499 this.desc =
"MaterialX:mtlx/compositing/outside_color3";
25500 this.onNodeCreated =
function() {
25503 this.onRemoved =
function() {
25506 this.onPropertyChanged =
function(name, value, prev_value) {
25507 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25509 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25510 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25512 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25513 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25515 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25516 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25518 this.bgcolor =
'#111';
25519 this.color =
'#222';
25520 this.shape = LiteGraph.ROUND_SHAPE;
25521 this.boxcolor =
'#37A';
25534 this.nodedef_icon =
'';
25536 this.nodedef_type =
'color4';
25538 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/outside.html';
25539 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_outside_color4_out_genglsl.png';
25540 this.nodedef_group =
'compositing';
25541 this.addInput(
'in',
'color4');
25542 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25543 this.addInput(
'mask',
'float');
25544 this.addProperty(
'mask', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25545 this.addOutput(
'out',
'color4');
25546 this.title =
'outside_color4';
25547 this.desc =
"MaterialX:mtlx/compositing/outside_color4";
25548 this.onNodeCreated =
function() {
25551 this.onRemoved =
function() {
25554 this.onPropertyChanged =
function(name, value, prev_value) {
25555 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25557 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25558 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25560 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25561 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25563 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25564 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25566 this.bgcolor =
'#111';
25567 this.color =
'#222';
25568 this.shape = LiteGraph.ROUND_SHAPE;
25569 this.boxcolor =
'#69A';
25582 this.nodedef_icon =
'';
25584 this.nodedef_type =
'float';
25586 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25587 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_float_out_genglsl.png';
25588 this.nodedef_group =
'compositing';
25589 this.addInput(
'fg',
'float');
25590 this.addProperty(
'fg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25591 this.addInput(
'bg',
'float');
25592 this.addProperty(
'bg', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25593 this.addInput(
'mix',
'float');
25594 this.addProperty(
'mix', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
25595 this.addOutput(
'out',
'float');
25596 this.title =
'mix_float';
25597 this.desc =
"MaterialX:mtlx/compositing/mix_float";
25598 this.onNodeCreated =
function() {
25601 this.onRemoved =
function() {
25604 this.onPropertyChanged =
function(name, value, prev_value) {
25605 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25607 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25608 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25610 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25611 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25613 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25614 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25616 this.bgcolor =
'#111';
25617 this.color =
'#222';
25618 this.shape = LiteGraph.ROUND_SHAPE;
25619 this.boxcolor =
'#161';
25632 this.nodedef_icon =
'';
25634 this.nodedef_type =
'color3';
25636 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25637 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_color3_out_genglsl.png';
25638 this.nodedef_group =
'compositing';
25639 this.addInput(
'fg',
'color3');
25640 this.addProperty(
'fg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25641 this.addInput(
'bg',
'color3');
25642 this.addProperty(
'bg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25643 this.addInput(
'mix',
'float');
25644 this.addProperty(
'mix', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
25645 this.addOutput(
'out',
'color3');
25646 this.title =
'mix_color3';
25647 this.desc =
"MaterialX:mtlx/compositing/mix_color3";
25648 this.onNodeCreated =
function() {
25651 this.onRemoved =
function() {
25654 this.onPropertyChanged =
function(name, value, prev_value) {
25655 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25657 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25658 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25660 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25661 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25663 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25664 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25666 this.bgcolor =
'#111';
25667 this.color =
'#222';
25668 this.shape = LiteGraph.ROUND_SHAPE;
25669 this.boxcolor =
'#37A';
25682 this.nodedef_icon =
'';
25684 this.nodedef_type =
'color3';
25686 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25687 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_color3_color3_out_genglsl.png';
25688 this.nodedef_group =
'compositing';
25689 this.addInput(
'fg',
'color3');
25690 this.addProperty(
'fg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25691 this.addInput(
'bg',
'color3');
25692 this.addProperty(
'bg', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25693 this.addInput(
'mix',
'color3');
25694 this.addProperty(
'mix', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"",
"defaultgeomprop":
""});
25695 this.addOutput(
'out',
'color3');
25696 this.title =
'mix_color3';
25697 this.desc =
"MaterialX:mtlx/compositing/mix_color3_color3";
25698 this.onNodeCreated =
function() {
25701 this.onRemoved =
function() {
25704 this.onPropertyChanged =
function(name, value, prev_value) {
25705 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25707 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25708 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25710 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25711 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25713 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25714 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25716 this.bgcolor =
'#111';
25717 this.color =
'#222';
25718 this.shape = LiteGraph.ROUND_SHAPE;
25719 this.boxcolor =
'#37A';
25732 this.nodedef_icon =
'';
25734 this.nodedef_type =
'color4';
25736 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25737 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_color4_out_genglsl.png';
25738 this.nodedef_group =
'compositing';
25739 this.addInput(
'fg',
'color4');
25740 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25741 this.addInput(
'bg',
'color4');
25742 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25743 this.addInput(
'mix',
'float');
25744 this.addProperty(
'mix', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
25745 this.addOutput(
'out',
'color4');
25746 this.title =
'mix_color4';
25747 this.desc =
"MaterialX:mtlx/compositing/mix_color4";
25748 this.onNodeCreated =
function() {
25751 this.onRemoved =
function() {
25754 this.onPropertyChanged =
function(name, value, prev_value) {
25755 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25757 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25758 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25760 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25761 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25763 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25764 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25766 this.bgcolor =
'#111';
25767 this.color =
'#222';
25768 this.shape = LiteGraph.ROUND_SHAPE;
25769 this.boxcolor =
'#69A';
25782 this.nodedef_icon =
'';
25784 this.nodedef_type =
'color4';
25786 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25787 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_color4_color4_out_genglsl.png';
25788 this.nodedef_group =
'compositing';
25789 this.addInput(
'fg',
'color4');
25790 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25791 this.addInput(
'bg',
'color4');
25792 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25793 this.addInput(
'mix',
'color4');
25794 this.addProperty(
'mix', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0,0,0,0",
"uimax":
"1,1,1,1",
"uifolder":
"",
"defaultgeomprop":
""});
25795 this.addOutput(
'out',
'color4');
25796 this.title =
'mix_color4';
25797 this.desc =
"MaterialX:mtlx/compositing/mix_color4_color4";
25798 this.onNodeCreated =
function() {
25801 this.onRemoved =
function() {
25804 this.onPropertyChanged =
function(name, value, prev_value) {
25805 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25807 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25808 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25810 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25811 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25813 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25814 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25816 this.bgcolor =
'#111';
25817 this.color =
'#222';
25818 this.shape = LiteGraph.ROUND_SHAPE;
25819 this.boxcolor =
'#69A';
25832 this.nodedef_icon =
'';
25834 this.nodedef_type =
'vector2';
25836 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25837 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_vector2_out_genglsl.png';
25838 this.nodedef_group =
'compositing';
25839 this.addInput(
'fg',
'vector2');
25840 this.addProperty(
'fg', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25841 this.addInput(
'bg',
'vector2');
25842 this.addProperty(
'bg', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25843 this.addInput(
'mix',
'float');
25844 this.addProperty(
'mix', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
25845 this.addOutput(
'out',
'vector2');
25846 this.title =
'mix_vector2';
25847 this.desc =
"MaterialX:mtlx/compositing/mix_vector2";
25848 this.onNodeCreated =
function() {
25851 this.onRemoved =
function() {
25854 this.onPropertyChanged =
function(name, value, prev_value) {
25855 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25857 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25858 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25860 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25861 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25863 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25864 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25866 this.bgcolor =
'#111';
25867 this.color =
'#222';
25868 this.shape = LiteGraph.ROUND_SHAPE;
25869 this.boxcolor =
'#265';
25882 this.nodedef_icon =
'';
25884 this.nodedef_type =
'vector2';
25886 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25887 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_vector2_vector2_out_genglsl.png';
25888 this.nodedef_group =
'compositing';
25889 this.addInput(
'fg',
'vector2');
25890 this.addProperty(
'fg', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25891 this.addInput(
'bg',
'vector2');
25892 this.addProperty(
'bg', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25893 this.addInput(
'mix',
'vector2');
25894 this.addProperty(
'mix', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":[0,0],
"uimax":[1,1],
"uifolder":
"",
"defaultgeomprop":
""});
25895 this.addOutput(
'out',
'vector2');
25896 this.title =
'mix_vector2';
25897 this.desc =
"MaterialX:mtlx/compositing/mix_vector2_vector2";
25898 this.onNodeCreated =
function() {
25901 this.onRemoved =
function() {
25904 this.onPropertyChanged =
function(name, value, prev_value) {
25905 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25907 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25908 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25910 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25911 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25913 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25914 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25916 this.bgcolor =
'#111';
25917 this.color =
'#222';
25918 this.shape = LiteGraph.ROUND_SHAPE;
25919 this.boxcolor =
'#265';
25932 this.nodedef_icon =
'';
25934 this.nodedef_type =
'vector3';
25936 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25937 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_vector3_out_genglsl.png';
25938 this.nodedef_group =
'compositing';
25939 this.addInput(
'fg',
'vector3');
25940 this.addProperty(
'fg', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25941 this.addInput(
'bg',
'vector3');
25942 this.addProperty(
'bg', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25943 this.addInput(
'mix',
'float');
25944 this.addProperty(
'mix', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
25945 this.addOutput(
'out',
'vector3');
25946 this.title =
'mix_vector3';
25947 this.desc =
"MaterialX:mtlx/compositing/mix_vector3";
25948 this.onNodeCreated =
function() {
25951 this.onRemoved =
function() {
25954 this.onPropertyChanged =
function(name, value, prev_value) {
25955 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
25957 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
25958 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
25960 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
25961 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
25963 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
25964 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
25966 this.bgcolor =
'#111';
25967 this.color =
'#222';
25968 this.shape = LiteGraph.ROUND_SHAPE;
25969 this.boxcolor =
'#465';
25982 this.nodedef_icon =
'';
25984 this.nodedef_type =
'vector3';
25986 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
25987 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_vector3_vector3_out_genglsl.png';
25988 this.nodedef_group =
'compositing';
25989 this.addInput(
'fg',
'vector3');
25990 this.addProperty(
'fg', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25991 this.addInput(
'bg',
'vector3');
25992 this.addProperty(
'bg', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
25993 this.addInput(
'mix',
'vector3');
25994 this.addProperty(
'mix', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":[0,0,0],
"uimax":[1,1,1],
"uifolder":
"",
"defaultgeomprop":
""});
25995 this.addOutput(
'out',
'vector3');
25996 this.title =
'mix_vector3';
25997 this.desc =
"MaterialX:mtlx/compositing/mix_vector3_vector3";
25998 this.onNodeCreated =
function() {
26001 this.onRemoved =
function() {
26004 this.onPropertyChanged =
function(name, value, prev_value) {
26005 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26007 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26008 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26010 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26011 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26013 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26014 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26016 this.bgcolor =
'#111';
26017 this.color =
'#222';
26018 this.shape = LiteGraph.ROUND_SHAPE;
26019 this.boxcolor =
'#465';
26032 this.nodedef_icon =
'';
26034 this.nodedef_type =
'vector4';
26036 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
26037 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_vector4_out_genglsl.png';
26038 this.nodedef_group =
'compositing';
26039 this.addInput(
'fg',
'vector4');
26040 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26041 this.addInput(
'bg',
'vector4');
26042 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26043 this.addInput(
'mix',
'float');
26044 this.addProperty(
'mix', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
26045 this.addOutput(
'out',
'vector4');
26046 this.title =
'mix_vector4';
26047 this.desc =
"MaterialX:mtlx/compositing/mix_vector4";
26048 this.onNodeCreated =
function() {
26051 this.onRemoved =
function() {
26054 this.onPropertyChanged =
function(name, value, prev_value) {
26055 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26057 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26058 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26060 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26061 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26063 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26064 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26066 this.bgcolor =
'#111';
26067 this.color =
'#222';
26068 this.shape = LiteGraph.ROUND_SHAPE;
26069 this.boxcolor =
'#275';
26082 this.nodedef_icon =
'';
26084 this.nodedef_type =
'vector4';
26086 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
26087 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_vector4_vector4_out_genglsl.png';
26088 this.nodedef_group =
'compositing';
26089 this.addInput(
'fg',
'vector4');
26090 this.addProperty(
'fg', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26091 this.addInput(
'bg',
'vector4');
26092 this.addProperty(
'bg', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26093 this.addInput(
'mix',
'vector4');
26094 this.addProperty(
'mix', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":[0,0,0,0],
"uimax":[1,1,1,1],
"uifolder":
"",
"defaultgeomprop":
""});
26095 this.addOutput(
'out',
'vector4');
26096 this.title =
'mix_vector4';
26097 this.desc =
"MaterialX:mtlx/compositing/mix_vector4_vector4";
26098 this.onNodeCreated =
function() {
26101 this.onRemoved =
function() {
26104 this.onPropertyChanged =
function(name, value, prev_value) {
26105 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26107 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26108 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26110 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26111 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26113 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26114 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26116 this.bgcolor =
'#111';
26117 this.color =
'#222';
26118 this.shape = LiteGraph.ROUND_SHAPE;
26119 this.boxcolor =
'#275';
26132 this.nodedef_icon =
'';
26134 this.nodedef_type =
'surfaceshader';
26136 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
26137 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_surfaceshader_out_genglsl.png';
26138 this.nodedef_group =
'compositing';
26139 this.addInput(
'fg',
'surfaceshader');
26140 this.addProperty(
'fg',
'',
'surfaceshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26141 this.addInput(
'bg',
'surfaceshader');
26142 this.addProperty(
'bg',
'',
'surfaceshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26143 this.addInput(
'mix',
'float');
26144 this.addProperty(
'mix', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
26145 this.addOutput(
'out',
'surfaceshader');
26146 this.title =
'mix_surfaceshader';
26147 this.desc =
"MaterialX:mtlx/compositing/mix_surfaceshader";
26148 this.onNodeCreated =
function() {
26151 this.onRemoved =
function() {
26154 this.onPropertyChanged =
function(name, value, prev_value) {
26155 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26157 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26158 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26160 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26161 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26163 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26164 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26166 this.bgcolor =
'#111';
26167 this.color =
'#232';
26168 this.shape = LiteGraph.ROUND_SHAPE;
26181 this.nodedef_icon =
'';
26183 this.nodedef_type =
'displacementshader';
26185 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
26186 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_displacementshader_out_genglsl.png';
26187 this.nodedef_group =
'compositing';
26188 this.addInput(
'fg',
'displacementshader');
26189 this.addProperty(
'fg',
'',
'displacementshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26190 this.addInput(
'bg',
'displacementshader');
26191 this.addProperty(
'bg',
'',
'displacementshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26192 this.addInput(
'mix',
'float');
26193 this.addProperty(
'mix', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
26194 this.addOutput(
'out',
'displacementshader');
26195 this.title =
'mix_displacementshader';
26196 this.desc =
"MaterialX:mtlx/compositing/mix_displacementshader";
26197 this.onNodeCreated =
function() {
26200 this.onRemoved =
function() {
26203 this.onPropertyChanged =
function(name, value, prev_value) {
26204 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26206 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26207 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26209 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26210 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26212 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26213 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26215 this.bgcolor =
'#111';
26216 this.color =
'#232';
26217 this.shape = LiteGraph.ROUND_SHAPE;
26230 this.nodedef_icon =
'';
26232 this.nodedef_type =
'volumeshader';
26234 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
26235 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_volumeshader_out_genglsl.png';
26236 this.nodedef_group =
'compositing';
26237 this.addInput(
'fg',
'volumeshader');
26238 this.addProperty(
'fg',
'',
'volumeshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26239 this.addInput(
'bg',
'volumeshader');
26240 this.addProperty(
'bg',
'',
'volumeshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26241 this.addInput(
'mix',
'float');
26242 this.addProperty(
'mix', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
26243 this.addOutput(
'out',
'volumeshader');
26244 this.title =
'mix_volumeshader';
26245 this.desc =
"MaterialX:mtlx/compositing/mix_volumeshader";
26246 this.onNodeCreated =
function() {
26249 this.onRemoved =
function() {
26252 this.onPropertyChanged =
function(name, value, prev_value) {
26253 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26255 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26256 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26258 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26259 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26261 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26262 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26264 this.bgcolor =
'#111';
26265 this.color =
'#222';
26266 this.shape = LiteGraph.ROUND_SHAPE;
26279 this.nodedef_icon =
'';
26281 this.nodedef_type =
'float';
26283 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26284 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_float_out_genglsl.png';
26285 this.nodedef_group =
'conditional';
26286 this.addInput(
'value1',
'float');
26287 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26288 this.addInput(
'value2',
'float');
26289 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26290 this.addInput(
'in1',
'float');
26291 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26292 this.addInput(
'in2',
'float');
26293 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26294 this.addOutput(
'out',
'float');
26295 this.title =
'ifgreater_float';
26296 this.desc =
"MaterialX:mtlx/conditional/ifgreater_float";
26297 this.onNodeCreated =
function() {
26300 this.onRemoved =
function() {
26303 this.onPropertyChanged =
function(name, value, prev_value) {
26304 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26306 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26307 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26309 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26310 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26312 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26313 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26315 this.bgcolor =
'#111';
26316 this.color =
'#532200';
26317 this.title_text_color =
'#000';
26318 this.shape = LiteGraph.CARD_SHAPE;
26319 this.boxcolor =
'#161';
26332 this.nodedef_icon =
'';
26334 this.nodedef_type =
'integer';
26336 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26337 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_integer_out_genglsl.png';
26338 this.nodedef_group =
'conditional';
26339 this.addInput(
'value1',
'float');
26340 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26341 this.addInput(
'value2',
'float');
26342 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26343 this.addInput(
'in1',
'integer');
26344 this.addProperty(
'in1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26345 this.addInput(
'in2',
'integer');
26346 this.addProperty(
'in2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26347 this.addOutput(
'out',
'integer');
26348 this.title =
'ifgreater_integer';
26349 this.desc =
"MaterialX:mtlx/conditional/ifgreater_integer";
26350 this.onNodeCreated =
function() {
26353 this.onRemoved =
function() {
26356 this.onPropertyChanged =
function(name, value, prev_value) {
26357 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26359 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26360 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26362 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26363 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26365 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26366 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26368 this.bgcolor =
'#111';
26369 this.color =
'#532200';
26370 this.title_text_color =
'#000';
26371 this.shape = LiteGraph.CARD_SHAPE;
26372 this.boxcolor =
'#A32';
26385 this.nodedef_icon =
'';
26387 this.nodedef_type =
'color3';
26389 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26390 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_color3_out_genglsl.png';
26391 this.nodedef_group =
'conditional';
26392 this.addInput(
'value1',
'float');
26393 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26394 this.addInput(
'value2',
'float');
26395 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26396 this.addInput(
'in1',
'color3');
26397 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26398 this.addInput(
'in2',
'color3');
26399 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26400 this.addOutput(
'out',
'color3');
26401 this.title =
'ifgreater_color3';
26402 this.desc =
"MaterialX:mtlx/conditional/ifgreater_color3";
26403 this.onNodeCreated =
function() {
26406 this.onRemoved =
function() {
26409 this.onPropertyChanged =
function(name, value, prev_value) {
26410 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26412 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26413 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26415 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26416 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26418 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26419 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26421 this.bgcolor =
'#111';
26422 this.color =
'#532200';
26423 this.title_text_color =
'#000';
26424 this.shape = LiteGraph.CARD_SHAPE;
26425 this.boxcolor =
'#37A';
26438 this.nodedef_icon =
'';
26440 this.nodedef_type =
'color4';
26442 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26443 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_color4_out_genglsl.png';
26444 this.nodedef_group =
'conditional';
26445 this.addInput(
'value1',
'float');
26446 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26447 this.addInput(
'value2',
'float');
26448 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26449 this.addInput(
'in1',
'color4');
26450 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26451 this.addInput(
'in2',
'color4');
26452 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26453 this.addOutput(
'out',
'color4');
26454 this.title =
'ifgreater_color4';
26455 this.desc =
"MaterialX:mtlx/conditional/ifgreater_color4";
26456 this.onNodeCreated =
function() {
26459 this.onRemoved =
function() {
26462 this.onPropertyChanged =
function(name, value, prev_value) {
26463 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26465 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26466 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26468 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26469 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26471 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26472 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26474 this.bgcolor =
'#111';
26475 this.color =
'#532200';
26476 this.title_text_color =
'#000';
26477 this.shape = LiteGraph.CARD_SHAPE;
26478 this.boxcolor =
'#69A';
26491 this.nodedef_icon =
'';
26493 this.nodedef_type =
'vector2';
26495 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26496 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_vector2_out_genglsl.png';
26497 this.nodedef_group =
'conditional';
26498 this.addInput(
'value1',
'float');
26499 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26500 this.addInput(
'value2',
'float');
26501 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26502 this.addInput(
'in1',
'vector2');
26503 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26504 this.addInput(
'in2',
'vector2');
26505 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26506 this.addOutput(
'out',
'vector2');
26507 this.title =
'ifgreater_vector2';
26508 this.desc =
"MaterialX:mtlx/conditional/ifgreater_vector2";
26509 this.onNodeCreated =
function() {
26512 this.onRemoved =
function() {
26515 this.onPropertyChanged =
function(name, value, prev_value) {
26516 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26518 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26519 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26521 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26522 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26524 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26525 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26527 this.bgcolor =
'#111';
26528 this.color =
'#532200';
26529 this.title_text_color =
'#000';
26530 this.shape = LiteGraph.CARD_SHAPE;
26531 this.boxcolor =
'#265';
26544 this.nodedef_icon =
'';
26546 this.nodedef_type =
'vector3';
26548 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26549 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_vector3_out_genglsl.png';
26550 this.nodedef_group =
'conditional';
26551 this.addInput(
'value1',
'float');
26552 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26553 this.addInput(
'value2',
'float');
26554 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26555 this.addInput(
'in1',
'vector3');
26556 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26557 this.addInput(
'in2',
'vector3');
26558 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26559 this.addOutput(
'out',
'vector3');
26560 this.title =
'ifgreater_vector3';
26561 this.desc =
"MaterialX:mtlx/conditional/ifgreater_vector3";
26562 this.onNodeCreated =
function() {
26565 this.onRemoved =
function() {
26568 this.onPropertyChanged =
function(name, value, prev_value) {
26569 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26571 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26572 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26574 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26575 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26577 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26578 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26580 this.bgcolor =
'#111';
26581 this.color =
'#532200';
26582 this.title_text_color =
'#000';
26583 this.shape = LiteGraph.CARD_SHAPE;
26584 this.boxcolor =
'#465';
26597 this.nodedef_icon =
'';
26599 this.nodedef_type =
'vector4';
26601 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26602 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_vector4_out_genglsl.png';
26603 this.nodedef_group =
'conditional';
26604 this.addInput(
'value1',
'float');
26605 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26606 this.addInput(
'value2',
'float');
26607 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26608 this.addInput(
'in1',
'vector4');
26609 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26610 this.addInput(
'in2',
'vector4');
26611 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26612 this.addOutput(
'out',
'vector4');
26613 this.title =
'ifgreater_vector4';
26614 this.desc =
"MaterialX:mtlx/conditional/ifgreater_vector4";
26615 this.onNodeCreated =
function() {
26618 this.onRemoved =
function() {
26621 this.onPropertyChanged =
function(name, value, prev_value) {
26622 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26624 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26625 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26627 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26628 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26630 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26631 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26633 this.bgcolor =
'#111';
26634 this.color =
'#532200';
26635 this.title_text_color =
'#000';
26636 this.shape = LiteGraph.CARD_SHAPE;
26637 this.boxcolor =
'#275';
26650 this.nodedef_icon =
'';
26652 this.nodedef_type =
'matrix33';
26654 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26655 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_matrix33_out_genglsl.png';
26656 this.nodedef_group =
'conditional';
26657 this.addInput(
'value1',
'float');
26658 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26659 this.addInput(
'value2',
'float');
26660 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26661 this.addInput(
'in1',
'matrix33');
26662 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26663 this.addInput(
'in2',
'matrix33');
26664 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26665 this.addOutput(
'out',
'matrix33');
26666 this.title =
'ifgreater_matrix33';
26667 this.desc =
"MaterialX:mtlx/conditional/ifgreater_matrix33";
26668 this.onNodeCreated =
function() {
26671 this.onRemoved =
function() {
26674 this.onPropertyChanged =
function(name, value, prev_value) {
26675 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26677 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26678 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26680 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26681 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26683 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26684 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26686 this.bgcolor =
'#111';
26687 this.color =
'#532200';
26688 this.title_text_color =
'#000';
26689 this.shape = LiteGraph.CARD_SHAPE;
26690 this.boxcolor =
'#333';
26703 this.nodedef_icon =
'';
26705 this.nodedef_type =
'matrix44';
26707 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26708 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_matrix44_out_genglsl.png';
26709 this.nodedef_group =
'conditional';
26710 this.addInput(
'value1',
'float');
26711 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26712 this.addInput(
'value2',
'float');
26713 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26714 this.addInput(
'in1',
'matrix44');
26715 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26716 this.addInput(
'in2',
'matrix44');
26717 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26718 this.addOutput(
'out',
'matrix44');
26719 this.title =
'ifgreater_matrix44';
26720 this.desc =
"MaterialX:mtlx/conditional/ifgreater_matrix44";
26721 this.onNodeCreated =
function() {
26724 this.onRemoved =
function() {
26727 this.onPropertyChanged =
function(name, value, prev_value) {
26728 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26730 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26731 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26733 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26734 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26736 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26737 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26739 this.bgcolor =
'#111';
26740 this.color =
'#532200';
26741 this.title_text_color =
'#000';
26742 this.shape = LiteGraph.CARD_SHAPE;
26743 this.boxcolor =
'#444';
26756 this.nodedef_icon =
'';
26758 this.nodedef_type =
'boolean';
26760 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26761 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_boolean_out_genglsl.png';
26762 this.nodedef_group =
'conditional';
26763 this.addInput(
'value1',
'float');
26764 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26765 this.addInput(
'value2',
'float');
26766 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26767 this.addOutput(
'out',
'boolean');
26768 this.title =
'ifgreater_boolean';
26769 this.desc =
"MaterialX:mtlx/conditional/ifgreater_boolean";
26770 this.onNodeCreated =
function() {
26773 this.onRemoved =
function() {
26776 this.onPropertyChanged =
function(name, value, prev_value) {
26777 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26779 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26780 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26782 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26783 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26785 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26786 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26788 this.bgcolor =
'#111';
26789 this.color =
'#532200';
26790 this.title_text_color =
'#000';
26791 this.shape = LiteGraph.CARD_SHAPE;
26792 this.boxcolor =
'#060';
26805 this.nodedef_icon =
'';
26807 this.nodedef_type =
'float';
26809 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26810 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_floatI_out_genglsl.png';
26811 this.nodedef_group =
'conditional';
26812 this.addInput(
'value1',
'integer');
26813 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26814 this.addInput(
'value2',
'integer');
26815 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26816 this.addInput(
'in1',
'float');
26817 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26818 this.addInput(
'in2',
'float');
26819 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26820 this.addOutput(
'out',
'float');
26821 this.title =
'ifgreater_float';
26822 this.desc =
"MaterialX:mtlx/conditional/ifgreater_floatI";
26823 this.onNodeCreated =
function() {
26826 this.onRemoved =
function() {
26829 this.onPropertyChanged =
function(name, value, prev_value) {
26830 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26832 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26833 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26835 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26836 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26838 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26839 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26841 this.bgcolor =
'#111';
26842 this.color =
'#532200';
26843 this.title_text_color =
'#000';
26844 this.shape = LiteGraph.CARD_SHAPE;
26845 this.boxcolor =
'#161';
26858 this.nodedef_icon =
'';
26860 this.nodedef_type =
'integer';
26862 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26863 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_integerI_out_genglsl.png';
26864 this.nodedef_group =
'conditional';
26865 this.addInput(
'value1',
'integer');
26866 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26867 this.addInput(
'value2',
'integer');
26868 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26869 this.addInput(
'in1',
'integer');
26870 this.addProperty(
'in1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26871 this.addInput(
'in2',
'integer');
26872 this.addProperty(
'in2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26873 this.addOutput(
'out',
'integer');
26874 this.title =
'ifgreater_integer';
26875 this.desc =
"MaterialX:mtlx/conditional/ifgreater_integerI";
26876 this.onNodeCreated =
function() {
26879 this.onRemoved =
function() {
26882 this.onPropertyChanged =
function(name, value, prev_value) {
26883 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26885 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26886 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26888 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26889 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26891 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26892 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26894 this.bgcolor =
'#111';
26895 this.color =
'#532200';
26896 this.title_text_color =
'#000';
26897 this.shape = LiteGraph.CARD_SHAPE;
26898 this.boxcolor =
'#A32';
26911 this.nodedef_icon =
'';
26913 this.nodedef_type =
'color3';
26915 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26916 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_color3I_out_genglsl.png';
26917 this.nodedef_group =
'conditional';
26918 this.addInput(
'value1',
'integer');
26919 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26920 this.addInput(
'value2',
'integer');
26921 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26922 this.addInput(
'in1',
'color3');
26923 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26924 this.addInput(
'in2',
'color3');
26925 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26926 this.addOutput(
'out',
'color3');
26927 this.title =
'ifgreater_color3';
26928 this.desc =
"MaterialX:mtlx/conditional/ifgreater_color3I";
26929 this.onNodeCreated =
function() {
26932 this.onRemoved =
function() {
26935 this.onPropertyChanged =
function(name, value, prev_value) {
26936 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26938 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26939 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26941 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26942 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26944 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26945 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
26947 this.bgcolor =
'#111';
26948 this.color =
'#532200';
26949 this.title_text_color =
'#000';
26950 this.shape = LiteGraph.CARD_SHAPE;
26951 this.boxcolor =
'#37A';
26964 this.nodedef_icon =
'';
26966 this.nodedef_type =
'color4';
26968 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
26969 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_color4I_out_genglsl.png';
26970 this.nodedef_group =
'conditional';
26971 this.addInput(
'value1',
'integer');
26972 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26973 this.addInput(
'value2',
'integer');
26974 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26975 this.addInput(
'in1',
'color4');
26976 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26977 this.addInput(
'in2',
'color4');
26978 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
26979 this.addOutput(
'out',
'color4');
26980 this.title =
'ifgreater_color4';
26981 this.desc =
"MaterialX:mtlx/conditional/ifgreater_color4I";
26982 this.onNodeCreated =
function() {
26985 this.onRemoved =
function() {
26988 this.onPropertyChanged =
function(name, value, prev_value) {
26989 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
26991 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
26992 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
26994 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
26995 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
26997 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
26998 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27000 this.bgcolor =
'#111';
27001 this.color =
'#532200';
27002 this.title_text_color =
'#000';
27003 this.shape = LiteGraph.CARD_SHAPE;
27004 this.boxcolor =
'#69A';
27017 this.nodedef_icon =
'';
27019 this.nodedef_type =
'vector2';
27021 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
27022 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_vector2I_out_genglsl.png';
27023 this.nodedef_group =
'conditional';
27024 this.addInput(
'value1',
'integer');
27025 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27026 this.addInput(
'value2',
'integer');
27027 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27028 this.addInput(
'in1',
'vector2');
27029 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27030 this.addInput(
'in2',
'vector2');
27031 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27032 this.addOutput(
'out',
'vector2');
27033 this.title =
'ifgreater_vector2';
27034 this.desc =
"MaterialX:mtlx/conditional/ifgreater_vector2I";
27035 this.onNodeCreated =
function() {
27038 this.onRemoved =
function() {
27041 this.onPropertyChanged =
function(name, value, prev_value) {
27042 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27044 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27045 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27047 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27048 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27050 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27051 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27053 this.bgcolor =
'#111';
27054 this.color =
'#532200';
27055 this.title_text_color =
'#000';
27056 this.shape = LiteGraph.CARD_SHAPE;
27057 this.boxcolor =
'#265';
27070 this.nodedef_icon =
'';
27072 this.nodedef_type =
'vector3';
27074 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
27075 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_vector3I_out_genglsl.png';
27076 this.nodedef_group =
'conditional';
27077 this.addInput(
'value1',
'integer');
27078 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27079 this.addInput(
'value2',
'integer');
27080 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27081 this.addInput(
'in1',
'vector3');
27082 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27083 this.addInput(
'in2',
'vector3');
27084 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27085 this.addOutput(
'out',
'vector3');
27086 this.title =
'ifgreater_vector3';
27087 this.desc =
"MaterialX:mtlx/conditional/ifgreater_vector3I";
27088 this.onNodeCreated =
function() {
27091 this.onRemoved =
function() {
27094 this.onPropertyChanged =
function(name, value, prev_value) {
27095 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27097 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27098 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27100 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27101 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27103 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27104 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27106 this.bgcolor =
'#111';
27107 this.color =
'#532200';
27108 this.title_text_color =
'#000';
27109 this.shape = LiteGraph.CARD_SHAPE;
27110 this.boxcolor =
'#465';
27123 this.nodedef_icon =
'';
27125 this.nodedef_type =
'vector4';
27127 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
27128 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_vector4I_out_genglsl.png';
27129 this.nodedef_group =
'conditional';
27130 this.addInput(
'value1',
'integer');
27131 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27132 this.addInput(
'value2',
'integer');
27133 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27134 this.addInput(
'in1',
'vector4');
27135 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27136 this.addInput(
'in2',
'vector4');
27137 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27138 this.addOutput(
'out',
'vector4');
27139 this.title =
'ifgreater_vector4';
27140 this.desc =
"MaterialX:mtlx/conditional/ifgreater_vector4I";
27141 this.onNodeCreated =
function() {
27144 this.onRemoved =
function() {
27147 this.onPropertyChanged =
function(name, value, prev_value) {
27148 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27150 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27151 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27153 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27154 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27156 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27157 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27159 this.bgcolor =
'#111';
27160 this.color =
'#532200';
27161 this.title_text_color =
'#000';
27162 this.shape = LiteGraph.CARD_SHAPE;
27163 this.boxcolor =
'#275';
27176 this.nodedef_icon =
'';
27178 this.nodedef_type =
'matrix33';
27180 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
27181 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_matrix33I_out_genglsl.png';
27182 this.nodedef_group =
'conditional';
27183 this.addInput(
'value1',
'integer');
27184 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27185 this.addInput(
'value2',
'integer');
27186 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27187 this.addInput(
'in1',
'matrix33');
27188 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27189 this.addInput(
'in2',
'matrix33');
27190 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27191 this.addOutput(
'out',
'matrix33');
27192 this.title =
'ifgreater_matrix33';
27193 this.desc =
"MaterialX:mtlx/conditional/ifgreater_matrix33I";
27194 this.onNodeCreated =
function() {
27197 this.onRemoved =
function() {
27200 this.onPropertyChanged =
function(name, value, prev_value) {
27201 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27203 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27204 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27206 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27207 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27209 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27210 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27212 this.bgcolor =
'#111';
27213 this.color =
'#532200';
27214 this.title_text_color =
'#000';
27215 this.shape = LiteGraph.CARD_SHAPE;
27216 this.boxcolor =
'#333';
27229 this.nodedef_icon =
'';
27231 this.nodedef_type =
'matrix44';
27233 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
27234 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_matrix44I_out_genglsl.png';
27235 this.nodedef_group =
'conditional';
27236 this.addInput(
'value1',
'integer');
27237 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27238 this.addInput(
'value2',
'integer');
27239 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27240 this.addInput(
'in1',
'matrix44');
27241 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27242 this.addInput(
'in2',
'matrix44');
27243 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27244 this.addOutput(
'out',
'matrix44');
27245 this.title =
'ifgreater_matrix44';
27246 this.desc =
"MaterialX:mtlx/conditional/ifgreater_matrix44I";
27247 this.onNodeCreated =
function() {
27250 this.onRemoved =
function() {
27253 this.onPropertyChanged =
function(name, value, prev_value) {
27254 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27256 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27257 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27259 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27260 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27262 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27263 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27265 this.bgcolor =
'#111';
27266 this.color =
'#532200';
27267 this.title_text_color =
'#000';
27268 this.shape = LiteGraph.CARD_SHAPE;
27269 this.boxcolor =
'#444';
27282 this.nodedef_icon =
'';
27284 this.nodedef_type =
'boolean';
27286 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreater.html';
27287 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreater_booleanI_out_genglsl.png';
27288 this.nodedef_group =
'conditional';
27289 this.addInput(
'value1',
'integer');
27290 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27291 this.addInput(
'value2',
'integer');
27292 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27293 this.addOutput(
'out',
'boolean');
27294 this.title =
'ifgreater_boolean';
27295 this.desc =
"MaterialX:mtlx/conditional/ifgreater_booleanI";
27296 this.onNodeCreated =
function() {
27299 this.onRemoved =
function() {
27302 this.onPropertyChanged =
function(name, value, prev_value) {
27303 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27305 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27306 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27308 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27309 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27311 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27312 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27314 this.bgcolor =
'#111';
27315 this.color =
'#532200';
27316 this.title_text_color =
'#000';
27317 this.shape = LiteGraph.CARD_SHAPE;
27318 this.boxcolor =
'#060';
27331 this.nodedef_icon =
'';
27333 this.nodedef_type =
'float';
27335 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27336 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_float_out_genglsl.png';
27337 this.nodedef_group =
'conditional';
27338 this.addInput(
'value1',
'float');
27339 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27340 this.addInput(
'value2',
'float');
27341 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27342 this.addInput(
'in1',
'float');
27343 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27344 this.addInput(
'in2',
'float');
27345 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27346 this.addOutput(
'out',
'float');
27347 this.title =
'ifgreatereq_float';
27348 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_float";
27349 this.onNodeCreated =
function() {
27352 this.onRemoved =
function() {
27355 this.onPropertyChanged =
function(name, value, prev_value) {
27356 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27358 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27359 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27361 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27362 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27364 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27365 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27367 this.bgcolor =
'#111';
27368 this.color =
'#532200';
27369 this.title_text_color =
'#000';
27370 this.shape = LiteGraph.CARD_SHAPE;
27371 this.boxcolor =
'#161';
27384 this.nodedef_icon =
'';
27386 this.nodedef_type =
'integer';
27388 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27389 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_integer_out_genglsl.png';
27390 this.nodedef_group =
'conditional';
27391 this.addInput(
'value1',
'float');
27392 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27393 this.addInput(
'value2',
'float');
27394 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27395 this.addInput(
'in1',
'integer');
27396 this.addProperty(
'in1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27397 this.addInput(
'in2',
'integer');
27398 this.addProperty(
'in2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27399 this.addOutput(
'out',
'integer');
27400 this.title =
'ifgreatereq_integer';
27401 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_integer";
27402 this.onNodeCreated =
function() {
27405 this.onRemoved =
function() {
27408 this.onPropertyChanged =
function(name, value, prev_value) {
27409 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27411 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27412 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27414 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27415 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27417 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27418 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27420 this.bgcolor =
'#111';
27421 this.color =
'#532200';
27422 this.title_text_color =
'#000';
27423 this.shape = LiteGraph.CARD_SHAPE;
27424 this.boxcolor =
'#A32';
27437 this.nodedef_icon =
'';
27439 this.nodedef_type =
'color3';
27441 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27442 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_color3_out_genglsl.png';
27443 this.nodedef_group =
'conditional';
27444 this.addInput(
'value1',
'float');
27445 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27446 this.addInput(
'value2',
'float');
27447 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27448 this.addInput(
'in1',
'color3');
27449 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27450 this.addInput(
'in2',
'color3');
27451 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27452 this.addOutput(
'out',
'color3');
27453 this.title =
'ifgreatereq_color3';
27454 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_color3";
27455 this.onNodeCreated =
function() {
27458 this.onRemoved =
function() {
27461 this.onPropertyChanged =
function(name, value, prev_value) {
27462 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27464 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27465 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27467 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27468 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27470 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27471 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27473 this.bgcolor =
'#111';
27474 this.color =
'#532200';
27475 this.title_text_color =
'#000';
27476 this.shape = LiteGraph.CARD_SHAPE;
27477 this.boxcolor =
'#37A';
27490 this.nodedef_icon =
'';
27492 this.nodedef_type =
'color4';
27494 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27495 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_color4_out_genglsl.png';
27496 this.nodedef_group =
'conditional';
27497 this.addInput(
'value1',
'float');
27498 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27499 this.addInput(
'value2',
'float');
27500 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27501 this.addInput(
'in1',
'color4');
27502 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27503 this.addInput(
'in2',
'color4');
27504 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27505 this.addOutput(
'out',
'color4');
27506 this.title =
'ifgreatereq_color4';
27507 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_color4";
27508 this.onNodeCreated =
function() {
27511 this.onRemoved =
function() {
27514 this.onPropertyChanged =
function(name, value, prev_value) {
27515 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27517 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27518 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27520 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27521 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27523 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27524 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27526 this.bgcolor =
'#111';
27527 this.color =
'#532200';
27528 this.title_text_color =
'#000';
27529 this.shape = LiteGraph.CARD_SHAPE;
27530 this.boxcolor =
'#69A';
27543 this.nodedef_icon =
'';
27545 this.nodedef_type =
'vector2';
27547 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27548 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_vector2_out_genglsl.png';
27549 this.nodedef_group =
'conditional';
27550 this.addInput(
'value1',
'float');
27551 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27552 this.addInput(
'value2',
'float');
27553 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27554 this.addInput(
'in1',
'vector2');
27555 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27556 this.addInput(
'in2',
'vector2');
27557 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27558 this.addOutput(
'out',
'vector2');
27559 this.title =
'ifgreatereq_vector2';
27560 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_vector2";
27561 this.onNodeCreated =
function() {
27564 this.onRemoved =
function() {
27567 this.onPropertyChanged =
function(name, value, prev_value) {
27568 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27570 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27571 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27573 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27574 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27576 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27577 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27579 this.bgcolor =
'#111';
27580 this.color =
'#532200';
27581 this.title_text_color =
'#000';
27582 this.shape = LiteGraph.CARD_SHAPE;
27583 this.boxcolor =
'#265';
27596 this.nodedef_icon =
'';
27598 this.nodedef_type =
'vector3';
27600 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27601 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_vector3_out_genglsl.png';
27602 this.nodedef_group =
'conditional';
27603 this.addInput(
'value1',
'float');
27604 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27605 this.addInput(
'value2',
'float');
27606 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27607 this.addInput(
'in1',
'vector3');
27608 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27609 this.addInput(
'in2',
'vector3');
27610 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27611 this.addOutput(
'out',
'vector3');
27612 this.title =
'ifgreatereq_vector3';
27613 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_vector3";
27614 this.onNodeCreated =
function() {
27617 this.onRemoved =
function() {
27620 this.onPropertyChanged =
function(name, value, prev_value) {
27621 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27623 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27624 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27626 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27627 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27629 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27630 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27632 this.bgcolor =
'#111';
27633 this.color =
'#532200';
27634 this.title_text_color =
'#000';
27635 this.shape = LiteGraph.CARD_SHAPE;
27636 this.boxcolor =
'#465';
27649 this.nodedef_icon =
'';
27651 this.nodedef_type =
'vector4';
27653 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27654 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_vector4_out_genglsl.png';
27655 this.nodedef_group =
'conditional';
27656 this.addInput(
'value1',
'float');
27657 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27658 this.addInput(
'value2',
'float');
27659 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27660 this.addInput(
'in1',
'vector4');
27661 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27662 this.addInput(
'in2',
'vector4');
27663 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27664 this.addOutput(
'out',
'vector4');
27665 this.title =
'ifgreatereq_vector4';
27666 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_vector4";
27667 this.onNodeCreated =
function() {
27670 this.onRemoved =
function() {
27673 this.onPropertyChanged =
function(name, value, prev_value) {
27674 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27676 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27677 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27679 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27680 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27682 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27683 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27685 this.bgcolor =
'#111';
27686 this.color =
'#532200';
27687 this.title_text_color =
'#000';
27688 this.shape = LiteGraph.CARD_SHAPE;
27689 this.boxcolor =
'#275';
27702 this.nodedef_icon =
'';
27704 this.nodedef_type =
'matrix33';
27706 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27707 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix33_out_genglsl.png';
27708 this.nodedef_group =
'conditional';
27709 this.addInput(
'value1',
'float');
27710 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27711 this.addInput(
'value2',
'float');
27712 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27713 this.addInput(
'in1',
'matrix33');
27714 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27715 this.addInput(
'in2',
'matrix33');
27716 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27717 this.addOutput(
'out',
'matrix33');
27718 this.title =
'ifgreatereq_matrix33';
27719 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_matrix33";
27720 this.onNodeCreated =
function() {
27723 this.onRemoved =
function() {
27726 this.onPropertyChanged =
function(name, value, prev_value) {
27727 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27729 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27730 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27732 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27733 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27735 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27736 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27738 this.bgcolor =
'#111';
27739 this.color =
'#532200';
27740 this.title_text_color =
'#000';
27741 this.shape = LiteGraph.CARD_SHAPE;
27742 this.boxcolor =
'#333';
27755 this.nodedef_icon =
'';
27757 this.nodedef_type =
'matrix44';
27759 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27760 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix44_out_genglsl.png';
27761 this.nodedef_group =
'conditional';
27762 this.addInput(
'value1',
'float');
27763 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27764 this.addInput(
'value2',
'float');
27765 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27766 this.addInput(
'in1',
'matrix44');
27767 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27768 this.addInput(
'in2',
'matrix44');
27769 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27770 this.addOutput(
'out',
'matrix44');
27771 this.title =
'ifgreatereq_matrix44';
27772 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_matrix44";
27773 this.onNodeCreated =
function() {
27776 this.onRemoved =
function() {
27779 this.onPropertyChanged =
function(name, value, prev_value) {
27780 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27782 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27783 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27785 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27786 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27788 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27789 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27791 this.bgcolor =
'#111';
27792 this.color =
'#532200';
27793 this.title_text_color =
'#000';
27794 this.shape = LiteGraph.CARD_SHAPE;
27795 this.boxcolor =
'#444';
27808 this.nodedef_icon =
'';
27810 this.nodedef_type =
'boolean';
27812 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27813 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_boolean_out_genglsl.png';
27814 this.nodedef_group =
'conditional';
27815 this.addInput(
'value1',
'float');
27816 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27817 this.addInput(
'value2',
'float');
27818 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27819 this.addOutput(
'out',
'boolean');
27820 this.title =
'ifgreatereq_boolean';
27821 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_boolean";
27822 this.onNodeCreated =
function() {
27825 this.onRemoved =
function() {
27828 this.onPropertyChanged =
function(name, value, prev_value) {
27829 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27831 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27832 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27834 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27835 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27837 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27838 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27840 this.bgcolor =
'#111';
27841 this.color =
'#532200';
27842 this.title_text_color =
'#000';
27843 this.shape = LiteGraph.CARD_SHAPE;
27844 this.boxcolor =
'#060';
27857 this.nodedef_icon =
'';
27859 this.nodedef_type =
'float';
27861 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27862 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_floatI_out_genglsl.png';
27863 this.nodedef_group =
'conditional';
27864 this.addInput(
'value1',
'integer');
27865 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27866 this.addInput(
'value2',
'integer');
27867 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27868 this.addInput(
'in1',
'float');
27869 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27870 this.addInput(
'in2',
'float');
27871 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27872 this.addOutput(
'out',
'float');
27873 this.title =
'ifgreatereq_float';
27874 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_floatI";
27875 this.onNodeCreated =
function() {
27878 this.onRemoved =
function() {
27881 this.onPropertyChanged =
function(name, value, prev_value) {
27882 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27884 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27885 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27887 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27888 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27890 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27891 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27893 this.bgcolor =
'#111';
27894 this.color =
'#532200';
27895 this.title_text_color =
'#000';
27896 this.shape = LiteGraph.CARD_SHAPE;
27897 this.boxcolor =
'#161';
27910 this.nodedef_icon =
'';
27912 this.nodedef_type =
'integer';
27914 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27915 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_integerI_out_genglsl.png';
27916 this.nodedef_group =
'conditional';
27917 this.addInput(
'value1',
'integer');
27918 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27919 this.addInput(
'value2',
'integer');
27920 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27921 this.addInput(
'in1',
'integer');
27922 this.addProperty(
'in1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27923 this.addInput(
'in2',
'integer');
27924 this.addProperty(
'in2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27925 this.addOutput(
'out',
'integer');
27926 this.title =
'ifgreatereq_integer';
27927 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_integerI";
27928 this.onNodeCreated =
function() {
27931 this.onRemoved =
function() {
27934 this.onPropertyChanged =
function(name, value, prev_value) {
27935 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27937 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27938 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27940 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27941 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27943 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27944 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27946 this.bgcolor =
'#111';
27947 this.color =
'#532200';
27948 this.title_text_color =
'#000';
27949 this.shape = LiteGraph.CARD_SHAPE;
27950 this.boxcolor =
'#A32';
27963 this.nodedef_icon =
'';
27965 this.nodedef_type =
'color3';
27967 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
27968 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_color3I_out_genglsl.png';
27969 this.nodedef_group =
'conditional';
27970 this.addInput(
'value1',
'integer');
27971 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27972 this.addInput(
'value2',
'integer');
27973 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27974 this.addInput(
'in1',
'color3');
27975 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27976 this.addInput(
'in2',
'color3');
27977 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
27978 this.addOutput(
'out',
'color3');
27979 this.title =
'ifgreatereq_color3';
27980 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_color3I";
27981 this.onNodeCreated =
function() {
27984 this.onRemoved =
function() {
27987 this.onPropertyChanged =
function(name, value, prev_value) {
27988 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
27990 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
27991 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
27993 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
27994 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
27996 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
27997 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
27999 this.bgcolor =
'#111';
28000 this.color =
'#532200';
28001 this.title_text_color =
'#000';
28002 this.shape = LiteGraph.CARD_SHAPE;
28003 this.boxcolor =
'#37A';
28016 this.nodedef_icon =
'';
28018 this.nodedef_type =
'color4';
28020 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
28021 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_color4I_out_genglsl.png';
28022 this.nodedef_group =
'conditional';
28023 this.addInput(
'value1',
'integer');
28024 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28025 this.addInput(
'value2',
'integer');
28026 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28027 this.addInput(
'in1',
'color4');
28028 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28029 this.addInput(
'in2',
'color4');
28030 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28031 this.addOutput(
'out',
'color4');
28032 this.title =
'ifgreatereq_color4';
28033 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_color4I";
28034 this.onNodeCreated =
function() {
28037 this.onRemoved =
function() {
28040 this.onPropertyChanged =
function(name, value, prev_value) {
28041 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28043 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28044 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28046 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28047 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28049 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28050 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28052 this.bgcolor =
'#111';
28053 this.color =
'#532200';
28054 this.title_text_color =
'#000';
28055 this.shape = LiteGraph.CARD_SHAPE;
28056 this.boxcolor =
'#69A';
28069 this.nodedef_icon =
'';
28071 this.nodedef_type =
'vector2';
28073 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
28074 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_vector2I_out_genglsl.png';
28075 this.nodedef_group =
'conditional';
28076 this.addInput(
'value1',
'integer');
28077 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28078 this.addInput(
'value2',
'integer');
28079 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28080 this.addInput(
'in1',
'vector2');
28081 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28082 this.addInput(
'in2',
'vector2');
28083 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28084 this.addOutput(
'out',
'vector2');
28085 this.title =
'ifgreatereq_vector2';
28086 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_vector2I";
28087 this.onNodeCreated =
function() {
28090 this.onRemoved =
function() {
28093 this.onPropertyChanged =
function(name, value, prev_value) {
28094 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28096 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28097 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28099 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28100 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28102 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28103 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28105 this.bgcolor =
'#111';
28106 this.color =
'#532200';
28107 this.title_text_color =
'#000';
28108 this.shape = LiteGraph.CARD_SHAPE;
28109 this.boxcolor =
'#265';
28122 this.nodedef_icon =
'';
28124 this.nodedef_type =
'vector3';
28126 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
28127 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_vector3I_out_genglsl.png';
28128 this.nodedef_group =
'conditional';
28129 this.addInput(
'value1',
'integer');
28130 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28131 this.addInput(
'value2',
'integer');
28132 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28133 this.addInput(
'in1',
'vector3');
28134 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28135 this.addInput(
'in2',
'vector3');
28136 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28137 this.addOutput(
'out',
'vector3');
28138 this.title =
'ifgreatereq_vector3';
28139 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_vector3I";
28140 this.onNodeCreated =
function() {
28143 this.onRemoved =
function() {
28146 this.onPropertyChanged =
function(name, value, prev_value) {
28147 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28149 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28150 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28152 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28153 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28155 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28156 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28158 this.bgcolor =
'#111';
28159 this.color =
'#532200';
28160 this.title_text_color =
'#000';
28161 this.shape = LiteGraph.CARD_SHAPE;
28162 this.boxcolor =
'#465';
28175 this.nodedef_icon =
'';
28177 this.nodedef_type =
'vector4';
28179 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
28180 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_vector4I_out_genglsl.png';
28181 this.nodedef_group =
'conditional';
28182 this.addInput(
'value1',
'integer');
28183 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28184 this.addInput(
'value2',
'integer');
28185 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28186 this.addInput(
'in1',
'vector4');
28187 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28188 this.addInput(
'in2',
'vector4');
28189 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28190 this.addOutput(
'out',
'vector4');
28191 this.title =
'ifgreatereq_vector4';
28192 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_vector4I";
28193 this.onNodeCreated =
function() {
28196 this.onRemoved =
function() {
28199 this.onPropertyChanged =
function(name, value, prev_value) {
28200 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28202 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28203 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28205 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28206 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28208 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28209 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28211 this.bgcolor =
'#111';
28212 this.color =
'#532200';
28213 this.title_text_color =
'#000';
28214 this.shape = LiteGraph.CARD_SHAPE;
28215 this.boxcolor =
'#275';
28228 this.nodedef_icon =
'';
28230 this.nodedef_type =
'matrix33';
28232 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
28233 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix33I_out_genglsl.png';
28234 this.nodedef_group =
'conditional';
28235 this.addInput(
'value1',
'integer');
28236 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28237 this.addInput(
'value2',
'integer');
28238 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28239 this.addInput(
'in1',
'matrix33');
28240 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28241 this.addInput(
'in2',
'matrix33');
28242 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28243 this.addOutput(
'out',
'matrix33');
28244 this.title =
'ifgreatereq_matrix33';
28245 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_matrix33I";
28246 this.onNodeCreated =
function() {
28249 this.onRemoved =
function() {
28252 this.onPropertyChanged =
function(name, value, prev_value) {
28253 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28255 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28256 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28258 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28259 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28261 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28262 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28264 this.bgcolor =
'#111';
28265 this.color =
'#532200';
28266 this.title_text_color =
'#000';
28267 this.shape = LiteGraph.CARD_SHAPE;
28268 this.boxcolor =
'#333';
28281 this.nodedef_icon =
'';
28283 this.nodedef_type =
'matrix44';
28285 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
28286 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_matrix44I_out_genglsl.png';
28287 this.nodedef_group =
'conditional';
28288 this.addInput(
'value1',
'integer');
28289 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28290 this.addInput(
'value2',
'integer');
28291 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28292 this.addInput(
'in1',
'matrix44');
28293 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28294 this.addInput(
'in2',
'matrix44');
28295 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28296 this.addOutput(
'out',
'matrix44');
28297 this.title =
'ifgreatereq_matrix44';
28298 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_matrix44I";
28299 this.onNodeCreated =
function() {
28302 this.onRemoved =
function() {
28305 this.onPropertyChanged =
function(name, value, prev_value) {
28306 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28308 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28309 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28311 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28312 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28314 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28315 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28317 this.bgcolor =
'#111';
28318 this.color =
'#532200';
28319 this.title_text_color =
'#000';
28320 this.shape = LiteGraph.CARD_SHAPE;
28321 this.boxcolor =
'#444';
28334 this.nodedef_icon =
'';
28336 this.nodedef_type =
'boolean';
28338 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifgreatereq.html';
28339 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifgreatereq_booleanI_out_genglsl.png';
28340 this.nodedef_group =
'conditional';
28341 this.addInput(
'value1',
'integer');
28342 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28343 this.addInput(
'value2',
'integer');
28344 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28345 this.addOutput(
'out',
'boolean');
28346 this.title =
'ifgreatereq_boolean';
28347 this.desc =
"MaterialX:mtlx/conditional/ifgreatereq_booleanI";
28348 this.onNodeCreated =
function() {
28351 this.onRemoved =
function() {
28354 this.onPropertyChanged =
function(name, value, prev_value) {
28355 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28357 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28358 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28360 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28361 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28363 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28364 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28366 this.bgcolor =
'#111';
28367 this.color =
'#532200';
28368 this.title_text_color =
'#000';
28369 this.shape = LiteGraph.CARD_SHAPE;
28370 this.boxcolor =
'#060';
28383 this.nodedef_icon =
'';
28385 this.nodedef_type =
'float';
28387 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28388 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_float_out_genglsl.png';
28389 this.nodedef_group =
'conditional';
28390 this.addInput(
'value1',
'float');
28391 this.addProperty(
'value1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28392 this.addInput(
'value2',
'float');
28393 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28394 this.addInput(
'in1',
'float');
28395 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28396 this.addInput(
'in2',
'float');
28397 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28398 this.addOutput(
'out',
'float');
28399 this.title =
'ifequal_float';
28400 this.desc =
"MaterialX:mtlx/conditional/ifequal_float";
28401 this.onNodeCreated =
function() {
28404 this.onRemoved =
function() {
28407 this.onPropertyChanged =
function(name, value, prev_value) {
28408 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28410 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28411 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28413 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28414 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28416 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28417 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28419 this.bgcolor =
'#111';
28420 this.color =
'#532200';
28421 this.title_text_color =
'#000';
28422 this.shape = LiteGraph.CARD_SHAPE;
28423 this.boxcolor =
'#161';
28436 this.nodedef_icon =
'';
28438 this.nodedef_type =
'integer';
28440 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28441 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_integer_out_genglsl.png';
28442 this.nodedef_group =
'conditional';
28443 this.addInput(
'value1',
'float');
28444 this.addProperty(
'value1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28445 this.addInput(
'value2',
'float');
28446 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28447 this.addInput(
'in1',
'integer');
28448 this.addProperty(
'in1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28449 this.addInput(
'in2',
'integer');
28450 this.addProperty(
'in2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28451 this.addOutput(
'out',
'integer');
28452 this.title =
'ifequal_integer';
28453 this.desc =
"MaterialX:mtlx/conditional/ifequal_integer";
28454 this.onNodeCreated =
function() {
28457 this.onRemoved =
function() {
28460 this.onPropertyChanged =
function(name, value, prev_value) {
28461 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28463 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28464 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28466 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28467 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28469 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28470 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28472 this.bgcolor =
'#111';
28473 this.color =
'#532200';
28474 this.title_text_color =
'#000';
28475 this.shape = LiteGraph.CARD_SHAPE;
28476 this.boxcolor =
'#A32';
28489 this.nodedef_icon =
'';
28491 this.nodedef_type =
'color3';
28493 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28494 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_color3_out_genglsl.png';
28495 this.nodedef_group =
'conditional';
28496 this.addInput(
'value1',
'float');
28497 this.addProperty(
'value1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28498 this.addInput(
'value2',
'float');
28499 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28500 this.addInput(
'in1',
'color3');
28501 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28502 this.addInput(
'in2',
'color3');
28503 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28504 this.addOutput(
'out',
'color3');
28505 this.title =
'ifequal_color3';
28506 this.desc =
"MaterialX:mtlx/conditional/ifequal_color3";
28507 this.onNodeCreated =
function() {
28510 this.onRemoved =
function() {
28513 this.onPropertyChanged =
function(name, value, prev_value) {
28514 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28516 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28517 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28519 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28520 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28522 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28523 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28525 this.bgcolor =
'#111';
28526 this.color =
'#532200';
28527 this.title_text_color =
'#000';
28528 this.shape = LiteGraph.CARD_SHAPE;
28529 this.boxcolor =
'#37A';
28542 this.nodedef_icon =
'';
28544 this.nodedef_type =
'color4';
28546 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28547 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_color4_out_genglsl.png';
28548 this.nodedef_group =
'conditional';
28549 this.addInput(
'value1',
'float');
28550 this.addProperty(
'value1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28551 this.addInput(
'value2',
'float');
28552 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28553 this.addInput(
'in1',
'color4');
28554 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28555 this.addInput(
'in2',
'color4');
28556 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28557 this.addOutput(
'out',
'color4');
28558 this.title =
'ifequal_color4';
28559 this.desc =
"MaterialX:mtlx/conditional/ifequal_color4";
28560 this.onNodeCreated =
function() {
28563 this.onRemoved =
function() {
28566 this.onPropertyChanged =
function(name, value, prev_value) {
28567 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28569 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28570 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28572 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28573 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28575 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28576 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28578 this.bgcolor =
'#111';
28579 this.color =
'#532200';
28580 this.title_text_color =
'#000';
28581 this.shape = LiteGraph.CARD_SHAPE;
28582 this.boxcolor =
'#69A';
28595 this.nodedef_icon =
'';
28597 this.nodedef_type =
'vector2';
28599 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28600 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector2_out_genglsl.png';
28601 this.nodedef_group =
'conditional';
28602 this.addInput(
'value1',
'float');
28603 this.addProperty(
'value1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28604 this.addInput(
'value2',
'float');
28605 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28606 this.addInput(
'in1',
'vector2');
28607 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28608 this.addInput(
'in2',
'vector2');
28609 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28610 this.addOutput(
'out',
'vector2');
28611 this.title =
'ifequal_vector2';
28612 this.desc =
"MaterialX:mtlx/conditional/ifequal_vector2";
28613 this.onNodeCreated =
function() {
28616 this.onRemoved =
function() {
28619 this.onPropertyChanged =
function(name, value, prev_value) {
28620 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28622 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28623 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28625 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28626 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28628 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28629 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28631 this.bgcolor =
'#111';
28632 this.color =
'#532200';
28633 this.title_text_color =
'#000';
28634 this.shape = LiteGraph.CARD_SHAPE;
28635 this.boxcolor =
'#265';
28648 this.nodedef_icon =
'';
28650 this.nodedef_type =
'vector3';
28652 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28653 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector3_out_genglsl.png';
28654 this.nodedef_group =
'conditional';
28655 this.addInput(
'value1',
'float');
28656 this.addProperty(
'value1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28657 this.addInput(
'value2',
'float');
28658 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28659 this.addInput(
'in1',
'vector3');
28660 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28661 this.addInput(
'in2',
'vector3');
28662 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28663 this.addOutput(
'out',
'vector3');
28664 this.title =
'ifequal_vector3';
28665 this.desc =
"MaterialX:mtlx/conditional/ifequal_vector3";
28666 this.onNodeCreated =
function() {
28669 this.onRemoved =
function() {
28672 this.onPropertyChanged =
function(name, value, prev_value) {
28673 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28675 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28676 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28678 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28679 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28681 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28682 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28684 this.bgcolor =
'#111';
28685 this.color =
'#532200';
28686 this.title_text_color =
'#000';
28687 this.shape = LiteGraph.CARD_SHAPE;
28688 this.boxcolor =
'#465';
28701 this.nodedef_icon =
'';
28703 this.nodedef_type =
'vector4';
28705 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28706 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector4_out_genglsl.png';
28707 this.nodedef_group =
'conditional';
28708 this.addInput(
'value1',
'float');
28709 this.addProperty(
'value1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28710 this.addInput(
'value2',
'float');
28711 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28712 this.addInput(
'in1',
'vector4');
28713 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28714 this.addInput(
'in2',
'vector4');
28715 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28716 this.addOutput(
'out',
'vector4');
28717 this.title =
'ifequal_vector4';
28718 this.desc =
"MaterialX:mtlx/conditional/ifequal_vector4";
28719 this.onNodeCreated =
function() {
28722 this.onRemoved =
function() {
28725 this.onPropertyChanged =
function(name, value, prev_value) {
28726 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28728 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28729 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28731 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28732 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28734 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28735 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28737 this.bgcolor =
'#111';
28738 this.color =
'#532200';
28739 this.title_text_color =
'#000';
28740 this.shape = LiteGraph.CARD_SHAPE;
28741 this.boxcolor =
'#275';
28754 this.nodedef_icon =
'';
28756 this.nodedef_type =
'matrix33';
28758 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28759 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_matrix33_out_genglsl.png';
28760 this.nodedef_group =
'conditional';
28761 this.addInput(
'value1',
'float');
28762 this.addProperty(
'value1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28763 this.addInput(
'value2',
'float');
28764 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28765 this.addInput(
'in1',
'matrix33');
28766 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28767 this.addInput(
'in2',
'matrix33');
28768 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28769 this.addOutput(
'out',
'matrix33');
28770 this.title =
'ifequal_matrix33';
28771 this.desc =
"MaterialX:mtlx/conditional/ifequal_matrix33";
28772 this.onNodeCreated =
function() {
28775 this.onRemoved =
function() {
28778 this.onPropertyChanged =
function(name, value, prev_value) {
28779 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28781 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28782 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28784 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28785 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28787 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28788 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28790 this.bgcolor =
'#111';
28791 this.color =
'#532200';
28792 this.title_text_color =
'#000';
28793 this.shape = LiteGraph.CARD_SHAPE;
28794 this.boxcolor =
'#333';
28807 this.nodedef_icon =
'';
28809 this.nodedef_type =
'matrix44';
28811 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28812 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_matrix44_out_genglsl.png';
28813 this.nodedef_group =
'conditional';
28814 this.addInput(
'value1',
'float');
28815 this.addProperty(
'value1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28816 this.addInput(
'value2',
'float');
28817 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28818 this.addInput(
'in1',
'matrix44');
28819 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28820 this.addInput(
'in2',
'matrix44');
28821 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28822 this.addOutput(
'out',
'matrix44');
28823 this.title =
'ifequal_matrix44';
28824 this.desc =
"MaterialX:mtlx/conditional/ifequal_matrix44";
28825 this.onNodeCreated =
function() {
28828 this.onRemoved =
function() {
28831 this.onPropertyChanged =
function(name, value, prev_value) {
28832 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28834 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28835 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28837 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28838 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28840 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28841 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28843 this.bgcolor =
'#111';
28844 this.color =
'#532200';
28845 this.title_text_color =
'#000';
28846 this.shape = LiteGraph.CARD_SHAPE;
28847 this.boxcolor =
'#444';
28860 this.nodedef_icon =
'';
28862 this.nodedef_type =
'boolean';
28864 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28865 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_boolean_out_genglsl.png';
28866 this.nodedef_group =
'conditional';
28867 this.addInput(
'value1',
'float');
28868 this.addProperty(
'value1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28869 this.addInput(
'value2',
'float');
28870 this.addProperty(
'value2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28871 this.addOutput(
'out',
'boolean');
28872 this.title =
'ifequal_boolean';
28873 this.desc =
"MaterialX:mtlx/conditional/ifequal_boolean";
28874 this.onNodeCreated =
function() {
28877 this.onRemoved =
function() {
28880 this.onPropertyChanged =
function(name, value, prev_value) {
28881 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28883 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28884 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28886 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28887 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28889 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28890 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28892 this.bgcolor =
'#111';
28893 this.color =
'#532200';
28894 this.title_text_color =
'#000';
28895 this.shape = LiteGraph.CARD_SHAPE;
28896 this.boxcolor =
'#060';
28909 this.nodedef_icon =
'';
28911 this.nodedef_type =
'float';
28913 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28914 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_floatI_out_genglsl.png';
28915 this.nodedef_group =
'conditional';
28916 this.addInput(
'value1',
'integer');
28917 this.addProperty(
'value1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28918 this.addInput(
'value2',
'integer');
28919 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28920 this.addInput(
'in1',
'float');
28921 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28922 this.addInput(
'in2',
'float');
28923 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28924 this.addOutput(
'out',
'float');
28925 this.title =
'ifequal_float';
28926 this.desc =
"MaterialX:mtlx/conditional/ifequal_floatI";
28927 this.onNodeCreated =
function() {
28930 this.onRemoved =
function() {
28933 this.onPropertyChanged =
function(name, value, prev_value) {
28934 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28936 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28937 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28939 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28940 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28942 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28943 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28945 this.bgcolor =
'#111';
28946 this.color =
'#532200';
28947 this.title_text_color =
'#000';
28948 this.shape = LiteGraph.CARD_SHAPE;
28949 this.boxcolor =
'#161';
28962 this.nodedef_icon =
'';
28964 this.nodedef_type =
'integer';
28966 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
28967 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_integerI_out_genglsl.png';
28968 this.nodedef_group =
'conditional';
28969 this.addInput(
'value1',
'integer');
28970 this.addProperty(
'value1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28971 this.addInput(
'value2',
'integer');
28972 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28973 this.addInput(
'in1',
'integer');
28974 this.addProperty(
'in1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28975 this.addInput(
'in2',
'integer');
28976 this.addProperty(
'in2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
28977 this.addOutput(
'out',
'integer');
28978 this.title =
'ifequal_integer';
28979 this.desc =
"MaterialX:mtlx/conditional/ifequal_integerI";
28980 this.onNodeCreated =
function() {
28983 this.onRemoved =
function() {
28986 this.onPropertyChanged =
function(name, value, prev_value) {
28987 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
28989 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
28990 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
28992 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
28993 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
28995 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
28996 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
28998 this.bgcolor =
'#111';
28999 this.color =
'#532200';
29000 this.title_text_color =
'#000';
29001 this.shape = LiteGraph.CARD_SHAPE;
29002 this.boxcolor =
'#A32';
29015 this.nodedef_icon =
'';
29017 this.nodedef_type =
'color3';
29019 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29020 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_color3I_out_genglsl.png';
29021 this.nodedef_group =
'conditional';
29022 this.addInput(
'value1',
'integer');
29023 this.addProperty(
'value1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29024 this.addInput(
'value2',
'integer');
29025 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29026 this.addInput(
'in1',
'color3');
29027 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29028 this.addInput(
'in2',
'color3');
29029 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29030 this.addOutput(
'out',
'color3');
29031 this.title =
'ifequal_color3';
29032 this.desc =
"MaterialX:mtlx/conditional/ifequal_color3I";
29033 this.onNodeCreated =
function() {
29036 this.onRemoved =
function() {
29039 this.onPropertyChanged =
function(name, value, prev_value) {
29040 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29042 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29043 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29045 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29046 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29048 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29049 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29051 this.bgcolor =
'#111';
29052 this.color =
'#532200';
29053 this.title_text_color =
'#000';
29054 this.shape = LiteGraph.CARD_SHAPE;
29055 this.boxcolor =
'#37A';
29068 this.nodedef_icon =
'';
29070 this.nodedef_type =
'color4';
29072 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29073 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_color4I_out_genglsl.png';
29074 this.nodedef_group =
'conditional';
29075 this.addInput(
'value1',
'integer');
29076 this.addProperty(
'value1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29077 this.addInput(
'value2',
'integer');
29078 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29079 this.addInput(
'in1',
'color4');
29080 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29081 this.addInput(
'in2',
'color4');
29082 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29083 this.addOutput(
'out',
'color4');
29084 this.title =
'ifequal_color4';
29085 this.desc =
"MaterialX:mtlx/conditional/ifequal_color4I";
29086 this.onNodeCreated =
function() {
29089 this.onRemoved =
function() {
29092 this.onPropertyChanged =
function(name, value, prev_value) {
29093 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29095 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29096 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29098 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29099 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29101 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29102 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29104 this.bgcolor =
'#111';
29105 this.color =
'#532200';
29106 this.title_text_color =
'#000';
29107 this.shape = LiteGraph.CARD_SHAPE;
29108 this.boxcolor =
'#69A';
29121 this.nodedef_icon =
'';
29123 this.nodedef_type =
'vector2';
29125 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29126 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector2I_out_genglsl.png';
29127 this.nodedef_group =
'conditional';
29128 this.addInput(
'value1',
'integer');
29129 this.addProperty(
'value1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29130 this.addInput(
'value2',
'integer');
29131 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29132 this.addInput(
'in1',
'vector2');
29133 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29134 this.addInput(
'in2',
'vector2');
29135 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29136 this.addOutput(
'out',
'vector2');
29137 this.title =
'ifequal_vector2';
29138 this.desc =
"MaterialX:mtlx/conditional/ifequal_vector2I";
29139 this.onNodeCreated =
function() {
29142 this.onRemoved =
function() {
29145 this.onPropertyChanged =
function(name, value, prev_value) {
29146 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29148 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29149 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29151 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29152 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29154 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29155 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29157 this.bgcolor =
'#111';
29158 this.color =
'#532200';
29159 this.title_text_color =
'#000';
29160 this.shape = LiteGraph.CARD_SHAPE;
29161 this.boxcolor =
'#265';
29174 this.nodedef_icon =
'';
29176 this.nodedef_type =
'vector3';
29178 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29179 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector3I_out_genglsl.png';
29180 this.nodedef_group =
'conditional';
29181 this.addInput(
'value1',
'integer');
29182 this.addProperty(
'value1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29183 this.addInput(
'value2',
'integer');
29184 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29185 this.addInput(
'in1',
'vector3');
29186 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29187 this.addInput(
'in2',
'vector3');
29188 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29189 this.addOutput(
'out',
'vector3');
29190 this.title =
'ifequal_vector3';
29191 this.desc =
"MaterialX:mtlx/conditional/ifequal_vector3I";
29192 this.onNodeCreated =
function() {
29195 this.onRemoved =
function() {
29198 this.onPropertyChanged =
function(name, value, prev_value) {
29199 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29201 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29202 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29204 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29205 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29207 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29208 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29210 this.bgcolor =
'#111';
29211 this.color =
'#532200';
29212 this.title_text_color =
'#000';
29213 this.shape = LiteGraph.CARD_SHAPE;
29214 this.boxcolor =
'#465';
29227 this.nodedef_icon =
'';
29229 this.nodedef_type =
'vector4';
29231 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29232 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector4I_out_genglsl.png';
29233 this.nodedef_group =
'conditional';
29234 this.addInput(
'value1',
'integer');
29235 this.addProperty(
'value1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29236 this.addInput(
'value2',
'integer');
29237 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29238 this.addInput(
'in1',
'vector4');
29239 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29240 this.addInput(
'in2',
'vector4');
29241 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29242 this.addOutput(
'out',
'vector4');
29243 this.title =
'ifequal_vector4';
29244 this.desc =
"MaterialX:mtlx/conditional/ifequal_vector4I";
29245 this.onNodeCreated =
function() {
29248 this.onRemoved =
function() {
29251 this.onPropertyChanged =
function(name, value, prev_value) {
29252 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29254 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29255 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29257 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29258 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29260 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29261 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29263 this.bgcolor =
'#111';
29264 this.color =
'#532200';
29265 this.title_text_color =
'#000';
29266 this.shape = LiteGraph.CARD_SHAPE;
29267 this.boxcolor =
'#275';
29280 this.nodedef_icon =
'';
29282 this.nodedef_type =
'matrix33';
29284 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29285 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_matrix33I_out_genglsl.png';
29286 this.nodedef_group =
'conditional';
29287 this.addInput(
'value1',
'integer');
29288 this.addProperty(
'value1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29289 this.addInput(
'value2',
'integer');
29290 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29291 this.addInput(
'in1',
'matrix33');
29292 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29293 this.addInput(
'in2',
'matrix33');
29294 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29295 this.addOutput(
'out',
'matrix33');
29296 this.title =
'ifequal_matrix33';
29297 this.desc =
"MaterialX:mtlx/conditional/ifequal_matrix33I";
29298 this.onNodeCreated =
function() {
29301 this.onRemoved =
function() {
29304 this.onPropertyChanged =
function(name, value, prev_value) {
29305 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29307 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29308 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29310 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29311 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29313 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29314 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29316 this.bgcolor =
'#111';
29317 this.color =
'#532200';
29318 this.title_text_color =
'#000';
29319 this.shape = LiteGraph.CARD_SHAPE;
29320 this.boxcolor =
'#333';
29333 this.nodedef_icon =
'';
29335 this.nodedef_type =
'matrix44';
29337 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29338 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_matrix44I_out_genglsl.png';
29339 this.nodedef_group =
'conditional';
29340 this.addInput(
'value1',
'integer');
29341 this.addProperty(
'value1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29342 this.addInput(
'value2',
'integer');
29343 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29344 this.addInput(
'in1',
'matrix44');
29345 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29346 this.addInput(
'in2',
'matrix44');
29347 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29348 this.addOutput(
'out',
'matrix44');
29349 this.title =
'ifequal_matrix44';
29350 this.desc =
"MaterialX:mtlx/conditional/ifequal_matrix44I";
29351 this.onNodeCreated =
function() {
29354 this.onRemoved =
function() {
29357 this.onPropertyChanged =
function(name, value, prev_value) {
29358 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29360 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29361 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29363 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29364 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29366 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29367 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29369 this.bgcolor =
'#111';
29370 this.color =
'#532200';
29371 this.title_text_color =
'#000';
29372 this.shape = LiteGraph.CARD_SHAPE;
29373 this.boxcolor =
'#444';
29386 this.nodedef_icon =
'';
29388 this.nodedef_type =
'boolean';
29390 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29391 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_booleanI_out_genglsl.png';
29392 this.nodedef_group =
'conditional';
29393 this.addInput(
'value1',
'integer');
29394 this.addProperty(
'value1', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29395 this.addInput(
'value2',
'integer');
29396 this.addProperty(
'value2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29397 this.addOutput(
'out',
'boolean');
29398 this.title =
'ifequal_boolean';
29399 this.desc =
"MaterialX:mtlx/conditional/ifequal_booleanI";
29400 this.onNodeCreated =
function() {
29403 this.onRemoved =
function() {
29406 this.onPropertyChanged =
function(name, value, prev_value) {
29407 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29409 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29410 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29412 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29413 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29415 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29416 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29418 this.bgcolor =
'#111';
29419 this.color =
'#532200';
29420 this.title_text_color =
'#000';
29421 this.shape = LiteGraph.CARD_SHAPE;
29422 this.boxcolor =
'#060';
29435 this.nodedef_icon =
'';
29437 this.nodedef_type =
'float';
29439 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29440 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_floatB_out_genglsl.png';
29441 this.nodedef_group =
'conditional';
29442 this.addInput(
'value1',
'boolean');
29443 this.addProperty(
'value1',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29444 this.addInput(
'value2',
'boolean');
29445 this.addProperty(
'value2',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29446 this.addInput(
'in1',
'float');
29447 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29448 this.addInput(
'in2',
'float');
29449 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29450 this.addOutput(
'out',
'float');
29451 this.title =
'ifequal_float';
29452 this.desc =
"MaterialX:mtlx/conditional/ifequal_floatB";
29453 this.onNodeCreated =
function() {
29456 this.onRemoved =
function() {
29459 this.onPropertyChanged =
function(name, value, prev_value) {
29460 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29462 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29463 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29465 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29466 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29468 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29469 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29471 this.bgcolor =
'#111';
29472 this.color =
'#532200';
29473 this.title_text_color =
'#000';
29474 this.shape = LiteGraph.CARD_SHAPE;
29475 this.boxcolor =
'#161';
29488 this.nodedef_icon =
'';
29490 this.nodedef_type =
'integer';
29492 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29493 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_integerB_out_genglsl.png';
29494 this.nodedef_group =
'conditional';
29495 this.addInput(
'value1',
'boolean');
29496 this.addProperty(
'value1',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29497 this.addInput(
'value2',
'boolean');
29498 this.addProperty(
'value2',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29499 this.addInput(
'in1',
'integer');
29500 this.addProperty(
'in1', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29501 this.addInput(
'in2',
'integer');
29502 this.addProperty(
'in2', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29503 this.addOutput(
'out',
'integer');
29504 this.title =
'ifequal_integer';
29505 this.desc =
"MaterialX:mtlx/conditional/ifequal_integerB";
29506 this.onNodeCreated =
function() {
29509 this.onRemoved =
function() {
29512 this.onPropertyChanged =
function(name, value, prev_value) {
29513 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29515 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29516 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29518 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29519 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29521 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29522 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29524 this.bgcolor =
'#111';
29525 this.color =
'#532200';
29526 this.title_text_color =
'#000';
29527 this.shape = LiteGraph.CARD_SHAPE;
29528 this.boxcolor =
'#A32';
29541 this.nodedef_icon =
'';
29543 this.nodedef_type =
'color3';
29545 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29546 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_color3B_out_genglsl.png';
29547 this.nodedef_group =
'conditional';
29548 this.addInput(
'value1',
'boolean');
29549 this.addProperty(
'value1',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29550 this.addInput(
'value2',
'boolean');
29551 this.addProperty(
'value2',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29552 this.addInput(
'in1',
'color3');
29553 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29554 this.addInput(
'in2',
'color3');
29555 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29556 this.addOutput(
'out',
'color3');
29557 this.title =
'ifequal_color3';
29558 this.desc =
"MaterialX:mtlx/conditional/ifequal_color3B";
29559 this.onNodeCreated =
function() {
29562 this.onRemoved =
function() {
29565 this.onPropertyChanged =
function(name, value, prev_value) {
29566 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29568 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29569 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29571 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29572 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29574 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29575 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29577 this.bgcolor =
'#111';
29578 this.color =
'#532200';
29579 this.title_text_color =
'#000';
29580 this.shape = LiteGraph.CARD_SHAPE;
29581 this.boxcolor =
'#37A';
29594 this.nodedef_icon =
'';
29596 this.nodedef_type =
'color4';
29598 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29599 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_color4B_out_genglsl.png';
29600 this.nodedef_group =
'conditional';
29601 this.addInput(
'value1',
'boolean');
29602 this.addProperty(
'value1',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29603 this.addInput(
'value2',
'boolean');
29604 this.addProperty(
'value2',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29605 this.addInput(
'in1',
'color4');
29606 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29607 this.addInput(
'in2',
'color4');
29608 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29609 this.addOutput(
'out',
'color4');
29610 this.title =
'ifequal_color4';
29611 this.desc =
"MaterialX:mtlx/conditional/ifequal_color4B";
29612 this.onNodeCreated =
function() {
29615 this.onRemoved =
function() {
29618 this.onPropertyChanged =
function(name, value, prev_value) {
29619 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29621 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29622 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29624 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29625 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29627 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29628 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29630 this.bgcolor =
'#111';
29631 this.color =
'#532200';
29632 this.title_text_color =
'#000';
29633 this.shape = LiteGraph.CARD_SHAPE;
29634 this.boxcolor =
'#69A';
29647 this.nodedef_icon =
'';
29649 this.nodedef_type =
'vector2';
29651 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29652 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector2B_out_genglsl.png';
29653 this.nodedef_group =
'conditional';
29654 this.addInput(
'value1',
'boolean');
29655 this.addProperty(
'value1',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29656 this.addInput(
'value2',
'boolean');
29657 this.addProperty(
'value2',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29658 this.addInput(
'in1',
'vector2');
29659 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29660 this.addInput(
'in2',
'vector2');
29661 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29662 this.addOutput(
'out',
'vector2');
29663 this.title =
'ifequal_vector2';
29664 this.desc =
"MaterialX:mtlx/conditional/ifequal_vector2B";
29665 this.onNodeCreated =
function() {
29668 this.onRemoved =
function() {
29671 this.onPropertyChanged =
function(name, value, prev_value) {
29672 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29674 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29675 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29677 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29678 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29680 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29681 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29683 this.bgcolor =
'#111';
29684 this.color =
'#532200';
29685 this.title_text_color =
'#000';
29686 this.shape = LiteGraph.CARD_SHAPE;
29687 this.boxcolor =
'#265';
29700 this.nodedef_icon =
'';
29702 this.nodedef_type =
'vector3';
29704 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29705 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector3B_out_genglsl.png';
29706 this.nodedef_group =
'conditional';
29707 this.addInput(
'value1',
'boolean');
29708 this.addProperty(
'value1',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29709 this.addInput(
'value2',
'boolean');
29710 this.addProperty(
'value2',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29711 this.addInput(
'in1',
'vector3');
29712 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29713 this.addInput(
'in2',
'vector3');
29714 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29715 this.addOutput(
'out',
'vector3');
29716 this.title =
'ifequal_vector3';
29717 this.desc =
"MaterialX:mtlx/conditional/ifequal_vector3B";
29718 this.onNodeCreated =
function() {
29721 this.onRemoved =
function() {
29724 this.onPropertyChanged =
function(name, value, prev_value) {
29725 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29727 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29728 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29730 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29731 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29733 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29734 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29736 this.bgcolor =
'#111';
29737 this.color =
'#532200';
29738 this.title_text_color =
'#000';
29739 this.shape = LiteGraph.CARD_SHAPE;
29740 this.boxcolor =
'#465';
29753 this.nodedef_icon =
'';
29755 this.nodedef_type =
'vector4';
29757 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29758 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_vector4B_out_genglsl.png';
29759 this.nodedef_group =
'conditional';
29760 this.addInput(
'value1',
'boolean');
29761 this.addProperty(
'value1',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29762 this.addInput(
'value2',
'boolean');
29763 this.addProperty(
'value2',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29764 this.addInput(
'in1',
'vector4');
29765 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29766 this.addInput(
'in2',
'vector4');
29767 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29768 this.addOutput(
'out',
'vector4');
29769 this.title =
'ifequal_vector4';
29770 this.desc =
"MaterialX:mtlx/conditional/ifequal_vector4B";
29771 this.onNodeCreated =
function() {
29774 this.onRemoved =
function() {
29777 this.onPropertyChanged =
function(name, value, prev_value) {
29778 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29780 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29781 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29783 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29784 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29786 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29787 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29789 this.bgcolor =
'#111';
29790 this.color =
'#532200';
29791 this.title_text_color =
'#000';
29792 this.shape = LiteGraph.CARD_SHAPE;
29793 this.boxcolor =
'#275';
29806 this.nodedef_icon =
'';
29808 this.nodedef_type =
'matrix33';
29810 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29811 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_matrix33B_out_genglsl.png';
29812 this.nodedef_group =
'conditional';
29813 this.addInput(
'value1',
'boolean');
29814 this.addProperty(
'value1',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29815 this.addInput(
'value2',
'boolean');
29816 this.addProperty(
'value2',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29817 this.addInput(
'in1',
'matrix33');
29818 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29819 this.addInput(
'in2',
'matrix33');
29820 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29821 this.addOutput(
'out',
'matrix33');
29822 this.title =
'ifequal_matrix33';
29823 this.desc =
"MaterialX:mtlx/conditional/ifequal_matrix33B";
29824 this.onNodeCreated =
function() {
29827 this.onRemoved =
function() {
29830 this.onPropertyChanged =
function(name, value, prev_value) {
29831 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29833 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29834 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29836 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29837 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29839 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29840 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29842 this.bgcolor =
'#111';
29843 this.color =
'#532200';
29844 this.title_text_color =
'#000';
29845 this.shape = LiteGraph.CARD_SHAPE;
29846 this.boxcolor =
'#333';
29859 this.nodedef_icon =
'';
29861 this.nodedef_type =
'matrix44';
29863 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29864 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_matrix44B_out_genglsl.png';
29865 this.nodedef_group =
'conditional';
29866 this.addInput(
'value1',
'boolean');
29867 this.addProperty(
'value1',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29868 this.addInput(
'value2',
'boolean');
29869 this.addProperty(
'value2',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29870 this.addInput(
'in1',
'matrix44');
29871 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29872 this.addInput(
'in2',
'matrix44');
29873 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29874 this.addOutput(
'out',
'matrix44');
29875 this.title =
'ifequal_matrix44';
29876 this.desc =
"MaterialX:mtlx/conditional/ifequal_matrix44B";
29877 this.onNodeCreated =
function() {
29880 this.onRemoved =
function() {
29883 this.onPropertyChanged =
function(name, value, prev_value) {
29884 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29886 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29887 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29889 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29890 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29892 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29893 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29895 this.bgcolor =
'#111';
29896 this.color =
'#532200';
29897 this.title_text_color =
'#000';
29898 this.shape = LiteGraph.CARD_SHAPE;
29899 this.boxcolor =
'#444';
29912 this.nodedef_icon =
'';
29914 this.nodedef_type =
'boolean';
29916 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/ifequal.html';
29917 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_ifequal_booleanB_out_genglsl.png';
29918 this.nodedef_group =
'conditional';
29919 this.addInput(
'value1',
'boolean');
29920 this.addProperty(
'value1',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29921 this.addInput(
'value2',
'boolean');
29922 this.addProperty(
'value2',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29923 this.addOutput(
'out',
'boolean');
29924 this.title =
'ifequal_boolean';
29925 this.desc =
"MaterialX:mtlx/conditional/ifequal_booleanB";
29926 this.onNodeCreated =
function() {
29929 this.onRemoved =
function() {
29932 this.onPropertyChanged =
function(name, value, prev_value) {
29933 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
29935 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
29936 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
29938 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
29939 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
29941 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
29942 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
29944 this.bgcolor =
'#111';
29945 this.color =
'#532200';
29946 this.title_text_color =
'#000';
29947 this.shape = LiteGraph.CARD_SHAPE;
29948 this.boxcolor =
'#060';
29961 this.nodedef_icon =
'';
29963 this.nodedef_type =
'float';
29965 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
29966 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_float_out_genglsl.png';
29967 this.nodedef_group =
'conditional';
29968 this.addInput(
'in1',
'float');
29969 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29970 this.addInput(
'in2',
'float');
29971 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29972 this.addInput(
'in3',
'float');
29973 this.addProperty(
'in3', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29974 this.addInput(
'in4',
'float');
29975 this.addProperty(
'in4', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29976 this.addInput(
'in5',
'float');
29977 this.addProperty(
'in5', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29978 this.addInput(
'in6',
'float');
29979 this.addProperty(
'in6', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29980 this.addInput(
'in7',
'float');
29981 this.addProperty(
'in7', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29982 this.addInput(
'in8',
'float');
29983 this.addProperty(
'in8', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29984 this.addInput(
'in9',
'float');
29985 this.addProperty(
'in9', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29986 this.addInput(
'in10',
'float');
29987 this.addProperty(
'in10', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29988 this.addInput(
'which',
'float');
29989 this.addProperty(
'which', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
29990 this.addOutput(
'out',
'float');
29991 this.title =
'switch_float';
29992 this.desc =
"MaterialX:mtlx/conditional/switch_float";
29993 this.onNodeCreated =
function() {
29996 this.onRemoved =
function() {
29999 this.onPropertyChanged =
function(name, value, prev_value) {
30000 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30002 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30003 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30005 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30006 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30008 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30009 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30011 this.bgcolor =
'#111';
30012 this.color =
'#532200';
30013 this.title_text_color =
'#000';
30014 this.shape = LiteGraph.CARD_SHAPE;
30015 this.boxcolor =
'#161';
30028 this.nodedef_icon =
'';
30030 this.nodedef_type =
'color3';
30032 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30033 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_color3_out_genglsl.png';
30034 this.nodedef_group =
'conditional';
30035 this.addInput(
'in1',
'color3');
30036 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30037 this.addInput(
'in2',
'color3');
30038 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30039 this.addInput(
'in3',
'color3');
30040 this.addProperty(
'in3', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30041 this.addInput(
'in4',
'color3');
30042 this.addProperty(
'in4', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30043 this.addInput(
'in5',
'color3');
30044 this.addProperty(
'in5', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30045 this.addInput(
'in6',
'color3');
30046 this.addProperty(
'in6', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30047 this.addInput(
'in7',
'color3');
30048 this.addProperty(
'in7', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30049 this.addInput(
'in8',
'color3');
30050 this.addProperty(
'in8', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30051 this.addInput(
'in9',
'color3');
30052 this.addProperty(
'in9', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30053 this.addInput(
'in10',
'color3');
30054 this.addProperty(
'in10', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30055 this.addInput(
'which',
'float');
30056 this.addProperty(
'which', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30057 this.addOutput(
'out',
'color3');
30058 this.title =
'switch_color3';
30059 this.desc =
"MaterialX:mtlx/conditional/switch_color3";
30060 this.onNodeCreated =
function() {
30063 this.onRemoved =
function() {
30066 this.onPropertyChanged =
function(name, value, prev_value) {
30067 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30069 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30070 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30072 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30073 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30075 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30076 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30078 this.bgcolor =
'#111';
30079 this.color =
'#532200';
30080 this.title_text_color =
'#000';
30081 this.shape = LiteGraph.CARD_SHAPE;
30082 this.boxcolor =
'#37A';
30095 this.nodedef_icon =
'';
30097 this.nodedef_type =
'color4';
30099 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30100 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_color4_out_genglsl.png';
30101 this.nodedef_group =
'conditional';
30102 this.addInput(
'in1',
'color4');
30103 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30104 this.addInput(
'in2',
'color4');
30105 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30106 this.addInput(
'in3',
'color4');
30107 this.addProperty(
'in3', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30108 this.addInput(
'in4',
'color4');
30109 this.addProperty(
'in4', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30110 this.addInput(
'in5',
'color4');
30111 this.addProperty(
'in5', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30112 this.addInput(
'in6',
'color4');
30113 this.addProperty(
'in6', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30114 this.addInput(
'in7',
'color4');
30115 this.addProperty(
'in7', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30116 this.addInput(
'in8',
'color4');
30117 this.addProperty(
'in8', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30118 this.addInput(
'in9',
'color4');
30119 this.addProperty(
'in9', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30120 this.addInput(
'in10',
'color4');
30121 this.addProperty(
'in10', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30122 this.addInput(
'which',
'float');
30123 this.addProperty(
'which', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30124 this.addOutput(
'out',
'color4');
30125 this.title =
'switch_color4';
30126 this.desc =
"MaterialX:mtlx/conditional/switch_color4";
30127 this.onNodeCreated =
function() {
30130 this.onRemoved =
function() {
30133 this.onPropertyChanged =
function(name, value, prev_value) {
30134 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30136 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30137 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30139 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30140 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30142 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30143 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30145 this.bgcolor =
'#111';
30146 this.color =
'#532200';
30147 this.title_text_color =
'#000';
30148 this.shape = LiteGraph.CARD_SHAPE;
30149 this.boxcolor =
'#69A';
30162 this.nodedef_icon =
'';
30164 this.nodedef_type =
'vector2';
30166 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30167 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_vector2_out_genglsl.png';
30168 this.nodedef_group =
'conditional';
30169 this.addInput(
'in1',
'vector2');
30170 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30171 this.addInput(
'in2',
'vector2');
30172 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30173 this.addInput(
'in3',
'vector2');
30174 this.addProperty(
'in3', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30175 this.addInput(
'in4',
'vector2');
30176 this.addProperty(
'in4', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30177 this.addInput(
'in5',
'vector2');
30178 this.addProperty(
'in5', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30179 this.addInput(
'in6',
'vector2');
30180 this.addProperty(
'in6', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30181 this.addInput(
'in7',
'vector2');
30182 this.addProperty(
'in7', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30183 this.addInput(
'in8',
'vector2');
30184 this.addProperty(
'in8', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30185 this.addInput(
'in9',
'vector2');
30186 this.addProperty(
'in9', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30187 this.addInput(
'in10',
'vector2');
30188 this.addProperty(
'in10', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30189 this.addInput(
'which',
'float');
30190 this.addProperty(
'which', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30191 this.addOutput(
'out',
'vector2');
30192 this.title =
'switch_vector2';
30193 this.desc =
"MaterialX:mtlx/conditional/switch_vector2";
30194 this.onNodeCreated =
function() {
30197 this.onRemoved =
function() {
30200 this.onPropertyChanged =
function(name, value, prev_value) {
30201 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30203 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30204 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30206 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30207 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30209 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30210 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30212 this.bgcolor =
'#111';
30213 this.color =
'#532200';
30214 this.title_text_color =
'#000';
30215 this.shape = LiteGraph.CARD_SHAPE;
30216 this.boxcolor =
'#265';
30229 this.nodedef_icon =
'';
30231 this.nodedef_type =
'vector3';
30233 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30234 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_vector3_out_genglsl.png';
30235 this.nodedef_group =
'conditional';
30236 this.addInput(
'in1',
'vector3');
30237 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30238 this.addInput(
'in2',
'vector3');
30239 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30240 this.addInput(
'in3',
'vector3');
30241 this.addProperty(
'in3', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30242 this.addInput(
'in4',
'vector3');
30243 this.addProperty(
'in4', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30244 this.addInput(
'in5',
'vector3');
30245 this.addProperty(
'in5', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30246 this.addInput(
'in6',
'vector3');
30247 this.addProperty(
'in6', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30248 this.addInput(
'in7',
'vector3');
30249 this.addProperty(
'in7', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30250 this.addInput(
'in8',
'vector3');
30251 this.addProperty(
'in8', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30252 this.addInput(
'in9',
'vector3');
30253 this.addProperty(
'in9', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30254 this.addInput(
'in10',
'vector3');
30255 this.addProperty(
'in10', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30256 this.addInput(
'which',
'float');
30257 this.addProperty(
'which', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30258 this.addOutput(
'out',
'vector3');
30259 this.title =
'switch_vector3';
30260 this.desc =
"MaterialX:mtlx/conditional/switch_vector3";
30261 this.onNodeCreated =
function() {
30264 this.onRemoved =
function() {
30267 this.onPropertyChanged =
function(name, value, prev_value) {
30268 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30270 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30271 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30273 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30274 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30276 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30277 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30279 this.bgcolor =
'#111';
30280 this.color =
'#532200';
30281 this.title_text_color =
'#000';
30282 this.shape = LiteGraph.CARD_SHAPE;
30283 this.boxcolor =
'#465';
30296 this.nodedef_icon =
'';
30298 this.nodedef_type =
'vector4';
30300 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30301 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_vector4_out_genglsl.png';
30302 this.nodedef_group =
'conditional';
30303 this.addInput(
'in1',
'vector4');
30304 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30305 this.addInput(
'in2',
'vector4');
30306 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30307 this.addInput(
'in3',
'vector4');
30308 this.addProperty(
'in3', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30309 this.addInput(
'in4',
'vector4');
30310 this.addProperty(
'in4', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30311 this.addInput(
'in5',
'vector4');
30312 this.addProperty(
'in5', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30313 this.addInput(
'in6',
'vector4');
30314 this.addProperty(
'in6', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30315 this.addInput(
'in7',
'vector4');
30316 this.addProperty(
'in7', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30317 this.addInput(
'in8',
'vector4');
30318 this.addProperty(
'in8', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30319 this.addInput(
'in9',
'vector4');
30320 this.addProperty(
'in9', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30321 this.addInput(
'in10',
'vector4');
30322 this.addProperty(
'in10', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30323 this.addInput(
'which',
'float');
30324 this.addProperty(
'which', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30325 this.addOutput(
'out',
'vector4');
30326 this.title =
'switch_vector4';
30327 this.desc =
"MaterialX:mtlx/conditional/switch_vector4";
30328 this.onNodeCreated =
function() {
30331 this.onRemoved =
function() {
30334 this.onPropertyChanged =
function(name, value, prev_value) {
30335 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30337 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30338 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30340 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30341 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30343 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30344 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30346 this.bgcolor =
'#111';
30347 this.color =
'#532200';
30348 this.title_text_color =
'#000';
30349 this.shape = LiteGraph.CARD_SHAPE;
30350 this.boxcolor =
'#275';
30363 this.nodedef_icon =
'';
30365 this.nodedef_type =
'matrix33';
30367 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30368 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_matrix33_out_genglsl.png';
30369 this.nodedef_group =
'conditional';
30370 this.addInput(
'in1',
'matrix33');
30371 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30372 this.addInput(
'in2',
'matrix33');
30373 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30374 this.addInput(
'in3',
'matrix33');
30375 this.addProperty(
'in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30376 this.addInput(
'in4',
'matrix33');
30377 this.addProperty(
'in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30378 this.addInput(
'in5',
'matrix33');
30379 this.addProperty(
'in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30380 this.addInput(
'in6',
'matrix33');
30381 this.addProperty(
'in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30382 this.addInput(
'in7',
'matrix33');
30383 this.addProperty(
'in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30384 this.addInput(
'in8',
'matrix33');
30385 this.addProperty(
'in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30386 this.addInput(
'in9',
'matrix33');
30387 this.addProperty(
'in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30388 this.addInput(
'in10',
'matrix33');
30389 this.addProperty(
'in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30390 this.addInput(
'which',
'float');
30391 this.addProperty(
'which', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30392 this.addOutput(
'out',
'matrix33');
30393 this.title =
'switch_matrix33';
30394 this.desc =
"MaterialX:mtlx/conditional/switch_matrix33";
30395 this.onNodeCreated =
function() {
30398 this.onRemoved =
function() {
30401 this.onPropertyChanged =
function(name, value, prev_value) {
30402 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30404 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30405 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30407 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30408 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30410 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30411 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30413 this.bgcolor =
'#111';
30414 this.color =
'#532200';
30415 this.title_text_color =
'#000';
30416 this.shape = LiteGraph.CARD_SHAPE;
30417 this.boxcolor =
'#333';
30430 this.nodedef_icon =
'';
30432 this.nodedef_type =
'matrix44';
30434 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30435 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_matrix44_out_genglsl.png';
30436 this.nodedef_group =
'conditional';
30437 this.addInput(
'in1',
'matrix44');
30438 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30439 this.addInput(
'in2',
'matrix44');
30440 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30441 this.addInput(
'in3',
'matrix44');
30442 this.addProperty(
'in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30443 this.addInput(
'in4',
'matrix44');
30444 this.addProperty(
'in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30445 this.addInput(
'in5',
'matrix44');
30446 this.addProperty(
'in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30447 this.addInput(
'in6',
'matrix44');
30448 this.addProperty(
'in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30449 this.addInput(
'in7',
'matrix44');
30450 this.addProperty(
'in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30451 this.addInput(
'in8',
'matrix44');
30452 this.addProperty(
'in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30453 this.addInput(
'in9',
'matrix44');
30454 this.addProperty(
'in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30455 this.addInput(
'in10',
'matrix44');
30456 this.addProperty(
'in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30457 this.addInput(
'which',
'float');
30458 this.addProperty(
'which', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30459 this.addOutput(
'out',
'matrix44');
30460 this.title =
'switch_matrix44';
30461 this.desc =
"MaterialX:mtlx/conditional/switch_matrix44";
30462 this.onNodeCreated =
function() {
30465 this.onRemoved =
function() {
30468 this.onPropertyChanged =
function(name, value, prev_value) {
30469 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30471 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30472 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30474 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30475 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30477 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30478 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30480 this.bgcolor =
'#111';
30481 this.color =
'#532200';
30482 this.title_text_color =
'#000';
30483 this.shape = LiteGraph.CARD_SHAPE;
30484 this.boxcolor =
'#444';
30497 this.nodedef_icon =
'';
30499 this.nodedef_type =
'float';
30501 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30502 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_floatI_out_genglsl.png';
30503 this.nodedef_group =
'conditional';
30504 this.addInput(
'in1',
'float');
30505 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30506 this.addInput(
'in2',
'float');
30507 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30508 this.addInput(
'in3',
'float');
30509 this.addProperty(
'in3', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30510 this.addInput(
'in4',
'float');
30511 this.addProperty(
'in4', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30512 this.addInput(
'in5',
'float');
30513 this.addProperty(
'in5', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30514 this.addInput(
'in6',
'float');
30515 this.addProperty(
'in6', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30516 this.addInput(
'in7',
'float');
30517 this.addProperty(
'in7', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30518 this.addInput(
'in8',
'float');
30519 this.addProperty(
'in8', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30520 this.addInput(
'in9',
'float');
30521 this.addProperty(
'in9', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30522 this.addInput(
'in10',
'float');
30523 this.addProperty(
'in10', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30524 this.addInput(
'which',
'integer');
30525 this.addProperty(
'which', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30526 this.addOutput(
'out',
'float');
30527 this.title =
'switch_float';
30528 this.desc =
"MaterialX:mtlx/conditional/switch_floatI";
30529 this.onNodeCreated =
function() {
30532 this.onRemoved =
function() {
30535 this.onPropertyChanged =
function(name, value, prev_value) {
30536 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30538 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30539 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30541 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30542 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30544 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30545 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30547 this.bgcolor =
'#111';
30548 this.color =
'#532200';
30549 this.title_text_color =
'#000';
30550 this.shape = LiteGraph.CARD_SHAPE;
30551 this.boxcolor =
'#161';
30564 this.nodedef_icon =
'';
30566 this.nodedef_type =
'color3';
30568 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30569 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_color3I_out_genglsl.png';
30570 this.nodedef_group =
'conditional';
30571 this.addInput(
'in1',
'color3');
30572 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30573 this.addInput(
'in2',
'color3');
30574 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30575 this.addInput(
'in3',
'color3');
30576 this.addProperty(
'in3', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30577 this.addInput(
'in4',
'color3');
30578 this.addProperty(
'in4', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30579 this.addInput(
'in5',
'color3');
30580 this.addProperty(
'in5', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30581 this.addInput(
'in6',
'color3');
30582 this.addProperty(
'in6', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30583 this.addInput(
'in7',
'color3');
30584 this.addProperty(
'in7', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30585 this.addInput(
'in8',
'color3');
30586 this.addProperty(
'in8', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30587 this.addInput(
'in9',
'color3');
30588 this.addProperty(
'in9', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30589 this.addInput(
'in10',
'color3');
30590 this.addProperty(
'in10', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30591 this.addInput(
'which',
'integer');
30592 this.addProperty(
'which', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30593 this.addOutput(
'out',
'color3');
30594 this.title =
'switch_color3';
30595 this.desc =
"MaterialX:mtlx/conditional/switch_color3I";
30596 this.onNodeCreated =
function() {
30599 this.onRemoved =
function() {
30602 this.onPropertyChanged =
function(name, value, prev_value) {
30603 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30605 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30606 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30608 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30609 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30611 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30612 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30614 this.bgcolor =
'#111';
30615 this.color =
'#532200';
30616 this.title_text_color =
'#000';
30617 this.shape = LiteGraph.CARD_SHAPE;
30618 this.boxcolor =
'#37A';
30631 this.nodedef_icon =
'';
30633 this.nodedef_type =
'color4';
30635 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30636 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_color4I_out_genglsl.png';
30637 this.nodedef_group =
'conditional';
30638 this.addInput(
'in1',
'color4');
30639 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30640 this.addInput(
'in2',
'color4');
30641 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30642 this.addInput(
'in3',
'color4');
30643 this.addProperty(
'in3', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30644 this.addInput(
'in4',
'color4');
30645 this.addProperty(
'in4', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30646 this.addInput(
'in5',
'color4');
30647 this.addProperty(
'in5', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30648 this.addInput(
'in6',
'color4');
30649 this.addProperty(
'in6', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30650 this.addInput(
'in7',
'color4');
30651 this.addProperty(
'in7', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30652 this.addInput(
'in8',
'color4');
30653 this.addProperty(
'in8', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30654 this.addInput(
'in9',
'color4');
30655 this.addProperty(
'in9', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30656 this.addInput(
'in10',
'color4');
30657 this.addProperty(
'in10', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30658 this.addInput(
'which',
'integer');
30659 this.addProperty(
'which', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30660 this.addOutput(
'out',
'color4');
30661 this.title =
'switch_color4';
30662 this.desc =
"MaterialX:mtlx/conditional/switch_color4I";
30663 this.onNodeCreated =
function() {
30666 this.onRemoved =
function() {
30669 this.onPropertyChanged =
function(name, value, prev_value) {
30670 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30672 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30673 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30675 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30676 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30678 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30679 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30681 this.bgcolor =
'#111';
30682 this.color =
'#532200';
30683 this.title_text_color =
'#000';
30684 this.shape = LiteGraph.CARD_SHAPE;
30685 this.boxcolor =
'#69A';
30698 this.nodedef_icon =
'';
30700 this.nodedef_type =
'vector2';
30702 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30703 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_vector2I_out_genglsl.png';
30704 this.nodedef_group =
'conditional';
30705 this.addInput(
'in1',
'vector2');
30706 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30707 this.addInput(
'in2',
'vector2');
30708 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30709 this.addInput(
'in3',
'vector2');
30710 this.addProperty(
'in3', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30711 this.addInput(
'in4',
'vector2');
30712 this.addProperty(
'in4', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30713 this.addInput(
'in5',
'vector2');
30714 this.addProperty(
'in5', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30715 this.addInput(
'in6',
'vector2');
30716 this.addProperty(
'in6', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30717 this.addInput(
'in7',
'vector2');
30718 this.addProperty(
'in7', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30719 this.addInput(
'in8',
'vector2');
30720 this.addProperty(
'in8', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30721 this.addInput(
'in9',
'vector2');
30722 this.addProperty(
'in9', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30723 this.addInput(
'in10',
'vector2');
30724 this.addProperty(
'in10', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30725 this.addInput(
'which',
'integer');
30726 this.addProperty(
'which', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30727 this.addOutput(
'out',
'vector2');
30728 this.title =
'switch_vector2';
30729 this.desc =
"MaterialX:mtlx/conditional/switch_vector2I";
30730 this.onNodeCreated =
function() {
30733 this.onRemoved =
function() {
30736 this.onPropertyChanged =
function(name, value, prev_value) {
30737 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30739 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30740 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30742 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30743 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30745 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30746 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30748 this.bgcolor =
'#111';
30749 this.color =
'#532200';
30750 this.title_text_color =
'#000';
30751 this.shape = LiteGraph.CARD_SHAPE;
30752 this.boxcolor =
'#265';
30765 this.nodedef_icon =
'';
30767 this.nodedef_type =
'vector3';
30769 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30770 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_vector3I_out_genglsl.png';
30771 this.nodedef_group =
'conditional';
30772 this.addInput(
'in1',
'vector3');
30773 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30774 this.addInput(
'in2',
'vector3');
30775 this.addProperty(
'in2', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30776 this.addInput(
'in3',
'vector3');
30777 this.addProperty(
'in3', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30778 this.addInput(
'in4',
'vector3');
30779 this.addProperty(
'in4', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30780 this.addInput(
'in5',
'vector3');
30781 this.addProperty(
'in5', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30782 this.addInput(
'in6',
'vector3');
30783 this.addProperty(
'in6', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30784 this.addInput(
'in7',
'vector3');
30785 this.addProperty(
'in7', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30786 this.addInput(
'in8',
'vector3');
30787 this.addProperty(
'in8', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30788 this.addInput(
'in9',
'vector3');
30789 this.addProperty(
'in9', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30790 this.addInput(
'in10',
'vector3');
30791 this.addProperty(
'in10', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30792 this.addInput(
'which',
'integer');
30793 this.addProperty(
'which', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30794 this.addOutput(
'out',
'vector3');
30795 this.title =
'switch_vector3';
30796 this.desc =
"MaterialX:mtlx/conditional/switch_vector3I";
30797 this.onNodeCreated =
function() {
30800 this.onRemoved =
function() {
30803 this.onPropertyChanged =
function(name, value, prev_value) {
30804 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30806 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30807 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30809 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30810 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30812 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30813 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30815 this.bgcolor =
'#111';
30816 this.color =
'#532200';
30817 this.title_text_color =
'#000';
30818 this.shape = LiteGraph.CARD_SHAPE;
30819 this.boxcolor =
'#465';
30832 this.nodedef_icon =
'';
30834 this.nodedef_type =
'vector4';
30836 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30837 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_vector4I_out_genglsl.png';
30838 this.nodedef_group =
'conditional';
30839 this.addInput(
'in1',
'vector4');
30840 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30841 this.addInput(
'in2',
'vector4');
30842 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30843 this.addInput(
'in3',
'vector4');
30844 this.addProperty(
'in3', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30845 this.addInput(
'in4',
'vector4');
30846 this.addProperty(
'in4', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30847 this.addInput(
'in5',
'vector4');
30848 this.addProperty(
'in5', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30849 this.addInput(
'in6',
'vector4');
30850 this.addProperty(
'in6', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30851 this.addInput(
'in7',
'vector4');
30852 this.addProperty(
'in7', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30853 this.addInput(
'in8',
'vector4');
30854 this.addProperty(
'in8', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30855 this.addInput(
'in9',
'vector4');
30856 this.addProperty(
'in9', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30857 this.addInput(
'in10',
'vector4');
30858 this.addProperty(
'in10', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30859 this.addInput(
'which',
'integer');
30860 this.addProperty(
'which', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30861 this.addOutput(
'out',
'vector4');
30862 this.title =
'switch_vector4';
30863 this.desc =
"MaterialX:mtlx/conditional/switch_vector4I";
30864 this.onNodeCreated =
function() {
30867 this.onRemoved =
function() {
30870 this.onPropertyChanged =
function(name, value, prev_value) {
30871 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30873 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30874 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30876 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30877 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30879 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30880 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30882 this.bgcolor =
'#111';
30883 this.color =
'#532200';
30884 this.title_text_color =
'#000';
30885 this.shape = LiteGraph.CARD_SHAPE;
30886 this.boxcolor =
'#275';
30899 this.nodedef_icon =
'';
30901 this.nodedef_type =
'matrix33';
30903 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30904 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_matrix33I_out_genglsl.png';
30905 this.nodedef_group =
'conditional';
30906 this.addInput(
'in1',
'matrix33');
30907 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30908 this.addInput(
'in2',
'matrix33');
30909 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30910 this.addInput(
'in3',
'matrix33');
30911 this.addProperty(
'in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30912 this.addInput(
'in4',
'matrix33');
30913 this.addProperty(
'in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30914 this.addInput(
'in5',
'matrix33');
30915 this.addProperty(
'in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30916 this.addInput(
'in6',
'matrix33');
30917 this.addProperty(
'in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30918 this.addInput(
'in7',
'matrix33');
30919 this.addProperty(
'in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30920 this.addInput(
'in8',
'matrix33');
30921 this.addProperty(
'in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30922 this.addInput(
'in9',
'matrix33');
30923 this.addProperty(
'in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30924 this.addInput(
'in10',
'matrix33');
30925 this.addProperty(
'in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30926 this.addInput(
'which',
'integer');
30927 this.addProperty(
'which', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30928 this.addOutput(
'out',
'matrix33');
30929 this.title =
'switch_matrix33';
30930 this.desc =
"MaterialX:mtlx/conditional/switch_matrix33I";
30931 this.onNodeCreated =
function() {
30934 this.onRemoved =
function() {
30937 this.onPropertyChanged =
function(name, value, prev_value) {
30938 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
30940 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
30941 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
30943 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
30944 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
30946 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
30947 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
30949 this.bgcolor =
'#111';
30950 this.color =
'#532200';
30951 this.title_text_color =
'#000';
30952 this.shape = LiteGraph.CARD_SHAPE;
30953 this.boxcolor =
'#333';
30966 this.nodedef_icon =
'';
30968 this.nodedef_type =
'matrix44';
30970 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/switch.html';
30971 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_switch_matrix44I_out_genglsl.png';
30972 this.nodedef_group =
'conditional';
30973 this.addInput(
'in1',
'matrix44');
30974 this.addProperty(
'in1', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30975 this.addInput(
'in2',
'matrix44');
30976 this.addProperty(
'in2', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30977 this.addInput(
'in3',
'matrix44');
30978 this.addProperty(
'in3', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30979 this.addInput(
'in4',
'matrix44');
30980 this.addProperty(
'in4', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30981 this.addInput(
'in5',
'matrix44');
30982 this.addProperty(
'in5', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30983 this.addInput(
'in6',
'matrix44');
30984 this.addProperty(
'in6', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30985 this.addInput(
'in7',
'matrix44');
30986 this.addProperty(
'in7', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30987 this.addInput(
'in8',
'matrix44');
30988 this.addProperty(
'in8', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30989 this.addInput(
'in9',
'matrix44');
30990 this.addProperty(
'in9', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30991 this.addInput(
'in10',
'matrix44');
30992 this.addProperty(
'in10', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30993 this.addInput(
'which',
'integer');
30994 this.addProperty(
'which', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
30995 this.addOutput(
'out',
'matrix44');
30996 this.title =
'switch_matrix44';
30997 this.desc =
"MaterialX:mtlx/conditional/switch_matrix44I";
30998 this.onNodeCreated =
function() {
31001 this.onRemoved =
function() {
31004 this.onPropertyChanged =
function(name, value, prev_value) {
31005 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31007 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31008 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31010 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31011 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31013 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31014 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31016 this.bgcolor =
'#111';
31017 this.color =
'#532200';
31018 this.title_text_color =
'#000';
31019 this.shape = LiteGraph.CARD_SHAPE;
31020 this.boxcolor =
'#444';
31033 this.nodedef_icon =
'';
31035 this.nodedef_type =
'color3';
31037 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31038 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_float_color3_out_genglsl.png';
31039 this.nodedef_group =
'channel';
31040 this.addInput(
'in',
'float');
31041 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31042 this.addOutput(
'out',
'color3');
31043 this.title =
'convert_color3';
31044 this.desc =
"MaterialX:mtlx/channel/convert_float_color3";
31045 this.onNodeCreated =
function() {
31048 this.onRemoved =
function() {
31051 this.onPropertyChanged =
function(name, value, prev_value) {
31052 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31054 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31055 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31057 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31058 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31060 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31061 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31063 this.bgcolor =
'#111';
31064 this.color =
'#222';
31065 this.shape = LiteGraph.ROUND_SHAPE;
31066 this.boxcolor =
'#37A';
31079 this.nodedef_icon =
'';
31081 this.nodedef_type =
'color4';
31083 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31084 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_float_color4_out_genglsl.png';
31085 this.nodedef_group =
'channel';
31086 this.addInput(
'in',
'float');
31087 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31088 this.addOutput(
'out',
'color4');
31089 this.title =
'convert_color4';
31090 this.desc =
"MaterialX:mtlx/channel/convert_float_color4";
31091 this.onNodeCreated =
function() {
31094 this.onRemoved =
function() {
31097 this.onPropertyChanged =
function(name, value, prev_value) {
31098 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31100 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31101 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31103 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31104 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31106 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31107 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31109 this.bgcolor =
'#111';
31110 this.color =
'#222';
31111 this.shape = LiteGraph.ROUND_SHAPE;
31112 this.boxcolor =
'#69A';
31125 this.nodedef_icon =
'';
31127 this.nodedef_type =
'vector2';
31129 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31130 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_float_vector2_out_genglsl.png';
31131 this.nodedef_group =
'channel';
31132 this.addInput(
'in',
'float');
31133 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31134 this.addOutput(
'out',
'vector2');
31135 this.title =
'convert_vector2';
31136 this.desc =
"MaterialX:mtlx/channel/convert_float_vector2";
31137 this.onNodeCreated =
function() {
31140 this.onRemoved =
function() {
31143 this.onPropertyChanged =
function(name, value, prev_value) {
31144 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31146 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31147 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31149 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31150 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31152 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31153 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31155 this.bgcolor =
'#111';
31156 this.color =
'#222';
31157 this.shape = LiteGraph.ROUND_SHAPE;
31158 this.boxcolor =
'#265';
31171 this.nodedef_icon =
'';
31173 this.nodedef_type =
'vector3';
31175 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31176 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_float_vector3_out_genglsl.png';
31177 this.nodedef_group =
'channel';
31178 this.addInput(
'in',
'float');
31179 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31180 this.addOutput(
'out',
'vector3');
31181 this.title =
'convert_vector3';
31182 this.desc =
"MaterialX:mtlx/channel/convert_float_vector3";
31183 this.onNodeCreated =
function() {
31186 this.onRemoved =
function() {
31189 this.onPropertyChanged =
function(name, value, prev_value) {
31190 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31192 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31193 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31195 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31196 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31198 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31199 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31201 this.bgcolor =
'#111';
31202 this.color =
'#222';
31203 this.shape = LiteGraph.ROUND_SHAPE;
31204 this.boxcolor =
'#465';
31217 this.nodedef_icon =
'';
31219 this.nodedef_type =
'vector4';
31221 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31222 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_float_vector4_out_genglsl.png';
31223 this.nodedef_group =
'channel';
31224 this.addInput(
'in',
'float');
31225 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31226 this.addOutput(
'out',
'vector4');
31227 this.title =
'convert_vector4';
31228 this.desc =
"MaterialX:mtlx/channel/convert_float_vector4";
31229 this.onNodeCreated =
function() {
31232 this.onRemoved =
function() {
31235 this.onPropertyChanged =
function(name, value, prev_value) {
31236 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31238 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31239 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31241 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31242 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31244 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31245 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31247 this.bgcolor =
'#111';
31248 this.color =
'#222';
31249 this.shape = LiteGraph.ROUND_SHAPE;
31250 this.boxcolor =
'#275';
31263 this.nodedef_icon =
'';
31265 this.nodedef_type =
'color4';
31267 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31268 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color3_color4_out_genglsl.png';
31269 this.nodedef_group =
'channel';
31270 this.addInput(
'in',
'color3');
31271 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31272 this.addOutput(
'out',
'color4');
31273 this.title =
'convert_color4';
31274 this.desc =
"MaterialX:mtlx/channel/convert_color3_color4";
31275 this.onNodeCreated =
function() {
31278 this.onRemoved =
function() {
31281 this.onPropertyChanged =
function(name, value, prev_value) {
31282 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31284 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31285 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31287 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31288 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31290 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31291 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31293 this.bgcolor =
'#111';
31294 this.color =
'#222';
31295 this.shape = LiteGraph.ROUND_SHAPE;
31296 this.boxcolor =
'#69A';
31309 this.nodedef_icon =
'';
31311 this.nodedef_type =
'vector2';
31313 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31314 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color3_vector2_out_genglsl.png';
31315 this.nodedef_group =
'channel';
31316 this.addInput(
'in',
'color3');
31317 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31318 this.addOutput(
'out',
'vector2');
31319 this.title =
'convert_vector2';
31320 this.desc =
"MaterialX:mtlx/channel/convert_color3_vector2";
31321 this.onNodeCreated =
function() {
31324 this.onRemoved =
function() {
31327 this.onPropertyChanged =
function(name, value, prev_value) {
31328 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31330 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31331 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31333 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31334 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31336 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31337 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31339 this.bgcolor =
'#111';
31340 this.color =
'#222';
31341 this.shape = LiteGraph.ROUND_SHAPE;
31342 this.boxcolor =
'#265';
31355 this.nodedef_icon =
'';
31357 this.nodedef_type =
'vector3';
31359 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31360 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color3_vector3_out_genglsl.png';
31361 this.nodedef_group =
'channel';
31362 this.addInput(
'in',
'color3');
31363 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31364 this.addOutput(
'out',
'vector3');
31365 this.title =
'convert_vector3';
31366 this.desc =
"MaterialX:mtlx/channel/convert_color3_vector3";
31367 this.onNodeCreated =
function() {
31370 this.onRemoved =
function() {
31373 this.onPropertyChanged =
function(name, value, prev_value) {
31374 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31376 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31377 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31379 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31380 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31382 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31383 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31385 this.bgcolor =
'#111';
31386 this.color =
'#222';
31387 this.shape = LiteGraph.ROUND_SHAPE;
31388 this.boxcolor =
'#465';
31401 this.nodedef_icon =
'';
31403 this.nodedef_type =
'vector4';
31405 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31406 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color3_vector4_out_genglsl.png';
31407 this.nodedef_group =
'channel';
31408 this.addInput(
'in',
'color3');
31409 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31410 this.addOutput(
'out',
'vector4');
31411 this.title =
'convert_vector4';
31412 this.desc =
"MaterialX:mtlx/channel/convert_color3_vector4";
31413 this.onNodeCreated =
function() {
31416 this.onRemoved =
function() {
31419 this.onPropertyChanged =
function(name, value, prev_value) {
31420 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31422 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31423 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31425 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31426 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31428 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31429 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31431 this.bgcolor =
'#111';
31432 this.color =
'#222';
31433 this.shape = LiteGraph.ROUND_SHAPE;
31434 this.boxcolor =
'#275';
31447 this.nodedef_icon =
'';
31449 this.nodedef_type =
'color3';
31451 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31452 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color4_color3_out_genglsl.png';
31453 this.nodedef_group =
'channel';
31454 this.addInput(
'in',
'color4');
31455 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31456 this.addOutput(
'out',
'color3');
31457 this.title =
'convert_color3';
31458 this.desc =
"MaterialX:mtlx/channel/convert_color4_color3";
31459 this.onNodeCreated =
function() {
31462 this.onRemoved =
function() {
31465 this.onPropertyChanged =
function(name, value, prev_value) {
31466 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31468 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31469 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31471 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31472 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31474 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31475 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31477 this.bgcolor =
'#111';
31478 this.color =
'#222';
31479 this.shape = LiteGraph.ROUND_SHAPE;
31480 this.boxcolor =
'#37A';
31493 this.nodedef_icon =
'';
31495 this.nodedef_type =
'vector2';
31497 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31498 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color4_vector2_out_genglsl.png';
31499 this.nodedef_group =
'channel';
31500 this.addInput(
'in',
'color4');
31501 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31502 this.addOutput(
'out',
'vector2');
31503 this.title =
'convert_vector2';
31504 this.desc =
"MaterialX:mtlx/channel/convert_color4_vector2";
31505 this.onNodeCreated =
function() {
31508 this.onRemoved =
function() {
31511 this.onPropertyChanged =
function(name, value, prev_value) {
31512 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31514 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31515 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31517 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31518 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31520 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31521 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31523 this.bgcolor =
'#111';
31524 this.color =
'#222';
31525 this.shape = LiteGraph.ROUND_SHAPE;
31526 this.boxcolor =
'#265';
31539 this.nodedef_icon =
'';
31541 this.nodedef_type =
'vector3';
31543 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31544 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color4_vector3_out_genglsl.png';
31545 this.nodedef_group =
'channel';
31546 this.addInput(
'in',
'color4');
31547 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31548 this.addOutput(
'out',
'vector3');
31549 this.title =
'convert_vector3';
31550 this.desc =
"MaterialX:mtlx/channel/convert_color4_vector3";
31551 this.onNodeCreated =
function() {
31554 this.onRemoved =
function() {
31557 this.onPropertyChanged =
function(name, value, prev_value) {
31558 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31560 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31561 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31563 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31564 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31566 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31567 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31569 this.bgcolor =
'#111';
31570 this.color =
'#222';
31571 this.shape = LiteGraph.ROUND_SHAPE;
31572 this.boxcolor =
'#465';
31585 this.nodedef_icon =
'';
31587 this.nodedef_type =
'vector4';
31589 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31590 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color4_vector4_out_genglsl.png';
31591 this.nodedef_group =
'channel';
31592 this.addInput(
'in',
'color4');
31593 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31594 this.addOutput(
'out',
'vector4');
31595 this.title =
'convert_vector4';
31596 this.desc =
"MaterialX:mtlx/channel/convert_color4_vector4";
31597 this.onNodeCreated =
function() {
31600 this.onRemoved =
function() {
31603 this.onPropertyChanged =
function(name, value, prev_value) {
31604 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31606 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31607 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31609 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31610 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31612 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31613 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31615 this.bgcolor =
'#111';
31616 this.color =
'#222';
31617 this.shape = LiteGraph.ROUND_SHAPE;
31618 this.boxcolor =
'#275';
31631 this.nodedef_icon =
'';
31633 this.nodedef_type =
'color3';
31635 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31636 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector2_color3_out_genglsl.png';
31637 this.nodedef_group =
'channel';
31638 this.addInput(
'in',
'vector2');
31639 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31640 this.addOutput(
'out',
'color3');
31641 this.title =
'convert_color3';
31642 this.desc =
"MaterialX:mtlx/channel/convert_vector2_color3";
31643 this.onNodeCreated =
function() {
31646 this.onRemoved =
function() {
31649 this.onPropertyChanged =
function(name, value, prev_value) {
31650 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31652 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31653 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31655 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31656 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31658 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31659 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31661 this.bgcolor =
'#111';
31662 this.color =
'#222';
31663 this.shape = LiteGraph.ROUND_SHAPE;
31664 this.boxcolor =
'#37A';
31677 this.nodedef_icon =
'';
31679 this.nodedef_type =
'color4';
31681 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31682 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector2_color4_out_genglsl.png';
31683 this.nodedef_group =
'channel';
31684 this.addInput(
'in',
'vector2');
31685 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31686 this.addOutput(
'out',
'color4');
31687 this.title =
'convert_color4';
31688 this.desc =
"MaterialX:mtlx/channel/convert_vector2_color4";
31689 this.onNodeCreated =
function() {
31692 this.onRemoved =
function() {
31695 this.onPropertyChanged =
function(name, value, prev_value) {
31696 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31698 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31699 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31701 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31702 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31704 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31705 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31707 this.bgcolor =
'#111';
31708 this.color =
'#222';
31709 this.shape = LiteGraph.ROUND_SHAPE;
31710 this.boxcolor =
'#69A';
31723 this.nodedef_icon =
'';
31725 this.nodedef_type =
'vector3';
31727 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31728 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector2_vector3_out_genglsl.png';
31729 this.nodedef_group =
'channel';
31730 this.addInput(
'in',
'vector2');
31731 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31732 this.addOutput(
'out',
'vector3');
31733 this.title =
'convert_vector3';
31734 this.desc =
"MaterialX:mtlx/channel/convert_vector2_vector3";
31735 this.onNodeCreated =
function() {
31738 this.onRemoved =
function() {
31741 this.onPropertyChanged =
function(name, value, prev_value) {
31742 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31744 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31745 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31747 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31748 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31750 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31751 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31753 this.bgcolor =
'#111';
31754 this.color =
'#222';
31755 this.shape = LiteGraph.ROUND_SHAPE;
31756 this.boxcolor =
'#465';
31769 this.nodedef_icon =
'';
31771 this.nodedef_type =
'vector4';
31773 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31774 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector2_vector4_out_genglsl.png';
31775 this.nodedef_group =
'channel';
31776 this.addInput(
'in',
'vector2');
31777 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31778 this.addOutput(
'out',
'vector4');
31779 this.title =
'convert_vector4';
31780 this.desc =
"MaterialX:mtlx/channel/convert_vector2_vector4";
31781 this.onNodeCreated =
function() {
31784 this.onRemoved =
function() {
31787 this.onPropertyChanged =
function(name, value, prev_value) {
31788 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31790 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31791 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31793 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31794 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31796 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31797 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31799 this.bgcolor =
'#111';
31800 this.color =
'#222';
31801 this.shape = LiteGraph.ROUND_SHAPE;
31802 this.boxcolor =
'#275';
31815 this.nodedef_icon =
'';
31817 this.nodedef_type =
'color3';
31819 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31820 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector3_color3_out_genglsl.png';
31821 this.nodedef_group =
'channel';
31822 this.addInput(
'in',
'vector3');
31823 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31824 this.addOutput(
'out',
'color3');
31825 this.title =
'convert_color3';
31826 this.desc =
"MaterialX:mtlx/channel/convert_vector3_color3";
31827 this.onNodeCreated =
function() {
31830 this.onRemoved =
function() {
31833 this.onPropertyChanged =
function(name, value, prev_value) {
31834 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31836 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31837 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31839 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31840 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31842 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31843 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31845 this.bgcolor =
'#111';
31846 this.color =
'#222';
31847 this.shape = LiteGraph.ROUND_SHAPE;
31848 this.boxcolor =
'#37A';
31861 this.nodedef_icon =
'';
31863 this.nodedef_type =
'color4';
31865 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31866 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector3_color4_out_genglsl.png';
31867 this.nodedef_group =
'channel';
31868 this.addInput(
'in',
'vector3');
31869 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31870 this.addOutput(
'out',
'color4');
31871 this.title =
'convert_color4';
31872 this.desc =
"MaterialX:mtlx/channel/convert_vector3_color4";
31873 this.onNodeCreated =
function() {
31876 this.onRemoved =
function() {
31879 this.onPropertyChanged =
function(name, value, prev_value) {
31880 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31882 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31883 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31885 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31886 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31888 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31889 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31891 this.bgcolor =
'#111';
31892 this.color =
'#222';
31893 this.shape = LiteGraph.ROUND_SHAPE;
31894 this.boxcolor =
'#69A';
31907 this.nodedef_icon =
'';
31909 this.nodedef_type =
'vector2';
31911 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31912 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector3_vector2_out_genglsl.png';
31913 this.nodedef_group =
'channel';
31914 this.addInput(
'in',
'vector3');
31915 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31916 this.addOutput(
'out',
'vector2');
31917 this.title =
'convert_vector2';
31918 this.desc =
"MaterialX:mtlx/channel/convert_vector3_vector2";
31919 this.onNodeCreated =
function() {
31922 this.onRemoved =
function() {
31925 this.onPropertyChanged =
function(name, value, prev_value) {
31926 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31928 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31929 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31931 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31932 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31934 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31935 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31937 this.bgcolor =
'#111';
31938 this.color =
'#222';
31939 this.shape = LiteGraph.ROUND_SHAPE;
31940 this.boxcolor =
'#265';
31953 this.nodedef_icon =
'';
31955 this.nodedef_type =
'vector4';
31957 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
31958 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector3_vector4_out_genglsl.png';
31959 this.nodedef_group =
'channel';
31960 this.addInput(
'in',
'vector3');
31961 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
31962 this.addOutput(
'out',
'vector4');
31963 this.title =
'convert_vector4';
31964 this.desc =
"MaterialX:mtlx/channel/convert_vector3_vector4";
31965 this.onNodeCreated =
function() {
31968 this.onRemoved =
function() {
31971 this.onPropertyChanged =
function(name, value, prev_value) {
31972 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
31974 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
31975 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
31977 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
31978 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
31980 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
31981 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
31983 this.bgcolor =
'#111';
31984 this.color =
'#222';
31985 this.shape = LiteGraph.ROUND_SHAPE;
31986 this.boxcolor =
'#275';
31999 this.nodedef_icon =
'';
32001 this.nodedef_type =
'color3';
32003 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32004 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector4_color3_out_genglsl.png';
32005 this.nodedef_group =
'channel';
32006 this.addInput(
'in',
'vector4');
32007 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32008 this.addOutput(
'out',
'color3');
32009 this.title =
'convert_color3';
32010 this.desc =
"MaterialX:mtlx/channel/convert_vector4_color3";
32011 this.onNodeCreated =
function() {
32014 this.onRemoved =
function() {
32017 this.onPropertyChanged =
function(name, value, prev_value) {
32018 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32020 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32021 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32023 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32024 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32026 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32027 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32029 this.bgcolor =
'#111';
32030 this.color =
'#222';
32031 this.shape = LiteGraph.ROUND_SHAPE;
32032 this.boxcolor =
'#37A';
32045 this.nodedef_icon =
'';
32047 this.nodedef_type =
'color4';
32049 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32050 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector4_color4_out_genglsl.png';
32051 this.nodedef_group =
'channel';
32052 this.addInput(
'in',
'vector4');
32053 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32054 this.addOutput(
'out',
'color4');
32055 this.title =
'convert_color4';
32056 this.desc =
"MaterialX:mtlx/channel/convert_vector4_color4";
32057 this.onNodeCreated =
function() {
32060 this.onRemoved =
function() {
32063 this.onPropertyChanged =
function(name, value, prev_value) {
32064 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32066 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32067 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32069 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32070 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32072 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32073 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32075 this.bgcolor =
'#111';
32076 this.color =
'#222';
32077 this.shape = LiteGraph.ROUND_SHAPE;
32078 this.boxcolor =
'#69A';
32091 this.nodedef_icon =
'';
32093 this.nodedef_type =
'vector2';
32095 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32096 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector4_vector2_out_genglsl.png';
32097 this.nodedef_group =
'channel';
32098 this.addInput(
'in',
'vector4');
32099 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32100 this.addOutput(
'out',
'vector2');
32101 this.title =
'convert_vector2';
32102 this.desc =
"MaterialX:mtlx/channel/convert_vector4_vector2";
32103 this.onNodeCreated =
function() {
32106 this.onRemoved =
function() {
32109 this.onPropertyChanged =
function(name, value, prev_value) {
32110 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32112 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32113 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32115 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32116 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32118 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32119 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32121 this.bgcolor =
'#111';
32122 this.color =
'#222';
32123 this.shape = LiteGraph.ROUND_SHAPE;
32124 this.boxcolor =
'#265';
32137 this.nodedef_icon =
'';
32139 this.nodedef_type =
'vector3';
32141 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32142 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector4_vector3_out_genglsl.png';
32143 this.nodedef_group =
'channel';
32144 this.addInput(
'in',
'vector4');
32145 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32146 this.addOutput(
'out',
'vector3');
32147 this.title =
'convert_vector3';
32148 this.desc =
"MaterialX:mtlx/channel/convert_vector4_vector3";
32149 this.onNodeCreated =
function() {
32152 this.onRemoved =
function() {
32155 this.onPropertyChanged =
function(name, value, prev_value) {
32156 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32158 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32159 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32161 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32162 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32164 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32165 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32167 this.bgcolor =
'#111';
32168 this.color =
'#222';
32169 this.shape = LiteGraph.ROUND_SHAPE;
32170 this.boxcolor =
'#465';
32183 this.nodedef_icon =
'';
32185 this.nodedef_type =
'float';
32187 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32188 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_float_out_genglsl.png';
32189 this.nodedef_group =
'channel';
32190 this.addInput(
'in',
'boolean');
32191 this.addProperty(
'in',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32192 this.addOutput(
'out',
'float');
32193 this.title =
'convert_float';
32194 this.desc =
"MaterialX:mtlx/channel/convert_boolean_float";
32195 this.onNodeCreated =
function() {
32198 this.onRemoved =
function() {
32201 this.onPropertyChanged =
function(name, value, prev_value) {
32202 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32204 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32205 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32207 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32208 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32210 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32211 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32213 this.bgcolor =
'#111';
32214 this.color =
'#222';
32215 this.shape = LiteGraph.ROUND_SHAPE;
32216 this.boxcolor =
'#161';
32229 this.nodedef_icon =
'';
32231 this.nodedef_type =
'color3';
32233 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32234 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_color3_out_genglsl.png';
32235 this.nodedef_group =
'channel';
32236 this.addInput(
'in',
'boolean');
32237 this.addProperty(
'in',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32238 this.addOutput(
'out',
'color3');
32239 this.title =
'convert_color3';
32240 this.desc =
"MaterialX:mtlx/channel/convert_boolean_color3";
32241 this.onNodeCreated =
function() {
32244 this.onRemoved =
function() {
32247 this.onPropertyChanged =
function(name, value, prev_value) {
32248 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32250 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32251 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32253 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32254 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32256 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32257 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32259 this.bgcolor =
'#111';
32260 this.color =
'#222';
32261 this.shape = LiteGraph.ROUND_SHAPE;
32262 this.boxcolor =
'#37A';
32275 this.nodedef_icon =
'';
32277 this.nodedef_type =
'color4';
32279 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32280 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_color4_out_genglsl.png';
32281 this.nodedef_group =
'channel';
32282 this.addInput(
'in',
'boolean');
32283 this.addProperty(
'in',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32284 this.addOutput(
'out',
'color4');
32285 this.title =
'convert_color4';
32286 this.desc =
"MaterialX:mtlx/channel/convert_boolean_color4";
32287 this.onNodeCreated =
function() {
32290 this.onRemoved =
function() {
32293 this.onPropertyChanged =
function(name, value, prev_value) {
32294 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32296 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32297 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32299 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32300 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32302 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32303 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32305 this.bgcolor =
'#111';
32306 this.color =
'#222';
32307 this.shape = LiteGraph.ROUND_SHAPE;
32308 this.boxcolor =
'#69A';
32321 this.nodedef_icon =
'';
32323 this.nodedef_type =
'vector2';
32325 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32326 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_vector2_out_genglsl.png';
32327 this.nodedef_group =
'channel';
32328 this.addInput(
'in',
'boolean');
32329 this.addProperty(
'in',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32330 this.addOutput(
'out',
'vector2');
32331 this.title =
'convert_vector2';
32332 this.desc =
"MaterialX:mtlx/channel/convert_boolean_vector2";
32333 this.onNodeCreated =
function() {
32336 this.onRemoved =
function() {
32339 this.onPropertyChanged =
function(name, value, prev_value) {
32340 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32342 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32343 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32345 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32346 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32348 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32349 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32351 this.bgcolor =
'#111';
32352 this.color =
'#222';
32353 this.shape = LiteGraph.ROUND_SHAPE;
32354 this.boxcolor =
'#265';
32367 this.nodedef_icon =
'';
32369 this.nodedef_type =
'vector3';
32371 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32372 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_vector3_out_genglsl.png';
32373 this.nodedef_group =
'channel';
32374 this.addInput(
'in',
'boolean');
32375 this.addProperty(
'in',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32376 this.addOutput(
'out',
'vector3');
32377 this.title =
'convert_vector3';
32378 this.desc =
"MaterialX:mtlx/channel/convert_boolean_vector3";
32379 this.onNodeCreated =
function() {
32382 this.onRemoved =
function() {
32385 this.onPropertyChanged =
function(name, value, prev_value) {
32386 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32388 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32389 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32391 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32392 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32394 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32395 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32397 this.bgcolor =
'#111';
32398 this.color =
'#222';
32399 this.shape = LiteGraph.ROUND_SHAPE;
32400 this.boxcolor =
'#465';
32413 this.nodedef_icon =
'';
32415 this.nodedef_type =
'vector4';
32417 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32418 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_vector4_out_genglsl.png';
32419 this.nodedef_group =
'channel';
32420 this.addInput(
'in',
'boolean');
32421 this.addProperty(
'in',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32422 this.addOutput(
'out',
'vector4');
32423 this.title =
'convert_vector4';
32424 this.desc =
"MaterialX:mtlx/channel/convert_boolean_vector4";
32425 this.onNodeCreated =
function() {
32428 this.onRemoved =
function() {
32431 this.onPropertyChanged =
function(name, value, prev_value) {
32432 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32434 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32435 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32437 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32438 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32440 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32441 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32443 this.bgcolor =
'#111';
32444 this.color =
'#222';
32445 this.shape = LiteGraph.ROUND_SHAPE;
32446 this.boxcolor =
'#275';
32459 this.nodedef_icon =
'';
32461 this.nodedef_type =
'integer';
32463 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32464 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_integer_out_genglsl.png';
32465 this.nodedef_group =
'channel';
32466 this.addInput(
'in',
'boolean');
32467 this.addProperty(
'in',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32468 this.addOutput(
'out',
'integer');
32469 this.title =
'convert_integer';
32470 this.desc =
"MaterialX:mtlx/channel/convert_boolean_integer";
32471 this.onNodeCreated =
function() {
32474 this.onRemoved =
function() {
32477 this.onPropertyChanged =
function(name, value, prev_value) {
32478 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32480 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32481 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32483 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32484 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32486 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32487 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32489 this.bgcolor =
'#111';
32490 this.color =
'#222';
32491 this.shape = LiteGraph.ROUND_SHAPE;
32492 this.boxcolor =
'#A32';
32505 this.nodedef_icon =
'';
32507 this.nodedef_type =
'float';
32509 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32510 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_float_out_genglsl.png';
32511 this.nodedef_group =
'channel';
32512 this.addInput(
'in',
'integer');
32513 this.addProperty(
'in', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32514 this.addOutput(
'out',
'float');
32515 this.title =
'convert_float';
32516 this.desc =
"MaterialX:mtlx/channel/convert_integer_float";
32517 this.onNodeCreated =
function() {
32520 this.onRemoved =
function() {
32523 this.onPropertyChanged =
function(name, value, prev_value) {
32524 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32526 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32527 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32529 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32530 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32532 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32533 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32535 this.bgcolor =
'#111';
32536 this.color =
'#222';
32537 this.shape = LiteGraph.ROUND_SHAPE;
32538 this.boxcolor =
'#161';
32551 this.nodedef_icon =
'';
32553 this.nodedef_type =
'color3';
32555 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32556 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_color3_out_genglsl.png';
32557 this.nodedef_group =
'channel';
32558 this.addInput(
'in',
'integer');
32559 this.addProperty(
'in', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32560 this.addOutput(
'out',
'color3');
32561 this.title =
'convert_color3';
32562 this.desc =
"MaterialX:mtlx/channel/convert_integer_color3";
32563 this.onNodeCreated =
function() {
32566 this.onRemoved =
function() {
32569 this.onPropertyChanged =
function(name, value, prev_value) {
32570 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32572 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32573 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32575 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32576 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32578 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32579 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32581 this.bgcolor =
'#111';
32582 this.color =
'#222';
32583 this.shape = LiteGraph.ROUND_SHAPE;
32584 this.boxcolor =
'#37A';
32597 this.nodedef_icon =
'';
32599 this.nodedef_type =
'color4';
32601 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32602 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_color4_out_genglsl.png';
32603 this.nodedef_group =
'channel';
32604 this.addInput(
'in',
'integer');
32605 this.addProperty(
'in', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32606 this.addOutput(
'out',
'color4');
32607 this.title =
'convert_color4';
32608 this.desc =
"MaterialX:mtlx/channel/convert_integer_color4";
32609 this.onNodeCreated =
function() {
32612 this.onRemoved =
function() {
32615 this.onPropertyChanged =
function(name, value, prev_value) {
32616 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32618 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32619 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32621 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32622 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32624 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32625 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32627 this.bgcolor =
'#111';
32628 this.color =
'#222';
32629 this.shape = LiteGraph.ROUND_SHAPE;
32630 this.boxcolor =
'#69A';
32643 this.nodedef_icon =
'';
32645 this.nodedef_type =
'vector2';
32647 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32648 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_vector2_out_genglsl.png';
32649 this.nodedef_group =
'channel';
32650 this.addInput(
'in',
'integer');
32651 this.addProperty(
'in', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32652 this.addOutput(
'out',
'vector2');
32653 this.title =
'convert_vector2';
32654 this.desc =
"MaterialX:mtlx/channel/convert_integer_vector2";
32655 this.onNodeCreated =
function() {
32658 this.onRemoved =
function() {
32661 this.onPropertyChanged =
function(name, value, prev_value) {
32662 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32664 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32665 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32667 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32668 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32670 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32671 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32673 this.bgcolor =
'#111';
32674 this.color =
'#222';
32675 this.shape = LiteGraph.ROUND_SHAPE;
32676 this.boxcolor =
'#265';
32689 this.nodedef_icon =
'';
32691 this.nodedef_type =
'vector3';
32693 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32694 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_vector3_out_genglsl.png';
32695 this.nodedef_group =
'channel';
32696 this.addInput(
'in',
'integer');
32697 this.addProperty(
'in', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32698 this.addOutput(
'out',
'vector3');
32699 this.title =
'convert_vector3';
32700 this.desc =
"MaterialX:mtlx/channel/convert_integer_vector3";
32701 this.onNodeCreated =
function() {
32704 this.onRemoved =
function() {
32707 this.onPropertyChanged =
function(name, value, prev_value) {
32708 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32710 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32711 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32713 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32714 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32716 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32717 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32719 this.bgcolor =
'#111';
32720 this.color =
'#222';
32721 this.shape = LiteGraph.ROUND_SHAPE;
32722 this.boxcolor =
'#465';
32735 this.nodedef_icon =
'';
32737 this.nodedef_type =
'vector4';
32739 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32740 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_vector4_out_genglsl.png';
32741 this.nodedef_group =
'channel';
32742 this.addInput(
'in',
'integer');
32743 this.addProperty(
'in', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32744 this.addOutput(
'out',
'vector4');
32745 this.title =
'convert_vector4';
32746 this.desc =
"MaterialX:mtlx/channel/convert_integer_vector4";
32747 this.onNodeCreated =
function() {
32750 this.onRemoved =
function() {
32753 this.onPropertyChanged =
function(name, value, prev_value) {
32754 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32756 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32757 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32759 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32760 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32762 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32763 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32765 this.bgcolor =
'#111';
32766 this.color =
'#222';
32767 this.shape = LiteGraph.ROUND_SHAPE;
32768 this.boxcolor =
'#275';
32781 this.nodedef_icon =
'';
32783 this.nodedef_type =
'boolean';
32785 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32786 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_boolean_out_genglsl.png';
32787 this.nodedef_group =
'channel';
32788 this.addInput(
'in',
'integer');
32789 this.addProperty(
'in', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32790 this.addOutput(
'out',
'boolean');
32791 this.title =
'convert_boolean';
32792 this.desc =
"MaterialX:mtlx/channel/convert_integer_boolean";
32793 this.onNodeCreated =
function() {
32796 this.onRemoved =
function() {
32799 this.onPropertyChanged =
function(name, value, prev_value) {
32800 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32802 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32803 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32805 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32806 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32808 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32809 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32811 this.bgcolor =
'#111';
32812 this.color =
'#222';
32813 this.shape = LiteGraph.ROUND_SHAPE;
32814 this.boxcolor =
'#060';
32827 this.nodedef_icon =
'';
32828 this.
nodedef_name =
'ND_convert_color3_surfaceshader';
32829 this.nodedef_type =
'surfaceshader';
32831 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32832 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color3_surfaceshader_out_genglsl.png';
32833 this.nodedef_group =
'shader';
32834 this.addInput(
'in',
'color3');
32835 this.addProperty(
'in', [0, 0, 0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32836 this.addOutput(
'out',
'surfaceshader');
32837 this.title =
'convert_surfaceshader';
32838 this.desc =
"MaterialX:mtlx/shader/convert_color3_surfaceshader";
32839 this.onNodeCreated =
function() {
32842 this.onRemoved =
function() {
32845 this.onPropertyChanged =
function(name, value, prev_value) {
32846 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32848 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32849 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32851 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32852 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32854 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32855 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32857 this.bgcolor =
'#111';
32858 this.color =
'#222';
32859 this.shape = LiteGraph.ROUND_SHAPE;
32872 this.nodedef_icon =
'';
32873 this.
nodedef_name =
'ND_convert_color4_surfaceshader';
32874 this.nodedef_type =
'surfaceshader';
32876 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32877 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_color4_surfaceshader_out_genglsl.png';
32878 this.nodedef_group =
'shader';
32879 this.addInput(
'in',
'color4');
32880 this.addProperty(
'in', [0, 0, 0, 0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32881 this.addOutput(
'out',
'surfaceshader');
32882 this.title =
'convert_surfaceshader';
32883 this.desc =
"MaterialX:mtlx/shader/convert_color4_surfaceshader";
32884 this.onNodeCreated =
function() {
32887 this.onRemoved =
function() {
32890 this.onPropertyChanged =
function(name, value, prev_value) {
32891 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32893 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32894 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32896 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32897 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32899 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32900 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32902 this.bgcolor =
'#111';
32903 this.color =
'#222';
32904 this.shape = LiteGraph.ROUND_SHAPE;
32917 this.nodedef_icon =
'';
32919 this.nodedef_type =
'surfaceshader';
32921 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32922 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_float_surfaceshader_out_genglsl.png';
32923 this.nodedef_group =
'shader';
32924 this.addInput(
'in',
'float');
32925 this.addProperty(
'in', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32926 this.addOutput(
'out',
'surfaceshader');
32927 this.title =
'convert_surfaceshader';
32928 this.desc =
"MaterialX:mtlx/shader/convert_float_surfaceshader";
32929 this.onNodeCreated =
function() {
32932 this.onRemoved =
function() {
32935 this.onPropertyChanged =
function(name, value, prev_value) {
32936 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32938 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32939 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32941 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32942 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32944 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32945 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32947 this.bgcolor =
'#111';
32948 this.color =
'#222';
32949 this.shape = LiteGraph.ROUND_SHAPE;
32962 this.nodedef_icon =
'';
32963 this.
nodedef_name =
'ND_convert_vector2_surfaceshader';
32964 this.nodedef_type =
'surfaceshader';
32966 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
32967 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector2_surfaceshader_out_genglsl.png';
32968 this.nodedef_group =
'shader';
32969 this.addInput(
'in',
'vector2');
32970 this.addProperty(
'in', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
32971 this.addOutput(
'out',
'surfaceshader');
32972 this.title =
'convert_surfaceshader';
32973 this.desc =
"MaterialX:mtlx/shader/convert_vector2_surfaceshader";
32974 this.onNodeCreated =
function() {
32977 this.onRemoved =
function() {
32980 this.onPropertyChanged =
function(name, value, prev_value) {
32981 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
32983 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
32984 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
32986 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
32987 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
32989 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
32990 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
32992 this.bgcolor =
'#111';
32993 this.color =
'#222';
32994 this.shape = LiteGraph.ROUND_SHAPE;
33007 this.nodedef_icon =
'';
33008 this.
nodedef_name =
'ND_convert_vector3_surfaceshader';
33009 this.nodedef_type =
'surfaceshader';
33011 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
33012 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector3_surfaceshader_out_genglsl.png';
33013 this.nodedef_group =
'shader';
33014 this.addInput(
'in',
'vector3');
33015 this.addProperty(
'in', [0, 0, 0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33016 this.addOutput(
'out',
'surfaceshader');
33017 this.title =
'convert_surfaceshader';
33018 this.desc =
"MaterialX:mtlx/shader/convert_vector3_surfaceshader";
33019 this.onNodeCreated =
function() {
33022 this.onRemoved =
function() {
33025 this.onPropertyChanged =
function(name, value, prev_value) {
33026 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33028 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33029 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33031 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33032 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33034 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33035 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33037 this.bgcolor =
'#111';
33038 this.color =
'#222';
33039 this.shape = LiteGraph.ROUND_SHAPE;
33052 this.nodedef_icon =
'';
33053 this.
nodedef_name =
'ND_convert_vector4_surfaceshader';
33054 this.nodedef_type =
'surfaceshader';
33056 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
33057 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_vector4_surfaceshader_out_genglsl.png';
33058 this.nodedef_group =
'shader';
33059 this.addInput(
'in',
'vector4');
33060 this.addProperty(
'in', [0, 0, 0, 0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33061 this.addOutput(
'out',
'surfaceshader');
33062 this.title =
'convert_surfaceshader';
33063 this.desc =
"MaterialX:mtlx/shader/convert_vector4_surfaceshader";
33064 this.onNodeCreated =
function() {
33067 this.onRemoved =
function() {
33070 this.onPropertyChanged =
function(name, value, prev_value) {
33071 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33073 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33074 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33076 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33077 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33079 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33080 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33082 this.bgcolor =
'#111';
33083 this.color =
'#222';
33084 this.shape = LiteGraph.ROUND_SHAPE;
33097 this.nodedef_icon =
'';
33098 this.
nodedef_name =
'ND_convert_integer_surfaceshader';
33099 this.nodedef_type =
'surfaceshader';
33101 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
33102 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_integer_surfaceshader_out_genglsl.png';
33103 this.nodedef_group =
'shader';
33104 this.addInput(
'in',
'integer');
33105 this.addProperty(
'in', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33106 this.addOutput(
'out',
'surfaceshader');
33107 this.title =
'convert_surfaceshader';
33108 this.desc =
"MaterialX:mtlx/shader/convert_integer_surfaceshader";
33109 this.onNodeCreated =
function() {
33112 this.onRemoved =
function() {
33115 this.onPropertyChanged =
function(name, value, prev_value) {
33116 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33118 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33119 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33121 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33122 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33124 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33125 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33127 this.bgcolor =
'#111';
33128 this.color =
'#222';
33129 this.shape = LiteGraph.ROUND_SHAPE;
33142 this.nodedef_icon =
'';
33143 this.
nodedef_name =
'ND_convert_boolean_surfaceshader';
33144 this.nodedef_type =
'surfaceshader';
33146 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/convert.html';
33147 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_convert_boolean_surfaceshader_out_genglsl.png';
33148 this.nodedef_group =
'shader';
33149 this.addInput(
'in',
'boolean');
33150 this.addProperty(
'in',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33151 this.addOutput(
'out',
'surfaceshader');
33152 this.title =
'convert_surfaceshader';
33153 this.desc =
"MaterialX:mtlx/shader/convert_boolean_surfaceshader";
33154 this.onNodeCreated =
function() {
33157 this.onRemoved =
function() {
33160 this.onPropertyChanged =
function(name, value, prev_value) {
33161 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33163 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33164 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33166 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33167 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33169 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33170 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33172 this.bgcolor =
'#111';
33173 this.color =
'#222';
33174 this.shape = LiteGraph.ROUND_SHAPE;
33187 this.nodedef_icon =
'';
33189 this.nodedef_type =
'vector2';
33191 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine2.html';
33192 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine2_vector2_out_genglsl.png';
33193 this.nodedef_group =
'channel';
33194 this.addInput(
'in1',
'float');
33195 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33196 this.addInput(
'in2',
'float');
33197 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33198 this.addOutput(
'out',
'vector2');
33199 this.title =
'combine2_vector2';
33200 this.desc =
"MaterialX:mtlx/channel/combine2_vector2";
33201 this.onNodeCreated =
function() {
33204 this.onRemoved =
function() {
33207 this.onPropertyChanged =
function(name, value, prev_value) {
33208 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33210 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33211 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33213 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33214 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33216 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33217 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33219 this.bgcolor =
'#111';
33220 this.color =
'#222';
33221 this.shape = LiteGraph.ROUND_SHAPE;
33222 this.boxcolor =
'#265';
33235 this.nodedef_icon =
'';
33237 this.nodedef_type =
'color4';
33239 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine2.html';
33240 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine2_color4CF_out_genglsl.png';
33241 this.nodedef_group =
'channel';
33242 this.addInput(
'in1',
'color3');
33243 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33244 this.addInput(
'in2',
'float');
33245 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33246 this.addOutput(
'out',
'color4');
33247 this.title =
'combine2_color4';
33248 this.desc =
"MaterialX:mtlx/channel/combine2_color4CF";
33249 this.onNodeCreated =
function() {
33252 this.onRemoved =
function() {
33255 this.onPropertyChanged =
function(name, value, prev_value) {
33256 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33258 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33259 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33261 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33262 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33264 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33265 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33267 this.bgcolor =
'#111';
33268 this.color =
'#222';
33269 this.shape = LiteGraph.ROUND_SHAPE;
33270 this.boxcolor =
'#69A';
33283 this.nodedef_icon =
'';
33285 this.nodedef_type =
'vector4';
33287 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine2.html';
33288 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine2_vector4VF_out_genglsl.png';
33289 this.nodedef_group =
'channel';
33290 this.addInput(
'in1',
'vector3');
33291 this.addProperty(
'in1', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33292 this.addInput(
'in2',
'float');
33293 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33294 this.addOutput(
'out',
'vector4');
33295 this.title =
'combine2_vector4';
33296 this.desc =
"MaterialX:mtlx/channel/combine2_vector4VF";
33297 this.onNodeCreated =
function() {
33300 this.onRemoved =
function() {
33303 this.onPropertyChanged =
function(name, value, prev_value) {
33304 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33306 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33307 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33309 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33310 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33312 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33313 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33315 this.bgcolor =
'#111';
33316 this.color =
'#222';
33317 this.shape = LiteGraph.ROUND_SHAPE;
33318 this.boxcolor =
'#275';
33331 this.nodedef_icon =
'';
33333 this.nodedef_type =
'vector4';
33335 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine2.html';
33336 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine2_vector4VV_out_genglsl.png';
33337 this.nodedef_group =
'channel';
33338 this.addInput(
'in1',
'vector2');
33339 this.addProperty(
'in1', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33340 this.addInput(
'in2',
'vector2');
33341 this.addProperty(
'in2', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33342 this.addOutput(
'out',
'vector4');
33343 this.title =
'combine2_vector4';
33344 this.desc =
"MaterialX:mtlx/channel/combine2_vector4VV";
33345 this.onNodeCreated =
function() {
33348 this.onRemoved =
function() {
33351 this.onPropertyChanged =
function(name, value, prev_value) {
33352 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33354 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33355 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33357 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33358 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33360 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33361 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33363 this.bgcolor =
'#111';
33364 this.color =
'#222';
33365 this.shape = LiteGraph.ROUND_SHAPE;
33366 this.boxcolor =
'#275';
33379 this.nodedef_icon =
'';
33381 this.nodedef_type =
'color3';
33383 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine3.html';
33384 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine3_color3_out_genglsl.png';
33385 this.nodedef_group =
'channel';
33386 this.addInput(
'in1',
'float');
33387 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33388 this.addInput(
'in2',
'float');
33389 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33390 this.addInput(
'in3',
'float');
33391 this.addProperty(
'in3', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33392 this.addOutput(
'out',
'color3');
33393 this.title =
'combine3_color3';
33394 this.desc =
"MaterialX:mtlx/channel/combine3_color3";
33395 this.onNodeCreated =
function() {
33398 this.onRemoved =
function() {
33401 this.onPropertyChanged =
function(name, value, prev_value) {
33402 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33404 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33405 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33407 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33408 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33410 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33411 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33413 this.bgcolor =
'#111';
33414 this.color =
'#222';
33415 this.shape = LiteGraph.ROUND_SHAPE;
33416 this.boxcolor =
'#37A';
33429 this.nodedef_icon =
'';
33431 this.nodedef_type =
'vector3';
33433 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine3.html';
33434 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine3_vector3_out_genglsl.png';
33435 this.nodedef_group =
'channel';
33436 this.addInput(
'in1',
'float');
33437 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33438 this.addInput(
'in2',
'float');
33439 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33440 this.addInput(
'in3',
'float');
33441 this.addProperty(
'in3', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33442 this.addOutput(
'out',
'vector3');
33443 this.title =
'combine3_vector3';
33444 this.desc =
"MaterialX:mtlx/channel/combine3_vector3";
33445 this.onNodeCreated =
function() {
33448 this.onRemoved =
function() {
33451 this.onPropertyChanged =
function(name, value, prev_value) {
33452 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33454 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33455 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33457 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33458 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33460 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33461 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33463 this.bgcolor =
'#111';
33464 this.color =
'#222';
33465 this.shape = LiteGraph.ROUND_SHAPE;
33466 this.boxcolor =
'#465';
33479 this.nodedef_icon =
'';
33481 this.nodedef_type =
'color4';
33483 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine4.html';
33484 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine4_color4_out_genglsl.png';
33485 this.nodedef_group =
'channel';
33486 this.addInput(
'in1',
'float');
33487 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33488 this.addInput(
'in2',
'float');
33489 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33490 this.addInput(
'in3',
'float');
33491 this.addProperty(
'in3', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33492 this.addInput(
'in4',
'float');
33493 this.addProperty(
'in4', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33494 this.addOutput(
'out',
'color4');
33495 this.title =
'combine4_color4';
33496 this.desc =
"MaterialX:mtlx/channel/combine4_color4";
33497 this.onNodeCreated =
function() {
33500 this.onRemoved =
function() {
33503 this.onPropertyChanged =
function(name, value, prev_value) {
33504 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33506 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33507 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33509 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33510 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33512 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33513 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33515 this.bgcolor =
'#111';
33516 this.color =
'#222';
33517 this.shape = LiteGraph.ROUND_SHAPE;
33518 this.boxcolor =
'#69A';
33531 this.nodedef_icon =
'';
33533 this.nodedef_type =
'vector4';
33535 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/combine4.html';
33536 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_combine4_vector4_out_genglsl.png';
33537 this.nodedef_group =
'channel';
33538 this.addInput(
'in1',
'float');
33539 this.addProperty(
'in1', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33540 this.addInput(
'in2',
'float');
33541 this.addProperty(
'in2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33542 this.addInput(
'in3',
'float');
33543 this.addProperty(
'in3', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33544 this.addInput(
'in4',
'float');
33545 this.addProperty(
'in4', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33546 this.addOutput(
'out',
'vector4');
33547 this.title =
'combine4_vector4';
33548 this.desc =
"MaterialX:mtlx/channel/combine4_vector4";
33549 this.onNodeCreated =
function() {
33552 this.onRemoved =
function() {
33555 this.onPropertyChanged =
function(name, value, prev_value) {
33556 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33558 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33559 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33561 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33562 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33564 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33565 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33567 this.bgcolor =
'#111';
33568 this.color =
'#222';
33569 this.shape = LiteGraph.ROUND_SHAPE;
33570 this.boxcolor =
'#275';
33583 this.nodedef_icon =
'';
33584 this.
nodedef_name =
'ND_creatematrix_vector3_matrix33';
33585 this.nodedef_type =
'matrix33';
33587 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/creatematrix.html';
33588 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_creatematrix_vector3_matrix33_out_genglsl.png';
33589 this.nodedef_group =
'math';
33590 this.addInput(
'in1',
'vector3');
33591 this.addProperty(
'in1', [1.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33592 this.addInput(
'in2',
'vector3');
33593 this.addProperty(
'in2', [0.0, 1.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33594 this.addInput(
'in3',
'vector3');
33595 this.addProperty(
'in3', [0.0, 0.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33596 this.addOutput(
'out',
'matrix33');
33597 this.title =
'creatematrix_matrix33';
33598 this.desc =
"MaterialX:mtlx/math/creatematrix_vector3_matrix33";
33599 this.onNodeCreated =
function() {
33602 this.onRemoved =
function() {
33605 this.onPropertyChanged =
function(name, value, prev_value) {
33606 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33608 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33609 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33611 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33612 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33614 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33615 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33617 this.bgcolor =
'#111';
33618 this.color =
'#222';
33619 this.shape = LiteGraph.ROUND_SHAPE;
33620 this.boxcolor =
'#333';
33633 this.nodedef_icon =
'';
33634 this.
nodedef_name =
'ND_creatematrix_vector3_matrix44';
33635 this.nodedef_type =
'matrix44';
33637 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/creatematrix.html';
33638 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_creatematrix_vector3_matrix44_out_genglsl.png';
33639 this.nodedef_group =
'math';
33640 this.addInput(
'in1',
'vector3');
33641 this.addProperty(
'in1', [1.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33642 this.addInput(
'in2',
'vector3');
33643 this.addProperty(
'in2', [0.0, 1.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33644 this.addInput(
'in3',
'vector3');
33645 this.addProperty(
'in3', [0.0, 0.0, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33646 this.addInput(
'in4',
'vector3');
33647 this.addProperty(
'in4', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33648 this.addOutput(
'out',
'matrix44');
33649 this.title =
'creatematrix_matrix44';
33650 this.desc =
"MaterialX:mtlx/math/creatematrix_vector3_matrix44";
33651 this.onNodeCreated =
function() {
33654 this.onRemoved =
function() {
33657 this.onPropertyChanged =
function(name, value, prev_value) {
33658 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33660 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33661 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33663 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33664 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33666 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33667 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33669 this.bgcolor =
'#111';
33670 this.color =
'#222';
33671 this.shape = LiteGraph.ROUND_SHAPE;
33672 this.boxcolor =
'#444';
33685 this.nodedef_icon =
'';
33686 this.
nodedef_name =
'ND_creatematrix_vector4_matrix44';
33687 this.nodedef_type =
'matrix44';
33689 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/creatematrix.html';
33690 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_creatematrix_vector4_matrix44_out_genglsl.png';
33691 this.nodedef_group =
'math';
33692 this.addInput(
'in1',
'vector4');
33693 this.addProperty(
'in1', [1.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33694 this.addInput(
'in2',
'vector4');
33695 this.addProperty(
'in2', [0.0, 1.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33696 this.addInput(
'in3',
'vector4');
33697 this.addProperty(
'in3', [0.0, 0.0, 1.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33698 this.addInput(
'in4',
'vector4');
33699 this.addProperty(
'in4', [0.0, 0.0, 0.0, 1.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33700 this.addOutput(
'out',
'matrix44');
33701 this.title =
'creatematrix_matrix44';
33702 this.desc =
"MaterialX:mtlx/math/creatematrix_vector4_matrix44";
33703 this.onNodeCreated =
function() {
33706 this.onRemoved =
function() {
33709 this.onPropertyChanged =
function(name, value, prev_value) {
33710 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33712 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33713 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33715 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33716 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33718 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33719 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33721 this.bgcolor =
'#111';
33722 this.color =
'#222';
33723 this.shape = LiteGraph.ROUND_SHAPE;
33724 this.boxcolor =
'#444';
33737 this.nodedef_icon =
'';
33739 this.nodedef_type =
'float';
33741 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/extract.html';
33742 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_extract_color3_out_genglsl.png';
33743 this.nodedef_group =
'channel';
33744 this.addInput(
'in',
'color3');
33745 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33746 this.addInput(
'index',
'integer');
33747 this.addProperty(
'index', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0",
"uimax":
"2",
"uifolder":
"",
"defaultgeomprop":
""});
33748 this.addOutput(
'out',
'float');
33749 this.title =
'extract_float';
33750 this.desc =
"MaterialX:mtlx/channel/extract_color3";
33751 this.onNodeCreated =
function() {
33754 this.onRemoved =
function() {
33757 this.onPropertyChanged =
function(name, value, prev_value) {
33758 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33760 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33761 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33763 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33764 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33766 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33767 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33769 this.bgcolor =
'#111';
33770 this.color =
'#222';
33771 this.shape = LiteGraph.ROUND_SHAPE;
33772 this.boxcolor =
'#161';
33785 this.nodedef_icon =
'';
33787 this.nodedef_type =
'float';
33789 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/extract.html';
33790 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_extract_color4_out_genglsl.png';
33791 this.nodedef_group =
'channel';
33792 this.addInput(
'in',
'color4');
33793 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33794 this.addInput(
'index',
'integer');
33795 this.addProperty(
'index', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0",
"uimax":
"3",
"uifolder":
"",
"defaultgeomprop":
""});
33796 this.addOutput(
'out',
'float');
33797 this.title =
'extract_float';
33798 this.desc =
"MaterialX:mtlx/channel/extract_color4";
33799 this.onNodeCreated =
function() {
33802 this.onRemoved =
function() {
33805 this.onPropertyChanged =
function(name, value, prev_value) {
33806 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33808 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33809 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33811 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33812 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33814 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33815 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33817 this.bgcolor =
'#111';
33818 this.color =
'#222';
33819 this.shape = LiteGraph.ROUND_SHAPE;
33820 this.boxcolor =
'#161';
33833 this.nodedef_icon =
'';
33835 this.nodedef_type =
'float';
33837 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/extract.html';
33838 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_extract_vector2_out_genglsl.png';
33839 this.nodedef_group =
'channel';
33840 this.addInput(
'in',
'vector2');
33841 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33842 this.addInput(
'index',
'integer');
33843 this.addProperty(
'index', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"",
"defaultgeomprop":
""});
33844 this.addOutput(
'out',
'float');
33845 this.title =
'extract_float';
33846 this.desc =
"MaterialX:mtlx/channel/extract_vector2";
33847 this.onNodeCreated =
function() {
33850 this.onRemoved =
function() {
33853 this.onPropertyChanged =
function(name, value, prev_value) {
33854 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33856 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33857 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33859 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33860 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33862 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33863 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33865 this.bgcolor =
'#111';
33866 this.color =
'#222';
33867 this.shape = LiteGraph.ROUND_SHAPE;
33868 this.boxcolor =
'#161';
33881 this.nodedef_icon =
'';
33883 this.nodedef_type =
'float';
33885 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/extract.html';
33886 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_extract_vector3_out_genglsl.png';
33887 this.nodedef_group =
'channel';
33888 this.addInput(
'in',
'vector3');
33889 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33890 this.addInput(
'index',
'integer');
33891 this.addProperty(
'index', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0",
"uimax":
"2",
"uifolder":
"",
"defaultgeomprop":
""});
33892 this.addOutput(
'out',
'float');
33893 this.title =
'extract_float';
33894 this.desc =
"MaterialX:mtlx/channel/extract_vector3";
33895 this.onNodeCreated =
function() {
33898 this.onRemoved =
function() {
33901 this.onPropertyChanged =
function(name, value, prev_value) {
33902 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33904 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33905 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33907 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33908 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33910 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33911 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33913 this.bgcolor =
'#111';
33914 this.color =
'#222';
33915 this.shape = LiteGraph.ROUND_SHAPE;
33916 this.boxcolor =
'#161';
33929 this.nodedef_icon =
'';
33931 this.nodedef_type =
'float';
33933 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/extract.html';
33934 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_extract_vector4_out_genglsl.png';
33935 this.nodedef_group =
'channel';
33936 this.addInput(
'in',
'vector4');
33937 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33938 this.addInput(
'index',
'integer');
33939 this.addProperty(
'index', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0",
"uimax":
"3",
"uifolder":
"",
"defaultgeomprop":
""});
33940 this.addOutput(
'out',
'float');
33941 this.title =
'extract_float';
33942 this.desc =
"MaterialX:mtlx/channel/extract_vector4";
33943 this.onNodeCreated =
function() {
33946 this.onRemoved =
function() {
33949 this.onPropertyChanged =
function(name, value, prev_value) {
33950 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33952 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
33953 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
33955 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
33956 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
33958 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
33959 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
33961 this.bgcolor =
'#111';
33962 this.color =
'#222';
33963 this.shape = LiteGraph.ROUND_SHAPE;
33964 this.boxcolor =
'#161';
33977 this.nodedef_icon =
'';
33979 this.nodedef_type =
'multioutput';
33981 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/separate2.html';
33982 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_separate2_vector2_outx_genglsl.png';
33983 this.nodedef_group =
'channel';
33984 this.addInput(
'in',
'vector2');
33985 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
33986 this.addOutput(
'outx',
'float');
33987 this.addOutput(
'outy',
'float');
33988 this.title =
'separate2_multioutput';
33989 this.desc =
"MaterialX:mtlx/channel/separate2_vector2";
33990 this.onNodeCreated =
function() {
33993 this.onRemoved =
function() {
33996 this.onPropertyChanged =
function(name, value, prev_value) {
33997 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
33999 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34000 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34002 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34003 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34005 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34006 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34008 this.bgcolor =
'#111';
34009 this.color =
'#222';
34010 this.shape = LiteGraph.ROUND_SHAPE;
34023 this.nodedef_icon =
'';
34025 this.nodedef_type =
'multioutput';
34027 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/separate3.html';
34028 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_separate3_color3_outr_genglsl.png';
34029 this.nodedef_group =
'channel';
34030 this.addInput(
'in',
'color3');
34031 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34032 this.addOutput(
'outr',
'float');
34033 this.addOutput(
'outg',
'float');
34034 this.addOutput(
'outb',
'float');
34035 this.title =
'separate3_multioutput';
34036 this.desc =
"MaterialX:mtlx/channel/separate3_color3";
34037 this.onNodeCreated =
function() {
34040 this.onRemoved =
function() {
34043 this.onPropertyChanged =
function(name, value, prev_value) {
34044 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34046 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34047 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34049 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34050 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34052 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34053 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34055 this.bgcolor =
'#111';
34056 this.color =
'#222';
34057 this.shape = LiteGraph.ROUND_SHAPE;
34070 this.nodedef_icon =
'';
34072 this.nodedef_type =
'multioutput';
34074 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/separate3.html';
34075 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_separate3_vector3_outx_genglsl.png';
34076 this.nodedef_group =
'channel';
34077 this.addInput(
'in',
'vector3');
34078 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34079 this.addOutput(
'outx',
'float');
34080 this.addOutput(
'outy',
'float');
34081 this.addOutput(
'outz',
'float');
34082 this.title =
'separate3_multioutput';
34083 this.desc =
"MaterialX:mtlx/channel/separate3_vector3";
34084 this.onNodeCreated =
function() {
34087 this.onRemoved =
function() {
34090 this.onPropertyChanged =
function(name, value, prev_value) {
34091 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34093 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34094 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34096 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34097 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34099 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34100 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34102 this.bgcolor =
'#111';
34103 this.color =
'#222';
34104 this.shape = LiteGraph.ROUND_SHAPE;
34117 this.nodedef_icon =
'';
34119 this.nodedef_type =
'multioutput';
34121 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/separate4.html';
34122 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_separate4_color4_outr_genglsl.png';
34123 this.nodedef_group =
'channel';
34124 this.addInput(
'in',
'color4');
34125 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34126 this.addOutput(
'outr',
'float');
34127 this.addOutput(
'outg',
'float');
34128 this.addOutput(
'outb',
'float');
34129 this.addOutput(
'outa',
'float');
34130 this.title =
'separate4_multioutput';
34131 this.desc =
"MaterialX:mtlx/channel/separate4_color4";
34132 this.onNodeCreated =
function() {
34135 this.onRemoved =
function() {
34138 this.onPropertyChanged =
function(name, value, prev_value) {
34139 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34141 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34142 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34144 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34145 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34147 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34148 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34150 this.bgcolor =
'#111';
34151 this.color =
'#222';
34152 this.shape = LiteGraph.ROUND_SHAPE;
34165 this.nodedef_icon =
'';
34167 this.nodedef_type =
'multioutput';
34169 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/separate4.html';
34170 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_separate4_vector4_outx_genglsl.png';
34171 this.nodedef_group =
'channel';
34172 this.addInput(
'in',
'vector4');
34173 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34174 this.addOutput(
'outx',
'float');
34175 this.addOutput(
'outy',
'float');
34176 this.addOutput(
'outz',
'float');
34177 this.addOutput(
'outw',
'float');
34178 this.title =
'separate4_multioutput';
34179 this.desc =
"MaterialX:mtlx/channel/separate4_vector4";
34180 this.onNodeCreated =
function() {
34183 this.onRemoved =
function() {
34186 this.onPropertyChanged =
function(name, value, prev_value) {
34187 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34189 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34190 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34192 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34193 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34195 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34196 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34198 this.bgcolor =
'#111';
34199 this.color =
'#222';
34200 this.shape = LiteGraph.ROUND_SHAPE;
34213 this.nodedef_icon =
'';
34215 this.nodedef_type =
'float';
34217 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blur.html';
34218 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_blur_float_out_genglsl.png';
34219 this.nodedef_group =
'convolution2d';
34220 this.addInput(
'in',
'float');
34221 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34222 this.addInput(
'size',
'float');
34223 this.addProperty(
'size', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34224 this.addInput(
'filtertype',
'string');
34225 this.addProperty(
'filtertype',
'box',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"box",
"gaussian"]});
34226 this.addOutput(
'out',
'float');
34227 this.title =
'blur_float';
34228 this.desc =
"MaterialX:mtlx/convolution2d/blur_float";
34229 this.onNodeCreated =
function() {
34232 this.onRemoved =
function() {
34235 this.onPropertyChanged =
function(name, value, prev_value) {
34236 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34238 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34239 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34241 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34242 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34244 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34245 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34247 this.bgcolor =
'#111';
34248 this.color =
'#222';
34249 this.shape = LiteGraph.ROUND_SHAPE;
34250 this.boxcolor =
'#161';
34263 this.nodedef_icon =
'';
34265 this.nodedef_type =
'color3';
34267 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blur.html';
34268 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_blur_color3_out_genglsl.png';
34269 this.nodedef_group =
'convolution2d';
34270 this.addInput(
'in',
'color3');
34271 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34272 this.addInput(
'size',
'float');
34273 this.addProperty(
'size', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34274 this.addInput(
'filtertype',
'string');
34275 this.addProperty(
'filtertype',
'box',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"box",
"gaussian"]});
34276 this.addOutput(
'out',
'color3');
34277 this.title =
'blur_color3';
34278 this.desc =
"MaterialX:mtlx/convolution2d/blur_color3";
34279 this.onNodeCreated =
function() {
34282 this.onRemoved =
function() {
34285 this.onPropertyChanged =
function(name, value, prev_value) {
34286 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34288 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34289 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34291 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34292 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34294 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34295 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34297 this.bgcolor =
'#111';
34298 this.color =
'#222';
34299 this.shape = LiteGraph.ROUND_SHAPE;
34300 this.boxcolor =
'#37A';
34313 this.nodedef_icon =
'';
34315 this.nodedef_type =
'color4';
34317 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blur.html';
34318 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_blur_color4_out_genglsl.png';
34319 this.nodedef_group =
'convolution2d';
34320 this.addInput(
'in',
'color4');
34321 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34322 this.addInput(
'size',
'float');
34323 this.addProperty(
'size', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34324 this.addInput(
'filtertype',
'string');
34325 this.addProperty(
'filtertype',
'box',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"box",
"gaussian"]});
34326 this.addOutput(
'out',
'color4');
34327 this.title =
'blur_color4';
34328 this.desc =
"MaterialX:mtlx/convolution2d/blur_color4";
34329 this.onNodeCreated =
function() {
34332 this.onRemoved =
function() {
34335 this.onPropertyChanged =
function(name, value, prev_value) {
34336 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34338 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34339 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34341 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34342 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34344 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34345 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34347 this.bgcolor =
'#111';
34348 this.color =
'#222';
34349 this.shape = LiteGraph.ROUND_SHAPE;
34350 this.boxcolor =
'#69A';
34363 this.nodedef_icon =
'';
34365 this.nodedef_type =
'vector2';
34367 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blur.html';
34368 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_blur_vector2_out_genglsl.png';
34369 this.nodedef_group =
'convolution2d';
34370 this.addInput(
'in',
'vector2');
34371 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34372 this.addInput(
'size',
'float');
34373 this.addProperty(
'size', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34374 this.addInput(
'filtertype',
'string');
34375 this.addProperty(
'filtertype',
'box',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"box",
"gaussian"]});
34376 this.addOutput(
'out',
'vector2');
34377 this.title =
'blur_vector2';
34378 this.desc =
"MaterialX:mtlx/convolution2d/blur_vector2";
34379 this.onNodeCreated =
function() {
34382 this.onRemoved =
function() {
34385 this.onPropertyChanged =
function(name, value, prev_value) {
34386 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34388 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34389 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34391 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34392 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34394 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34395 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34397 this.bgcolor =
'#111';
34398 this.color =
'#222';
34399 this.shape = LiteGraph.ROUND_SHAPE;
34400 this.boxcolor =
'#265';
34413 this.nodedef_icon =
'';
34415 this.nodedef_type =
'vector3';
34417 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blur.html';
34418 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_blur_vector3_out_genglsl.png';
34419 this.nodedef_group =
'convolution2d';
34420 this.addInput(
'in',
'vector3');
34421 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34422 this.addInput(
'size',
'float');
34423 this.addProperty(
'size', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34424 this.addInput(
'filtertype',
'string');
34425 this.addProperty(
'filtertype',
'box',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"box",
"gaussian"]});
34426 this.addOutput(
'out',
'vector3');
34427 this.title =
'blur_vector3';
34428 this.desc =
"MaterialX:mtlx/convolution2d/blur_vector3";
34429 this.onNodeCreated =
function() {
34432 this.onRemoved =
function() {
34435 this.onPropertyChanged =
function(name, value, prev_value) {
34436 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34438 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34439 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34441 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34442 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34444 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34445 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34447 this.bgcolor =
'#111';
34448 this.color =
'#222';
34449 this.shape = LiteGraph.ROUND_SHAPE;
34450 this.boxcolor =
'#465';
34463 this.nodedef_icon =
'';
34465 this.nodedef_type =
'vector4';
34467 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blur.html';
34468 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_blur_vector4_out_genglsl.png';
34469 this.nodedef_group =
'convolution2d';
34470 this.addInput(
'in',
'vector4');
34471 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34472 this.addInput(
'size',
'float');
34473 this.addProperty(
'size', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34474 this.addInput(
'filtertype',
'string');
34475 this.addProperty(
'filtertype',
'box',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"box",
"gaussian"]});
34476 this.addOutput(
'out',
'vector4');
34477 this.title =
'blur_vector4';
34478 this.desc =
"MaterialX:mtlx/convolution2d/blur_vector4";
34479 this.onNodeCreated =
function() {
34482 this.onRemoved =
function() {
34485 this.onPropertyChanged =
function(name, value, prev_value) {
34486 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34488 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34489 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34491 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34492 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34494 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34495 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34497 this.bgcolor =
'#111';
34498 this.color =
'#222';
34499 this.shape = LiteGraph.ROUND_SHAPE;
34500 this.boxcolor =
'#275';
34513 this.nodedef_icon =
'';
34515 this.nodedef_type =
'vector3';
34517 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/heighttonormal.html';
34518 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_heighttonormal_vector3_out_genglsl.png';
34519 this.nodedef_group =
'convolution2d';
34520 this.addInput(
'in',
'float');
34521 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34522 this.addInput(
'scale',
'float');
34523 this.addProperty(
'scale', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34524 this.addOutput(
'out',
'vector3');
34525 this.title =
'heighttonormal_vector3';
34526 this.desc =
"MaterialX:mtlx/convolution2d/heighttonormal_vector3";
34527 this.onNodeCreated =
function() {
34530 this.onRemoved =
function() {
34533 this.onPropertyChanged =
function(name, value, prev_value) {
34534 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34536 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34537 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34539 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34540 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34542 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34543 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34545 this.bgcolor =
'#111';
34546 this.color =
'#222';
34547 this.shape = LiteGraph.ROUND_SHAPE;
34548 this.boxcolor =
'#465';
34561 this.nodedef_icon =
'';
34563 this.nodedef_type =
'boolean';
34565 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/and.html';
34566 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_logical_and_out_genglsl.png';
34567 this.nodedef_group =
'conditional';
34568 this.addInput(
'in1',
'boolean');
34569 this.addProperty(
'in1',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34570 this.addInput(
'in2',
'boolean');
34571 this.addProperty(
'in2',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34572 this.addOutput(
'out',
'boolean');
34573 this.title =
'and_boolean';
34574 this.desc =
"MaterialX:mtlx/conditional/logical_and";
34575 this.onNodeCreated =
function() {
34578 this.onRemoved =
function() {
34581 this.onPropertyChanged =
function(name, value, prev_value) {
34582 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34584 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34585 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34587 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34588 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34590 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34591 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34593 this.bgcolor =
'#111';
34594 this.color =
'#532200';
34595 this.title_text_color =
'#000';
34596 this.shape = LiteGraph.CARD_SHAPE;
34597 this.boxcolor =
'#060';
34610 this.nodedef_icon =
'';
34612 this.nodedef_type =
'boolean';
34614 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/or.html';
34615 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_logical_or_out_genglsl.png';
34616 this.nodedef_group =
'conditional';
34617 this.addInput(
'in1',
'boolean');
34618 this.addProperty(
'in1',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34619 this.addInput(
'in2',
'boolean');
34620 this.addProperty(
'in2',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34621 this.addOutput(
'out',
'boolean');
34622 this.title =
'or_boolean';
34623 this.desc =
"MaterialX:mtlx/conditional/logical_or";
34624 this.onNodeCreated =
function() {
34627 this.onRemoved =
function() {
34630 this.onPropertyChanged =
function(name, value, prev_value) {
34631 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34633 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34634 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34636 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34637 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34639 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34640 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34642 this.bgcolor =
'#111';
34643 this.color =
'#532200';
34644 this.title_text_color =
'#000';
34645 this.shape = LiteGraph.CARD_SHAPE;
34646 this.boxcolor =
'#060';
34659 this.nodedef_icon =
'';
34661 this.nodedef_type =
'boolean';
34663 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/xor.html';
34664 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_logical_xor_out_genglsl.png';
34665 this.nodedef_group =
'conditional';
34666 this.addInput(
'in1',
'boolean');
34667 this.addProperty(
'in1',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34668 this.addInput(
'in2',
'boolean');
34669 this.addProperty(
'in2',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34670 this.addOutput(
'out',
'boolean');
34671 this.title =
'xor_boolean';
34672 this.desc =
"MaterialX:mtlx/conditional/logical_xor";
34673 this.onNodeCreated =
function() {
34676 this.onRemoved =
function() {
34679 this.onPropertyChanged =
function(name, value, prev_value) {
34680 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34682 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34683 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34685 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34686 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34688 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34689 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34691 this.bgcolor =
'#111';
34692 this.color =
'#532200';
34693 this.title_text_color =
'#000';
34694 this.shape = LiteGraph.CARD_SHAPE;
34695 this.boxcolor =
'#060';
34708 this.nodedef_icon =
'';
34710 this.nodedef_type =
'boolean';
34712 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/not.html';
34713 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_logical_not_out_genglsl.png';
34714 this.nodedef_group =
'conditional';
34715 this.addInput(
'in',
'boolean');
34716 this.addProperty(
'in',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34717 this.addOutput(
'out',
'boolean');
34718 this.title =
'not_boolean';
34719 this.desc =
"MaterialX:mtlx/conditional/logical_not";
34720 this.onNodeCreated =
function() {
34723 this.onRemoved =
function() {
34726 this.onPropertyChanged =
function(name, value, prev_value) {
34727 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34729 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34730 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34732 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34733 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34735 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34736 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34738 this.bgcolor =
'#111';
34739 this.color =
'#532200';
34740 this.title_text_color =
'#000';
34741 this.shape = LiteGraph.CARD_SHAPE;
34742 this.boxcolor =
'#060';
34755 this.nodedef_icon =
'';
34757 this.nodedef_type =
'float';
34759 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
34760 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_float_out_genglsl.png';
34761 this.nodedef_group =
'organization';
34762 this.addInput(
'in',
'float');
34763 this.addProperty(
'in', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34764 this.addInput(
'note',
'string');
34765 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34766 this.addOutput(
'out',
'float');
34767 this.title =
'dot_float';
34768 this.desc =
"MaterialX:mtlx/organization/dot_float";
34769 this.onNodeCreated =
function() {
34772 this.onRemoved =
function() {
34775 this.onPropertyChanged =
function(name, value, prev_value) {
34776 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34778 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34779 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34781 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34782 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34784 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34785 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34787 this.bgcolor =
'#111';
34788 this.color =
'#222';
34789 this.shape = LiteGraph.ROUND_SHAPE;
34790 this.boxcolor =
'#161';
34803 this.nodedef_icon =
'';
34805 this.nodedef_type =
'color3';
34807 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
34808 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_color3_out_genglsl.png';
34809 this.nodedef_group =
'organization';
34810 this.addInput(
'in',
'color3');
34811 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34812 this.addInput(
'note',
'string');
34813 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34814 this.addOutput(
'out',
'color3');
34815 this.title =
'dot_color3';
34816 this.desc =
"MaterialX:mtlx/organization/dot_color3";
34817 this.onNodeCreated =
function() {
34820 this.onRemoved =
function() {
34823 this.onPropertyChanged =
function(name, value, prev_value) {
34824 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34826 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34827 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34829 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34830 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34832 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34833 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34835 this.bgcolor =
'#111';
34836 this.color =
'#222';
34837 this.shape = LiteGraph.ROUND_SHAPE;
34838 this.boxcolor =
'#37A';
34851 this.nodedef_icon =
'';
34853 this.nodedef_type =
'color4';
34855 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
34856 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_color4_out_genglsl.png';
34857 this.nodedef_group =
'organization';
34858 this.addInput(
'in',
'color4');
34859 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34860 this.addInput(
'note',
'string');
34861 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34862 this.addOutput(
'out',
'color4');
34863 this.title =
'dot_color4';
34864 this.desc =
"MaterialX:mtlx/organization/dot_color4";
34865 this.onNodeCreated =
function() {
34868 this.onRemoved =
function() {
34871 this.onPropertyChanged =
function(name, value, prev_value) {
34872 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34874 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34875 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34877 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34878 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34880 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34881 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34883 this.bgcolor =
'#111';
34884 this.color =
'#222';
34885 this.shape = LiteGraph.ROUND_SHAPE;
34886 this.boxcolor =
'#69A';
34899 this.nodedef_icon =
'';
34901 this.nodedef_type =
'vector2';
34903 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
34904 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_vector2_out_genglsl.png';
34905 this.nodedef_group =
'organization';
34906 this.addInput(
'in',
'vector2');
34907 this.addProperty(
'in', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34908 this.addInput(
'note',
'string');
34909 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34910 this.addOutput(
'out',
'vector2');
34911 this.title =
'dot_vector2';
34912 this.desc =
"MaterialX:mtlx/organization/dot_vector2";
34913 this.onNodeCreated =
function() {
34916 this.onRemoved =
function() {
34919 this.onPropertyChanged =
function(name, value, prev_value) {
34920 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34922 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34923 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34925 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34926 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34928 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34929 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34931 this.bgcolor =
'#111';
34932 this.color =
'#222';
34933 this.shape = LiteGraph.ROUND_SHAPE;
34934 this.boxcolor =
'#265';
34947 this.nodedef_icon =
'';
34949 this.nodedef_type =
'vector3';
34951 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
34952 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_vector3_out_genglsl.png';
34953 this.nodedef_group =
'organization';
34954 this.addInput(
'in',
'vector3');
34955 this.addProperty(
'in', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34956 this.addInput(
'note',
'string');
34957 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
34958 this.addOutput(
'out',
'vector3');
34959 this.title =
'dot_vector3';
34960 this.desc =
"MaterialX:mtlx/organization/dot_vector3";
34961 this.onNodeCreated =
function() {
34964 this.onRemoved =
function() {
34967 this.onPropertyChanged =
function(name, value, prev_value) {
34968 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
34970 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
34971 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
34973 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
34974 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
34976 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
34977 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
34979 this.bgcolor =
'#111';
34980 this.color =
'#222';
34981 this.shape = LiteGraph.ROUND_SHAPE;
34982 this.boxcolor =
'#465';
34995 this.nodedef_icon =
'';
34997 this.nodedef_type =
'vector4';
34999 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35000 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_vector4_out_genglsl.png';
35001 this.nodedef_group =
'organization';
35002 this.addInput(
'in',
'vector4');
35003 this.addProperty(
'in', [0.0, 0.0, 0.0, 0.0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35004 this.addInput(
'note',
'string');
35005 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35006 this.addOutput(
'out',
'vector4');
35007 this.title =
'dot_vector4';
35008 this.desc =
"MaterialX:mtlx/organization/dot_vector4";
35009 this.onNodeCreated =
function() {
35012 this.onRemoved =
function() {
35015 this.onPropertyChanged =
function(name, value, prev_value) {
35016 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35018 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35019 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35021 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35022 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35024 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35025 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35027 this.bgcolor =
'#111';
35028 this.color =
'#222';
35029 this.shape = LiteGraph.ROUND_SHAPE;
35030 this.boxcolor =
'#275';
35043 this.nodedef_icon =
'';
35045 this.nodedef_type =
'boolean';
35047 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35048 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_boolean_out_genglsl.png';
35049 this.nodedef_group =
'organization';
35050 this.addInput(
'in',
'boolean');
35051 this.addProperty(
'in',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35052 this.addInput(
'note',
'string');
35053 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35054 this.addOutput(
'out',
'boolean');
35055 this.title =
'dot_boolean';
35056 this.desc =
"MaterialX:mtlx/organization/dot_boolean";
35057 this.onNodeCreated =
function() {
35060 this.onRemoved =
function() {
35063 this.onPropertyChanged =
function(name, value, prev_value) {
35064 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35066 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35067 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35069 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35070 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35072 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35073 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35075 this.bgcolor =
'#111';
35076 this.color =
'#222';
35077 this.shape = LiteGraph.ROUND_SHAPE;
35078 this.boxcolor =
'#060';
35091 this.nodedef_icon =
'';
35093 this.nodedef_type =
'integer';
35095 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35096 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_integer_out_genglsl.png';
35097 this.nodedef_group =
'organization';
35098 this.addInput(
'in',
'integer');
35099 this.addProperty(
'in', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35100 this.addInput(
'note',
'string');
35101 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35102 this.addOutput(
'out',
'integer');
35103 this.title =
'dot_integer';
35104 this.desc =
"MaterialX:mtlx/organization/dot_integer";
35105 this.onNodeCreated =
function() {
35108 this.onRemoved =
function() {
35111 this.onPropertyChanged =
function(name, value, prev_value) {
35112 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35114 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35115 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35117 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35118 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35120 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35121 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35123 this.bgcolor =
'#111';
35124 this.color =
'#222';
35125 this.shape = LiteGraph.ROUND_SHAPE;
35126 this.boxcolor =
'#A32';
35139 this.nodedef_icon =
'';
35141 this.nodedef_type =
'matrix33';
35143 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35144 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_matrix33_out_genglsl.png';
35145 this.nodedef_group =
'organization';
35146 this.addInput(
'in',
'matrix33');
35147 this.addProperty(
'in', [1.0,0.0,0.0, 0.0,1.0,0.0, 0.0,0.0,1.0],
'matrix33',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35148 this.addInput(
'note',
'string');
35149 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35150 this.addOutput(
'out',
'matrix33');
35151 this.title =
'dot_matrix33';
35152 this.desc =
"MaterialX:mtlx/organization/dot_matrix33";
35153 this.onNodeCreated =
function() {
35156 this.onRemoved =
function() {
35159 this.onPropertyChanged =
function(name, value, prev_value) {
35160 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35162 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35163 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35165 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35166 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35168 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35169 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35171 this.bgcolor =
'#111';
35172 this.color =
'#222';
35173 this.shape = LiteGraph.ROUND_SHAPE;
35174 this.boxcolor =
'#333';
35187 this.nodedef_icon =
'';
35189 this.nodedef_type =
'matrix44';
35191 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35192 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_matrix44_out_genglsl.png';
35193 this.nodedef_group =
'organization';
35194 this.addInput(
'in',
'matrix44');
35195 this.addProperty(
'in', [1.0,0.0,0.0,0.0, 0.0,1.0,0.0,0.0, 0.0,0.0,1.0,0.0, 0.0,0.0,0.0,1.0],
'matrix44',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35196 this.addInput(
'note',
'string');
35197 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35198 this.addOutput(
'out',
'matrix44');
35199 this.title =
'dot_matrix44';
35200 this.desc =
"MaterialX:mtlx/organization/dot_matrix44";
35201 this.onNodeCreated =
function() {
35204 this.onRemoved =
function() {
35207 this.onPropertyChanged =
function(name, value, prev_value) {
35208 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35210 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35211 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35213 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35214 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35216 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35217 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35219 this.bgcolor =
'#111';
35220 this.color =
'#222';
35221 this.shape = LiteGraph.ROUND_SHAPE;
35222 this.boxcolor =
'#444';
35235 this.nodedef_icon =
'';
35237 this.nodedef_type =
'string';
35239 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35240 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_string_out_genglsl.png';
35241 this.nodedef_group =
'organization';
35242 this.addInput(
'in',
'string');
35243 this.addProperty(
'in',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35244 this.addInput(
'note',
'string');
35245 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35246 this.addOutput(
'out',
'string');
35247 this.title =
'dot_string';
35248 this.desc =
"MaterialX:mtlx/organization/dot_string";
35249 this.onNodeCreated =
function() {
35252 this.onRemoved =
function() {
35255 this.onPropertyChanged =
function(name, value, prev_value) {
35256 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35258 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35259 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35261 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35262 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35264 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35265 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35267 this.bgcolor =
'#111';
35268 this.color =
'#222';
35269 this.shape = LiteGraph.ROUND_SHAPE;
35270 this.boxcolor =
'#395';
35283 this.nodedef_icon =
'';
35285 this.nodedef_type =
'filename';
35287 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35288 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_filename_out_genglsl.png';
35289 this.nodedef_group =
'organization';
35290 this.addInput(
'in',
'filename');
35291 this.addProperty(
'in',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35292 this.addInput(
'note',
'string');
35293 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35294 this.addOutput(
'out',
'filename');
35295 this.title =
'dot_filename';
35296 this.desc =
"MaterialX:mtlx/organization/dot_filename";
35297 this.onNodeCreated =
function() {
35300 this.onRemoved =
function() {
35303 this.onPropertyChanged =
function(name, value, prev_value) {
35304 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35306 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35307 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35309 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35310 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35312 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35313 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35315 this.bgcolor =
'#111';
35316 this.color =
'#222';
35317 this.shape = LiteGraph.ROUND_SHAPE;
35318 this.boxcolor =
'#888';
35331 this.nodedef_icon =
'';
35333 this.nodedef_type =
'surfaceshader';
35335 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35336 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_surfaceshader_out_genglsl.png';
35337 this.nodedef_group =
'organization';
35338 this.addInput(
'in',
'surfaceshader');
35339 this.addProperty(
'in',
'',
'surfaceshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35340 this.addInput(
'note',
'string');
35341 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35342 this.addOutput(
'out',
'surfaceshader');
35343 this.title =
'dot_surfaceshader';
35344 this.desc =
"MaterialX:mtlx/organization/dot_surfaceshader";
35345 this.onNodeCreated =
function() {
35348 this.onRemoved =
function() {
35351 this.onPropertyChanged =
function(name, value, prev_value) {
35352 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35354 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35355 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35357 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35358 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35360 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35361 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35363 this.bgcolor =
'#111';
35364 this.color =
'#232';
35365 this.shape = LiteGraph.ROUND_SHAPE;
35378 this.nodedef_icon =
'';
35380 this.nodedef_type =
'displacementshader';
35382 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35383 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_displacementshader_out_genglsl.png';
35384 this.nodedef_group =
'organization';
35385 this.addInput(
'in',
'displacementshader');
35386 this.addProperty(
'in',
'',
'displacementshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35387 this.addInput(
'note',
'string');
35388 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35389 this.addOutput(
'out',
'displacementshader');
35390 this.title =
'dot_displacementshader';
35391 this.desc =
"MaterialX:mtlx/organization/dot_displacementshader";
35392 this.onNodeCreated =
function() {
35395 this.onRemoved =
function() {
35398 this.onPropertyChanged =
function(name, value, prev_value) {
35399 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35401 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35402 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35404 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35405 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35407 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35408 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35410 this.bgcolor =
'#111';
35411 this.color =
'#232';
35412 this.shape = LiteGraph.ROUND_SHAPE;
35425 this.nodedef_icon =
'';
35427 this.nodedef_type =
'volumeshader';
35429 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35430 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_volumeshader_out_genglsl.png';
35431 this.nodedef_group =
'organization';
35432 this.addInput(
'in',
'volumeshader');
35433 this.addProperty(
'in',
'',
'volumeshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35434 this.addInput(
'note',
'string');
35435 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35436 this.addOutput(
'out',
'volumeshader');
35437 this.title =
'dot_volumeshader';
35438 this.desc =
"MaterialX:mtlx/organization/dot_volumeshader";
35439 this.onNodeCreated =
function() {
35442 this.onRemoved =
function() {
35445 this.onPropertyChanged =
function(name, value, prev_value) {
35446 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35448 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35449 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35451 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35452 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35454 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35455 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35457 this.bgcolor =
'#111';
35458 this.color =
'#222';
35459 this.shape = LiteGraph.ROUND_SHAPE;
35472 this.nodedef_icon =
'';
35474 this.nodedef_type =
'lightshader';
35476 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dot.html';
35477 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dot_lightshader_out_genglsl.png';
35478 this.nodedef_group =
'organization';
35479 this.addInput(
'in',
'lightshader');
35480 this.addProperty(
'in',
'',
'lightshader',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35481 this.addInput(
'note',
'string');
35482 this.addProperty(
'note',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35483 this.addOutput(
'out',
'lightshader');
35484 this.title =
'dot_lightshader';
35485 this.desc =
"MaterialX:mtlx/organization/dot_lightshader";
35486 this.onNodeCreated =
function() {
35489 this.onRemoved =
function() {
35492 this.onPropertyChanged =
function(name, value, prev_value) {
35493 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35495 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35496 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35498 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35499 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35501 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35502 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35504 this.bgcolor =
'#111';
35505 this.color =
'#222';
35506 this.shape = LiteGraph.ROUND_SHAPE;
35519 this.nodedef_icon =
'';
35521 this.nodedef_type =
'BSDF';
35523 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/oren_nayar_diffuse_bsdf.html';
35524 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_oren_nayar_diffuse_bsdf_out_genglsl.png';
35525 this.nodedef_group =
'pbr';
35526 this.addInput(
'weight',
'float');
35527 this.addProperty(
'weight', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
35528 this.addInput(
'color',
'color3');
35529 this.addProperty(
'color', [0.18, 0.18, 0.18],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35530 this.addInput(
'roughness',
'float');
35531 this.addProperty(
'roughness', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35532 this.addInput(
'normal',
'vector3');
35533 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
35534 this.addInput(
'energy_compensation',
'boolean');
35535 this.addProperty(
'energy_compensation',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35536 this.addOutput(
'out',
'BSDF');
35537 this.title =
'oren_nayar_diffuse_bsdf_BSDF';
35538 this.desc =
"MaterialX:mtlx/pbr/oren_nayar_diffuse_bsdf";
35539 this.onNodeCreated =
function() {
35542 this.onRemoved =
function() {
35545 this.onPropertyChanged =
function(name, value, prev_value) {
35546 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35548 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35549 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35551 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35552 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35554 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35555 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35557 this.bgcolor =
'#111';
35558 this.color =
'#222';
35559 this.shape = LiteGraph.ROUND_SHAPE;
35572 this.nodedef_icon =
'';
35574 this.nodedef_type =
'BSDF';
35576 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/burley_diffuse_bsdf.html';
35577 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_burley_diffuse_bsdf_out_genglsl.png';
35578 this.nodedef_group =
'pbr';
35579 this.addInput(
'weight',
'float');
35580 this.addProperty(
'weight', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
35581 this.addInput(
'color',
'color3');
35582 this.addProperty(
'color', [0.18, 0.18, 0.18],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35583 this.addInput(
'roughness',
'float');
35584 this.addProperty(
'roughness', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35585 this.addInput(
'normal',
'vector3');
35586 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
35587 this.addOutput(
'out',
'BSDF');
35588 this.title =
'burley_diffuse_bsdf_BSDF';
35589 this.desc =
"MaterialX:mtlx/pbr/burley_diffuse_bsdf";
35590 this.onNodeCreated =
function() {
35593 this.onRemoved =
function() {
35596 this.onPropertyChanged =
function(name, value, prev_value) {
35597 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35599 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35600 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35602 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35603 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35605 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35606 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35608 this.bgcolor =
'#111';
35609 this.color =
'#222';
35610 this.shape = LiteGraph.ROUND_SHAPE;
35623 this.nodedef_icon =
'';
35625 this.nodedef_type =
'BSDF';
35627 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/translucent_bsdf.html';
35628 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_translucent_bsdf_out_genglsl.png';
35629 this.nodedef_group =
'pbr';
35630 this.addInput(
'weight',
'float');
35631 this.addProperty(
'weight', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
35632 this.addInput(
'color',
'color3');
35633 this.addProperty(
'color', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35634 this.addInput(
'normal',
'vector3');
35635 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
35636 this.addOutput(
'out',
'BSDF');
35637 this.title =
'translucent_bsdf_BSDF';
35638 this.desc =
"MaterialX:mtlx/pbr/translucent_bsdf";
35639 this.onNodeCreated =
function() {
35642 this.onRemoved =
function() {
35645 this.onPropertyChanged =
function(name, value, prev_value) {
35646 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35648 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35649 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35651 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35652 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35654 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35655 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35657 this.bgcolor =
'#111';
35658 this.color =
'#222';
35659 this.shape = LiteGraph.ROUND_SHAPE;
35663mtlx_pbr_translucent_bsdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/translucent_bsdf.html';
35672 this.nodedef_icon =
'';
35674 this.nodedef_type =
'BSDF';
35676 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dielectric_bsdf.html';
35677 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_dielectric_bsdf_out_genglsl.png';
35678 this.nodedef_group =
'pbr';
35679 this.addInput(
'weight',
'float');
35680 this.addProperty(
'weight', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
35681 this.addInput(
'tint',
'color3');
35682 this.addProperty(
'tint', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35683 this.addInput(
'ior',
'float');
35684 this.addProperty(
'ior', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35685 this.addInput(
'roughness',
'vector2');
35686 this.addProperty(
'roughness', [0.05, 0.05],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35687 this.addInput(
'thinfilm_thickness',
'float');
35688 this.addProperty(
'thinfilm_thickness', 0,
'float',{
"colorspace":
"",
"unit":
"nanometer",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35689 this.addInput(
'thinfilm_ior',
'float');
35690 this.addProperty(
'thinfilm_ior', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35691 this.addInput(
'normal',
'vector3');
35692 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
35693 this.addInput(
'tangent',
'vector3');
35694 this.addProperty(
'tangent', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Tworld"});
35695 this.addInput(
'distribution',
'string');
35696 this.addProperty(
'distribution',
'ggx',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"ggx"]});
35697 this.addInput(
'scatter_mode',
'string');
35698 this.addProperty(
'scatter_mode',
'R',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"R",
"T",
"RT"]});
35699 this.addOutput(
'out',
'BSDF');
35700 this.title =
'dielectric_bsdf_BSDF';
35701 this.desc =
"MaterialX:mtlx/pbr/dielectric_bsdf";
35702 this.onNodeCreated =
function() {
35705 this.onRemoved =
function() {
35708 this.onPropertyChanged =
function(name, value, prev_value) {
35709 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35711 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35712 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35714 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35715 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35717 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35718 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35720 this.bgcolor =
'#111';
35721 this.color =
'#222';
35722 this.shape = LiteGraph.ROUND_SHAPE;
35726mtlx_pbr_dielectric_bsdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/dielectric_bsdf.html';
35735 this.nodedef_icon =
'';
35737 this.nodedef_type =
'BSDF';
35739 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/conductor_bsdf.html';
35740 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_conductor_bsdf_out_genglsl.png';
35741 this.nodedef_group =
'pbr';
35742 this.addInput(
'weight',
'float');
35743 this.addProperty(
'weight', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
35744 this.addInput(
'ior',
'color3');
35745 this.addProperty(
'ior', [0.183, 0.421, 1.373],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35746 this.addInput(
'extinction',
'color3');
35747 this.addProperty(
'extinction', [3.424, 2.346, 1.770],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35748 this.addInput(
'roughness',
'vector2');
35749 this.addProperty(
'roughness', [0.05, 0.05],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35750 this.addInput(
'thinfilm_thickness',
'float');
35751 this.addProperty(
'thinfilm_thickness', 0,
'float',{
"colorspace":
"",
"unit":
"nanometer",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35752 this.addInput(
'thinfilm_ior',
'float');
35753 this.addProperty(
'thinfilm_ior', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35754 this.addInput(
'normal',
'vector3');
35755 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
35756 this.addInput(
'tangent',
'vector3');
35757 this.addProperty(
'tangent', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Tworld"});
35758 this.addInput(
'distribution',
'string');
35759 this.addProperty(
'distribution',
'ggx',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"ggx"]});
35760 this.addOutput(
'out',
'BSDF');
35761 this.title =
'conductor_bsdf_BSDF';
35762 this.desc =
"MaterialX:mtlx/pbr/conductor_bsdf";
35763 this.onNodeCreated =
function() {
35766 this.onRemoved =
function() {
35769 this.onPropertyChanged =
function(name, value, prev_value) {
35770 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35772 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35773 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35775 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35776 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35778 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35779 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35781 this.bgcolor =
'#111';
35782 this.color =
'#222';
35783 this.shape = LiteGraph.ROUND_SHAPE;
35787mtlx_pbr_conductor_bsdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/conductor_bsdf.html';
35796 this.nodedef_icon =
'';
35798 this.nodedef_type =
'BSDF';
35800 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/generalized_schlick_bsdf.html';
35801 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_generalized_schlick_bsdf_out_genglsl.png';
35802 this.nodedef_group =
'pbr';
35803 this.addInput(
'weight',
'float');
35804 this.addProperty(
'weight', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
35805 this.addInput(
'color0',
'color3');
35806 this.addProperty(
'color0', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35807 this.addInput(
'color82',
'color3');
35808 this.addProperty(
'color82', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35809 this.addInput(
'color90',
'color3');
35810 this.addProperty(
'color90', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35811 this.addInput(
'exponent',
'float');
35812 this.addProperty(
'exponent', 5.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35813 this.addInput(
'roughness',
'vector2');
35814 this.addProperty(
'roughness', [0.05, 0.05],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35815 this.addInput(
'thinfilm_thickness',
'float');
35816 this.addProperty(
'thinfilm_thickness', 0,
'float',{
"colorspace":
"",
"unit":
"nanometer",
"unittype":
"distance",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35817 this.addInput(
'thinfilm_ior',
'float');
35818 this.addProperty(
'thinfilm_ior', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35819 this.addInput(
'normal',
'vector3');
35820 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
35821 this.addInput(
'tangent',
'vector3');
35822 this.addProperty(
'tangent', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Tworld"});
35823 this.addInput(
'distribution',
'string');
35824 this.addProperty(
'distribution',
'ggx',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"ggx"]});
35825 this.addInput(
'scatter_mode',
'string');
35826 this.addProperty(
'scatter_mode',
'R',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"R",
"T",
"RT"]});
35827 this.addOutput(
'out',
'BSDF');
35828 this.title =
'generalized_schlick_bsdf_BSDF';
35829 this.desc =
"MaterialX:mtlx/pbr/generalized_schlick_bsdf";
35830 this.onNodeCreated =
function() {
35833 this.onRemoved =
function() {
35836 this.onPropertyChanged =
function(name, value, prev_value) {
35837 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35839 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35840 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35842 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35843 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35845 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35846 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35848 this.bgcolor =
'#111';
35849 this.color =
'#222';
35850 this.shape = LiteGraph.ROUND_SHAPE;
35863 this.nodedef_icon =
'';
35865 this.nodedef_type =
'BSDF';
35867 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subsurface_bsdf.html';
35868 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_subsurface_bsdf_out_genglsl.png';
35869 this.nodedef_group =
'pbr';
35870 this.addInput(
'weight',
'float');
35871 this.addProperty(
'weight', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
35872 this.addInput(
'color',
'color3');
35873 this.addProperty(
'color', [0.18, 0.18, 0.18],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35874 this.addInput(
'radius',
'color3');
35875 this.addProperty(
'radius', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35876 this.addInput(
'anisotropy',
'float');
35877 this.addProperty(
'anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35878 this.addInput(
'normal',
'vector3');
35879 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
35880 this.addOutput(
'out',
'BSDF');
35881 this.title =
'subsurface_bsdf_BSDF';
35882 this.desc =
"MaterialX:mtlx/pbr/subsurface_bsdf";
35883 this.onNodeCreated =
function() {
35886 this.onRemoved =
function() {
35889 this.onPropertyChanged =
function(name, value, prev_value) {
35890 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35892 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35893 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35895 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35896 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35898 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35899 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35901 this.bgcolor =
'#111';
35902 this.color =
'#222';
35903 this.shape = LiteGraph.ROUND_SHAPE;
35907mtlx_pbr_subsurface_bsdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/subsurface_bsdf.html';
35916 this.nodedef_icon =
'';
35918 this.nodedef_type =
'BSDF';
35920 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sheen_bsdf.html';
35921 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_sheen_bsdf_out_genglsl.png';
35922 this.nodedef_group =
'pbr';
35923 this.addInput(
'weight',
'float');
35924 this.addProperty(
'weight', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
35925 this.addInput(
'color',
'color3');
35926 this.addProperty(
'color', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35927 this.addInput(
'roughness',
'float');
35928 this.addProperty(
'roughness', 0.3,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35929 this.addInput(
'normal',
'vector3');
35930 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
35931 this.addInput(
'mode',
'string');
35932 this.addProperty(
'mode',
'conty_kulla',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"conty_kulla",
" zeltner"]});
35933 this.addOutput(
'out',
'BSDF');
35934 this.title =
'sheen_bsdf_BSDF';
35935 this.desc =
"MaterialX:mtlx/pbr/sheen_bsdf";
35936 this.onNodeCreated =
function() {
35939 this.onRemoved =
function() {
35942 this.onPropertyChanged =
function(name, value, prev_value) {
35943 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35945 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35946 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35948 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35949 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35951 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35952 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35954 this.bgcolor =
'#111';
35955 this.color =
'#222';
35956 this.shape = LiteGraph.ROUND_SHAPE;
35960mtlx_pbr_sheen_bsdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/sheen_bsdf.html';
35969 this.nodedef_icon =
'';
35971 this.nodedef_type =
'EDF';
35973 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/uniform_edf.html';
35974 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_uniform_edf_out_genglsl.png';
35975 this.nodedef_group =
'pbr';
35976 this.addInput(
'color',
'color3');
35977 this.addProperty(
'color', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
35978 this.addOutput(
'out',
'EDF');
35979 this.title =
'uniform_edf_EDF';
35980 this.desc =
"MaterialX:mtlx/pbr/uniform_edf";
35981 this.onNodeCreated =
function() {
35984 this.onRemoved =
function() {
35987 this.onPropertyChanged =
function(name, value, prev_value) {
35988 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
35990 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
35991 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
35993 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
35994 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
35996 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
35997 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
35999 this.bgcolor =
'#111';
36000 this.color =
'#222';
36001 this.shape = LiteGraph.ROUND_SHAPE;
36005mtlx_pbr_uniform_edf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/uniform_edf.html';
36014 this.nodedef_icon =
'';
36016 this.nodedef_type =
'EDF';
36018 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/conical_edf.html';
36019 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_conical_edf_out_genglsl.png';
36020 this.nodedef_group =
'pbr';
36021 this.addInput(
'color',
'color3');
36022 this.addProperty(
'color', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36023 this.addInput(
'normal',
'vector3');
36024 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
36025 this.addInput(
'inner_angle',
'float');
36026 this.addProperty(
'inner_angle', 60.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36027 this.addInput(
'outer_angle',
'float');
36028 this.addProperty(
'outer_angle', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36029 this.addOutput(
'out',
'EDF');
36030 this.title =
'conical_edf_EDF';
36031 this.desc =
"MaterialX:mtlx/pbr/conical_edf";
36032 this.onNodeCreated =
function() {
36035 this.onRemoved =
function() {
36038 this.onPropertyChanged =
function(name, value, prev_value) {
36039 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36041 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36042 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36044 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36045 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36047 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36048 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36050 this.bgcolor =
'#111';
36051 this.color =
'#222';
36052 this.shape = LiteGraph.ROUND_SHAPE;
36056mtlx_pbr_conical_edf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/conical_edf.html';
36065 this.nodedef_icon =
'';
36067 this.nodedef_type =
'EDF';
36069 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/measured_edf.html';
36070 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_measured_edf_out_genglsl.png';
36071 this.nodedef_group =
'pbr';
36072 this.addInput(
'color',
'color3');
36073 this.addProperty(
'color', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36074 this.addInput(
'normal',
'vector3');
36075 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
36076 this.addInput(
'file',
'filename');
36077 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36078 this.addOutput(
'out',
'EDF');
36079 this.title =
'measured_edf_EDF';
36080 this.desc =
"MaterialX:mtlx/pbr/measured_edf";
36081 this.onNodeCreated =
function() {
36084 this.onRemoved =
function() {
36087 this.onPropertyChanged =
function(name, value, prev_value) {
36088 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36090 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36091 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36093 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36094 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36096 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36097 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36099 this.bgcolor =
'#111';
36100 this.color =
'#222';
36101 this.shape = LiteGraph.ROUND_SHAPE;
36105mtlx_pbr_measured_edf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/measured_edf.html';
36114 this.nodedef_icon =
'';
36116 this.nodedef_type =
'EDF';
36118 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/generalized_schlick_edf.html';
36119 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_generalized_schlick_edf_out_genglsl.png';
36120 this.nodedef_group =
'pbr';
36121 this.addInput(
'color0',
'color3');
36122 this.addProperty(
'color0', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36123 this.addInput(
'color90',
'color3');
36124 this.addProperty(
'color90', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36125 this.addInput(
'exponent',
'float');
36126 this.addProperty(
'exponent', 5.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36127 this.addInput(
'base',
'EDF');
36128 this.addProperty(
'base',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36129 this.addOutput(
'out',
'EDF');
36130 this.title =
'generalized_schlick_edf_EDF';
36131 this.desc =
"MaterialX:mtlx/pbr/generalized_schlick_edf";
36132 this.onNodeCreated =
function() {
36135 this.onRemoved =
function() {
36138 this.onPropertyChanged =
function(name, value, prev_value) {
36139 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36141 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36142 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36144 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36145 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36147 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36148 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36150 this.bgcolor =
'#111';
36151 this.color =
'#222';
36152 this.shape = LiteGraph.ROUND_SHAPE;
36165 this.nodedef_icon =
'';
36167 this.nodedef_type =
'VDF';
36169 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absorption_vdf.html';
36170 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_absorption_vdf_out_genglsl.png';
36171 this.nodedef_group =
'pbr';
36172 this.addInput(
'absorption',
'vector3');
36173 this.addProperty(
'absorption', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36174 this.addOutput(
'out',
'VDF');
36175 this.title =
'absorption_vdf_VDF';
36176 this.desc =
"MaterialX:mtlx/pbr/absorption_vdf";
36177 this.onNodeCreated =
function() {
36180 this.onRemoved =
function() {
36183 this.onPropertyChanged =
function(name, value, prev_value) {
36184 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36186 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36187 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36189 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36190 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36192 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36193 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36195 this.bgcolor =
'#111';
36196 this.color =
'#222';
36197 this.shape = LiteGraph.ROUND_SHAPE;
36201mtlx_pbr_absorption_vdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/absorption_vdf.html';
36210 this.nodedef_icon =
'';
36212 this.nodedef_type =
'VDF';
36214 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/anisotropic_vdf.html';
36215 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_anisotropic_vdf_out_genglsl.png';
36216 this.nodedef_group =
'pbr';
36217 this.addInput(
'absorption',
'vector3');
36218 this.addProperty(
'absorption', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36219 this.addInput(
'scattering',
'vector3');
36220 this.addProperty(
'scattering', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36221 this.addInput(
'anisotropy',
'float');
36222 this.addProperty(
'anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36223 this.addOutput(
'out',
'VDF');
36224 this.title =
'anisotropic_vdf_VDF';
36225 this.desc =
"MaterialX:mtlx/pbr/anisotropic_vdf";
36226 this.onNodeCreated =
function() {
36229 this.onRemoved =
function() {
36232 this.onPropertyChanged =
function(name, value, prev_value) {
36233 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36235 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36236 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36238 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36239 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36241 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36242 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36244 this.bgcolor =
'#111';
36245 this.color =
'#222';
36246 this.shape = LiteGraph.ROUND_SHAPE;
36250mtlx_pbr_anisotropic_vdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/anisotropic_vdf.html';
36259 this.nodedef_icon =
'';
36261 this.nodedef_type =
'surfaceshader';
36263 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/surface.html';
36264 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_surface_out_genglsl.png';
36265 this.nodedef_group =
'pbr';
36266 this.addInput(
'bsdf',
'BSDF');
36267 this.addProperty(
'bsdf',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36268 this.addInput(
'edf',
'EDF');
36269 this.addProperty(
'edf',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36270 this.addInput(
'opacity',
'float');
36271 this.addProperty(
'opacity', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36272 this.addInput(
'thin_walled',
'boolean');
36273 this.addProperty(
'thin_walled',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36274 this.addOutput(
'out',
'surfaceshader');
36275 this.title =
'surface_surfaceshader';
36276 this.desc =
"MaterialX:mtlx/pbr/surface";
36277 this.onNodeCreated =
function() {
36280 this.onRemoved =
function() {
36283 this.onPropertyChanged =
function(name, value, prev_value) {
36284 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36286 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36287 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36289 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36290 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36292 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36293 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36295 this.bgcolor =
'#111';
36296 this.color =
'#232';
36297 this.shape = LiteGraph.ROUND_SHAPE;
36301mtlx_pbr_surface.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/surface.html';
36310 this.nodedef_icon =
'';
36312 this.nodedef_type =
'volumeshader';
36314 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/volume.html';
36315 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_volume_out_genglsl.png';
36316 this.nodedef_group =
'pbr';
36317 this.addInput(
'vdf',
'VDF');
36318 this.addProperty(
'vdf',
'',
'VDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36319 this.addInput(
'edf',
'EDF');
36320 this.addProperty(
'edf',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36321 this.addOutput(
'out',
'volumeshader');
36322 this.title =
'volume_volumeshader';
36323 this.desc =
"MaterialX:mtlx/pbr/volume";
36324 this.onNodeCreated =
function() {
36327 this.onRemoved =
function() {
36330 this.onPropertyChanged =
function(name, value, prev_value) {
36331 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36333 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36334 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36336 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36337 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36339 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36340 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36342 this.bgcolor =
'#111';
36343 this.color =
'#222';
36344 this.shape = LiteGraph.ROUND_SHAPE;
36348mtlx_pbr_volume.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/volume.html';
36357 this.nodedef_icon =
'';
36359 this.nodedef_type =
'lightshader';
36361 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/light.html';
36362 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_light_out_genglsl.png';
36363 this.nodedef_group =
'pbr';
36364 this.addInput(
'edf',
'EDF');
36365 this.addProperty(
'edf',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36366 this.addInput(
'intensity',
'float');
36367 this.addProperty(
'intensity', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36368 this.addInput(
'exposure',
'float');
36369 this.addProperty(
'exposure', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36370 this.addOutput(
'out',
'lightshader');
36371 this.title =
'light_lightshader';
36372 this.desc =
"MaterialX:mtlx/pbr/light";
36373 this.onNodeCreated =
function() {
36376 this.onRemoved =
function() {
36379 this.onPropertyChanged =
function(name, value, prev_value) {
36380 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36382 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36383 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36385 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36386 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36388 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36389 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36391 this.bgcolor =
'#111';
36392 this.color =
'#222';
36393 this.shape = LiteGraph.ROUND_SHAPE;
36397mtlx_pbr_light.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/light.html';
36406 this.nodedef_icon =
'';
36408 this.nodedef_type =
'displacementshader';
36410 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/displacement.html';
36411 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_displacement_float_out_genglsl.png';
36412 this.nodedef_group =
'pbr';
36413 this.addInput(
'displacement',
'float');
36414 this.addProperty(
'displacement', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36415 this.addInput(
'scale',
'float');
36416 this.addProperty(
'scale', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36417 this.addOutput(
'out',
'displacementshader');
36418 this.title =
'displacement_displacementshader';
36419 this.desc =
"MaterialX:mtlx/pbr/displacement_float";
36420 this.onNodeCreated =
function() {
36423 this.onRemoved =
function() {
36426 this.onPropertyChanged =
function(name, value, prev_value) {
36427 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36429 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36430 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36432 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36433 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36435 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36436 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36438 this.bgcolor =
'#111';
36439 this.color =
'#232';
36440 this.shape = LiteGraph.ROUND_SHAPE;
36453 this.nodedef_icon =
'';
36455 this.nodedef_type =
'displacementshader';
36457 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/displacement.html';
36458 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_displacement_vector3_out_genglsl.png';
36459 this.nodedef_group =
'pbr';
36460 this.addInput(
'displacement',
'vector3');
36461 this.addProperty(
'displacement', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36462 this.addInput(
'scale',
'float');
36463 this.addProperty(
'scale', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36464 this.addOutput(
'out',
'displacementshader');
36465 this.title =
'displacement_displacementshader';
36466 this.desc =
"MaterialX:mtlx/pbr/displacement_vector3";
36467 this.onNodeCreated =
function() {
36470 this.onRemoved =
function() {
36473 this.onPropertyChanged =
function(name, value, prev_value) {
36474 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36476 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36477 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36479 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36480 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36482 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36483 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36485 this.bgcolor =
'#111';
36486 this.color =
'#232';
36487 this.shape = LiteGraph.ROUND_SHAPE;
36500 this.nodedef_icon =
'';
36502 this.nodedef_type =
'BSDF';
36504 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/layer.html';
36505 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_layer_bsdf_out_genglsl.png';
36506 this.nodedef_group =
'pbr';
36507 this.addInput(
'top',
'BSDF');
36508 this.addProperty(
'top',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36509 this.addInput(
'base',
'BSDF');
36510 this.addProperty(
'base',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36511 this.addOutput(
'out',
'BSDF');
36512 this.title =
'layer_BSDF';
36513 this.desc =
"MaterialX:mtlx/pbr/layer_bsdf";
36514 this.onNodeCreated =
function() {
36517 this.onRemoved =
function() {
36520 this.onPropertyChanged =
function(name, value, prev_value) {
36521 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36523 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36524 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36526 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36527 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36529 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36530 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36532 this.bgcolor =
'#111';
36533 this.color =
'#222';
36534 this.shape = LiteGraph.ROUND_SHAPE;
36538mtlx_pbr_layer_bsdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/layer.html';
36547 this.nodedef_icon =
'';
36549 this.nodedef_type =
'BSDF';
36551 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/layer.html';
36552 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_layer_vdf_out_genglsl.png';
36553 this.nodedef_group =
'pbr';
36554 this.addInput(
'top',
'BSDF');
36555 this.addProperty(
'top',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36556 this.addInput(
'base',
'VDF');
36557 this.addProperty(
'base',
'',
'VDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36558 this.addOutput(
'out',
'BSDF');
36559 this.title =
'layer_BSDF';
36560 this.desc =
"MaterialX:mtlx/pbr/layer_vdf";
36561 this.onNodeCreated =
function() {
36564 this.onRemoved =
function() {
36567 this.onPropertyChanged =
function(name, value, prev_value) {
36568 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36570 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36571 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36573 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36574 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36576 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36577 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36579 this.bgcolor =
'#111';
36580 this.color =
'#222';
36581 this.shape = LiteGraph.ROUND_SHAPE;
36585mtlx_pbr_layer_vdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/layer.html';
36594 this.nodedef_icon =
'';
36596 this.nodedef_type =
'BSDF';
36598 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
36599 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_bsdf_out_genglsl.png';
36600 this.nodedef_group =
'pbr';
36601 this.addInput(
'fg',
'BSDF');
36602 this.addProperty(
'fg',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36603 this.addInput(
'bg',
'BSDF');
36604 this.addProperty(
'bg',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36605 this.addInput(
'mix',
'float');
36606 this.addProperty(
'mix', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
36607 this.addOutput(
'out',
'BSDF');
36608 this.title =
'mix_BSDF';
36609 this.desc =
"MaterialX:mtlx/pbr/mix_bsdf";
36610 this.onNodeCreated =
function() {
36613 this.onRemoved =
function() {
36616 this.onPropertyChanged =
function(name, value, prev_value) {
36617 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36619 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36620 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36622 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36623 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36625 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36626 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36628 this.bgcolor =
'#111';
36629 this.color =
'#222';
36630 this.shape = LiteGraph.ROUND_SHAPE;
36634mtlx_pbr_mix_bsdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
36643 this.nodedef_icon =
'';
36645 this.nodedef_type =
'EDF';
36647 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
36648 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_edf_out_genglsl.png';
36649 this.nodedef_group =
'pbr';
36650 this.addInput(
'fg',
'EDF');
36651 this.addProperty(
'fg',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36652 this.addInput(
'bg',
'EDF');
36653 this.addProperty(
'bg',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36654 this.addInput(
'mix',
'float');
36655 this.addProperty(
'mix', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
36656 this.addOutput(
'out',
'EDF');
36657 this.title =
'mix_EDF';
36658 this.desc =
"MaterialX:mtlx/pbr/mix_edf";
36659 this.onNodeCreated =
function() {
36662 this.onRemoved =
function() {
36665 this.onPropertyChanged =
function(name, value, prev_value) {
36666 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36668 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36669 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36671 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36672 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36674 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36675 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36677 this.bgcolor =
'#111';
36678 this.color =
'#222';
36679 this.shape = LiteGraph.ROUND_SHAPE;
36683mtlx_pbr_mix_edf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
36692 this.nodedef_icon =
'';
36694 this.nodedef_type =
'VDF';
36696 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
36697 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_mix_vdf_out_genglsl.png';
36698 this.nodedef_group =
'pbr';
36699 this.addInput(
'fg',
'VDF');
36700 this.addProperty(
'fg',
'',
'VDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36701 this.addInput(
'bg',
'VDF');
36702 this.addProperty(
'bg',
'',
'VDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36703 this.addInput(
'mix',
'float');
36704 this.addProperty(
'mix', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
36705 this.addOutput(
'out',
'VDF');
36706 this.title =
'mix_VDF';
36707 this.desc =
"MaterialX:mtlx/pbr/mix_vdf";
36708 this.onNodeCreated =
function() {
36711 this.onRemoved =
function() {
36714 this.onPropertyChanged =
function(name, value, prev_value) {
36715 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36717 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36718 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36720 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36721 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36723 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36724 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36726 this.bgcolor =
'#111';
36727 this.color =
'#222';
36728 this.shape = LiteGraph.ROUND_SHAPE;
36732mtlx_pbr_mix_vdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/mix.html';
36741 this.nodedef_icon =
'';
36743 this.nodedef_type =
'BSDF';
36745 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
36746 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_bsdf_out_genglsl.png';
36747 this.nodedef_group =
'pbr';
36748 this.addInput(
'in1',
'BSDF');
36749 this.addProperty(
'in1',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36750 this.addInput(
'in2',
'BSDF');
36751 this.addProperty(
'in2',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36752 this.addOutput(
'out',
'BSDF');
36753 this.title =
'add_BSDF';
36754 this.desc =
"MaterialX:mtlx/pbr/add_bsdf";
36755 this.onNodeCreated =
function() {
36758 this.onRemoved =
function() {
36761 this.onPropertyChanged =
function(name, value, prev_value) {
36762 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36764 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36765 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36767 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36768 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36770 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36771 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36773 this.bgcolor =
'#111';
36774 this.color =
'#222';
36775 this.shape = LiteGraph.ROUND_SHAPE;
36779mtlx_pbr_add_bsdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
36788 this.nodedef_icon =
'';
36790 this.nodedef_type =
'EDF';
36792 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
36793 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_edf_out_genglsl.png';
36794 this.nodedef_group =
'pbr';
36795 this.addInput(
'in1',
'EDF');
36796 this.addProperty(
'in1',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36797 this.addInput(
'in2',
'EDF');
36798 this.addProperty(
'in2',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36799 this.addOutput(
'out',
'EDF');
36800 this.title =
'add_EDF';
36801 this.desc =
"MaterialX:mtlx/pbr/add_edf";
36802 this.onNodeCreated =
function() {
36805 this.onRemoved =
function() {
36808 this.onPropertyChanged =
function(name, value, prev_value) {
36809 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36811 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36812 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36814 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36815 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36817 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36818 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36820 this.bgcolor =
'#111';
36821 this.color =
'#222';
36822 this.shape = LiteGraph.ROUND_SHAPE;
36826mtlx_pbr_add_edf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
36835 this.nodedef_icon =
'';
36837 this.nodedef_type =
'VDF';
36839 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
36840 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_add_vdf_out_genglsl.png';
36841 this.nodedef_group =
'pbr';
36842 this.addInput(
'in1',
'VDF');
36843 this.addProperty(
'in1',
'',
'VDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36844 this.addInput(
'in2',
'VDF');
36845 this.addProperty(
'in2',
'',
'VDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36846 this.addOutput(
'out',
'VDF');
36847 this.title =
'add_VDF';
36848 this.desc =
"MaterialX:mtlx/pbr/add_vdf";
36849 this.onNodeCreated =
function() {
36852 this.onRemoved =
function() {
36855 this.onPropertyChanged =
function(name, value, prev_value) {
36856 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36858 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36859 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36861 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36862 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36864 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36865 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36867 this.bgcolor =
'#111';
36868 this.color =
'#222';
36869 this.shape = LiteGraph.ROUND_SHAPE;
36873mtlx_pbr_add_vdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/add.html';
36882 this.nodedef_icon =
'';
36884 this.nodedef_type =
'BSDF';
36886 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
36887 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_bsdfC_out_genglsl.png';
36888 this.nodedef_group =
'pbr';
36889 this.addInput(
'in1',
'BSDF');
36890 this.addProperty(
'in1',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36891 this.addInput(
'in2',
'color3');
36892 this.addProperty(
'in2', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36893 this.addOutput(
'out',
'BSDF');
36894 this.title =
'multiply_BSDF';
36895 this.desc =
"MaterialX:mtlx/pbr/multiply_bsdfC";
36896 this.onNodeCreated =
function() {
36899 this.onRemoved =
function() {
36902 this.onPropertyChanged =
function(name, value, prev_value) {
36903 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36905 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36906 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36908 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36909 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36911 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36912 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36914 this.bgcolor =
'#111';
36915 this.color =
'#222';
36916 this.shape = LiteGraph.ROUND_SHAPE;
36920mtlx_pbr_multiply_bsdfC.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
36929 this.nodedef_icon =
'';
36931 this.nodedef_type =
'BSDF';
36933 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
36934 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_bsdfF_out_genglsl.png';
36935 this.nodedef_group =
'pbr';
36936 this.addInput(
'in1',
'BSDF');
36937 this.addProperty(
'in1',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36938 this.addInput(
'in2',
'float');
36939 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36940 this.addOutput(
'out',
'BSDF');
36941 this.title =
'multiply_BSDF';
36942 this.desc =
"MaterialX:mtlx/pbr/multiply_bsdfF";
36943 this.onNodeCreated =
function() {
36946 this.onRemoved =
function() {
36949 this.onPropertyChanged =
function(name, value, prev_value) {
36950 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36952 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
36953 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
36955 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
36956 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
36958 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
36959 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
36961 this.bgcolor =
'#111';
36962 this.color =
'#222';
36963 this.shape = LiteGraph.ROUND_SHAPE;
36967mtlx_pbr_multiply_bsdfF.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
36976 this.nodedef_icon =
'';
36978 this.nodedef_type =
'EDF';
36980 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
36981 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_edfC_out_genglsl.png';
36982 this.nodedef_group =
'pbr';
36983 this.addInput(
'in1',
'EDF');
36984 this.addProperty(
'in1',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36985 this.addInput(
'in2',
'color3');
36986 this.addProperty(
'in2', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
36987 this.addOutput(
'out',
'EDF');
36988 this.title =
'multiply_EDF';
36989 this.desc =
"MaterialX:mtlx/pbr/multiply_edfC";
36990 this.onNodeCreated =
function() {
36993 this.onRemoved =
function() {
36996 this.onPropertyChanged =
function(name, value, prev_value) {
36997 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
36999 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37000 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37002 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37003 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37005 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37006 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37008 this.bgcolor =
'#111';
37009 this.color =
'#222';
37010 this.shape = LiteGraph.ROUND_SHAPE;
37014mtlx_pbr_multiply_edfC.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
37023 this.nodedef_icon =
'';
37025 this.nodedef_type =
'EDF';
37027 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
37028 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_edfF_out_genglsl.png';
37029 this.nodedef_group =
'pbr';
37030 this.addInput(
'in1',
'EDF');
37031 this.addProperty(
'in1',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37032 this.addInput(
'in2',
'float');
37033 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37034 this.addOutput(
'out',
'EDF');
37035 this.title =
'multiply_EDF';
37036 this.desc =
"MaterialX:mtlx/pbr/multiply_edfF";
37037 this.onNodeCreated =
function() {
37040 this.onRemoved =
function() {
37043 this.onPropertyChanged =
function(name, value, prev_value) {
37044 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37046 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37047 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37049 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37050 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37052 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37053 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37055 this.bgcolor =
'#111';
37056 this.color =
'#222';
37057 this.shape = LiteGraph.ROUND_SHAPE;
37061mtlx_pbr_multiply_edfF.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
37070 this.nodedef_icon =
'';
37072 this.nodedef_type =
'VDF';
37074 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
37075 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vdfC_out_genglsl.png';
37076 this.nodedef_group =
'pbr';
37077 this.addInput(
'in1',
'VDF');
37078 this.addProperty(
'in1',
'',
'VDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37079 this.addInput(
'in2',
'color3');
37080 this.addProperty(
'in2', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37081 this.addOutput(
'out',
'VDF');
37082 this.title =
'multiply_VDF';
37083 this.desc =
"MaterialX:mtlx/pbr/multiply_vdfC";
37084 this.onNodeCreated =
function() {
37087 this.onRemoved =
function() {
37090 this.onPropertyChanged =
function(name, value, prev_value) {
37091 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37093 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37094 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37096 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37097 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37099 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37100 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37102 this.bgcolor =
'#111';
37103 this.color =
'#222';
37104 this.shape = LiteGraph.ROUND_SHAPE;
37108mtlx_pbr_multiply_vdfC.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
37117 this.nodedef_icon =
'';
37119 this.nodedef_type =
'VDF';
37121 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
37122 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_multiply_vdfF_out_genglsl.png';
37123 this.nodedef_group =
'pbr';
37124 this.addInput(
'in1',
'VDF');
37125 this.addProperty(
'in1',
'',
'VDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37126 this.addInput(
'in2',
'float');
37127 this.addProperty(
'in2', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37128 this.addOutput(
'out',
'VDF');
37129 this.title =
'multiply_VDF';
37130 this.desc =
"MaterialX:mtlx/pbr/multiply_vdfF";
37131 this.onNodeCreated =
function() {
37134 this.onRemoved =
function() {
37137 this.onPropertyChanged =
function(name, value, prev_value) {
37138 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37140 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37141 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37143 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37144 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37146 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37147 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37149 this.bgcolor =
'#111';
37150 this.color =
'#222';
37151 this.shape = LiteGraph.ROUND_SHAPE;
37155mtlx_pbr_multiply_vdfF.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/multiply.html';
37164 this.nodedef_icon =
'';
37166 this.nodedef_type =
'vector2';
37168 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/roughness_anisotropy.html';
37169 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_roughness_anisotropy_out_genglsl.png';
37170 this.nodedef_group =
'pbr';
37171 this.addInput(
'roughness',
'float');
37172 this.addProperty(
'roughness', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37173 this.addInput(
'anisotropy',
'float');
37174 this.addProperty(
'anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37175 this.addOutput(
'out',
'vector2');
37176 this.title =
'roughness_anisotropy_vector2';
37177 this.desc =
"MaterialX:mtlx/pbr/roughness_anisotropy";
37178 this.onNodeCreated =
function() {
37181 this.onRemoved =
function() {
37184 this.onPropertyChanged =
function(name, value, prev_value) {
37185 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37187 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37188 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37190 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37191 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37193 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37194 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37196 this.bgcolor =
'#111';
37197 this.color =
'#222';
37198 this.shape = LiteGraph.ROUND_SHAPE;
37199 this.boxcolor =
'#265';
37212 this.nodedef_icon =
'';
37214 this.nodedef_type =
'vector2';
37216 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/roughness_dual.html';
37217 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_roughness_dual_out_genglsl.png';
37218 this.nodedef_group =
'pbr';
37219 this.addInput(
'roughness',
'vector2');
37220 this.addProperty(
'roughness', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37221 this.addOutput(
'out',
'vector2');
37222 this.title =
'roughness_dual_vector2';
37223 this.desc =
"MaterialX:mtlx/pbr/roughness_dual";
37224 this.onNodeCreated =
function() {
37227 this.onRemoved =
function() {
37230 this.onPropertyChanged =
function(name, value, prev_value) {
37231 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37233 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37234 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37236 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37237 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37239 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37240 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37242 this.bgcolor =
'#111';
37243 this.color =
'#222';
37244 this.shape = LiteGraph.ROUND_SHAPE;
37245 this.boxcolor =
'#265';
37249mtlx_pbr_roughness_dual.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/roughness_dual.html';
37258 this.nodedef_icon =
'';
37260 this.nodedef_type =
'vector2';
37262 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/glossiness_anisotropy.html';
37263 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_glossiness_anisotropy_out_genglsl.png';
37264 this.nodedef_group =
'pbr';
37265 this.addInput(
'glossiness',
'float');
37266 this.addProperty(
'glossiness', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
37267 this.addInput(
'anisotropy',
'float');
37268 this.addProperty(
'anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
37269 this.addOutput(
'out',
'vector2');
37270 this.title =
'glossiness_anisotropy_vector2';
37271 this.desc =
"MaterialX:mtlx/pbr/glossiness_anisotropy";
37272 this.onNodeCreated =
function() {
37275 this.onRemoved =
function() {
37278 this.onPropertyChanged =
function(name, value, prev_value) {
37279 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37281 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37282 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37284 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37285 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37287 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37288 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37290 this.bgcolor =
'#111';
37291 this.color =
'#222';
37292 this.shape = LiteGraph.ROUND_SHAPE;
37293 this.boxcolor =
'#265';
37306 this.nodedef_icon =
'';
37308 this.nodedef_type =
'color3';
37310 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blackbody.html';
37311 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_blackbody_out_genglsl.png';
37312 this.nodedef_group =
'pbr';
37313 this.addInput(
'temperature',
'float');
37314 this.addProperty(
'temperature', 5000.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37315 this.addOutput(
'out',
'color3');
37316 this.title =
'blackbody_color3';
37317 this.desc =
"MaterialX:mtlx/pbr/blackbody";
37318 this.onNodeCreated =
function() {
37321 this.onRemoved =
function() {
37324 this.onPropertyChanged =
function(name, value, prev_value) {
37325 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37327 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37328 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37330 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37331 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37333 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37334 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37336 this.bgcolor =
'#111';
37337 this.color =
'#222';
37338 this.shape = LiteGraph.ROUND_SHAPE;
37339 this.boxcolor =
'#37A';
37343mtlx_pbr_blackbody.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/blackbody.html';
37352 this.nodedef_icon =
'';
37354 this.nodedef_type =
'multioutput';
37356 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/artistic_ior.html';
37357 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_artistic_ior_ior_genglsl.png';
37358 this.nodedef_group =
'pbr';
37359 this.addInput(
'reflectivity',
'color3');
37360 this.addProperty(
'reflectivity', [0.944, 0.776, 0.373],
'color3',{
"colorspace":
"lin_rec709",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37361 this.addInput(
'edge_color',
'color3');
37362 this.addProperty(
'edge_color', [0.998, 0.981, 0.751],
'color3',{
"colorspace":
"lin_rec709",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37363 this.addOutput(
'ior',
'color3');
37364 this.addOutput(
'extinction',
'color3');
37365 this.title =
'artistic_ior_multioutput';
37366 this.desc =
"MaterialX:mtlx/pbr/artistic_ior";
37367 this.onNodeCreated =
function() {
37370 this.onRemoved =
function() {
37373 this.onPropertyChanged =
function(name, value, prev_value) {
37374 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37376 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37377 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37379 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37380 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37382 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37383 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37385 this.bgcolor =
'#111';
37386 this.color =
'#222';
37387 this.shape = LiteGraph.ROUND_SHAPE;
37391mtlx_pbr_artistic_ior.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/artistic_ior.html';
37400 this.nodedef_icon =
'';
37402 this.nodedef_type =
'vector3';
37404 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/viewdirection.html';
37405 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_viewdirection_vector3_out_genglsl.png';
37406 this.nodedef_group =
'npr';
37407 this.addInput(
'space',
'string');
37408 this.addProperty(
'space',
'world',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"model",
"object",
"world"]});
37409 this.addOutput(
'out',
'vector3');
37410 this.title =
'viewdirection_vector3';
37411 this.desc =
"MaterialX:mtlx/npr/viewdirection_vector3";
37412 this.onNodeCreated =
function() {
37415 this.onRemoved =
function() {
37418 this.onPropertyChanged =
function(name, value, prev_value) {
37419 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37421 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37422 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37424 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37425 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37427 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37428 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37430 this.bgcolor =
'#111';
37431 this.color =
'#222';
37432 this.shape = LiteGraph.ROUND_SHAPE;
37433 this.boxcolor =
'#465';
37446 this.nodedef_icon =
'';
37448 this.nodedef_type =
'float';
37450 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/facingratio.html';
37451 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_facingratio_float_out_genglsl.png';
37452 this.nodedef_group =
'npr';
37453 this.addInput(
'viewdirection',
'vector3');
37454 this.addProperty(
'viewdirection', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Vworld"});
37455 this.addInput(
'normal',
'vector3');
37456 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
37457 this.addInput(
'faceforward',
'boolean');
37458 this.addProperty(
'faceforward',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37459 this.addInput(
'invert',
'boolean');
37460 this.addProperty(
'invert',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37461 this.addOutput(
'out',
'float');
37462 this.title =
'facingratio_float';
37463 this.desc =
"MaterialX:mtlx/npr/facingratio_float";
37464 this.onNodeCreated =
function() {
37467 this.onRemoved =
function() {
37470 this.onPropertyChanged =
function(name, value, prev_value) {
37471 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37473 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37474 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37476 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37477 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37479 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37480 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37482 this.bgcolor =
'#111';
37483 this.color =
'#222';
37484 this.shape = LiteGraph.ROUND_SHAPE;
37485 this.boxcolor =
'#161';
37498 this.nodedef_icon =
'';
37500 this.nodedef_type =
'color3';
37502 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gooch_shade.html';
37503 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gooch_shade_out_genglsl.png';
37504 this.nodedef_group =
'npr';
37505 this.addInput(
'warm_color',
'color3');
37506 this.addProperty(
'warm_color', [0.8, 0.8, 0.7],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Warm Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37507 this.addInput(
'cool_color',
'color3');
37508 this.addProperty(
'cool_color', [0.3, 0.3, 0.8],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Cool Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37509 this.addInput(
'specular_intensity',
'float');
37510 this.addProperty(
'specular_intensity', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Intensity",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"",
"defaultgeomprop":
""});
37511 this.addInput(
'shininess',
'float');
37512 this.addProperty(
'shininess', 64,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Shininess",
"uimin":
"1",
"uimax":
"256",
"uifolder":
"",
"defaultgeomprop":
""});
37513 this.addInput(
'light_direction',
'vector3');
37514 this.addProperty(
'light_direction', [1, -0.5, -0.5],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Light Direction",
"uimin":[-1,-1,-1],
"uimax":[1,1,1],
"uifolder":
"",
"defaultgeomprop":
""});
37515 this.addOutput(
'out',
'color3');
37516 this.title =
'gooch_shade_color3';
37517 this.desc =
"MaterialX:mtlx/npr/gooch_shade";
37518 this.onNodeCreated =
function() {
37521 this.onRemoved =
function() {
37524 this.onPropertyChanged =
function(name, value, prev_value) {
37525 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37527 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37528 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37530 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37531 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37533 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37534 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37536 this.bgcolor =
'#111';
37537 this.color =
'#222';
37538 this.shape = LiteGraph.ROUND_SHAPE;
37539 this.boxcolor =
'#37A';
37543mtlx_npr_gooch_shade.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gooch_shade.html';
37552 this.nodedef_icon =
'./Icons/openpbr_logo.svg';
37553 this.
nodedef_name =
'ND_open_pbr_surface_surfaceshader';
37554 this.nodedef_type =
'surfaceshader';
37556 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/open_pbr_surface.html';
37557 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_open_pbr_surface_surfaceshader_out_genglsl.png';
37558 this.nodedef_group =
'pbr';
37559 this.addInput(
'base_weight',
'float');
37560 this.addProperty(
'base_weight', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Base Weight",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Base",
"defaultgeomprop":
""});
37561 this.addInput(
'base_color',
'color3');
37562 this.addProperty(
'base_color', [0.8, 0.8, 0.8],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Base Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Base",
"defaultgeomprop":
""});
37563 this.addInput(
'base_diffuse_roughness',
'float');
37564 this.addProperty(
'base_diffuse_roughness', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Base Diffuse Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Base",
"defaultgeomprop":
""});
37565 this.addInput(
'base_metalness',
'float');
37566 this.addProperty(
'base_metalness', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Base Metalness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Base",
"defaultgeomprop":
""});
37567 this.addInput(
'specular_weight',
'float');
37568 this.addProperty(
'specular_weight', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Weight",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Specular",
"defaultgeomprop":
""});
37569 this.addInput(
'specular_color',
'color3');
37570 this.addProperty(
'specular_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Specular",
"defaultgeomprop":
""});
37571 this.addInput(
'specular_roughness',
'float');
37572 this.addProperty(
'specular_roughness', 0.3,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Specular",
"defaultgeomprop":
""});
37573 this.addInput(
'specular_ior',
'float');
37574 this.addProperty(
'specular_ior', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Index of Refraction",
"uimin":
"1.0",
"uimax":
"3.0",
"uifolder":
"Specular",
"defaultgeomprop":
""});
37575 this.addInput(
'specular_roughness_anisotropy',
'float');
37576 this.addProperty(
'specular_roughness_anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Anisotropy",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Specular",
"defaultgeomprop":
""});
37577 this.addInput(
'transmission_weight',
'float');
37578 this.addProperty(
'transmission_weight', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Weight",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
37579 this.addInput(
'transmission_color',
'color3');
37580 this.addProperty(
'transmission_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
37581 this.addInput(
'transmission_depth',
'float');
37582 this.addProperty(
'transmission_depth', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Depth",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
37583 this.addInput(
'transmission_scatter',
'color3');
37584 this.addProperty(
'transmission_scatter', [0, 0, 0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Scatter",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
37585 this.addInput(
'transmission_scatter_anisotropy',
'float');
37586 this.addProperty(
'transmission_scatter_anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Anisotropy",
"uimin":
"-1.0",
"uimax":
"1.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
37587 this.addInput(
'transmission_dispersion_scale',
'float');
37588 this.addProperty(
'transmission_dispersion_scale', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Dispersion Scale",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
37589 this.addInput(
'transmission_dispersion_abbe_number',
'float');
37590 this.addProperty(
'transmission_dispersion_abbe_number', 20.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Dispersion Abbe Number",
"uimin":
"9.0",
"uimax":
"91.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
37591 this.addInput(
'subsurface_weight',
'float');
37592 this.addProperty(
'subsurface_weight', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface Weight",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
37593 this.addInput(
'subsurface_color',
'color3');
37594 this.addProperty(
'subsurface_color', [0.8, 0.8, 0.8],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
37595 this.addInput(
'subsurface_radius',
'float');
37596 this.addProperty(
'subsurface_radius', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface Radius",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
37597 this.addInput(
'subsurface_radius_scale',
'color3');
37598 this.addProperty(
'subsurface_radius_scale', [1.0, 0.5, 0.25],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface Radius Scale",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
37599 this.addInput(
'subsurface_scatter_anisotropy',
'float');
37600 this.addProperty(
'subsurface_scatter_anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface Anisotropy",
"uimin":
"-1.0",
"uimax":
"1.0",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
37601 this.addInput(
'fuzz_weight',
'float');
37602 this.addProperty(
'fuzz_weight', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Fuzz Weight",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Fuzz",
"defaultgeomprop":
""});
37603 this.addInput(
'fuzz_color',
'color3');
37604 this.addProperty(
'fuzz_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Fuzz Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Fuzz",
"defaultgeomprop":
""});
37605 this.addInput(
'fuzz_roughness',
'float');
37606 this.addProperty(
'fuzz_roughness', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Fuzz Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Fuzz",
"defaultgeomprop":
""});
37607 this.addInput(
'coat_weight',
'float');
37608 this.addProperty(
'coat_weight', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Weight",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
37609 this.addInput(
'coat_color',
'color3');
37610 this.addProperty(
'coat_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Coat",
"defaultgeomprop":
""});
37611 this.addInput(
'coat_roughness',
'float');
37612 this.addProperty(
'coat_roughness', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
37613 this.addInput(
'coat_roughness_anisotropy',
'float');
37614 this.addProperty(
'coat_roughness_anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Anisotropy",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
37615 this.addInput(
'coat_ior',
'float');
37616 this.addProperty(
'coat_ior', 1.6,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Index of Refraction",
"uimin":
"1.0",
"uimax":
"3.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
37617 this.addInput(
'coat_darkening',
'float');
37618 this.addProperty(
'coat_darkening', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Darkening",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
37619 this.addInput(
'thin_film_weight',
'float');
37620 this.addProperty(
'thin_film_weight', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Thin Film Weight",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Thin Film",
"defaultgeomprop":
""});
37621 this.addInput(
'thin_film_thickness',
'float');
37622 this.addProperty(
'thin_film_thickness', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Thin Film Thickness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Thin Film",
"defaultgeomprop":
""});
37623 this.addInput(
'thin_film_ior',
'float');
37624 this.addProperty(
'thin_film_ior', 1.4,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Thin Film Index of Refraction",
"uimin":
"1.0",
"uimax":
"3.0",
"uifolder":
"Thin Film",
"defaultgeomprop":
""});
37625 this.addInput(
'emission_luminance',
'float');
37626 this.addProperty(
'emission_luminance', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Emission Luminance",
"uimin":
"0.0",
"uimax":
"1000.0",
"uifolder":
"Emission",
"defaultgeomprop":
""});
37627 this.addInput(
'emission_color',
'color3');
37628 this.addProperty(
'emission_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Emission Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Emission",
"defaultgeomprop":
""});
37629 this.addInput(
'geometry_opacity',
'float');
37630 this.addProperty(
'geometry_opacity', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Opacity",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Geometry",
"defaultgeomprop":
""});
37631 this.addInput(
'geometry_thin_walled',
'boolean');
37632 this.addProperty(
'geometry_thin_walled',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Thin Walled",
"uimin":
null,
"uimax":
null,
"uifolder":
"Geometry",
"defaultgeomprop":
""});
37633 this.addInput(
'geometry_normal',
'vector3');
37634 this.addProperty(
'geometry_normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"Geometry",
"defaultgeomprop":
"Nworld"});
37635 this.addInput(
'geometry_coat_normal',
'vector3');
37636 this.addProperty(
'geometry_coat_normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"Geometry",
"defaultgeomprop":
"Nworld"});
37637 this.addInput(
'geometry_tangent',
'vector3');
37638 this.addProperty(
'geometry_tangent', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Tangent",
"uimin":
null,
"uimax":
null,
"uifolder":
"Geometry",
"defaultgeomprop":
"Tworld"});
37639 this.addInput(
'geometry_coat_tangent',
'vector3');
37640 this.addProperty(
'geometry_coat_tangent', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Tangent",
"uimin":
null,
"uimax":
null,
"uifolder":
"Geometry",
"defaultgeomprop":
"Tworld"});
37641 this.addOutput(
'out',
'surfaceshader');
37642 this.title =
'open_pbr_surface_surfaceshader';
37643 this.desc =
"MaterialX:mtlx/pbr/open_pbr_surface_surfaceshader";
37644 this.onNodeCreated =
function() {
37647 this.onRemoved =
function() {
37650 this.onPropertyChanged =
function(name, value, prev_value) {
37651 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37653 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37654 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37656 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37657 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37659 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37660 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37662 this.bgcolor =
'#111';
37663 this.color =
'#232';
37664 this.shape = LiteGraph.ROUND_SHAPE;
37677 this.nodedef_icon =
'./Icons/openpbr_logo.svg';
37679 this.nodedef_type =
'vector2';
37681 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/open_pbr_anisotropy.html';
37682 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_open_pbr_anisotropy_out_genglsl.png';
37683 this.nodedef_group =
'pbr';
37684 this.addInput(
'roughness',
'float');
37685 this.addProperty(
'roughness', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37686 this.addInput(
'anisotropy',
'float');
37687 this.addProperty(
'anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37688 this.addOutput(
'out',
'vector2');
37689 this.title =
'open_pbr_anisotropy_vector2';
37690 this.desc =
"MaterialX:mtlx/pbr/open_pbr_anisotropy";
37691 this.onNodeCreated =
function() {
37694 this.onRemoved =
function() {
37697 this.onPropertyChanged =
function(name, value, prev_value) {
37698 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37700 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37701 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37703 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37704 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37706 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37707 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37709 this.bgcolor =
'#111';
37710 this.color =
'#222';
37711 this.shape = LiteGraph.ROUND_SHAPE;
37712 this.boxcolor =
'#265';
37725 this.nodedef_icon =
'./Icons/gltf_logo.webp';
37727 this.nodedef_type =
'surfaceshader';
37729 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_pbr.html';
37730 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_pbr_surfaceshader_out_genglsl.png';
37731 this.nodedef_group =
'pbr';
37732 this.addInput(
'base_color',
'color3');
37733 this.addProperty(
'base_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Base Color",
"uimin":
"0, 0, 0",
"uimax":
"1, 1, 1",
"uifolder":
"Base",
"defaultgeomprop":
""});
37734 this.addInput(
'metallic',
'float');
37735 this.addProperty(
'metallic', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Metallic",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Base",
"defaultgeomprop":
""});
37736 this.addInput(
'roughness',
'float');
37737 this.addProperty(
'roughness', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Roughness",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Base",
"defaultgeomprop":
""});
37738 this.addInput(
'normal',
'vector3');
37739 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"Base",
"defaultgeomprop":
"Nworld"});
37740 this.addInput(
'tangent',
'vector3');
37741 this.addProperty(
'tangent', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Tangent",
"uimin":
null,
"uimax":
null,
"uifolder":
"Base",
"defaultgeomprop":
"Tworld"});
37742 this.addInput(
'occlusion',
'float');
37743 this.addProperty(
'occlusion', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Occlusion",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Base",
"defaultgeomprop":
""});
37744 this.addInput(
'transmission',
'float');
37745 this.addProperty(
'transmission', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Base",
"defaultgeomprop":
""});
37746 this.addInput(
'specular',
'float');
37747 this.addProperty(
'specular', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Base",
"defaultgeomprop":
""});
37748 this.addInput(
'specular_color',
'color3');
37749 this.addProperty(
'specular_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Color",
"uimin":
"0, 0, 0",
"uimax":
"1, 1, 1",
"uifolder":
"Base",
"defaultgeomprop":
""});
37750 this.addInput(
'ior',
'float');
37751 this.addProperty(
'ior', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Index of Refraction",
"uimin":
"1",
"uimax":
"3",
"uifolder":
"Base",
"defaultgeomprop":
""});
37752 this.addInput(
'alpha',
'float');
37753 this.addProperty(
'alpha', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Alpha",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Alpha",
"defaultgeomprop":
""});
37754 this.addInput(
'alpha_mode',
'integer');
37755 this.addProperty(
'alpha_mode', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Alpha Mode",
"uimin":
null,
"uimax":
null,
"uifolder":
"Alpha",
"defaultgeomprop":
"",
"enum":[
"OPAQUE",
" MASK",
" BLEND"],
"enumvalues":[
"0",
" 1",
" 2"]});
37756 this.addInput(
'alpha_cutoff',
'float');
37757 this.addProperty(
'alpha_cutoff', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Alpha Cutoff",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Alpha",
"defaultgeomprop":
""});
37758 this.addInput(
'iridescence',
'float');
37759 this.addProperty(
'iridescence', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Iridescence",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Iridescence",
"defaultgeomprop":
""});
37760 this.addInput(
'iridescence_ior',
'float');
37761 this.addProperty(
'iridescence_ior', 1.3,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Iridescence Index of Refraction",
"uimin":
"1",
"uimax":
"3",
"uifolder":
"Iridescence",
"defaultgeomprop":
""});
37762 this.addInput(
'iridescence_thickness',
'float');
37763 this.addProperty(
'iridescence_thickness', 100,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Iridescence Thickness",
"uimin":
"100",
"uimax":
"400",
"uifolder":
"Iridescence",
"defaultgeomprop":
""});
37764 this.addInput(
'sheen_color',
'color3');
37765 this.addProperty(
'sheen_color', [0, 0, 0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Sheen Color",
"uimin":
"0, 0, 0",
"uimax":
"1, 1, 1",
"uifolder":
"Sheen",
"defaultgeomprop":
""});
37766 this.addInput(
'sheen_roughness',
'float');
37767 this.addProperty(
'sheen_roughness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Sheen Roughness",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Sheen",
"defaultgeomprop":
""});
37768 this.addInput(
'clearcoat',
'float');
37769 this.addProperty(
'clearcoat', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Clearcoat",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Clearcoat",
"defaultgeomprop":
""});
37770 this.addInput(
'clearcoat_roughness',
'float');
37771 this.addProperty(
'clearcoat_roughness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Clearcoat Roughness",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Clearcoat",
"defaultgeomprop":
""});
37772 this.addInput(
'clearcoat_normal',
'vector3');
37773 this.addProperty(
'clearcoat_normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Clearcoat Normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"Clearcoat",
"defaultgeomprop":
"Nworld"});
37774 this.addInput(
'emissive',
'color3');
37775 this.addProperty(
'emissive', [0, 0, 0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Emissive",
"uimin":
"0, 0, 0",
"uimax":
"1, 1, 1",
"uifolder":
"Emission",
"defaultgeomprop":
""});
37776 this.addInput(
'emissive_strength',
'float');
37777 this.addProperty(
'emissive_strength', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Emissive Strength",
"uimin":
"0",
"uimax":
null,
"uifolder":
"Emission",
"defaultgeomprop":
""});
37778 this.addInput(
'thickness',
'float');
37779 this.addProperty(
'thickness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Thickness",
"uimin":
"0",
"uimax":
null,
"uifolder":
"Volume",
"defaultgeomprop":
""});
37780 this.addInput(
'attenuation_distance',
'float');
37781 this.addProperty(
'attenuation_distance', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Attenuation Distance",
"uimin":
"0",
"uimax":
null,
"uifolder":
"Volume",
"defaultgeomprop":
""});
37782 this.addInput(
'attenuation_color',
'color3');
37783 this.addProperty(
'attenuation_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Attenuation Color",
"uimin":
"0, 0, 0",
"uimax":
"1, 1, 1",
"uifolder":
"Volume",
"defaultgeomprop":
""});
37784 this.addOutput(
'out',
'surfaceshader');
37785 this.title =
'gltf_pbr_surfaceshader';
37786 this.desc =
"MaterialX:mtlx/pbr/gltf_pbr_surfaceshader";
37787 this.onNodeCreated =
function() {
37790 this.onRemoved =
function() {
37793 this.onPropertyChanged =
function(name, value, prev_value) {
37794 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37796 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37797 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37799 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37800 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37802 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37803 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37805 this.bgcolor =
'#111';
37806 this.color =
'#232';
37807 this.shape = LiteGraph.ROUND_SHAPE;
37820 this.nodedef_icon =
'./Icons/gltf_logo.webp';
37822 this.nodedef_type =
'multioutput';
37824 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_colorimage.html';
37825 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_colorimage_outcolor_genglsl.png';
37826 this.nodedef_group =
'texture2d';
37827 this.addInput(
'file',
'filename');
37828 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
""});
37829 this.addInput(
'default',
'color4');
37830 this.addProperty(
'default', [0, 0, 0, 0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
""});
37831 this.addInput(
'texcoord',
'vector2');
37832 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
"UV0"});
37833 this.addInput(
'pivot',
'vector2');
37834 this.addProperty(
'pivot', [0, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
""});
37835 this.addInput(
'scale',
'vector2');
37836 this.addProperty(
'scale', [1, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
""});
37837 this.addInput(
'rotate',
'float');
37838 this.addProperty(
'rotate', 0,
'float',{
"colorspace":
"",
"unit":
"degree",
"unittype":
"angle",
"uiname":
"",
"uimin":
"0",
"uimax":
"360",
"uifolder":
"Image",
"defaultgeomprop":
""});
37839 this.addInput(
'offset',
'vector2');
37840 this.addProperty(
'offset', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
""});
37841 this.addInput(
'operationorder',
'integer');
37842 this.addProperty(
'operationorder', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
""});
37843 this.addInput(
'uaddressmode',
'string');
37844 this.addProperty(
'uaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
37845 this.addInput(
'vaddressmode',
'string');
37846 this.addProperty(
'vaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
37847 this.addInput(
'filtertype',
'string');
37848 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
37849 this.addInput(
'color',
'color4');
37850 this.addProperty(
'color', [1, 1, 1, 1],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Color",
"defaultgeomprop":
""});
37851 this.addInput(
'geomcolor',
'color4');
37852 this.addProperty(
'geomcolor', [1, 1, 1, 1],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Geometry Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"Color",
"defaultgeomprop":
""});
37853 this.addOutput(
'outcolor',
'color3');
37854 this.addOutput(
'outa',
'float');
37855 this.title =
'gltf_colorimage_multioutput';
37856 this.desc =
"MaterialX:mtlx/texture2d/gltf_colorimage";
37857 this.onNodeCreated =
function() {
37860 this.onRemoved =
function() {
37863 this.onPropertyChanged =
function(name, value, prev_value) {
37864 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37866 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37867 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37869 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37870 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37872 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37873 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37875 this.bgcolor =
'#111';
37876 this.color =
'#222';
37877 this.shape = LiteGraph.ROUND_SHAPE;
37890 this.nodedef_icon =
'./Icons/gltf_logo.webp';
37891 this.
nodedef_name =
'ND_gltf_image_color3_color3_1_0';
37892 this.nodedef_type =
'color3';
37894 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_image.html';
37895 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_image_color3_color3_1_0_out_genglsl.png';
37896 this.nodedef_group =
'texture2d';
37897 this.addInput(
'file',
'filename');
37898 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"none",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37899 this.addInput(
'factor',
'color3');
37900 this.addProperty(
'factor', [1,1,1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37901 this.addInput(
'default',
'color3');
37902 this.addProperty(
'default', [0, 0, 0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37903 this.addInput(
'texcoord',
'vector2');
37904 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
37905 this.addInput(
'pivot',
'vector2');
37906 this.addProperty(
'pivot', [0, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37907 this.addInput(
'scale',
'vector2');
37908 this.addProperty(
'scale', [1, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37909 this.addInput(
'rotate',
'float');
37910 this.addProperty(
'rotate', 0,
'float',{
"colorspace":
"",
"unit":
"degree",
"unittype":
"angle",
"uiname":
"",
"uimin":
"0",
"uimax":
"360",
"uifolder":
"",
"defaultgeomprop":
""});
37911 this.addInput(
'offset',
'vector2');
37912 this.addProperty(
'offset', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37913 this.addInput(
'operationorder',
'integer');
37914 this.addProperty(
'operationorder', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37915 this.addInput(
'uaddressmode',
'string');
37916 this.addProperty(
'uaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
37917 this.addInput(
'vaddressmode',
'string');
37918 this.addProperty(
'vaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
37919 this.addInput(
'filtertype',
'string');
37920 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
37921 this.addOutput(
'out',
'color3');
37922 this.title =
'gltf_image_color3';
37923 this.desc =
"MaterialX:mtlx/texture2d/gltf_image_color3_color3_1_0";
37924 this.onNodeCreated =
function() {
37927 this.onRemoved =
function() {
37930 this.onPropertyChanged =
function(name, value, prev_value) {
37931 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
37933 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
37934 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
37936 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
37937 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
37939 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
37940 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
37942 this.bgcolor =
'#111';
37943 this.color =
'#222';
37944 this.shape = LiteGraph.ROUND_SHAPE;
37945 this.boxcolor =
'#37A';
37958 this.nodedef_icon =
'./Icons/gltf_logo.webp';
37959 this.
nodedef_name =
'ND_gltf_image_color4_color4_1_0';
37960 this.nodedef_type =
'color4';
37962 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_image.html';
37963 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_image_color4_color4_1_0_out_genglsl.png';
37964 this.nodedef_group =
'texture2d';
37965 this.addInput(
'file',
'filename');
37966 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"none",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37967 this.addInput(
'factor',
'color4');
37968 this.addProperty(
'factor', [1,1,1,1],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37969 this.addInput(
'default',
'color4');
37970 this.addProperty(
'default', [0, 0, 0, 0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37971 this.addInput(
'texcoord',
'vector2');
37972 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
37973 this.addInput(
'pivot',
'vector2');
37974 this.addProperty(
'pivot', [0, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37975 this.addInput(
'scale',
'vector2');
37976 this.addProperty(
'scale', [1, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37977 this.addInput(
'rotate',
'float');
37978 this.addProperty(
'rotate', 0,
'float',{
"colorspace":
"",
"unit":
"degree",
"unittype":
"angle",
"uiname":
"",
"uimin":
"0",
"uimax":
"360",
"uifolder":
"",
"defaultgeomprop":
""});
37979 this.addInput(
'offset',
'vector2');
37980 this.addProperty(
'offset', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37981 this.addInput(
'operationorder',
'integer');
37982 this.addProperty(
'operationorder', 1,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
37983 this.addInput(
'uaddressmode',
'string');
37984 this.addProperty(
'uaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
37985 this.addInput(
'vaddressmode',
'string');
37986 this.addProperty(
'vaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
37987 this.addInput(
'filtertype',
'string');
37988 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
37989 this.addOutput(
'out',
'color4');
37990 this.title =
'gltf_image_color4';
37991 this.desc =
"MaterialX:mtlx/texture2d/gltf_image_color4_color4_1_0";
37992 this.onNodeCreated =
function() {
37995 this.onRemoved =
function() {
37998 this.onPropertyChanged =
function(name, value, prev_value) {
37999 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38001 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38002 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38004 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38005 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38007 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38008 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38010 this.bgcolor =
'#111';
38011 this.color =
'#222';
38012 this.shape = LiteGraph.ROUND_SHAPE;
38013 this.boxcolor =
'#69A';
38026 this.nodedef_icon =
'./Icons/gltf_logo.webp';
38028 this.nodedef_type =
'float';
38030 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_image.html';
38031 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_image_float_float_1_0_out_genglsl.png';
38032 this.nodedef_group =
'texture2d';
38033 this.addInput(
'file',
'filename');
38034 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38035 this.addInput(
'factor',
'float');
38036 this.addProperty(
'factor', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38037 this.addInput(
'default',
'float');
38038 this.addProperty(
'default', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38039 this.addInput(
'texcoord',
'vector2');
38040 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
38041 this.addInput(
'pivot',
'vector2');
38042 this.addProperty(
'pivot', [0, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38043 this.addInput(
'scale',
'vector2');
38044 this.addProperty(
'scale', [1, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38045 this.addInput(
'rotate',
'float');
38046 this.addProperty(
'rotate', 0,
'float',{
"colorspace":
"",
"unit":
"degree",
"unittype":
"angle",
"uiname":
"",
"uimin":
"0",
"uimax":
"360",
"uifolder":
"",
"defaultgeomprop":
""});
38047 this.addInput(
'offset',
'vector2');
38048 this.addProperty(
'offset', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38049 this.addInput(
'operationorder',
'integer');
38050 this.addProperty(
'operationorder', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38051 this.addInput(
'uaddressmode',
'string');
38052 this.addProperty(
'uaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
38053 this.addInput(
'vaddressmode',
'string');
38054 this.addProperty(
'vaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
38055 this.addInput(
'filtertype',
'string');
38056 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
38057 this.addOutput(
'out',
'float');
38058 this.title =
'gltf_image_float';
38059 this.desc =
"MaterialX:mtlx/texture2d/gltf_image_float_float_1_0";
38060 this.onNodeCreated =
function() {
38063 this.onRemoved =
function() {
38066 this.onPropertyChanged =
function(name, value, prev_value) {
38067 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38069 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38070 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38072 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38073 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38075 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38076 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38078 this.bgcolor =
'#111';
38079 this.color =
'#222';
38080 this.shape = LiteGraph.ROUND_SHAPE;
38081 this.boxcolor =
'#161';
38094 this.nodedef_icon =
'./Icons/gltf_logo.webp';
38095 this.
nodedef_name =
'ND_gltf_image_vector3_vector3_1_0';
38096 this.nodedef_type =
'vector3';
38098 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_image.html';
38099 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_image_vector3_vector3_1_0_out_genglsl.png';
38100 this.nodedef_group =
'texture2d';
38101 this.addInput(
'file',
'filename');
38102 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38103 this.addInput(
'default',
'vector3');
38104 this.addProperty(
'default', [0, 0, 0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38105 this.addInput(
'texcoord',
'vector2');
38106 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
38107 this.addInput(
'pivot',
'vector2');
38108 this.addProperty(
'pivot', [0, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38109 this.addInput(
'scale',
'vector2');
38110 this.addProperty(
'scale', [1, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38111 this.addInput(
'rotate',
'float');
38112 this.addProperty(
'rotate', 0,
'float',{
"colorspace":
"",
"unit":
"degree",
"unittype":
"angle",
"uiname":
"",
"uimin":
"0",
"uimax":
"360",
"uifolder":
"",
"defaultgeomprop":
""});
38113 this.addInput(
'offset',
'vector2');
38114 this.addProperty(
'offset', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38115 this.addInput(
'operationorder',
'integer');
38116 this.addProperty(
'operationorder', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38117 this.addInput(
'uaddressmode',
'string');
38118 this.addProperty(
'uaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
38119 this.addInput(
'vaddressmode',
'string');
38120 this.addProperty(
'vaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
38121 this.addInput(
'filtertype',
'string');
38122 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
38123 this.addOutput(
'out',
'vector3');
38124 this.title =
'gltf_image_vector3';
38125 this.desc =
"MaterialX:mtlx/texture2d/gltf_image_vector3_vector3_1_0";
38126 this.onNodeCreated =
function() {
38129 this.onRemoved =
function() {
38132 this.onPropertyChanged =
function(name, value, prev_value) {
38133 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38135 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38136 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38138 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38139 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38141 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38142 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38144 this.bgcolor =
'#111';
38145 this.color =
'#222';
38146 this.shape = LiteGraph.ROUND_SHAPE;
38147 this.boxcolor =
'#465';
38160 this.nodedef_icon =
'./Icons/gltf_logo.webp';
38162 this.nodedef_type =
'vector3';
38164 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_normalmap.html';
38165 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_normalmap_vector3_1_0_out_genglsl.png';
38166 this.nodedef_group =
'texture2d';
38167 this.addInput(
'file',
'filename');
38168 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38169 this.addInput(
'default',
'vector3');
38170 this.addProperty(
'default', [0.5, 0.5, 1],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38171 this.addInput(
'texcoord',
'vector2');
38172 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
38173 this.addInput(
'pivot',
'vector2');
38174 this.addProperty(
'pivot', [0, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38175 this.addInput(
'scale',
'vector2');
38176 this.addProperty(
'scale', [1, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38177 this.addInput(
'rotate',
'float');
38178 this.addProperty(
'rotate', 0,
'float',{
"colorspace":
"",
"unit":
"degree",
"unittype":
"angle",
"uiname":
"",
"uimin":
"0",
"uimax":
"360",
"uifolder":
"",
"defaultgeomprop":
""});
38179 this.addInput(
'offset',
'vector2');
38180 this.addProperty(
'offset', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38181 this.addInput(
'operationorder',
'integer');
38182 this.addProperty(
'operationorder', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38183 this.addInput(
'uaddressmode',
'string');
38184 this.addProperty(
'uaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
38185 this.addInput(
'vaddressmode',
'string');
38186 this.addProperty(
'vaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
38187 this.addInput(
'filtertype',
'string');
38188 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
38189 this.addOutput(
'out',
'vector3');
38190 this.title =
'gltf_normalmap_vector3';
38191 this.desc =
"MaterialX:mtlx/texture2d/gltf_normalmap_vector3_1_0";
38192 this.onNodeCreated =
function() {
38195 this.onRemoved =
function() {
38198 this.onPropertyChanged =
function(name, value, prev_value) {
38199 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38201 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38202 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38204 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38205 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38207 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38208 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38210 this.bgcolor =
'#111';
38211 this.color =
'#222';
38212 this.shape = LiteGraph.ROUND_SHAPE;
38213 this.boxcolor =
'#465';
38226 this.nodedef_icon =
'./Icons/gltf_logo.webp';
38227 this.
nodedef_name =
'ND_gltf_iridescence_thickness_float_1_0';
38228 this.nodedef_type =
'float';
38230 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/gltf_iridescence_thickness.html';
38231 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_gltf_iridescence_thickness_float_1_0_out_genglsl.png';
38232 this.nodedef_group =
'texture2d';
38233 this.addInput(
'file',
'filename');
38234 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
""});
38235 this.addInput(
'default',
'vector3');
38236 this.addProperty(
'default', [0, 0, 0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
""});
38237 this.addInput(
'texcoord',
'vector2');
38238 this.addProperty(
'texcoord', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
"UV0"});
38239 this.addInput(
'pivot',
'vector2');
38240 this.addProperty(
'pivot', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
""});
38241 this.addInput(
'scale',
'vector2');
38242 this.addProperty(
'scale', [1, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
""});
38243 this.addInput(
'rotate',
'float');
38244 this.addProperty(
'rotate', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
""});
38245 this.addInput(
'offset',
'vector2');
38246 this.addProperty(
'offset', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
""});
38247 this.addInput(
'uaddressmode',
'string');
38248 this.addProperty(
'uaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
38249 this.addInput(
'vaddressmode',
'string');
38250 this.addProperty(
'vaddressmode',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
"",
"enum":[
"constant",
"clamp",
"periodic",
"mirror"]});
38251 this.addInput(
'filtertype',
'string');
38252 this.addProperty(
'filtertype',
'linear',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Image",
"defaultgeomprop":
"",
"enum":[
"closest",
"linear",
"cubic"]});
38253 this.addInput(
'thicknessMin',
'float');
38254 this.addProperty(
'thicknessMin', 100,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Thickness",
"defaultgeomprop":
""});
38255 this.addInput(
'thicknessMax',
'float');
38256 this.addProperty(
'thicknessMax', 400,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"Thickness",
"defaultgeomprop":
""});
38257 this.addOutput(
'out',
'float');
38258 this.title =
'gltf_iridescence_thickness_float';
38259 this.desc =
"MaterialX:mtlx/texture2d/gltf_iridescence_thickness_float_1_0";
38260 this.onNodeCreated =
function() {
38263 this.onRemoved =
function() {
38266 this.onPropertyChanged =
function(name, value, prev_value) {
38267 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38269 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38270 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38272 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38273 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38275 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38276 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38278 this.bgcolor =
'#111';
38279 this.color =
'#222';
38280 this.shape = LiteGraph.ROUND_SHAPE;
38281 this.boxcolor =
'#161';
38294 this.nodedef_icon =
'./Icons/openusd_logo.webp';
38295 this.
nodedef_name =
'ND_UsdPreviewSurface_surfaceshader';
38296 this.nodedef_type =
'surfaceshader';
38298 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPreviewSurface.html';
38299 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPreviewSurface_surfaceshader_out_genglsl.png';
38300 this.nodedef_group =
'pbr';
38301 this.addInput(
'diffuseColor',
'color3');
38302 this.addProperty(
'diffuseColor', [0.18, 0.18, 0.18],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"",
"defaultgeomprop":
""});
38303 this.addInput(
'emissiveColor',
'color3');
38304 this.addProperty(
'emissiveColor', [0, 0, 0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"",
"defaultgeomprop":
""});
38305 this.addInput(
'useSpecularWorkflow',
'integer');
38306 this.addProperty(
'useSpecularWorkflow', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"",
"defaultgeomprop":
""});
38307 this.addInput(
'specularColor',
'color3');
38308 this.addProperty(
'specularColor', [0, 0, 0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"",
"defaultgeomprop":
""});
38309 this.addInput(
'metallic',
'float');
38310 this.addProperty(
'metallic', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
38311 this.addInput(
'roughness',
'float');
38312 this.addProperty(
'roughness', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
38313 this.addInput(
'clearcoat',
'float');
38314 this.addProperty(
'clearcoat', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
38315 this.addInput(
'clearcoatRoughness',
'float');
38316 this.addProperty(
'clearcoatRoughness', 0.01,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
38317 this.addInput(
'opacity',
'float');
38318 this.addProperty(
'opacity', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
38319 this.addInput(
'opacityThreshold',
'float');
38320 this.addProperty(
'opacityThreshold', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
38321 this.addInput(
'ior',
'float');
38322 this.addProperty(
'ior', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"1.0",
"uimax":
"3.0",
"uifolder":
"",
"defaultgeomprop":
""});
38323 this.addInput(
'normal',
'vector3');
38324 this.addProperty(
'normal', [0, 0, 1],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":[-1,-1,-1],
"uimax":[1,1,1],
"uifolder":
"",
"defaultgeomprop":
""});
38325 this.addInput(
'displacement',
'float');
38326 this.addProperty(
'displacement', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38327 this.addInput(
'occlusion',
'float');
38328 this.addProperty(
'occlusion', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
38329 this.addOutput(
'out',
'surfaceshader');
38330 this.title =
'UsdPreviewSurface_surfaceshader';
38331 this.desc =
"MaterialX:mtlx/pbr/UsdPreviewSurface_surfaceshader";
38332 this.onNodeCreated =
function() {
38335 this.onRemoved =
function() {
38338 this.onPropertyChanged =
function(name, value, prev_value) {
38339 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38341 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38342 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38344 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38345 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38347 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38348 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38350 this.bgcolor =
'#111';
38351 this.color =
'#232';
38352 this.shape = LiteGraph.ROUND_SHAPE;
38365 this.nodedef_icon =
'./Icons/openusd_logo.webp';
38367 this.nodedef_type =
'multioutput';
38369 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdUVTexture.html';
38370 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdUVTexture_r_genglsl.png';
38371 this.nodedef_group =
'texture2d';
38372 this.addInput(
'file',
'filename');
38373 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38374 this.addInput(
'st',
'vector2');
38375 this.addProperty(
'st', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
38376 this.addInput(
'wrapS',
'string');
38377 this.addProperty(
'wrapS',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"black",
"clamp",
"periodic",
"mirror"]});
38378 this.addInput(
'wrapT',
'string');
38379 this.addProperty(
'wrapT',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"black",
"clamp",
"periodic",
"mirror"]});
38380 this.addInput(
'fallback',
'color4');
38381 this.addProperty(
'fallback', [0, 0, 0, 1],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38382 this.addInput(
'scale',
'color4');
38383 this.addProperty(
'scale', [1, 1, 1, 1],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38384 this.addInput(
'bias',
'color4');
38385 this.addProperty(
'bias', [0, 0, 0, 0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38386 this.addOutput(
'r',
'float');
38387 this.addOutput(
'g',
'float');
38388 this.addOutput(
'b',
'float');
38389 this.addOutput(
'a',
'float');
38390 this.addOutput(
'rgb',
'color3');
38391 this.addOutput(
'rgba',
'color4');
38392 this.title =
'UsdUVTexture_multioutput';
38393 this.desc =
"MaterialX:mtlx/texture2d/UsdUVTexture";
38394 this.onNodeCreated =
function() {
38397 this.onRemoved =
function() {
38400 this.onPropertyChanged =
function(name, value, prev_value) {
38401 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38403 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38404 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38406 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38407 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38409 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38410 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38412 this.bgcolor =
'#111';
38413 this.color =
'#222';
38414 this.shape = LiteGraph.ROUND_SHAPE;
38427 this.nodedef_icon =
'./Icons/openusd_logo.webp';
38429 this.nodedef_type =
'multioutput';
38431 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdUVTexture.html';
38432 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdUVTexture_23_r_genglsl.png';
38433 this.nodedef_group =
'texture2d';
38434 this.addInput(
'file',
'filename');
38435 this.addProperty(
'file',
'',
'filename',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38436 this.addInput(
'st',
'vector2');
38437 this.addProperty(
'st', [0.0, 0.0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"UV0"});
38438 this.addInput(
'wrapS',
'string');
38439 this.addProperty(
'wrapS',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"black",
"clamp",
"periodic",
"mirror"]});
38440 this.addInput(
'wrapT',
'string');
38441 this.addProperty(
'wrapT',
'periodic',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"",
"enum":[
"black",
"clamp",
"periodic",
"mirror"]});
38442 this.addInput(
'fallback',
'color4');
38443 this.addProperty(
'fallback', [0, 0, 0, 1],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38444 this.addInput(
'scale',
'color4');
38445 this.addProperty(
'scale', [1, 1, 1, 1],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38446 this.addInput(
'bias',
'color4');
38447 this.addProperty(
'bias', [0, 0, 0, 0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38448 this.addOutput(
'r',
'float');
38449 this.addOutput(
'g',
'float');
38450 this.addOutput(
'b',
'float');
38451 this.addOutput(
'a',
'float');
38452 this.addOutput(
'rgb',
'color3');
38453 this.title =
'UsdUVTexture_multioutput';
38454 this.desc =
"MaterialX:mtlx/texture2d/UsdUVTexture_23";
38455 this.onNodeCreated =
function() {
38458 this.onRemoved =
function() {
38461 this.onPropertyChanged =
function(name, value, prev_value) {
38462 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38464 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38465 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38467 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38468 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38470 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38471 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38473 this.bgcolor =
'#111';
38474 this.color =
'#222';
38475 this.shape = LiteGraph.ROUND_SHAPE;
38488 this.nodedef_icon =
'./Icons/openusd_logo.webp';
38490 this.nodedef_type =
'integer';
38492 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPrimvarReader.html';
38493 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_integer_out_genglsl.png';
38494 this.nodedef_group =
'geometric';
38495 this.addInput(
'varname',
'string');
38496 this.addProperty(
'varname',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38497 this.addInput(
'fallback',
'integer');
38498 this.addProperty(
'fallback', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38499 this.addOutput(
'out',
'integer');
38500 this.title =
'UsdPrimvarReader_integer';
38501 this.desc =
"MaterialX:mtlx/geometric/UsdPrimvarReader_integer";
38502 this.onNodeCreated =
function() {
38505 this.onRemoved =
function() {
38508 this.onPropertyChanged =
function(name, value, prev_value) {
38509 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38511 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38512 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38514 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38515 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38517 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38518 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38520 this.bgcolor =
'#111';
38521 this.color =
'#222';
38522 this.shape = LiteGraph.ROUND_SHAPE;
38523 this.boxcolor =
'#A32';
38536 this.nodedef_icon =
'./Icons/openusd_logo.webp';
38538 this.nodedef_type =
'boolean';
38540 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPrimvarReader.html';
38541 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_boolean_out_genglsl.png';
38542 this.nodedef_group =
'geometric';
38543 this.addInput(
'varname',
'string');
38544 this.addProperty(
'varname',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38545 this.addInput(
'fallback',
'boolean');
38546 this.addProperty(
'fallback',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38547 this.addOutput(
'out',
'boolean');
38548 this.title =
'UsdPrimvarReader_boolean';
38549 this.desc =
"MaterialX:mtlx/geometric/UsdPrimvarReader_boolean";
38550 this.onNodeCreated =
function() {
38553 this.onRemoved =
function() {
38556 this.onPropertyChanged =
function(name, value, prev_value) {
38557 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38559 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38560 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38562 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38563 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38565 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38566 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38568 this.bgcolor =
'#111';
38569 this.color =
'#222';
38570 this.shape = LiteGraph.ROUND_SHAPE;
38571 this.boxcolor =
'#060';
38584 this.nodedef_icon =
'./Icons/openusd_logo.webp';
38586 this.nodedef_type =
'string';
38588 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPrimvarReader.html';
38589 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_string_out_genglsl.png';
38590 this.nodedef_group =
'geometric';
38591 this.addInput(
'varname',
'string');
38592 this.addProperty(
'varname',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38593 this.addInput(
'fallback',
'string');
38594 this.addProperty(
'fallback',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38595 this.addOutput(
'out',
'string');
38596 this.title =
'UsdPrimvarReader_string';
38597 this.desc =
"MaterialX:mtlx/geometric/UsdPrimvarReader_string";
38598 this.onNodeCreated =
function() {
38601 this.onRemoved =
function() {
38604 this.onPropertyChanged =
function(name, value, prev_value) {
38605 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38607 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38608 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38610 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38611 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38613 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38614 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38616 this.bgcolor =
'#111';
38617 this.color =
'#222';
38618 this.shape = LiteGraph.ROUND_SHAPE;
38619 this.boxcolor =
'#395';
38632 this.nodedef_icon =
'./Icons/openusd_logo.webp';
38634 this.nodedef_type =
'float';
38636 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPrimvarReader.html';
38637 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_float_out_genglsl.png';
38638 this.nodedef_group =
'geometric';
38639 this.addInput(
'varname',
'string');
38640 this.addProperty(
'varname',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38641 this.addInput(
'fallback',
'float');
38642 this.addProperty(
'fallback', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38643 this.addOutput(
'out',
'float');
38644 this.title =
'UsdPrimvarReader_float';
38645 this.desc =
"MaterialX:mtlx/geometric/UsdPrimvarReader_float";
38646 this.onNodeCreated =
function() {
38649 this.onRemoved =
function() {
38652 this.onPropertyChanged =
function(name, value, prev_value) {
38653 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38655 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38656 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38658 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38659 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38661 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38662 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38664 this.bgcolor =
'#111';
38665 this.color =
'#222';
38666 this.shape = LiteGraph.ROUND_SHAPE;
38667 this.boxcolor =
'#161';
38680 this.nodedef_icon =
'./Icons/openusd_logo.webp';
38682 this.nodedef_type =
'vector2';
38684 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPrimvarReader.html';
38685 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector2_out_genglsl.png';
38686 this.nodedef_group =
'geometric';
38687 this.addInput(
'varname',
'string');
38688 this.addProperty(
'varname',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38689 this.addInput(
'fallback',
'vector2');
38690 this.addProperty(
'fallback', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38691 this.addOutput(
'out',
'vector2');
38692 this.title =
'UsdPrimvarReader_vector2';
38693 this.desc =
"MaterialX:mtlx/geometric/UsdPrimvarReader_vector2";
38694 this.onNodeCreated =
function() {
38697 this.onRemoved =
function() {
38700 this.onPropertyChanged =
function(name, value, prev_value) {
38701 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38703 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38704 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38706 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38707 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38709 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38710 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38712 this.bgcolor =
'#111';
38713 this.color =
'#222';
38714 this.shape = LiteGraph.ROUND_SHAPE;
38715 this.boxcolor =
'#265';
38728 this.nodedef_icon =
'./Icons/openusd_logo.webp';
38730 this.nodedef_type =
'vector3';
38732 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPrimvarReader.html';
38733 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector3_out_genglsl.png';
38734 this.nodedef_group =
'geometric';
38735 this.addInput(
'varname',
'string');
38736 this.addProperty(
'varname',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38737 this.addInput(
'fallback',
'vector3');
38738 this.addProperty(
'fallback', [0, 0, 0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38739 this.addOutput(
'out',
'vector3');
38740 this.title =
'UsdPrimvarReader_vector3';
38741 this.desc =
"MaterialX:mtlx/geometric/UsdPrimvarReader_vector3";
38742 this.onNodeCreated =
function() {
38745 this.onRemoved =
function() {
38748 this.onPropertyChanged =
function(name, value, prev_value) {
38749 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38751 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38752 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38754 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38755 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38757 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38758 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38760 this.bgcolor =
'#111';
38761 this.color =
'#222';
38762 this.shape = LiteGraph.ROUND_SHAPE;
38763 this.boxcolor =
'#465';
38776 this.nodedef_icon =
'./Icons/openusd_logo.webp';
38778 this.nodedef_type =
'vector4';
38780 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdPrimvarReader.html';
38781 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdPrimvarReader_vector4_out_genglsl.png';
38782 this.nodedef_group =
'geometric';
38783 this.addInput(
'varname',
'string');
38784 this.addProperty(
'varname',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38785 this.addInput(
'fallback',
'vector4');
38786 this.addProperty(
'fallback', [0, 0, 0, 0],
'vector4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38787 this.addOutput(
'out',
'vector4');
38788 this.title =
'UsdPrimvarReader_vector4';
38789 this.desc =
"MaterialX:mtlx/geometric/UsdPrimvarReader_vector4";
38790 this.onNodeCreated =
function() {
38793 this.onRemoved =
function() {
38796 this.onPropertyChanged =
function(name, value, prev_value) {
38797 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38799 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38800 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38802 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38803 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38805 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38806 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38808 this.bgcolor =
'#111';
38809 this.color =
'#222';
38810 this.shape = LiteGraph.ROUND_SHAPE;
38811 this.boxcolor =
'#275';
38824 this.nodedef_icon =
'./Icons/openusd_logo.webp';
38826 this.nodedef_type =
'vector2';
38828 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdTransform2d.html';
38829 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_UsdTransform2d_out_genglsl.png';
38830 this.nodedef_group =
'math';
38831 this.addInput(
'in',
'vector2');
38832 this.addProperty(
'in', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38833 this.addInput(
'rotation',
'float');
38834 this.addProperty(
'rotation', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38835 this.addInput(
'scale',
'vector2');
38836 this.addProperty(
'scale', [1, 1],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38837 this.addInput(
'translation',
'vector2');
38838 this.addProperty(
'translation', [0, 0],
'vector2',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38839 this.addOutput(
'out',
'vector2');
38840 this.title =
'UsdTransform2d_vector2';
38841 this.desc =
"MaterialX:mtlx/math/UsdTransform2d";
38842 this.onNodeCreated =
function() {
38845 this.onRemoved =
function() {
38848 this.onPropertyChanged =
function(name, value, prev_value) {
38849 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38851 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38852 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38854 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38855 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38857 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38858 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38860 this.bgcolor =
'#111';
38861 this.color =
'#222';
38862 this.shape = LiteGraph.ROUND_SHAPE;
38863 this.boxcolor =
'#265';
38867mtlx_math_UsdTransform2d.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/UsdTransform2d.html';
38876 this.nodedef_icon =
'';
38878 this.nodedef_type =
'surfaceshader';
38880 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/disney_brdf_2012.html';
38881 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_disney_brdf_2012_surface_out_genglsl.png';
38882 this.nodedef_group =
'pbr';
38883 this.addInput(
'baseColor',
'color3');
38884 this.addProperty(
'baseColor', [0.16, 0.16, 0.16],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38885 this.addInput(
'metallic',
'float');
38886 this.addProperty(
'metallic', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38887 this.addInput(
'subsurface',
'float');
38888 this.addProperty(
'subsurface', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38889 this.addInput(
'specular',
'float');
38890 this.addProperty(
'specular', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38891 this.addInput(
'roughness',
'float');
38892 this.addProperty(
'roughness', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38893 this.addInput(
'specularTint',
'float');
38894 this.addProperty(
'specularTint', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38895 this.addInput(
'anisotropic',
'float');
38896 this.addProperty(
'anisotropic', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38897 this.addInput(
'sheen',
'float');
38898 this.addProperty(
'sheen', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38899 this.addInput(
'sheenTint',
'float');
38900 this.addProperty(
'sheenTint', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38901 this.addInput(
'clearcoat',
'float');
38902 this.addProperty(
'clearcoat', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38903 this.addInput(
'clearcoatGloss',
'float');
38904 this.addProperty(
'clearcoatGloss', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38905 this.addOutput(
'out',
'surfaceshader');
38906 this.title =
'disney_brdf_2012_surfaceshader';
38907 this.desc =
"MaterialX:mtlx/pbr/disney_brdf_2012_surface";
38908 this.onNodeCreated =
function() {
38911 this.onRemoved =
function() {
38914 this.onPropertyChanged =
function(name, value, prev_value) {
38915 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38917 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38918 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38920 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38921 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38923 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38924 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38926 this.bgcolor =
'#111';
38927 this.color =
'#232';
38928 this.shape = LiteGraph.ROUND_SHAPE;
38941 this.nodedef_icon =
'';
38943 this.nodedef_type =
'surfaceshader';
38945 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/disney_bsdf_2015.html';
38946 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_disney_bsdf_2015_surface_out_genglsl.png';
38947 this.nodedef_group =
'pbr';
38948 this.addInput(
'baseColor',
'color3');
38949 this.addProperty(
'baseColor', [0.16, 0.16, 0.16],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38950 this.addInput(
'metallic',
'float');
38951 this.addProperty(
'metallic', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38952 this.addInput(
'roughness',
'float');
38953 this.addProperty(
'roughness', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38954 this.addInput(
'anisotropic',
'float');
38955 this.addProperty(
'anisotropic', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38956 this.addInput(
'specularTint',
'float');
38957 this.addProperty(
'specularTint', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38958 this.addInput(
'sheen',
'float');
38959 this.addProperty(
'sheen', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38960 this.addInput(
'sheenTint',
'float');
38961 this.addProperty(
'sheenTint', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38962 this.addInput(
'clearcoat',
'float');
38963 this.addProperty(
'clearcoat', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38964 this.addInput(
'clearcoatGloss',
'float');
38965 this.addProperty(
'clearcoatGloss', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38966 this.addInput(
'specTrans',
'float');
38967 this.addProperty(
'specTrans', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38968 this.addInput(
'ior',
'float');
38969 this.addProperty(
'ior', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38970 this.addInput(
'scatterDistance',
'vector3');
38971 this.addProperty(
'scatterDistance', [0, 0, 0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38972 this.addInput(
'flatness',
'float');
38973 this.addProperty(
'flatness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38974 this.addInput(
'diffTrans',
'float');
38975 this.addProperty(
'diffTrans', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38976 this.addInput(
'thin',
'boolean');
38977 this.addProperty(
'thin',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
38978 this.addOutput(
'out',
'surfaceshader');
38979 this.title =
'disney_bsdf_2015_surfaceshader';
38980 this.desc =
"MaterialX:mtlx/pbr/disney_bsdf_2015_surface";
38981 this.onNodeCreated =
function() {
38984 this.onRemoved =
function() {
38987 this.onPropertyChanged =
function(name, value, prev_value) {
38988 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
38990 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
38991 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
38993 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
38994 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
38996 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
38997 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
38999 this.bgcolor =
'#111';
39000 this.color =
'#232';
39001 this.shape = LiteGraph.ROUND_SHAPE;
39014 this.nodedef_icon =
'';
39015 this.
nodedef_name =
'ND_standard_surface_surfaceshader';
39016 this.nodedef_type =
'surfaceshader';
39018 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/standard_surface.html';
39019 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_standard_surface_surfaceshader_out_genglsl.png';
39020 this.nodedef_group =
'pbr';
39021 this.addInput(
'base',
'float');
39022 this.addProperty(
'base', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Base",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Base",
"defaultgeomprop":
""});
39023 this.addInput(
'base_color',
'color3');
39024 this.addProperty(
'base_color', [0.8, 0.8, 0.8],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Base Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Base",
"defaultgeomprop":
""});
39025 this.addInput(
'diffuse_roughness',
'float');
39026 this.addProperty(
'diffuse_roughness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Diffuse Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Base",
"defaultgeomprop":
""});
39027 this.addInput(
'metalness',
'float');
39028 this.addProperty(
'metalness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Metalness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Base",
"defaultgeomprop":
""});
39029 this.addInput(
'specular',
'float');
39030 this.addProperty(
'specular', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Specular",
"defaultgeomprop":
""});
39031 this.addInput(
'specular_color',
'color3');
39032 this.addProperty(
'specular_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Specular",
"defaultgeomprop":
""});
39033 this.addInput(
'specular_roughness',
'float');
39034 this.addProperty(
'specular_roughness', 0.2,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Specular",
"defaultgeomprop":
""});
39035 this.addInput(
'specular_IOR',
'float');
39036 this.addProperty(
'specular_IOR', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Index of Refraction",
"uimin":
"1.0",
"uimax":
"3.0",
"uifolder":
"Specular",
"defaultgeomprop":
""});
39037 this.addInput(
'specular_anisotropy',
'float');
39038 this.addProperty(
'specular_anisotropy', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Anisotropy",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Specular",
"defaultgeomprop":
""});
39039 this.addInput(
'specular_rotation',
'float');
39040 this.addProperty(
'specular_rotation', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Rotation",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Specular",
"defaultgeomprop":
""});
39041 this.addInput(
'transmission',
'float');
39042 this.addProperty(
'transmission', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
39043 this.addInput(
'transmission_color',
'color3');
39044 this.addProperty(
'transmission_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
39045 this.addInput(
'transmission_depth',
'float');
39046 this.addProperty(
'transmission_depth', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Depth",
"uimin":
"0.0",
"uimax":
"100.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
39047 this.addInput(
'transmission_scatter',
'color3');
39048 this.addProperty(
'transmission_scatter', [0, 0, 0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Scatter",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
39049 this.addInput(
'transmission_scatter_anisotropy',
'float');
39050 this.addProperty(
'transmission_scatter_anisotropy', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Anisotropy",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
39051 this.addInput(
'transmission_dispersion',
'float');
39052 this.addProperty(
'transmission_dispersion', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Dispersion",
"uimin":
"0.0",
"uimax":
"100.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
39053 this.addInput(
'transmission_extra_roughness',
'float');
39054 this.addProperty(
'transmission_extra_roughness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
39055 this.addInput(
'subsurface',
'float');
39056 this.addProperty(
'subsurface', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
39057 this.addInput(
'subsurface_color',
'color3');
39058 this.addProperty(
'subsurface_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
39059 this.addInput(
'subsurface_radius',
'color3');
39060 this.addProperty(
'subsurface_radius', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface Radius",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
39061 this.addInput(
'subsurface_scale',
'float');
39062 this.addProperty(
'subsurface_scale', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface Scale",
"uimin":
"0.0",
"uimax":
"10.0",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
39063 this.addInput(
'subsurface_anisotropy',
'float');
39064 this.addProperty(
'subsurface_anisotropy', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface Anisotropy",
"uimin":
"-1.0",
"uimax":
"1.0",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
39065 this.addInput(
'sheen',
'float');
39066 this.addProperty(
'sheen', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Sheen",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Sheen",
"defaultgeomprop":
""});
39067 this.addInput(
'sheen_color',
'color3');
39068 this.addProperty(
'sheen_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Sheen Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Sheen",
"defaultgeomprop":
""});
39069 this.addInput(
'sheen_roughness',
'float');
39070 this.addProperty(
'sheen_roughness', 0.3,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Sheen Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Sheen",
"defaultgeomprop":
""});
39071 this.addInput(
'coat',
'float');
39072 this.addProperty(
'coat', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39073 this.addInput(
'coat_color',
'color3');
39074 this.addProperty(
'coat_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39075 this.addInput(
'coat_roughness',
'float');
39076 this.addProperty(
'coat_roughness', 0.1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39077 this.addInput(
'coat_anisotropy',
'float');
39078 this.addProperty(
'coat_anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Anisotropy",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39079 this.addInput(
'coat_rotation',
'float');
39080 this.addProperty(
'coat_rotation', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Rotation",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39081 this.addInput(
'coat_IOR',
'float');
39082 this.addProperty(
'coat_IOR', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Index of Refraction",
"uimin":
"1.0",
"uimax":
"3.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39083 this.addInput(
'coat_normal',
'vector3');
39084 this.addProperty(
'coat_normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"Coat",
"defaultgeomprop":
"Nworld"});
39085 this.addInput(
'coat_affect_color',
'float');
39086 this.addProperty(
'coat_affect_color', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Affect Color",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39087 this.addInput(
'coat_affect_roughness',
'float');
39088 this.addProperty(
'coat_affect_roughness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Affect Roughness",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39089 this.addInput(
'thin_film_thickness',
'float');
39090 this.addProperty(
'thin_film_thickness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Thin Film Thickness",
"uimin":
"0.0",
"uimax":
"2000.0",
"uifolder":
"Thin Film",
"defaultgeomprop":
""});
39091 this.addInput(
'thin_film_IOR',
'float');
39092 this.addProperty(
'thin_film_IOR', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Thin Film Index of Refraction",
"uimin":
"1.0",
"uimax":
"3.0",
"uifolder":
"Thin Film",
"defaultgeomprop":
""});
39093 this.addInput(
'emission',
'float');
39094 this.addProperty(
'emission', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Emission",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Emission",
"defaultgeomprop":
""});
39095 this.addInput(
'emission_color',
'color3');
39096 this.addProperty(
'emission_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Emission Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Emission",
"defaultgeomprop":
""});
39097 this.addInput(
'opacity',
'color3');
39098 this.addProperty(
'opacity', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Opacity",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Geometry",
"defaultgeomprop":
""});
39099 this.addInput(
'thin_walled',
'boolean');
39100 this.addProperty(
'thin_walled',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Thin Walled",
"uimin":
null,
"uimax":
null,
"uifolder":
"Geometry",
"defaultgeomprop":
""});
39101 this.addInput(
'normal',
'vector3');
39102 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"Geometry",
"defaultgeomprop":
"Nworld"});
39103 this.addInput(
'tangent',
'vector3');
39104 this.addProperty(
'tangent', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Tangent Input",
"uimin":
null,
"uimax":
null,
"uifolder":
"Geometry",
"defaultgeomprop":
"Tworld"});
39105 this.addOutput(
'out',
'surfaceshader');
39106 this.title =
'standard_surface_surfaceshader';
39107 this.desc =
"MaterialX:mtlx/pbr/standard_surface_surfaceshader";
39108 this.onNodeCreated =
function() {
39111 this.onRemoved =
function() {
39114 this.onPropertyChanged =
function(name, value, prev_value) {
39115 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39117 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39118 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39120 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39121 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39123 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39124 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39126 this.bgcolor =
'#111';
39127 this.color =
'#232';
39128 this.shape = LiteGraph.ROUND_SHAPE;
39141 this.nodedef_icon =
'';
39142 this.
nodedef_name =
'ND_standard_surface_surfaceshader_100';
39143 this.nodedef_type =
'surfaceshader';
39145 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/standard_surface.html';
39146 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_standard_surface_surfaceshader_100_out_genglsl.png';
39147 this.nodedef_group =
'pbr';
39148 this.addInput(
'base',
'float');
39149 this.addProperty(
'base', 0.8,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Base",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Base",
"defaultgeomprop":
""});
39150 this.addInput(
'base_color',
'color3');
39151 this.addProperty(
'base_color', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Base Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Base",
"defaultgeomprop":
""});
39152 this.addInput(
'diffuse_roughness',
'float');
39153 this.addProperty(
'diffuse_roughness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Diffuse Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Base",
"defaultgeomprop":
""});
39154 this.addInput(
'metalness',
'float');
39155 this.addProperty(
'metalness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Metalness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Base",
"defaultgeomprop":
""});
39156 this.addInput(
'specular',
'float');
39157 this.addProperty(
'specular', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Specular",
"defaultgeomprop":
""});
39158 this.addInput(
'specular_color',
'color3');
39159 this.addProperty(
'specular_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Specular",
"defaultgeomprop":
""});
39160 this.addInput(
'specular_roughness',
'float');
39161 this.addProperty(
'specular_roughness', 0.2,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Specular",
"defaultgeomprop":
""});
39162 this.addInput(
'specular_IOR',
'float');
39163 this.addProperty(
'specular_IOR', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Index of Refraction",
"uimin":
"1.0",
"uimax":
"3.0",
"uifolder":
"Specular",
"defaultgeomprop":
""});
39164 this.addInput(
'specular_anisotropy',
'float');
39165 this.addProperty(
'specular_anisotropy', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Anisotropy",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Specular",
"defaultgeomprop":
""});
39166 this.addInput(
'specular_rotation',
'float');
39167 this.addProperty(
'specular_rotation', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Specular Rotation",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Specular",
"defaultgeomprop":
""});
39168 this.addInput(
'transmission',
'float');
39169 this.addProperty(
'transmission', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
39170 this.addInput(
'transmission_color',
'color3');
39171 this.addProperty(
'transmission_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
39172 this.addInput(
'transmission_depth',
'float');
39173 this.addProperty(
'transmission_depth', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Depth",
"uimin":
"0.0",
"uimax":
"100.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
39174 this.addInput(
'transmission_scatter',
'color3');
39175 this.addProperty(
'transmission_scatter', [0, 0, 0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Scatter",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
39176 this.addInput(
'transmission_scatter_anisotropy',
'float');
39177 this.addProperty(
'transmission_scatter_anisotropy', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Anisotropy",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
39178 this.addInput(
'transmission_dispersion',
'float');
39179 this.addProperty(
'transmission_dispersion', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Dispersion",
"uimin":
"0.0",
"uimax":
"100.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
39180 this.addInput(
'transmission_extra_roughness',
'float');
39181 this.addProperty(
'transmission_extra_roughness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Transmission",
"defaultgeomprop":
""});
39182 this.addInput(
'subsurface',
'float');
39183 this.addProperty(
'subsurface', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
39184 this.addInput(
'subsurface_color',
'color3');
39185 this.addProperty(
'subsurface_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
39186 this.addInput(
'subsurface_radius',
'color3');
39187 this.addProperty(
'subsurface_radius', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface Radius",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
39188 this.addInput(
'subsurface_scale',
'float');
39189 this.addProperty(
'subsurface_scale', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface Scale",
"uimin":
"0.0",
"uimax":
"10.0",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
39190 this.addInput(
'subsurface_anisotropy',
'float');
39191 this.addProperty(
'subsurface_anisotropy', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subsurface Anisotropy",
"uimin":
"-1.0",
"uimax":
"1.0",
"uifolder":
"Subsurface",
"defaultgeomprop":
""});
39192 this.addInput(
'sheen',
'float');
39193 this.addProperty(
'sheen', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Sheen",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Sheen",
"defaultgeomprop":
""});
39194 this.addInput(
'sheen_color',
'color3');
39195 this.addProperty(
'sheen_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Sheen Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Sheen",
"defaultgeomprop":
""});
39196 this.addInput(
'sheen_roughness',
'float');
39197 this.addProperty(
'sheen_roughness', 0.3,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Sheen Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Sheen",
"defaultgeomprop":
""});
39198 this.addInput(
'coat',
'float');
39199 this.addProperty(
'coat', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39200 this.addInput(
'coat_color',
'color3');
39201 this.addProperty(
'coat_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39202 this.addInput(
'coat_roughness',
'float');
39203 this.addProperty(
'coat_roughness', 0.1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39204 this.addInput(
'coat_anisotropy',
'float');
39205 this.addProperty(
'coat_anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Anisotropy",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39206 this.addInput(
'coat_rotation',
'float');
39207 this.addProperty(
'coat_rotation', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Rotation",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39208 this.addInput(
'coat_IOR',
'float');
39209 this.addProperty(
'coat_IOR', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Index of Refraction",
"uimin":
"1.0",
"uimax":
"3.0",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39210 this.addInput(
'coat_normal',
'vector3');
39211 this.addProperty(
'coat_normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"Coat",
"defaultgeomprop":
"Nworld"});
39212 this.addInput(
'coat_affect_color',
'float');
39213 this.addProperty(
'coat_affect_color', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Affect Color",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39214 this.addInput(
'coat_affect_roughness',
'float');
39215 this.addProperty(
'coat_affect_roughness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Coat Affect Roughness",
"uimin":
"0",
"uimax":
"1",
"uifolder":
"Coat",
"defaultgeomprop":
""});
39216 this.addInput(
'thin_film_thickness',
'float');
39217 this.addProperty(
'thin_film_thickness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Thin Film Thickness",
"uimin":
"0.0",
"uimax":
"2000.0",
"uifolder":
"Thin Film",
"defaultgeomprop":
""});
39218 this.addInput(
'thin_film_IOR',
'float');
39219 this.addProperty(
'thin_film_IOR', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Thin Film Index of Refraction",
"uimin":
"1.0",
"uimax":
"3.0",
"uifolder":
"Thin Film",
"defaultgeomprop":
""});
39220 this.addInput(
'emission',
'float');
39221 this.addProperty(
'emission', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Emission",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Emission",
"defaultgeomprop":
""});
39222 this.addInput(
'emission_color',
'color3');
39223 this.addProperty(
'emission_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Emission Color",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Emission",
"defaultgeomprop":
""});
39224 this.addInput(
'opacity',
'color3');
39225 this.addProperty(
'opacity', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Opacity",
"uimin":
"0,0,0",
"uimax":
"1,1,1",
"uifolder":
"Geometry",
"defaultgeomprop":
""});
39226 this.addInput(
'thin_walled',
'boolean');
39227 this.addProperty(
'thin_walled',
true,
'boolean',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Thin Walled",
"uimin":
null,
"uimax":
null,
"uifolder":
"Geometry",
"defaultgeomprop":
""});
39228 this.addInput(
'normal',
'vector3');
39229 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"Geometry",
"defaultgeomprop":
"Nworld"});
39230 this.addInput(
'tangent',
'vector3');
39231 this.addProperty(
'tangent', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Tangent Input",
"uimin":
null,
"uimax":
null,
"uifolder":
"Geometry",
"defaultgeomprop":
"Tworld"});
39232 this.addOutput(
'out',
'surfaceshader');
39233 this.title =
'standard_surface_surfaceshader';
39234 this.desc =
"MaterialX:mtlx/pbr/standard_surface_surfaceshader_100";
39235 this.onNodeCreated =
function() {
39238 this.onRemoved =
function() {
39241 this.onPropertyChanged =
function(name, value, prev_value) {
39242 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39244 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39245 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39247 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39248 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39250 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39251 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39253 this.bgcolor =
'#111';
39254 this.color =
'#232';
39255 this.shape = LiteGraph.ROUND_SHAPE;
39268 this.nodedef_icon =
'';
39270 this.nodedef_type =
'BSDF';
39272 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaConductor.html';
39273 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_conductor_out_genglsl.png';
39274 this.nodedef_group =
'pbr';
39275 this.addInput(
'tint',
'color3');
39276 this.addProperty(
'tint', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Tint",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39277 this.addInput(
'fresnelMode',
'integer');
39278 this.addProperty(
'fresnelMode', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Fresnel Mode",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
"",
"enum":[
"Scientific",
"Artistic"],
"enumvalues":[
"0",
"1"]});
39279 this.addInput(
'IOR',
'vector3');
39280 this.addProperty(
'IOR', [0.180000007153,0.419999986887,1.37000000477],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"IOR",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39281 this.addInput(
'extinction',
'vector3');
39282 this.addProperty(
'extinction', [3.42000007629,2.34999990463,1.76999998093],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Extinction",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39283 this.addInput(
'reflectivity',
'color3');
39284 this.addProperty(
'reflectivity', [0.9450, 0.7772, 0.3737],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Reflectivity",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39285 this.addInput(
'edgeColor',
'color3');
39286 this.addProperty(
'edgeColor', [0.9979, 0.9813, 0.7523],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Edge Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39287 this.addInput(
'roughness',
'float');
39288 this.addProperty(
'roughness', 0.1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Main",
"defaultgeomprop":
""});
39289 this.addInput(
'normal',
'vector3');
39290 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
"Nworld"});
39291 this.addInput(
'anisotropy',
'float');
39292 this.addProperty(
'anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Anisotropy",
"uimin":
"-1.0",
"uimax":
"1.0",
"uifolder":
"Anisotropy",
"defaultgeomprop":
""});
39293 this.addInput(
'anisotropyDirection',
'vector3');
39294 this.addProperty(
'anisotropyDirection', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Direction",
"uimin":
null,
"uimax":
null,
"uifolder":
"Anisotropy",
"defaultgeomprop":
"Tworld"});
39295 this.addInput(
'anisotropyRotation',
'float');
39296 this.addProperty(
'anisotropyRotation', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Rotation",
"uimin":
null,
"uimax":
null,
"uifolder":
"Anisotropy",
"defaultgeomprop":
""});
39297 this.addOutput(
'out',
'BSDF');
39298 this.title =
'LamaConductor_BSDF';
39299 this.desc =
"MaterialX:mtlx/pbr/lama_conductor";
39300 this.onNodeCreated =
function() {
39303 this.onRemoved =
function() {
39306 this.onPropertyChanged =
function(name, value, prev_value) {
39307 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39309 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39310 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39312 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39313 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39315 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39316 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39318 this.bgcolor =
'#111';
39319 this.color =
'#222';
39320 this.shape = LiteGraph.ROUND_SHAPE;
39324mtlx_pbr_lama_conductor.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaConductor.html';
39333 this.nodedef_icon =
'';
39335 this.nodedef_type =
'BSDF';
39337 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaIridescence.html';
39338 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_iridescence_out_genglsl.png';
39339 this.nodedef_group =
'pbr';
39340 this.addInput(
'roughness',
'float');
39341 this.addProperty(
'roughness', 0.01,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Main",
"defaultgeomprop":
""});
39342 this.addInput(
'anisotropy',
'float');
39343 this.addProperty(
'anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Anisotropy",
"uimin":
"-1.0",
"uimax":
"1.0",
"uifolder":
"Anisotropy",
"defaultgeomprop":
""});
39344 this.addInput(
'relativeFilmThickness',
'float');
39345 this.addProperty(
'relativeFilmThickness', 0.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"relativeFilmThickness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Main",
"defaultgeomprop":
""});
39346 this.addInput(
'minFilmThickness',
'float');
39347 this.addProperty(
'minFilmThickness', 400.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"minFilmThickness",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39348 this.addInput(
'maxFilmThickness',
'float');
39349 this.addProperty(
'maxFilmThickness', 800.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"maxFilmThickness",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39350 this.addInput(
'filmIOR',
'float');
39351 this.addProperty(
'filmIOR', 1.3,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"filmIOR",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39352 this.addOutput(
'out',
'BSDF');
39353 this.title =
'LamaIridescence_BSDF';
39354 this.desc =
"MaterialX:mtlx/pbr/lama_iridescence";
39355 this.onNodeCreated =
function() {
39358 this.onRemoved =
function() {
39361 this.onPropertyChanged =
function(name, value, prev_value) {
39362 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39364 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39365 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39367 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39368 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39370 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39371 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39373 this.bgcolor =
'#111';
39374 this.color =
'#222';
39375 this.shape = LiteGraph.ROUND_SHAPE;
39379mtlx_pbr_lama_iridescence.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaIridescence.html';
39388 this.nodedef_icon =
'';
39390 this.nodedef_type =
'BSDF';
39392 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaDiffuse.html';
39393 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_diffuse_out_genglsl.png';
39394 this.nodedef_group =
'pbr';
39395 this.addInput(
'color',
'color3');
39396 this.addProperty(
'color', [0.18, 0.18, 0.18],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39397 this.addInput(
'roughness',
'float');
39398 this.addProperty(
'roughness', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
39399 this.addInput(
'normal',
'vector3');
39400 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
39401 this.addInput(
'energyCompensation',
'float');
39402 this.addProperty(
'energyCompensation', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Energy Compensation",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Advanced",
"defaultgeomprop":
""});
39403 this.addOutput(
'out',
'BSDF');
39404 this.title =
'LamaDiffuse_BSDF';
39405 this.desc =
"MaterialX:mtlx/pbr/lama_diffuse";
39406 this.onNodeCreated =
function() {
39409 this.onRemoved =
function() {
39412 this.onPropertyChanged =
function(name, value, prev_value) {
39413 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39415 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39416 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39418 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39419 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39421 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39422 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39424 this.bgcolor =
'#111';
39425 this.color =
'#222';
39426 this.shape = LiteGraph.ROUND_SHAPE;
39430mtlx_pbr_lama_diffuse.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaDiffuse.html';
39439 this.nodedef_icon =
'';
39441 this.nodedef_type =
'EDF';
39443 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaEmission.html';
39444 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_emission_out_genglsl.png';
39445 this.nodedef_group =
'pbr';
39446 this.addInput(
'color',
'color3');
39447 this.addProperty(
'color', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39448 this.addOutput(
'out',
'EDF');
39449 this.title =
'LamaEmission_EDF';
39450 this.desc =
"MaterialX:mtlx/pbr/lama_emission";
39451 this.onNodeCreated =
function() {
39454 this.onRemoved =
function() {
39457 this.onPropertyChanged =
function(name, value, prev_value) {
39458 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39460 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39461 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39463 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39464 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39466 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39467 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39469 this.bgcolor =
'#111';
39470 this.color =
'#222';
39471 this.shape = LiteGraph.ROUND_SHAPE;
39475mtlx_pbr_lama_emission.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaEmission.html';
39484 this.nodedef_icon =
'';
39486 this.nodedef_type =
'BSDF';
39488 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaLayer.html';
39489 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_layer_bsdf_out_genglsl.png';
39490 this.nodedef_group =
'pbr';
39491 this.addInput(
'materialTop',
'BSDF');
39492 this.addProperty(
'materialTop',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Material Top",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39493 this.addInput(
'materialBase',
'BSDF');
39494 this.addProperty(
'materialBase',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Material Base",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39495 this.addInput(
'topMix',
'float');
39496 this.addProperty(
'topMix', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Top Mix",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
39497 this.addInput(
'topThickness',
'float');
39498 this.addProperty(
'topThickness', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Top Thickness",
"uimin":
"0.0",
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39499 this.addOutput(
'out',
'BSDF');
39500 this.title =
'LamaLayer_BSDF';
39501 this.desc =
"MaterialX:mtlx/pbr/lama_layer_bsdf";
39502 this.onNodeCreated =
function() {
39505 this.onRemoved =
function() {
39508 this.onPropertyChanged =
function(name, value, prev_value) {
39509 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39511 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39512 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39514 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39515 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39517 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39518 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39520 this.bgcolor =
'#111';
39521 this.color =
'#222';
39522 this.shape = LiteGraph.ROUND_SHAPE;
39526mtlx_pbr_lama_layer_bsdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaLayer.html';
39535 this.nodedef_icon =
'';
39537 this.nodedef_type =
'BSDF';
39539 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaSheen.html';
39540 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_sheen_out_genglsl.png';
39541 this.nodedef_group =
'pbr';
39542 this.addInput(
'color',
'color3');
39543 this.addProperty(
'color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39544 this.addInput(
'roughness',
'float');
39545 this.addProperty(
'roughness', 0.1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Main",
"defaultgeomprop":
""});
39546 this.addInput(
'normal',
'vector3');
39547 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
"Nworld"});
39548 this.addOutput(
'out',
'BSDF');
39549 this.title =
'LamaSheen_BSDF';
39550 this.desc =
"MaterialX:mtlx/pbr/lama_sheen";
39551 this.onNodeCreated =
function() {
39554 this.onRemoved =
function() {
39557 this.onPropertyChanged =
function(name, value, prev_value) {
39558 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39560 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39561 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39563 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39564 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39566 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39567 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39569 this.bgcolor =
'#111';
39570 this.color =
'#222';
39571 this.shape = LiteGraph.ROUND_SHAPE;
39575mtlx_pbr_lama_sheen.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaSheen.html';
39584 this.nodedef_icon =
'';
39586 this.nodedef_type =
'BSDF';
39588 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaAdd.html';
39589 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_add_bsdf_out_genglsl.png';
39590 this.nodedef_group =
'pbr';
39591 this.addInput(
'material1',
'BSDF');
39592 this.addProperty(
'material1',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Material 1",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39593 this.addInput(
'material2',
'BSDF');
39594 this.addProperty(
'material2',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Material 2",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39595 this.addInput(
'weight1',
'float');
39596 this.addProperty(
'weight1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Weight 1",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
39597 this.addInput(
'weight2',
'float');
39598 this.addProperty(
'weight2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Weight 2",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
39599 this.addOutput(
'out',
'BSDF');
39600 this.title =
'LamaAdd_BSDF';
39601 this.desc =
"MaterialX:mtlx/pbr/lama_add_bsdf";
39602 this.onNodeCreated =
function() {
39605 this.onRemoved =
function() {
39608 this.onPropertyChanged =
function(name, value, prev_value) {
39609 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39611 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39612 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39614 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39615 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39617 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39618 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39620 this.bgcolor =
'#111';
39621 this.color =
'#222';
39622 this.shape = LiteGraph.ROUND_SHAPE;
39626mtlx_pbr_lama_add_bsdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaAdd.html';
39635 this.nodedef_icon =
'';
39637 this.nodedef_type =
'EDF';
39639 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaAdd.html';
39640 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_add_edf_out_genglsl.png';
39641 this.nodedef_group =
'pbr';
39642 this.addInput(
'material1',
'EDF');
39643 this.addProperty(
'material1',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Material 1",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39644 this.addInput(
'material2',
'EDF');
39645 this.addProperty(
'material2',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Material 2",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39646 this.addInput(
'weight1',
'float');
39647 this.addProperty(
'weight1', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Weight 1",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
39648 this.addInput(
'weight2',
'float');
39649 this.addProperty(
'weight2', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Weight 2",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
39650 this.addOutput(
'out',
'EDF');
39651 this.title =
'LamaAdd_EDF';
39652 this.desc =
"MaterialX:mtlx/pbr/lama_add_edf";
39653 this.onNodeCreated =
function() {
39656 this.onRemoved =
function() {
39659 this.onPropertyChanged =
function(name, value, prev_value) {
39660 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39662 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39663 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39665 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39666 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39668 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39669 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39671 this.bgcolor =
'#111';
39672 this.color =
'#222';
39673 this.shape = LiteGraph.ROUND_SHAPE;
39677mtlx_pbr_lama_add_edf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaAdd.html';
39686 this.nodedef_icon =
'';
39688 this.nodedef_type =
'BSDF';
39690 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaDielectric.html';
39691 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_dielectric_out_genglsl.png';
39692 this.nodedef_group =
'pbr';
39693 this.addInput(
'reflectionTint',
'color3');
39694 this.addProperty(
'reflectionTint', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Reflection Tint",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39695 this.addInput(
'transmissionTint',
'color3');
39696 this.addProperty(
'transmissionTint', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Tint",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39697 this.addInput(
'fresnelMode',
'integer');
39698 this.addProperty(
'fresnelMode', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Fresnel Mode",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
"",
"enum":[
"Scientific",
"Artistic"],
"enumvalues":[
"0",
"1"]});
39699 this.addInput(
'IOR',
'float');
39700 this.addProperty(
'IOR', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"IOR",
"uimin":
"1.0",
"uimax":
"3.0",
"uifolder":
"Main",
"defaultgeomprop":
""});
39701 this.addInput(
'reflectivity',
'float');
39702 this.addProperty(
'reflectivity', 0.04,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Reflectivity",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39703 this.addInput(
'roughness',
'float');
39704 this.addProperty(
'roughness', 0.1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Main",
"defaultgeomprop":
""});
39705 this.addInput(
'normal',
'vector3');
39706 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
"Nworld"});
39707 this.addInput(
'anisotropy',
'float');
39708 this.addProperty(
'anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Anisotropy",
"uimin":
"-1.0",
"uimax":
"1.0",
"uifolder":
"Anisotropy",
"defaultgeomprop":
""});
39709 this.addInput(
'direction',
'vector3');
39710 this.addProperty(
'direction', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Direction",
"uimin":
null,
"uimax":
null,
"uifolder":
"Anisotropy",
"defaultgeomprop":
"Tworld"});
39711 this.addInput(
'rotation',
'float');
39712 this.addProperty(
'rotation', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Rotation",
"uimin":
null,
"uimax":
null,
"uifolder":
"Anisotropy",
"defaultgeomprop":
""});
39713 this.addInput(
'absorptionColor',
'color3');
39714 this.addProperty(
'absorptionColor', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Absorption Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"Interior",
"defaultgeomprop":
""});
39715 this.addInput(
'absorptionRadius',
'float');
39716 this.addProperty(
'absorptionRadius', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Absorption Radius",
"uimin":
null,
"uimax":
null,
"uifolder":
"Interior",
"defaultgeomprop":
""});
39717 this.addInput(
'scatterColor',
'color3');
39718 this.addProperty(
'scatterColor', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Scatter Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"Interior",
"defaultgeomprop":
""});
39719 this.addInput(
'scatterAnisotropy',
'float');
39720 this.addProperty(
'scatterAnisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Scatter Anisotropy",
"uimin":
"-1.0",
"uimax":
"1.0",
"uifolder":
"Interior",
"defaultgeomprop":
""});
39721 this.addOutput(
'out',
'BSDF');
39722 this.title =
'LamaDielectric_BSDF';
39723 this.desc =
"MaterialX:mtlx/pbr/lama_dielectric";
39724 this.onNodeCreated =
function() {
39727 this.onRemoved =
function() {
39730 this.onPropertyChanged =
function(name, value, prev_value) {
39731 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39733 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39734 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39736 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39737 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39739 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39740 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39742 this.bgcolor =
'#111';
39743 this.color =
'#222';
39744 this.shape = LiteGraph.ROUND_SHAPE;
39748mtlx_pbr_lama_dielectric.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaDielectric.html';
39757 this.nodedef_icon =
'';
39759 this.nodedef_type =
'BSDF';
39761 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaGeneralizedSchlick.html';
39762 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_generalized_schlick_out_genglsl.png';
39763 this.nodedef_group =
'pbr';
39764 this.addInput(
'reflectionTint',
'color3');
39765 this.addProperty(
'reflectionTint', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Reflection Tint",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39766 this.addInput(
'transmissionTint',
'color3');
39767 this.addProperty(
'transmissionTint', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Transmission Tint",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39768 this.addInput(
'fresnelMode',
'integer');
39769 this.addProperty(
'fresnelMode', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Fresnel Mode",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
"",
"enum":[
"Scientific",
"Artistic"],
"enumvalues":[
"0",
"1"]});
39770 this.addInput(
'IOR',
'vector3');
39771 this.addProperty(
'IOR', [1.5,1.5,1.5],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"IOR",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39772 this.addInput(
'reflectivity',
'color3');
39773 this.addProperty(
'reflectivity', [0.04, 0.04, 0.04],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Reflectivity",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39774 this.addInput(
'reflectivity90',
'color3');
39775 this.addProperty(
'reflectivity90', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Reflectivity90",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39776 this.addInput(
'reflectivityProfile',
'float');
39777 this.addProperty(
'reflectivityProfile', 0.2,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"ReflectivityProfile",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39778 this.addInput(
'roughness',
'float');
39779 this.addProperty(
'roughness', 0.1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Main",
"defaultgeomprop":
""});
39780 this.addInput(
'normal',
'vector3');
39781 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
"Nworld"});
39782 this.addInput(
'anisotropy',
'float');
39783 this.addProperty(
'anisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Anisotropy",
"uimin":
"-1.0",
"uimax":
"1.0",
"uifolder":
"Anisotropy",
"defaultgeomprop":
""});
39784 this.addInput(
'anisotropyDirection',
'vector3');
39785 this.addProperty(
'anisotropyDirection', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Direction",
"uimin":
null,
"uimax":
null,
"uifolder":
"Anisotropy",
"defaultgeomprop":
"Tworld"});
39786 this.addInput(
'anisotropyRotation',
'float');
39787 this.addProperty(
'anisotropyRotation', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Rotation",
"uimin":
null,
"uimax":
null,
"uifolder":
"Anisotropy",
"defaultgeomprop":
""});
39788 this.addInput(
'absorptionColor',
'color3');
39789 this.addProperty(
'absorptionColor', [1.0, 1.0, 1.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Absorption Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"Interior",
"defaultgeomprop":
""});
39790 this.addInput(
'absorptionRadius',
'float');
39791 this.addProperty(
'absorptionRadius', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Absorption Radius",
"uimin":
null,
"uimax":
null,
"uifolder":
"Interior",
"defaultgeomprop":
""});
39792 this.addInput(
'scatterColor',
'color3');
39793 this.addProperty(
'scatterColor', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Scatter Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"Interior",
"defaultgeomprop":
""});
39794 this.addInput(
'scatterAnisotropy',
'float');
39795 this.addProperty(
'scatterAnisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Scatter Anisotropy",
"uimin":
"-1.0",
"uimax":
"1.0",
"uifolder":
"Interior",
"defaultgeomprop":
""});
39796 this.addOutput(
'out',
'BSDF');
39797 this.title =
'LamaGeneralizedSchlick_BSDF';
39798 this.desc =
"MaterialX:mtlx/pbr/lama_generalized_schlick";
39799 this.onNodeCreated =
function() {
39802 this.onRemoved =
function() {
39805 this.onPropertyChanged =
function(name, value, prev_value) {
39806 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39808 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39809 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39811 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39812 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39814 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39815 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39817 this.bgcolor =
'#111';
39818 this.color =
'#222';
39819 this.shape = LiteGraph.ROUND_SHAPE;
39832 this.nodedef_icon =
'';
39834 this.nodedef_type =
'material';
39836 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaSurface.html';
39837 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_surface_out_genglsl.png';
39838 this.nodedef_group =
'pbr';
39839 this.addInput(
'materialFront',
'BSDF');
39840 this.addProperty(
'materialFront',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Material Front",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39841 this.addInput(
'materialBack',
'BSDF');
39842 this.addProperty(
'materialBack',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Material Back",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39843 this.addInput(
'presence',
'float');
39844 this.addProperty(
'presence', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39845 this.addOutput(
'out',
'material');
39846 this.title =
'LamaSurface_material';
39847 this.desc =
"MaterialX:mtlx/pbr/lama_surface";
39848 this.onNodeCreated =
function() {
39851 this.onRemoved =
function() {
39854 this.onPropertyChanged =
function(name, value, prev_value) {
39855 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39857 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39858 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39860 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39861 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39863 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39864 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39866 this.bgcolor =
'#111';
39867 this.color =
'#222';
39868 this.shape = LiteGraph.ROUND_SHAPE;
39872mtlx_pbr_lama_surface.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaSurface.html';
39881 this.nodedef_icon =
'';
39883 this.nodedef_type =
'BSDF';
39885 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaMix.html';
39886 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_mix_bsdf_out_genglsl.png';
39887 this.nodedef_group =
'pbr';
39888 this.addInput(
'material1',
'BSDF');
39889 this.addProperty(
'material1',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Material 1",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39890 this.addInput(
'material2',
'BSDF');
39891 this.addProperty(
'material2',
'',
'BSDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Material 2",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39892 this.addInput(
'mix',
'float');
39893 this.addProperty(
'mix', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
39894 this.addOutput(
'out',
'BSDF');
39895 this.title =
'LamaMix_BSDF';
39896 this.desc =
"MaterialX:mtlx/pbr/lama_mix_bsdf";
39897 this.onNodeCreated =
function() {
39900 this.onRemoved =
function() {
39903 this.onPropertyChanged =
function(name, value, prev_value) {
39904 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39906 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39907 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39909 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39910 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39912 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39913 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39915 this.bgcolor =
'#111';
39916 this.color =
'#222';
39917 this.shape = LiteGraph.ROUND_SHAPE;
39921mtlx_pbr_lama_mix_bsdf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaMix.html';
39930 this.nodedef_icon =
'';
39932 this.nodedef_type =
'EDF';
39934 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaMix.html';
39935 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_mix_edf_out_genglsl.png';
39936 this.nodedef_group =
'pbr';
39937 this.addInput(
'material1',
'EDF');
39938 this.addProperty(
'material1',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Material 1",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39939 this.addInput(
'material2',
'EDF');
39940 this.addProperty(
'material2',
'',
'EDF',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Material 2",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
39941 this.addInput(
'mix',
'float');
39942 this.addProperty(
'mix', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
39943 this.addOutput(
'out',
'EDF');
39944 this.title =
'LamaMix_EDF';
39945 this.desc =
"MaterialX:mtlx/pbr/lama_mix_edf";
39946 this.onNodeCreated =
function() {
39949 this.onRemoved =
function() {
39952 this.onPropertyChanged =
function(name, value, prev_value) {
39953 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
39955 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
39956 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
39958 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
39959 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
39961 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
39962 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
39964 this.bgcolor =
'#111';
39965 this.color =
'#222';
39966 this.shape = LiteGraph.ROUND_SHAPE;
39970mtlx_pbr_lama_mix_edf.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaMix.html';
39979 this.nodedef_icon =
'';
39981 this.nodedef_type =
'BSDF';
39983 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaSSS.html';
39984 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_sss_out_genglsl.png';
39985 this.nodedef_group =
'pbr';
39986 this.addInput(
'color',
'color3');
39987 this.addProperty(
'color', [0.18, 0.18, 0.18],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
""});
39988 this.addInput(
'normal',
'vector3');
39989 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
"Nworld"});
39990 this.addInput(
'sssRadius',
'color3');
39991 this.addProperty(
'sssRadius', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Radius",
"uimin":
null,
"uimax":
null,
"uifolder":
"SSS",
"defaultgeomprop":
""});
39992 this.addInput(
'sssScale',
'float');
39993 this.addProperty(
'sssScale', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Scale",
"uimin":
null,
"uimax":
null,
"uifolder":
"SSS",
"defaultgeomprop":
""});
39994 this.addInput(
'sssMode',
'integer');
39995 this.addProperty(
'sssMode', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Mode",
"uimin":
null,
"uimax":
null,
"uifolder":
"Main",
"defaultgeomprop":
"",
"enum":[
"Path-traced Davis",
"Path-traced exponential",
"Diffusion Burley",
"Diffusion Burley (mean free path)"],
"enumvalues":[
"0",
"1",
"2",
"3"]});
39996 this.addInput(
'sssIOR',
'float');
39997 this.addProperty(
'sssIOR', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"IOR",
"uimin":
"1.0",
"uimax":
"2.0",
"uifolder":
"SSS",
"defaultgeomprop":
""});
39998 this.addInput(
'sssAnisotropy',
'float');
39999 this.addProperty(
'sssAnisotropy', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Anisotropy",
"uimin":
"-1.0",
"uimax":
"1.0",
"uifolder":
"SSS",
"defaultgeomprop":
""});
40000 this.addInput(
'sssBleed',
'float');
40001 this.addProperty(
'sssBleed', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Bleed",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"SSS",
"defaultgeomprop":
""});
40002 this.addInput(
'sssFollowTopology',
'float');
40003 this.addProperty(
'sssFollowTopology', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Follow Topology",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"SSS",
"defaultgeomprop":
""});
40004 this.addInput(
'sssSubset',
'string');
40005 this.addProperty(
'sssSubset',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Subset",
"uimin":
null,
"uimax":
null,
"uifolder":
"SSS",
"defaultgeomprop":
""});
40006 this.addInput(
'sssContinuationRays',
'integer');
40007 this.addProperty(
'sssContinuationRays', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Continuation Rays",
"uimin":
null,
"uimax":
null,
"uifolder":
"SSS",
"defaultgeomprop":
""});
40008 this.addInput(
'sssUnitLength',
'float');
40009 this.addProperty(
'sssUnitLength', 0.00328,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Unit Length",
"uimin":
null,
"uimax":
null,
"uifolder":
"SSS",
"defaultgeomprop":
""});
40010 this.addInput(
'mode',
'integer');
40011 this.addProperty(
'mode', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Mode",
"uimin":
null,
"uimax":
null,
"uifolder":
"Advanced",
"defaultgeomprop":
"",
"enum":[
"Reflection",
"Transmission",
"Reflection(with direct illumination)"],
"enumvalues":[
"0",
"1",
"2"]});
40012 this.addInput(
'albedoInversionMethod',
'integer');
40013 this.addProperty(
'albedoInversionMethod', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Albedo Inversion Method",
"uimin":
null,
"uimax":
null,
"uifolder":
"Advanced",
"defaultgeomprop":
"",
"enum":[
"Pixar",
"Chiang"],
"enumvalues":[
"0",
"1"]});
40014 this.addInput(
'diffuseLobeName',
'string');
40015 this.addProperty(
'diffuseLobeName',
'diffuse',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Diffuse Lobe Name",
"uimin":
null,
"uimax":
null,
"uifolder":
"Advanced",
"defaultgeomprop":
""});
40016 this.addInput(
'sssEntryLobeName',
'string');
40017 this.addProperty(
'sssEntryLobeName',
'irradiance',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"SSS Entry Lobe Name",
"uimin":
null,
"uimax":
null,
"uifolder":
"Advanced",
"defaultgeomprop":
""});
40018 this.addInput(
'sssExitLobeName',
'string');
40019 this.addProperty(
'sssExitLobeName',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"SSS Exit Lobe Name",
"uimin":
null,
"uimax":
null,
"uifolder":
"Advanced",
"defaultgeomprop":
""});
40020 this.addInput(
'sssId',
'integer');
40021 this.addProperty(
'sssId', 0,
'integer',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"SSS Id",
"uimin":
null,
"uimax":
null,
"uifolder":
"Advanced",
"defaultgeomprop":
"",
"enum":[
"0",
" 1"],
"enumvalues":[
"0",
" 1"]});
40022 this.addInput(
'matte',
'string');
40023 this.addProperty(
'matte',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Matte",
"uimin":
null,
"uimax":
null,
"uifolder":
"Advanced",
"defaultgeomprop":
""});
40024 this.addOutput(
'out',
'BSDF');
40025 this.title =
'LamaSSS_BSDF';
40026 this.desc =
"MaterialX:mtlx/pbr/lama_sss";
40027 this.onNodeCreated =
function() {
40030 this.onRemoved =
function() {
40033 this.onPropertyChanged =
function(name, value, prev_value) {
40034 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40036 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40037 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40039 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40040 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40042 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40043 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40045 this.bgcolor =
'#111';
40046 this.color =
'#222';
40047 this.shape = LiteGraph.ROUND_SHAPE;
40051mtlx_pbr_lama_sss.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaSSS.html';
40060 this.nodedef_icon =
'';
40062 this.nodedef_type =
'BSDF';
40064 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaTranslucent.html';
40065 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lama_translucent_out_genglsl.png';
40066 this.nodedef_group =
'pbr';
40067 this.addInput(
'color',
'color3');
40068 this.addProperty(
'color', [0.18, 0.18, 0.18],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Color",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40069 this.addInput(
'roughness',
'float');
40070 this.addProperty(
'roughness', 0.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Roughness",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"",
"defaultgeomprop":
""});
40071 this.addInput(
'normal',
'vector3');
40072 this.addProperty(
'normal', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Normal",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
"Nworld"});
40073 this.addInput(
'energyCompensation',
'float');
40074 this.addProperty(
'energyCompensation', 1.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Energy Compensation",
"uimin":
"0.0",
"uimax":
"1.0",
"uifolder":
"Advanced",
"defaultgeomprop":
""});
40075 this.addInput(
'lobeName',
'string');
40076 this.addProperty(
'lobeName',
'diffuse',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Lobe Name",
"uimin":
null,
"uimax":
null,
"uifolder":
"Advanced",
"defaultgeomprop":
""});
40077 this.addInput(
'matte',
'string');
40078 this.addProperty(
'matte',
'',
'string',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"Matte",
"uimin":
null,
"uimax":
null,
"uifolder":
"Advanced",
"defaultgeomprop":
""});
40079 this.addOutput(
'out',
'BSDF');
40080 this.title =
'LamaTranslucent_BSDF';
40081 this.desc =
"MaterialX:mtlx/pbr/lama_translucent";
40082 this.onNodeCreated =
function() {
40085 this.onRemoved =
function() {
40088 this.onPropertyChanged =
function(name, value, prev_value) {
40089 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40091 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40092 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40094 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40095 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40097 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40098 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40100 this.bgcolor =
'#111';
40101 this.color =
'#222';
40102 this.shape = LiteGraph.ROUND_SHAPE;
40106mtlx_pbr_lama_translucent.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/LamaTranslucent.html';
40115 this.nodedef_icon =
'';
40116 this.
nodedef_name =
'ND_standard_surface_to_gltf_pbr';
40117 this.nodedef_type =
'multioutput';
40119 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/standard_surface_to_gltf_pbr.html';
40120 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_standard_surface_to_gltf_pbr_base_color_out_genglsl.png';
40121 this.nodedef_group =
'translation';
40122 this.addInput(
'base',
'float');
40123 this.addProperty(
'base', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40124 this.addInput(
'base_color',
'color3');
40125 this.addProperty(
'base_color', [0.8, 0.8, 0.8],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40126 this.addInput(
'metalness',
'float');
40127 this.addProperty(
'metalness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40128 this.addInput(
'specular_roughness',
'float');
40129 this.addProperty(
'specular_roughness', 0.2,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40130 this.addInput(
'transmission',
'float');
40131 this.addProperty(
'transmission', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40132 this.addInput(
'transmission_color',
'color3');
40133 this.addProperty(
'transmission_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40134 this.addInput(
'transmission_depth',
'float');
40135 this.addProperty(
'transmission_depth', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40136 this.addInput(
'sheen',
'float');
40137 this.addProperty(
'sheen', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40138 this.addInput(
'sheen_color',
'color3');
40139 this.addProperty(
'sheen_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40140 this.addInput(
'sheen_roughness',
'float');
40141 this.addProperty(
'sheen_roughness', 0.3,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40142 this.addInput(
'coat',
'float');
40143 this.addProperty(
'coat', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40144 this.addInput(
'coat_color',
'color3');
40145 this.addProperty(
'coat_color', [0, 0, 0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40146 this.addInput(
'coat_roughness',
'float');
40147 this.addProperty(
'coat_roughness', 0.1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40148 this.addInput(
'emission',
'float');
40149 this.addProperty(
'emission', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40150 this.addInput(
'emission_color',
'color3');
40151 this.addProperty(
'emission_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40152 this.addOutput(
'base_color_out',
'color3');
40153 this.addOutput(
'metallic_out',
'float');
40154 this.addOutput(
'roughness_out',
'float');
40155 this.addOutput(
'transmission_out',
'float');
40156 this.addOutput(
'thickness_out',
'float');
40157 this.addOutput(
'attenuation_color_out',
'color3');
40158 this.addOutput(
'sheen_color_out',
'color3');
40159 this.addOutput(
'sheen_roughness_out',
'float');
40160 this.addOutput(
'clearcoat_out',
'float');
40161 this.addOutput(
'clearcoat_roughness_out',
'float');
40162 this.addOutput(
'emissive_out',
'color3');
40163 this.title =
'standard_surface_to_gltf_pbr_multioutput';
40164 this.desc =
"MaterialX:mtlx/translation/standard_surface_to_gltf_pbr";
40165 this.onNodeCreated =
function() {
40168 this.onRemoved =
function() {
40171 this.onPropertyChanged =
function(name, value, prev_value) {
40172 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40174 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40175 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40177 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40178 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40180 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40181 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40183 this.bgcolor =
'#111';
40184 this.color =
'#222';
40185 this.shape = LiteGraph.ROUND_SHAPE;
40198 this.nodedef_icon =
'';
40199 this.
nodedef_name =
'ND_standard_surface_to_UsdPreviewSurface';
40200 this.nodedef_type =
'multioutput';
40201 this.
nodedef_node =
'standard_surface_to_UsdPreviewSurface';
40202 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/standard_surface_to_UsdPreviewSurface.html';
40203 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_standard_surface_to_UsdPreviewSurface_diffuseColor_out_genglsl.png';
40204 this.nodedef_group =
'translation';
40205 this.addInput(
'metalness',
'float');
40206 this.addProperty(
'metalness', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40207 this.addInput(
'base',
'float');
40208 this.addProperty(
'base', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40209 this.addInput(
'base_color',
'color3');
40210 this.addProperty(
'base_color', [0.8, 0.8, 0.8],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40211 this.addInput(
'specular',
'float');
40212 this.addProperty(
'specular', 1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40213 this.addInput(
'specular_color',
'color3');
40214 this.addProperty(
'specular_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40215 this.addInput(
'specular_IOR',
'float');
40216 this.addProperty(
'specular_IOR', 1.5,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40217 this.addInput(
'specular_roughness',
'float');
40218 this.addProperty(
'specular_roughness', 0.2,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40219 this.addInput(
'coat',
'float');
40220 this.addProperty(
'coat', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40221 this.addInput(
'coat_color',
'color3');
40222 this.addProperty(
'coat_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40223 this.addInput(
'coat_roughness',
'float');
40224 this.addProperty(
'coat_roughness', 0.1,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40225 this.addInput(
'emission',
'float');
40226 this.addProperty(
'emission', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40227 this.addInput(
'emission_color',
'color3');
40228 this.addProperty(
'emission_color', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40229 this.addInput(
'opacity',
'color3');
40230 this.addProperty(
'opacity', [1, 1, 1],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40231 this.addInput(
'normal',
'vector3');
40232 this.addProperty(
'normal', [0.5, 0.5, 1.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40233 this.addOutput(
'diffuseColor_out',
'color3');
40234 this.addOutput(
'emissiveColor_out',
'color3');
40235 this.addOutput(
'metallic_out',
'float');
40236 this.addOutput(
'roughness_out',
'float');
40237 this.addOutput(
'clearcoat_out',
'float');
40238 this.addOutput(
'clearcoatRoughness_out',
'float');
40239 this.addOutput(
'opacity_out',
'float');
40240 this.addOutput(
'ior_out',
'float');
40241 this.addOutput(
'normal_out',
'vector3');
40242 this.title =
'standard_surface_to_UsdPreviewSurface_multioutput';
40243 this.desc =
"MaterialX:mtlx/translation/standard_surface_to_UsdPreviewSurface";
40244 this.onNodeCreated =
function() {
40247 this.onRemoved =
function() {
40250 this.onPropertyChanged =
function(name, value, prev_value) {
40251 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40253 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40254 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40256 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40257 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40259 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40260 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40262 this.bgcolor =
'#111';
40263 this.color =
'#222';
40264 this.shape = LiteGraph.ROUND_SHAPE;
40277 this.nodedef_icon =
'';
40278 this.
nodedef_name =
'ND_g18_rec709_to_lin_rec709_color3';
40279 this.nodedef_type =
'color3';
40281 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/g18_rec709_to_lin_rec709.html';
40282 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_g18_rec709_to_lin_rec709_color3_out_genglsl.png';
40283 this.nodedef_group =
'colortransform';
40284 this.addInput(
'in',
'color3');
40285 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40286 this.addOutput(
'out',
'color3');
40287 this.title =
'g18_rec709_to_lin_rec709_color3';
40288 this.desc =
"MaterialX:mtlx/colortransform/g18_rec709_to_lin_rec709_color3";
40289 this.onNodeCreated =
function() {
40292 this.onRemoved =
function() {
40295 this.onPropertyChanged =
function(name, value, prev_value) {
40296 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40298 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40299 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40301 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40302 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40304 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40305 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40307 this.bgcolor =
'#111';
40308 this.color =
'#222';
40309 this.shape = LiteGraph.ROUND_SHAPE;
40310 this.boxcolor =
'#37A';
40323 this.nodedef_icon =
'';
40324 this.
nodedef_name =
'ND_g18_rec709_to_lin_rec709_color4';
40325 this.nodedef_type =
'color4';
40327 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/g18_rec709_to_lin_rec709.html';
40328 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_g18_rec709_to_lin_rec709_color4_out_genglsl.png';
40329 this.nodedef_group =
'colortransform';
40330 this.addInput(
'in',
'color4');
40331 this.addProperty(
'in', [0.0, 0.0, 0.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40332 this.addOutput(
'out',
'color4');
40333 this.title =
'g18_rec709_to_lin_rec709_color4';
40334 this.desc =
"MaterialX:mtlx/colortransform/g18_rec709_to_lin_rec709_color4";
40335 this.onNodeCreated =
function() {
40338 this.onRemoved =
function() {
40341 this.onPropertyChanged =
function(name, value, prev_value) {
40342 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40344 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40345 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40347 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40348 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40350 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40351 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40353 this.bgcolor =
'#111';
40354 this.color =
'#222';
40355 this.shape = LiteGraph.ROUND_SHAPE;
40356 this.boxcolor =
'#69A';
40369 this.nodedef_icon =
'';
40370 this.
nodedef_name =
'ND_g22_rec709_to_lin_rec709_color3';
40371 this.nodedef_type =
'color3';
40373 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/g22_rec709_to_lin_rec709.html';
40374 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_g22_rec709_to_lin_rec709_color3_out_genglsl.png';
40375 this.nodedef_group =
'colortransform';
40376 this.addInput(
'in',
'color3');
40377 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40378 this.addOutput(
'out',
'color3');
40379 this.title =
'g22_rec709_to_lin_rec709_color3';
40380 this.desc =
"MaterialX:mtlx/colortransform/g22_rec709_to_lin_rec709_color3";
40381 this.onNodeCreated =
function() {
40384 this.onRemoved =
function() {
40387 this.onPropertyChanged =
function(name, value, prev_value) {
40388 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40390 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40391 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40393 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40394 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40396 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40397 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40399 this.bgcolor =
'#111';
40400 this.color =
'#222';
40401 this.shape = LiteGraph.ROUND_SHAPE;
40402 this.boxcolor =
'#37A';
40415 this.nodedef_icon =
'';
40416 this.
nodedef_name =
'ND_g22_rec709_to_lin_rec709_color4';
40417 this.nodedef_type =
'color4';
40419 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/g22_rec709_to_lin_rec709.html';
40420 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_g22_rec709_to_lin_rec709_color4_out_genglsl.png';
40421 this.nodedef_group =
'colortransform';
40422 this.addInput(
'in',
'color4');
40423 this.addProperty(
'in', [0.0, 0.0, 0.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40424 this.addOutput(
'out',
'color4');
40425 this.title =
'g22_rec709_to_lin_rec709_color4';
40426 this.desc =
"MaterialX:mtlx/colortransform/g22_rec709_to_lin_rec709_color4";
40427 this.onNodeCreated =
function() {
40430 this.onRemoved =
function() {
40433 this.onPropertyChanged =
function(name, value, prev_value) {
40434 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40436 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40437 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40439 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40440 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40442 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40443 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40445 this.bgcolor =
'#111';
40446 this.color =
'#222';
40447 this.shape = LiteGraph.ROUND_SHAPE;
40448 this.boxcolor =
'#69A';
40461 this.nodedef_icon =
'';
40462 this.
nodedef_name =
'ND_rec709_display_to_lin_rec709_color3';
40463 this.nodedef_type =
'color3';
40465 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/rec709_display_to_lin_rec709.html';
40466 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_rec709_display_to_lin_rec709_color3_out_genglsl.png';
40467 this.nodedef_group =
'colortransform';
40468 this.addInput(
'in',
'color3');
40469 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40470 this.addOutput(
'out',
'color3');
40471 this.title =
'rec709_display_to_lin_rec709_color3';
40472 this.desc =
"MaterialX:mtlx/colortransform/rec709_display_to_lin_rec709_color3";
40473 this.onNodeCreated =
function() {
40476 this.onRemoved =
function() {
40479 this.onPropertyChanged =
function(name, value, prev_value) {
40480 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40482 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40483 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40485 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40486 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40488 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40489 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40491 this.bgcolor =
'#111';
40492 this.color =
'#222';
40493 this.shape = LiteGraph.ROUND_SHAPE;
40494 this.boxcolor =
'#37A';
40507 this.nodedef_icon =
'';
40508 this.
nodedef_name =
'ND_rec709_display_to_lin_rec709_color4';
40509 this.nodedef_type =
'color4';
40511 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/rec709_display_to_lin_rec709.html';
40512 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_rec709_display_to_lin_rec709_color4_out_genglsl.png';
40513 this.nodedef_group =
'colortransform';
40514 this.addInput(
'in',
'color4');
40515 this.addProperty(
'in', [0.0, 0.0, 0.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40516 this.addOutput(
'out',
'color4');
40517 this.title =
'rec709_display_to_lin_rec709_color4';
40518 this.desc =
"MaterialX:mtlx/colortransform/rec709_display_to_lin_rec709_color4";
40519 this.onNodeCreated =
function() {
40522 this.onRemoved =
function() {
40525 this.onPropertyChanged =
function(name, value, prev_value) {
40526 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40528 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40529 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40531 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40532 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40534 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40535 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40537 this.bgcolor =
'#111';
40538 this.color =
'#222';
40539 this.shape = LiteGraph.ROUND_SHAPE;
40540 this.boxcolor =
'#69A';
40553 this.nodedef_icon =
'';
40555 this.nodedef_type =
'color3';
40557 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acescg_to_lin_rec709.html';
40558 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_acescg_to_lin_rec709_color3_out_genglsl.png';
40559 this.nodedef_group =
'colortransform';
40560 this.addInput(
'in',
'color3');
40561 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40562 this.addOutput(
'out',
'color3');
40563 this.title =
'acescg_to_lin_rec709_color3';
40564 this.desc =
"MaterialX:mtlx/colortransform/acescg_to_lin_rec709_color3";
40565 this.onNodeCreated =
function() {
40568 this.onRemoved =
function() {
40571 this.onPropertyChanged =
function(name, value, prev_value) {
40572 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40574 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40575 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40577 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40578 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40580 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40581 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40583 this.bgcolor =
'#111';
40584 this.color =
'#222';
40585 this.shape = LiteGraph.ROUND_SHAPE;
40586 this.boxcolor =
'#37A';
40599 this.nodedef_icon =
'';
40601 this.nodedef_type =
'color4';
40603 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/acescg_to_lin_rec709.html';
40604 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_acescg_to_lin_rec709_color4_out_genglsl.png';
40605 this.nodedef_group =
'colortransform';
40606 this.addInput(
'in',
'color4');
40607 this.addProperty(
'in', [0.0, 0.0, 0.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40608 this.addOutput(
'out',
'color4');
40609 this.title =
'acescg_to_lin_rec709_color4';
40610 this.desc =
"MaterialX:mtlx/colortransform/acescg_to_lin_rec709_color4";
40611 this.onNodeCreated =
function() {
40614 this.onRemoved =
function() {
40617 this.onPropertyChanged =
function(name, value, prev_value) {
40618 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40620 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40621 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40623 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40624 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40626 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40627 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40629 this.bgcolor =
'#111';
40630 this.color =
'#222';
40631 this.shape = LiteGraph.ROUND_SHAPE;
40632 this.boxcolor =
'#69A';
40645 this.nodedef_icon =
'';
40646 this.
nodedef_name =
'ND_g22_ap1_to_lin_rec709_color3';
40647 this.nodedef_type =
'color3';
40649 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/g22_ap1_to_lin_rec709.html';
40650 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_g22_ap1_to_lin_rec709_color3_out_genglsl.png';
40651 this.nodedef_group =
'colortransform';
40652 this.addInput(
'in',
'color3');
40653 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40654 this.addOutput(
'out',
'color3');
40655 this.title =
'g22_ap1_to_lin_rec709_color3';
40656 this.desc =
"MaterialX:mtlx/colortransform/g22_ap1_to_lin_rec709_color3";
40657 this.onNodeCreated =
function() {
40660 this.onRemoved =
function() {
40663 this.onPropertyChanged =
function(name, value, prev_value) {
40664 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40666 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40667 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40669 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40670 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40672 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40673 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40675 this.bgcolor =
'#111';
40676 this.color =
'#222';
40677 this.shape = LiteGraph.ROUND_SHAPE;
40678 this.boxcolor =
'#37A';
40691 this.nodedef_icon =
'';
40692 this.
nodedef_name =
'ND_g22_ap1_to_lin_rec709_color4';
40693 this.nodedef_type =
'color4';
40695 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/g22_ap1_to_lin_rec709.html';
40696 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_g22_ap1_to_lin_rec709_color4_out_genglsl.png';
40697 this.nodedef_group =
'colortransform';
40698 this.addInput(
'in',
'color4');
40699 this.addProperty(
'in', [0.0, 0.0, 0.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40700 this.addOutput(
'out',
'color4');
40701 this.title =
'g22_ap1_to_lin_rec709_color4';
40702 this.desc =
"MaterialX:mtlx/colortransform/g22_ap1_to_lin_rec709_color4";
40703 this.onNodeCreated =
function() {
40706 this.onRemoved =
function() {
40709 this.onPropertyChanged =
function(name, value, prev_value) {
40710 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40712 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40713 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40715 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40716 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40718 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40719 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40721 this.bgcolor =
'#111';
40722 this.color =
'#222';
40723 this.shape = LiteGraph.ROUND_SHAPE;
40724 this.boxcolor =
'#69A';
40737 this.nodedef_icon =
'';
40738 this.
nodedef_name =
'ND_srgb_texture_to_lin_rec709_color3';
40739 this.nodedef_type =
'color3';
40741 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/srgb_texture_to_lin_rec709.html';
40742 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_srgb_texture_to_lin_rec709_color3_out_genglsl.png';
40743 this.nodedef_group =
'colortransform';
40744 this.addInput(
'in',
'color3');
40745 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40746 this.addOutput(
'out',
'color3');
40747 this.title =
'srgb_texture_to_lin_rec709_color3';
40748 this.desc =
"MaterialX:mtlx/colortransform/srgb_texture_to_lin_rec709_color3";
40749 this.onNodeCreated =
function() {
40752 this.onRemoved =
function() {
40755 this.onPropertyChanged =
function(name, value, prev_value) {
40756 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40758 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40759 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40761 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40762 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40764 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40765 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40767 this.bgcolor =
'#111';
40768 this.color =
'#222';
40769 this.shape = LiteGraph.ROUND_SHAPE;
40770 this.boxcolor =
'#37A';
40783 this.nodedef_icon =
'';
40784 this.
nodedef_name =
'ND_srgb_texture_to_lin_rec709_color4';
40785 this.nodedef_type =
'color4';
40787 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/srgb_texture_to_lin_rec709.html';
40788 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_srgb_texture_to_lin_rec709_color4_out_genglsl.png';
40789 this.nodedef_group =
'colortransform';
40790 this.addInput(
'in',
'color4');
40791 this.addProperty(
'in', [0.0, 0.0, 0.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40792 this.addOutput(
'out',
'color4');
40793 this.title =
'srgb_texture_to_lin_rec709_color4';
40794 this.desc =
"MaterialX:mtlx/colortransform/srgb_texture_to_lin_rec709_color4";
40795 this.onNodeCreated =
function() {
40798 this.onRemoved =
function() {
40801 this.onPropertyChanged =
function(name, value, prev_value) {
40802 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40804 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40805 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40807 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40808 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40810 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40811 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40813 this.bgcolor =
'#111';
40814 this.color =
'#222';
40815 this.shape = LiteGraph.ROUND_SHAPE;
40816 this.boxcolor =
'#69A';
40829 this.nodedef_icon =
'';
40830 this.
nodedef_name =
'ND_lin_adobergb_to_lin_rec709_color3';
40831 this.nodedef_type =
'color3';
40833 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/lin_adobergb_to_lin_rec709.html';
40834 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lin_adobergb_to_lin_rec709_color3_out_genglsl.png';
40835 this.nodedef_group =
'colortransform';
40836 this.addInput(
'in',
'color3');
40837 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40838 this.addOutput(
'out',
'color3');
40839 this.title =
'lin_adobergb_to_lin_rec709_color3';
40840 this.desc =
"MaterialX:mtlx/colortransform/lin_adobergb_to_lin_rec709_color3";
40841 this.onNodeCreated =
function() {
40844 this.onRemoved =
function() {
40847 this.onPropertyChanged =
function(name, value, prev_value) {
40848 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40850 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40851 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40853 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40854 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40856 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40857 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40859 this.bgcolor =
'#111';
40860 this.color =
'#222';
40861 this.shape = LiteGraph.ROUND_SHAPE;
40862 this.boxcolor =
'#37A';
40875 this.nodedef_icon =
'';
40876 this.
nodedef_name =
'ND_lin_adobergb_to_lin_rec709_color4';
40877 this.nodedef_type =
'color4';
40879 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/lin_adobergb_to_lin_rec709.html';
40880 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lin_adobergb_to_lin_rec709_color4_out_genglsl.png';
40881 this.nodedef_group =
'colortransform';
40882 this.addInput(
'in',
'color4');
40883 this.addProperty(
'in', [0.0, 0.0, 0.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40884 this.addOutput(
'out',
'color4');
40885 this.title =
'lin_adobergb_to_lin_rec709_color4';
40886 this.desc =
"MaterialX:mtlx/colortransform/lin_adobergb_to_lin_rec709_color4";
40887 this.onNodeCreated =
function() {
40890 this.onRemoved =
function() {
40893 this.onPropertyChanged =
function(name, value, prev_value) {
40894 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40896 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40897 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40899 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40900 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40902 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40903 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40905 this.bgcolor =
'#111';
40906 this.color =
'#222';
40907 this.shape = LiteGraph.ROUND_SHAPE;
40908 this.boxcolor =
'#69A';
40921 this.nodedef_icon =
'';
40922 this.
nodedef_name =
'ND_adobergb_to_lin_rec709_color3';
40923 this.nodedef_type =
'color3';
40925 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/adobergb_to_lin_rec709.html';
40926 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_adobergb_to_lin_rec709_color3_out_genglsl.png';
40927 this.nodedef_group =
'colortransform';
40928 this.addInput(
'in',
'color3');
40929 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40930 this.addOutput(
'out',
'color3');
40931 this.title =
'adobergb_to_lin_rec709_color3';
40932 this.desc =
"MaterialX:mtlx/colortransform/adobergb_to_lin_rec709_color3";
40933 this.onNodeCreated =
function() {
40936 this.onRemoved =
function() {
40939 this.onPropertyChanged =
function(name, value, prev_value) {
40940 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40942 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40943 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40945 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40946 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40948 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40949 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40951 this.bgcolor =
'#111';
40952 this.color =
'#222';
40953 this.shape = LiteGraph.ROUND_SHAPE;
40954 this.boxcolor =
'#37A';
40967 this.nodedef_icon =
'';
40968 this.
nodedef_name =
'ND_adobergb_to_lin_rec709_color4';
40969 this.nodedef_type =
'color4';
40971 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/adobergb_to_lin_rec709.html';
40972 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_adobergb_to_lin_rec709_color4_out_genglsl.png';
40973 this.nodedef_group =
'colortransform';
40974 this.addInput(
'in',
'color4');
40975 this.addProperty(
'in', [0.0, 0.0, 0.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
40976 this.addOutput(
'out',
'color4');
40977 this.title =
'adobergb_to_lin_rec709_color4';
40978 this.desc =
"MaterialX:mtlx/colortransform/adobergb_to_lin_rec709_color4";
40979 this.onNodeCreated =
function() {
40982 this.onRemoved =
function() {
40985 this.onPropertyChanged =
function(name, value, prev_value) {
40986 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
40988 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
40989 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
40991 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
40992 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
40994 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
40995 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
40997 this.bgcolor =
'#111';
40998 this.color =
'#222';
40999 this.shape = LiteGraph.ROUND_SHAPE;
41000 this.boxcolor =
'#69A';
41013 this.nodedef_icon =
'';
41014 this.
nodedef_name =
'ND_srgb_displayp3_to_lin_rec709_color3';
41015 this.nodedef_type =
'color3';
41017 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/srgb_displayp3_to_lin_rec709.html';
41018 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_srgb_displayp3_to_lin_rec709_color3_out_genglsl.png';
41019 this.nodedef_group =
'colortransform';
41020 this.addInput(
'in',
'color3');
41021 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41022 this.addOutput(
'out',
'color3');
41023 this.title =
'srgb_displayp3_to_lin_rec709_color3';
41024 this.desc =
"MaterialX:mtlx/colortransform/srgb_displayp3_to_lin_rec709_color3";
41025 this.onNodeCreated =
function() {
41028 this.onRemoved =
function() {
41031 this.onPropertyChanged =
function(name, value, prev_value) {
41032 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
41034 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
41035 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
41037 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
41038 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
41040 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
41041 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
41043 this.bgcolor =
'#111';
41044 this.color =
'#222';
41045 this.shape = LiteGraph.ROUND_SHAPE;
41046 this.boxcolor =
'#37A';
41059 this.nodedef_icon =
'';
41060 this.
nodedef_name =
'ND_srgb_displayp3_to_lin_rec709_color4';
41061 this.nodedef_type =
'color4';
41063 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/srgb_displayp3_to_lin_rec709.html';
41064 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_srgb_displayp3_to_lin_rec709_color4_out_genglsl.png';
41065 this.nodedef_group =
'colortransform';
41066 this.addInput(
'in',
'color4');
41067 this.addProperty(
'in', [0.0, 0.0, 0.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41068 this.addOutput(
'out',
'color4');
41069 this.title =
'srgb_displayp3_to_lin_rec709_color4';
41070 this.desc =
"MaterialX:mtlx/colortransform/srgb_displayp3_to_lin_rec709_color4";
41071 this.onNodeCreated =
function() {
41074 this.onRemoved =
function() {
41077 this.onPropertyChanged =
function(name, value, prev_value) {
41078 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
41080 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
41081 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
41083 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
41084 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
41086 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
41087 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
41089 this.bgcolor =
'#111';
41090 this.color =
'#222';
41091 this.shape = LiteGraph.ROUND_SHAPE;
41092 this.boxcolor =
'#69A';
41105 this.nodedef_icon =
'';
41106 this.
nodedef_name =
'ND_lin_displayp3_to_lin_rec709_color3';
41107 this.nodedef_type =
'color3';
41109 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/lin_displayp3_to_lin_rec709.html';
41110 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lin_displayp3_to_lin_rec709_color3_out_genglsl.png';
41111 this.nodedef_group =
'colortransform';
41112 this.addInput(
'in',
'color3');
41113 this.addProperty(
'in', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41114 this.addOutput(
'out',
'color3');
41115 this.title =
'lin_displayp3_to_lin_rec709_color3';
41116 this.desc =
"MaterialX:mtlx/colortransform/lin_displayp3_to_lin_rec709_color3";
41117 this.onNodeCreated =
function() {
41120 this.onRemoved =
function() {
41123 this.onPropertyChanged =
function(name, value, prev_value) {
41124 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
41126 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
41127 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
41129 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
41130 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
41132 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
41133 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
41135 this.bgcolor =
'#111';
41136 this.color =
'#222';
41137 this.shape = LiteGraph.ROUND_SHAPE;
41138 this.boxcolor =
'#37A';
41151 this.nodedef_icon =
'';
41152 this.
nodedef_name =
'ND_lin_displayp3_to_lin_rec709_color4';
41153 this.nodedef_type =
'color4';
41155 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/lin_displayp3_to_lin_rec709.html';
41156 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_lin_displayp3_to_lin_rec709_color4_out_genglsl.png';
41157 this.nodedef_group =
'colortransform';
41158 this.addInput(
'in',
'color4');
41159 this.addProperty(
'in', [0.0, 0.0, 0.0, 1.0],
'color4',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41160 this.addOutput(
'out',
'color4');
41161 this.title =
'lin_displayp3_to_lin_rec709_color4';
41162 this.desc =
"MaterialX:mtlx/colortransform/lin_displayp3_to_lin_rec709_color4";
41163 this.onNodeCreated =
function() {
41166 this.onRemoved =
function() {
41169 this.onPropertyChanged =
function(name, value, prev_value) {
41170 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
41172 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
41173 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
41175 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
41176 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
41178 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
41179 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
41181 this.bgcolor =
'#111';
41182 this.color =
'#222';
41183 this.shape = LiteGraph.ROUND_SHAPE;
41184 this.boxcolor =
'#69A';
41197 this.nodedef_icon =
'';
41199 this.nodedef_type =
'lightshader';
41201 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/point_light.html';
41202 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_point_light_out_genglsl.png';
41203 this.nodedef_group =
'light';
41204 this.addInput(
'position',
'vector3');
41205 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41206 this.addInput(
'color',
'color3');
41207 this.addProperty(
'color', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41208 this.addInput(
'intensity',
'float');
41209 this.addProperty(
'intensity', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41210 this.addInput(
'decay_rate',
'float');
41211 this.addProperty(
'decay_rate', 2.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41212 this.addOutput(
'out',
'lightshader');
41213 this.title =
'point_light_lightshader';
41214 this.desc =
"MaterialX:mtlx/light/point_light";
41215 this.onNodeCreated =
function() {
41218 this.onRemoved =
function() {
41221 this.onPropertyChanged =
function(name, value, prev_value) {
41222 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
41224 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
41225 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
41227 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
41228 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
41230 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
41231 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
41233 this.bgcolor =
'#111';
41234 this.color =
'#222';
41235 this.shape = LiteGraph.ROUND_SHAPE;
41239mtlx_light_point_light.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/point_light.html';
41248 this.nodedef_icon =
'';
41250 this.nodedef_type =
'lightshader';
41252 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/directional_light.html';
41253 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_directional_light_out_genglsl.png';
41254 this.nodedef_group =
'light';
41255 this.addInput(
'direction',
'vector3');
41256 this.addProperty(
'direction', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41257 this.addInput(
'color',
'color3');
41258 this.addProperty(
'color', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41259 this.addInput(
'intensity',
'float');
41260 this.addProperty(
'intensity', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41261 this.addOutput(
'out',
'lightshader');
41262 this.title =
'directional_light_lightshader';
41263 this.desc =
"MaterialX:mtlx/light/directional_light";
41264 this.onNodeCreated =
function() {
41267 this.onRemoved =
function() {
41270 this.onPropertyChanged =
function(name, value, prev_value) {
41271 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
41273 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
41274 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
41276 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
41277 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
41279 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
41280 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
41282 this.bgcolor =
'#111';
41283 this.color =
'#222';
41284 this.shape = LiteGraph.ROUND_SHAPE;
41297 this.nodedef_icon =
'';
41299 this.nodedef_type =
'lightshader';
41301 this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/spot_light.html';
41302 this.nodedef_swatch =
'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_spot_light_out_genglsl.png';
41303 this.nodedef_group =
'light';
41304 this.addInput(
'position',
'vector3');
41305 this.addProperty(
'position', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41306 this.addInput(
'direction',
'vector3');
41307 this.addProperty(
'direction', [0.0, 0.0, 0.0],
'vector3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41308 this.addInput(
'color',
'color3');
41309 this.addProperty(
'color', [0.0, 0.0, 0.0],
'color3',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41310 this.addInput(
'intensity',
'float');
41311 this.addProperty(
'intensity', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41312 this.addInput(
'decay_rate',
'float');
41313 this.addProperty(
'decay_rate', 2.0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41314 this.addInput(
'inner_angle',
'float');
41315 this.addProperty(
'inner_angle', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41316 this.addInput(
'outer_angle',
'float');
41317 this.addProperty(
'outer_angle', 0,
'float',{
"colorspace":
"",
"unit":
"",
"unittype":
"",
"uiname":
"",
"uimin":
null,
"uimax":
null,
"uifolder":
"",
"defaultgeomprop":
""});
41318 this.addOutput(
'out',
'lightshader');
41319 this.title =
'spot_light_lightshader';
41320 this.desc =
"MaterialX:mtlx/light/spot_light";
41321 this.onNodeCreated =
function() {
41324 this.onRemoved =
function() {
41327 this.onPropertyChanged =
function(name, value, prev_value) {
41328 MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
41330 this.onPropertyInfoChanged =
function(name, info, value, prev_value) {
41331 MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
41333 this.onConnectOutput =
function(slot, input_type, input, target_node, target_slot) {
41334 MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
41336 this.onConnectInput =
function(target_slot, output_type, output, source, slot) {
41337 MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
41339 this.bgcolor =
'#111';
41340 this.color =
'#222';
41341 this.shape = LiteGraph.ROUND_SHAPE;
41345mtlx_light_spot_light.nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/spot_light.html';
This class is a wrapper around the LiteGraph library to provide a MaterialX node editor.
function mtlx_math_transpose_matrix33()
mtlx_math_transpose_matrix33
function mtlx_texture2d_image_color4()
mtlx_texture2d_image_color4
function mtlx_procedural3d_fractal3d_vector3()
mtlx_procedural3d_fractal3d_vector3
function mtlx_adjustment_smoothstep_color4()
mtlx_adjustment_smoothstep_color4
function mtlx_output_output_displacementshader()
mtlx_output_output_displacementshader
function mtlx_math_subtract_color4FA()
mtlx_math_subtract_color4FA
function mtlx_output_output_vector2()
mtlx_output_output_vector2
function mtlx_pbr_oren_nayar_diffuse_bsdf()
mtlx_pbr_oren_nayar_diffuse_bsdf
function mtlx_output_output_color4()
mtlx_output_output_color4
function mtlx_shader_convert_integer_surfaceshader()
mtlx_shader_convert_integer_surfaceshader
function mtlx_math_multiply_color4()
mtlx_math_multiply_color4
function mtlx_channel_convert_integer_vector4()
mtlx_channel_convert_integer_vector4
function mtlx_math_power_float()
mtlx_math_power_float
function mtlx_geometric_geompropvalue_integer()
mtlx_geometric_geompropvalue_integer
function mtlx_math_min_vector4()
mtlx_math_min_vector4
function mtlx_adjustment_remap_float()
mtlx_adjustment_remap_float
function mtlx_math_safepower_vector4()
mtlx_math_safepower_vector4
function mtlx_pbr_blackbody()
mtlx_pbr_blackbody
function mtlx_conditional_ifgreater_vector4I()
mtlx_conditional_ifgreater_vector4I
function mtlx_conditional_ifequal_matrix33()
mtlx_conditional_ifequal_matrix33
function mtlx_procedural2d_noise2d_vector3()
mtlx_procedural2d_noise2d_vector3
function mtlx_convolution2d_blur_vector4()
mtlx_convolution2d_blur_vector4
function mtlx_conditional_ifequal_booleanB()
mtlx_conditional_ifequal_booleanB
function mtlx_compositing_minus_float()
mtlx_compositing_minus_float
function mtlx_math_transformmatrix_vector3()
mtlx_math_transformmatrix_vector3
function mtlx_input_input_integer()
mtlx_input_input_integer
function mtlx_procedural3d_fractal3d_vector4FA()
mtlx_procedural3d_fractal3d_vector4FA
function mtlx_channel_convert_vector4_vector3()
mtlx_channel_convert_vector4_vector3
function mtlx_adjustment_hsvtorgb_color4()
mtlx_adjustment_hsvtorgb_color4
function mtlx_math_floor_vector3()
mtlx_math_floor_vector3
function mtlx_adjustment_remap_vector3FA()
mtlx_adjustment_remap_vector3FA
function mtlx_math_add_vector2()
mtlx_math_add_vector2
function mtlx_math_divide_matrix44()
mtlx_math_divide_matrix44
function mtlx_math_safepower_vector2()
mtlx_math_safepower_vector2
function mtlx_conditional_logical_not()
mtlx_conditional_logical_not
function mtlx_math_multiply_color3FA()
mtlx_math_multiply_color3FA
function mtlx_geometric_UsdPrimvarReader_vector2()
mtlx_geometric_UsdPrimvarReader_vector2
function mtlx_math_transformmatrix_vector3M4()
mtlx_math_transformmatrix_vector3M4
function mtlx_procedural2d_worleynoise2d_float()
mtlx_procedural2d_worleynoise2d_float
function mtlx_texture3d_triplanarprojection_vector2()
mtlx_texture3d_triplanarprojection_vector2
function mtlx_geometric_normal_vector3()
mtlx_geometric_normal_vector3
function mtlx_math_invert_vector4()
mtlx_math_invert_vector4
function mtlx_math_subtract_vector4()
mtlx_math_subtract_vector4
function mtlx_conditional_ifgreater_booleanI()
mtlx_conditional_ifgreater_booleanI
function mtlx_adjustment_contrast_vector4FA()
mtlx_adjustment_contrast_vector4FA
function mtlx_adjustment_range_vector3FA()
mtlx_adjustment_range_vector3FA
function mtlx_conditional_ifequal_floatI()
mtlx_conditional_ifequal_floatI
function mtlx_math_clamp_float()
mtlx_math_clamp_float
function mtlx_conditional_ifgreatereq_floatI()
mtlx_conditional_ifgreatereq_floatI
function mtlx_organization_dot_integer()
mtlx_organization_dot_integer
function mtlx_pbr_lama_add_bsdf()
mtlx_pbr_lama_add_bsdf
function mtlx_math_invert_vector3FA()
mtlx_math_invert_vector3FA
function mtlx_pbr_translucent_bsdf()
mtlx_pbr_translucent_bsdf
function mtlx_procedural_constant_color4()
mtlx_procedural_constant_color4
function mtlx_math_round_integer()
mtlx_math_round_integer
function mtlx_colortransform_g22_ap1_to_lin_rec709_color3()
mtlx_colortransform_g22_ap1_to_lin_rec709_color3
function mtlx_geometric_texcoord_vector3()
mtlx_geometric_texcoord_vector3
function mtlx_pbr_mix_vdf()
mtlx_pbr_mix_vdf
function mtlx_adjustment_contrast_vector3FA()
mtlx_adjustment_contrast_vector3FA
function mtlx_adjustment_range_color3()
mtlx_adjustment_range_color3
function mtlx_conditional_ifgreatereq_vector3()
mtlx_conditional_ifgreatereq_vector3
function mtlx_math_creatematrix_vector4_matrix44()
mtlx_math_creatematrix_vector4_matrix44
function mtlx_math_clamp_vector3FA()
mtlx_math_clamp_vector3FA
function mtlx_math_max_color4()
mtlx_math_max_color4
function mtlx_colortransform_rec709_display_to_lin_rec709_color4()
mtlx_colortransform_rec709_display_to_lin_rec709_color4
function mtlx_math_modulo_vector4()
mtlx_math_modulo_vector4
function mtlx_light_spot_light()
mtlx_light_spot_light
function mtlx_adjustment_contrast_float()
mtlx_adjustment_contrast_float
function mtlx_math_place2d_vector2()
mtlx_math_place2d_vector2
function mtlx_conditional_ifequal_integerI()
mtlx_conditional_ifequal_integerI
function mtlx_math_ln_float()
mtlx_math_ln_float
function mtlx_conditional_ifgreater_integer()
mtlx_conditional_ifgreater_integer
function mtlx_conditional_ifequal_vector4I()
mtlx_conditional_ifequal_vector4I
function mtlx_channel_separate4_color4()
mtlx_channel_separate4_color4
function mtlx_conditional_ifequal_floatB()
mtlx_conditional_ifequal_floatB
function mtlx_input_input_vector3()
mtlx_input_input_vector3
function mtlx_channel_convert_boolean_integer()
mtlx_channel_convert_boolean_integer
function mtlx_math_tan_vector2()
mtlx_math_tan_vector2
function mtlx_light_directional_light()
mtlx_light_directional_light
function mtlx_math_max_float()
mtlx_math_max_float
function mtlx_math_tan_vector3()
mtlx_math_tan_vector3
function mtlx_math_UsdTransform2d()
mtlx_math_UsdTransform2d
function mtlx_math_ceil_color3()
mtlx_math_ceil_color3
function mtlx_math_divide_vector2()
mtlx_math_divide_vector2
function mtlx_colortransform_g22_ap1_to_lin_rec709_color4()
mtlx_colortransform_g22_ap1_to_lin_rec709_color4
function mtlx_math_invert_vector4FA()
mtlx_math_invert_vector4FA
function mtlx_procedural2d_noise2d_vector4()
mtlx_procedural2d_noise2d_vector4
function mtlx_pbr_lama_iridescence()
mtlx_pbr_lama_iridescence
function mtlx_procedural_constant_matrix33()
mtlx_procedural_constant_matrix33
function mtlx_channel_convert_vector4_color3()
mtlx_channel_convert_vector4_color3
function mtlx_texture2d_image_float()
mtlx_texture2d_image_float
function mtlx_shader_convert_vector4_surfaceshader()
mtlx_shader_convert_vector4_surfaceshader
function mtlx_math_min_vector4FA()
mtlx_math_min_vector4FA
function mtlx_channel_convert_vector2_color4()
mtlx_channel_convert_vector2_color4
function mtlx_compositing_burn_float()
mtlx_compositing_burn_float
function mtlx_math_subtract_color3()
mtlx_math_subtract_color3
function mtlx_conditional_ifequal_integer()
mtlx_conditional_ifequal_integer
function mtlx_output_output_integer()
mtlx_output_output_integer
function mtlx_adjustment_remap_color4()
mtlx_adjustment_remap_color4
function mtlx_input_input_boolean()
mtlx_input_input_boolean
function mtlx_procedural3d_fractal3d_float()
mtlx_procedural3d_fractal3d_float
function mtlx_adjustment_contrast_vector3()
mtlx_adjustment_contrast_vector3
function mtlx_compositing_mix_vector2_vector2()
mtlx_compositing_mix_vector2_vector2
function mtlx_compositing_mix_color3_color3()
mtlx_compositing_mix_color3_color3
function mtlx_procedural_constant_vector2()
mtlx_procedural_constant_vector2
function mtlx_procedural2d_ramp4_vector4()
mtlx_procedural2d_ramp4_vector4
function mtlx_adjustment_remap_vector3()
mtlx_adjustment_remap_vector3
function mtlx_math_multiply_float()
mtlx_math_multiply_float
function mtlx_channel_convert_color4_vector2()
mtlx_channel_convert_color4_vector2
function mtlx_procedural2d_ramptb_vector3()
mtlx_procedural2d_ramptb_vector3
function mtlx_procedural2d_noise2d_color4FA()
mtlx_procedural2d_noise2d_color4FA
function mtlx_conditional_switch_vector2()
mtlx_conditional_switch_vector2
function mtlx_pbr_lama_generalized_schlick()
mtlx_pbr_lama_generalized_schlick
function mtlx_math_transformnormal_vector3()
mtlx_math_transformnormal_vector3
function mtlx_colortransform_lin_displayp3_to_lin_rec709_color3()
mtlx_colortransform_lin_displayp3_to_lin_rec709_color3
function mtlx_math_sign_color4()
mtlx_math_sign_color4
function mtlx_procedural2d_splitlr_color4()
mtlx_procedural2d_splitlr_color4
function mtlx_compositing_disjointover_color4()
mtlx_compositing_disjointover_color4
function mtlx_procedural2d_splittb_float()
mtlx_procedural2d_splittb_float
function mtlx_math_subtract_integer()
mtlx_math_subtract_integer
function mtlx_adjustment_contrast_vector2()
mtlx_adjustment_contrast_vector2
function mtlx_channel_convert_vector4_vector2()
mtlx_channel_convert_vector4_vector2
function mtlx_compositing_outside_color4()
mtlx_compositing_outside_color4
function mtlx_math_creatematrix_vector3_matrix44()
mtlx_math_creatematrix_vector3_matrix44
function mtlx_pbr_open_pbr_anisotropy()
mtlx_pbr_open_pbr_anisotropy
function mtlx_math_power_vector4FA()
mtlx_math_power_vector4FA
function mtlx_math_safepower_color4()
mtlx_math_safepower_color4
function mtlx_pbr_lama_translucent()
mtlx_pbr_lama_translucent
function mtlx_math_safepower_vector3FA()
mtlx_math_safepower_vector3FA
function mtlx_math_floor_integer()
mtlx_math_floor_integer
function mtlx_channel_convert_integer_color4()
mtlx_channel_convert_integer_color4
function mtlx_conditional_ifgreatereq_color3()
mtlx_conditional_ifgreatereq_color3
function mtlx_texture2d_gltf_colorimage()
mtlx_texture2d_gltf_colorimage
function mtlx_math_round_vector4()
mtlx_math_round_vector4
function mtlx_input_input_vector2array()
mtlx_input_input_vector2array
function mtlx_conditional_ifgreatereq_matrix44I()
mtlx_conditional_ifgreatereq_matrix44I
function mtlx_conditional_ifequal_color3B()
mtlx_conditional_ifequal_color3B
function mtlx_conditional_ifgreatereq_float()
mtlx_conditional_ifgreatereq_float
function mtlx_math_absval_vector3()
mtlx_math_absval_vector3
function mtlx_pbr_absorption_vdf()
mtlx_pbr_absorption_vdf
function mtlx_adjustment_contrast_vector4()
mtlx_adjustment_contrast_vector4
function mtlx_procedural2d_unifiednoise2d_float()
mtlx_procedural2d_unifiednoise2d_float
function mtlx_procedural3d_randomcolor_integer()
mtlx_procedural3d_randomcolor_integer
function mtlx_math_clamp_vector4FA()
mtlx_math_clamp_vector4FA
function mtlx_adjustment_remap_color3()
mtlx_adjustment_remap_color3
function mtlx_math_add_matrix44()
mtlx_math_add_matrix44
function mtlx_math_sign_color3()
mtlx_math_sign_color3
function mtlx_procedural_constant_integer()
mtlx_procedural_constant_integer
function mtlx_adjustment_curveadjust_vector2()
mtlx_adjustment_curveadjust_vector2
function mtlx_pbr_disney_brdf_2012_surface()
mtlx_pbr_disney_brdf_2012_surface
function mtlx_compositing_inside_color4()
mtlx_compositing_inside_color4
function mtlx_channel_combine3_color3()
mtlx_channel_combine3_color3
function mtlx_math_max_vector3()
mtlx_math_max_vector3
function mtlx_channel_combine2_color4CF()
mtlx_channel_combine2_color4CF
function mtlx_math_ln_vector3()
mtlx_math_ln_vector3
function mtlx_procedural2d_line_float()
mtlx_procedural2d_line_float
function mtlx_math_clamp_color4FA()
mtlx_math_clamp_color4FA
function mtlx_math_creatematrix_vector3_matrix33()
mtlx_math_creatematrix_vector3_matrix33
function mtlx_adjustment_contrast_color3FA()
mtlx_adjustment_contrast_color3FA
function mtlx_output_output_lightshader()
mtlx_output_output_lightshader
function mtlx_pbr_lama_dielectric()
mtlx_pbr_lama_dielectric
function mtlx_math_max_vector2()
mtlx_math_max_vector2
function mtlx_pbr_lama_sheen()
mtlx_pbr_lama_sheen
function mtlx_conditional_ifequal_boolean()
mtlx_conditional_ifequal_boolean
function mtlx_compositing_mix_vector2()
mtlx_compositing_mix_vector2
function mtlx_conditional_logical_and()
mtlx_conditional_logical_and
function mtlx_adjustment_smoothstep_vector3FA()
mtlx_adjustment_smoothstep_vector3FA
function mtlx_math_min_vector2()
mtlx_math_min_vector2
function mtlx_texture2d_gltf_image_color3_color3_1_0()
mtlx_texture2d_gltf_image_color3_color3_1_0
function mtlx_math_subtract_color3FA()
mtlx_math_subtract_color3FA
function mtlx_organization_dot_color3()
mtlx_organization_dot_color3
function mtlx_compositing_inside_color3()
mtlx_compositing_inside_color3
function mtlx_translation_standard_surface_to_gltf_pbr()
mtlx_translation_standard_surface_to_gltf_pbr
function mtlx_pbr_multiply_edfC()
mtlx_pbr_multiply_edfC
function mtlx_pbr_anisotropic_vdf()
mtlx_pbr_anisotropic_vdf
function mtlx_channel_extract_vector4()
mtlx_channel_extract_vector4
function mtlx_adjustment_remap_vector4FA()
mtlx_adjustment_remap_vector4FA
function mtlx_math_divide_vector3()
mtlx_math_divide_vector3
function mtlx_conditional_logical_xor()
mtlx_conditional_logical_xor
function mtlx_math_add_matrix44FA()
mtlx_math_add_matrix44FA
function mtlx_math_subtract_color4()
mtlx_math_subtract_color4
function mtlx_math_add_color3FA()
mtlx_math_add_color3FA
function mtlx_output_output_BSDF()
mtlx_output_output_BSDF
function mtlx_math_acos_float()
mtlx_math_acos_float
function mtlx_procedural2d_splitlr_vector4()
mtlx_procedural2d_splitlr_vector4
function mtlx_compositing_overlay_color3()
mtlx_compositing_overlay_color3
function mtlx_math_asin_vector3()
mtlx_math_asin_vector3
function mtlx_conditional_ifgreater_color3()
mtlx_conditional_ifgreater_color3
function mtlx_procedural_constant_string()
mtlx_procedural_constant_string
function mtlx_adjustment_smoothstep_vector2FA()
mtlx_adjustment_smoothstep_vector2FA
function mtlx_adjustment_hsvadjust_color4()
mtlx_adjustment_hsvadjust_color4
function mtlx_colortransform_adobergb_to_lin_rec709_color3()
mtlx_colortransform_adobergb_to_lin_rec709_color3
function mtlx_conditional_ifgreatereq_color3I()
mtlx_conditional_ifgreatereq_color3I
function mtlx_compositing_screen_color3()
mtlx_compositing_screen_color3
function mtlx_math_reflect_vector3()
mtlx_math_reflect_vector3
function mtlx_texture2d_image_color3()
mtlx_texture2d_image_color3
function mtlx_math_cos_vector3()
mtlx_math_cos_vector3
function mtlx_pbr_add_vdf()
mtlx_pbr_add_vdf
function mtlx_input_input_color3()
mtlx_input_input_color3
function mtlx_conditional_ifequal_integerB()
mtlx_conditional_ifequal_integerB
function mtlx_procedural_constant_matrix44()
mtlx_procedural_constant_matrix44
function mtlx_conditional_ifequal_vector2()
mtlx_conditional_ifequal_vector2
function mtlx_channel_convert_vector2_vector4()
mtlx_channel_convert_vector2_vector4
function mtlx_colortransform_g22_rec709_to_lin_rec709_color4()
mtlx_colortransform_g22_rec709_to_lin_rec709_color4
function mtlx_math_magnitude_vector3()
mtlx_math_magnitude_vector3
function mtlx_procedural2d_splittb_color4()
mtlx_procedural2d_splittb_color4
function mtlx_pbr_multiply_vdfC()
mtlx_pbr_multiply_vdfC
function mtlx_colortransform_srgb_texture_to_lin_rec709_color4()
mtlx_colortransform_srgb_texture_to_lin_rec709_color4
function mtlx_channel_convert_color3_color4()
mtlx_channel_convert_color3_color4
function mtlx_geometric_position_vector3()
mtlx_geometric_position_vector3
function mtlx_procedural2d_ramptb_color4()
mtlx_procedural2d_ramptb_color4
function mtlx_organization_dot_float()
mtlx_organization_dot_float
function mtlx_texture2d_gltf_image_float_float_1_0()
mtlx_texture2d_gltf_image_float_float_1_0
function mtlx_math_cos_vector4()
mtlx_math_cos_vector4
function mtlx_math_ceil_vector3()
mtlx_math_ceil_vector3
function mtlx_procedural2d_noise2d_vector2FA()
mtlx_procedural2d_noise2d_vector2FA
function mtlx_math_subtract_matrix33FA()
mtlx_math_subtract_matrix33FA
function mtlx_conditional_switch_color4I()
mtlx_conditional_switch_color4I
function mtlx_conditional_ifequal_matrix44I()
mtlx_conditional_ifequal_matrix44I
function mtlx_geometric_geomcolor_color4()
mtlx_geometric_geomcolor_color4
function mtlx_conditional_ifgreatereq_vector2I()
mtlx_conditional_ifgreatereq_vector2I
function mtlx_compositing_mix_color3()
mtlx_compositing_mix_color3
function mtlx_channel_convert_vector2_color3()
mtlx_channel_convert_vector2_color3
function mtlx_input_input_color4()
mtlx_input_input_color4
function mtlx_procedural2d_ramptb_float()
mtlx_procedural2d_ramptb_float
function mtlx_compositing_dodge_float()
mtlx_compositing_dodge_float
function mtlx_input_input_surfaceshader()
mtlx_input_input_surfaceshader
function mtlx_adjustment_remap_vector2()
mtlx_adjustment_remap_vector2
function mtlx_math_max_color3()
mtlx_math_max_color3
function mtlx_input_input_vector4()
mtlx_input_input_vector4
function mtlx_organization_dot_vector3()
mtlx_organization_dot_vector3
mtlx_material_surfacematerial nodedef_name
function mtlx_math_modulo_vector3()
mtlx_math_modulo_vector3
function mtlx_channel_convert_boolean_color3()
mtlx_channel_convert_boolean_color3
function mtlx_math_exp_float()
mtlx_math_exp_float
function mtlx_organization_dot_surfaceshader()
mtlx_organization_dot_surfaceshader
function mtlx_channel_extract_color3()
mtlx_channel_extract_color3
function mtlx_channel_combine4_vector4()
mtlx_channel_combine4_vector4
function mtlx_procedural2d_checkerboard_color3()
mtlx_procedural2d_checkerboard_color3
function mtlx_channel_convert_color3_vector3()
mtlx_channel_convert_color3_vector3
function mtlx_adjustment_remap_vector4()
mtlx_adjustment_remap_vector4
function mtlx_pbr_standard_surface_surfaceshader()
mtlx_pbr_standard_surface_surfaceshader
function mtlx_pbr_standard_surface_surfaceshader_100()
mtlx_pbr_standard_surface_surfaceshader_100
function mtlx_math_add_integer()
mtlx_math_add_integer
function mtlx_compositing_premult_color4()
mtlx_compositing_premult_color4
function mtlx_math_multiply_vector2FA()
mtlx_math_multiply_vector2FA
function mtlx_pbr_generalized_schlick_edf()
mtlx_pbr_generalized_schlick_edf
function mtlx_math_transformpoint_vector3()
mtlx_math_transformpoint_vector3
function mtlx_adjustment_colorcorrect_color3()
mtlx_adjustment_colorcorrect_color3
function mtlx_compositing_matte_color4()
mtlx_compositing_matte_color4
function mtlx_procedural2d_crosshatch_color3()
mtlx_procedural2d_crosshatch_color3
function mtlx_math_min_float()
mtlx_math_min_float
function mtlx_procedural3d_noise3d_color3FA()
mtlx_procedural3d_noise3d_color3FA
function mtlx_channel_convert_vector2_vector3()
mtlx_channel_convert_vector2_vector3
function mtlx_pbr_lama_emission()
mtlx_pbr_lama_emission
function mtlx_colortransform_acescg_to_lin_rec709_color4()
mtlx_colortransform_acescg_to_lin_rec709_color4
function mtlx_organization_dot_string()
mtlx_organization_dot_string
function mtlx_adjustment_range_color4()
mtlx_adjustment_range_color4
function mtlx_conditional_ifgreater_vector2()
mtlx_conditional_ifgreater_vector2
function mtlx_math_invert_color3()
mtlx_math_invert_color3
function mtlx_pbr_roughness_anisotropy()
mtlx_pbr_roughness_anisotropy
function mtlx_math_sin_float()
mtlx_math_sin_float
function mtlx_channel_convert_integer_color3()
mtlx_channel_convert_integer_color3
function mtlx_math_add_color4FA()
mtlx_math_add_color4FA
function mtlx_procedural3d_noise3d_vector2()
mtlx_procedural3d_noise3d_vector2
function mtlx_math_floor_color3()
mtlx_math_floor_color3
function mtlx_conditional_ifequal_vector4B()
mtlx_conditional_ifequal_vector4B
function mtlx_procedural3d_worleynoise3d_vector2()
mtlx_procedural3d_worleynoise3d_vector2
function mtlx_adjustment_colorcorrect_color4()
mtlx_adjustment_colorcorrect_color4
function mtlx_math_acos_vector4()
mtlx_math_acos_vector4
function mtlx_math_magnitude_vector4()
mtlx_math_magnitude_vector4
function mtlx_math_power_vector3FA()
mtlx_math_power_vector3FA
function mtlx_math_floor_vector2()
mtlx_math_floor_vector2
function mtlx_compositing_unpremult_color4()
mtlx_compositing_unpremult_color4
function mtlx_conditional_ifgreatereq_vector4()
mtlx_conditional_ifgreatereq_vector4
function mtlx_conditional_logical_or()
mtlx_conditional_logical_or
function mtlx_math_safepower_vector2FA()
mtlx_math_safepower_vector2FA
function mtlx_math_clamp_color3FA()
mtlx_math_clamp_color3FA
function mtlx_adjustment_smoothstep_color3FA()
mtlx_adjustment_smoothstep_color3FA
function mtlx_organization_dot_matrix33()
mtlx_organization_dot_matrix33
function mtlx_organization_dot_filename()
mtlx_organization_dot_filename
function mtlx_channel_separate3_color3()
mtlx_channel_separate3_color3
function mtlx_math_add_vector3FA()
mtlx_math_add_vector3FA
function mtlx_math_ceil_float()
mtlx_math_ceil_float
function mtlx_adjustment_smoothstep_color4FA()
mtlx_adjustment_smoothstep_color4FA
function mtlx_conditional_ifgreater_vector3I()
mtlx_conditional_ifgreater_vector3I
function mtlx_channel_combine4_color4()
mtlx_channel_combine4_color4
function mtlx_organization_dot_color4()
mtlx_organization_dot_color4
function mtlx_math_sign_vector3()
mtlx_math_sign_vector3
function mtlx_channel_combine3_vector3()
mtlx_channel_combine3_vector3
function mtlx_channel_convert_vector3_vector4()
mtlx_channel_convert_vector3_vector4
function mtlx_procedural3d_fractal3d_color4FA()
mtlx_procedural3d_fractal3d_color4FA
function mtlx_compositing_dodge_color4()
mtlx_compositing_dodge_color4
function mtlx_math_add_vector2FA()
mtlx_math_add_vector2FA
function mtlx_math_clamp_vector3()
mtlx_math_clamp_vector3
mtlx_material_surfacematerial nodedef_href
function mtlx_adjustment_range_vector4FA()
mtlx_adjustment_range_vector4FA
function mtlx_conditional_switch_vector3I()
mtlx_conditional_switch_vector3I
function mtlx_conditional_ifgreatereq_color4I()
mtlx_conditional_ifgreatereq_color4I
function mtlx_math_sign_vector2()
mtlx_math_sign_vector2
function mtlx_pbr_multiply_bsdfF()
mtlx_pbr_multiply_bsdfF
function mtlx_math_invert_color4()
mtlx_math_invert_color4
function mtlx_input_input_EDF()
mtlx_input_input_EDF
function mtlx_math_round_vector3()
mtlx_math_round_vector3
function mtlx_channel_convert_boolean_float()
mtlx_channel_convert_boolean_float
function mtlx_conditional_ifgreatereq_integerI()
mtlx_conditional_ifgreatereq_integerI
function mtlx_math_floor_vector4()
mtlx_math_floor_vector4
function mtlx_channel_convert_color4_vector3()
mtlx_channel_convert_color4_vector3
function mtlx_compositing_burn_color3()
mtlx_compositing_burn_color3
function mtlx_math_safepower_color3()
mtlx_math_safepower_color3
function mtlx_geometric_geompropvalue_color4()
mtlx_geometric_geompropvalue_color4
function mtlx_output_output_surfaceshader()
mtlx_output_output_surfaceshader
function mtlx_organization_dot_lightshader()
mtlx_organization_dot_lightshader
function mtlx_math_min_vector2FA()
mtlx_math_min_vector2FA
function mtlx_math_distance_vector3()
mtlx_math_distance_vector3
function mtlx_procedural_constant_filename()
mtlx_procedural_constant_filename
function mtlx_npr_facingratio_float()
mtlx_npr_facingratio_float
function mtlx_procedural3d_noise3d_vector3()
mtlx_procedural3d_noise3d_vector3
function mtlx_adjustment_smoothstep_vector2()
mtlx_adjustment_smoothstep_vector2
function mtlx_math_modulo_color3FA()
mtlx_math_modulo_color3FA
function mtlx_math_absval_vector2()
mtlx_math_absval_vector2
function mtlx_procedural2d_noise2d_color3()
mtlx_procedural2d_noise2d_color3
function mtlx_math_modulo_color4FA()
mtlx_math_modulo_color4FA
function mtlx_adjustment_range_color3FA()
mtlx_adjustment_range_color3FA
function mtlx_compositing_mix_displacementshader()
mtlx_compositing_mix_displacementshader
function mtlx_math_transformvector_vector3()
mtlx_math_transformvector_vector3
function mtlx_organization_dot_matrix44()
mtlx_organization_dot_matrix44
function mtlx_procedural3d_noise3d_vector4FA()
mtlx_procedural3d_noise3d_vector4FA
function mtlx_math_safepower_float()
mtlx_math_safepower_float
function mtlx_procedural2d_splitlr_float()
mtlx_procedural2d_splitlr_float
function mtlx_texture2d_image_vector2()
mtlx_texture2d_image_vector2
function mtlx_pbr_dielectric_bsdf()
mtlx_pbr_dielectric_bsdf
function mtlx_procedural2d_circle_float()
mtlx_procedural2d_circle_float
function mtlx_compositing_mix_color4_color4()
mtlx_compositing_mix_color4_color4
function mtlx_conditional_ifgreater_color4I()
mtlx_conditional_ifgreater_color4I
function mtlx_math_min_color4()
mtlx_math_min_color4
function mtlx_application_frame_float()
mtlx_application_frame_float
function mtlx_pbr_multiply_edfF()
mtlx_pbr_multiply_edfF
function mtlx_pbr_UsdPreviewSurface_surfaceshader()
mtlx_pbr_UsdPreviewSurface_surfaceshader
function mtlx_math_invertmatrix_matrix44()
mtlx_math_invertmatrix_matrix44
function mtlx_output_output_float()
mtlx_output_output_float
function mtlx_adjustment_curveadjust_vector4()
mtlx_adjustment_curveadjust_vector4
function mtlx_math_max_vector4()
mtlx_math_max_vector4
function mtlx_math_modulo_color4()
mtlx_math_modulo_color4
function mtlx_procedural2d_ramplr_vector3()
mtlx_procedural2d_ramplr_vector3
function mtlx_adjustment_rgbtohsv_color3()
mtlx_adjustment_rgbtohsv_color3
function mtlx_procedural2d_ramptb_vector2()
mtlx_procedural2d_ramptb_vector2
function mtlx_geometric_UsdPrimvarReader_boolean()
mtlx_geometric_UsdPrimvarReader_boolean
function mtlx_texture2d_gltf_image_color4_color4_1_0()
mtlx_texture2d_gltf_image_color4_color4_1_0
function mtlx_math_min_color3FA()
mtlx_math_min_color3FA
function mtlx_convolution2d_blur_float()
mtlx_convolution2d_blur_float
function mtlx_geometric_UsdPrimvarReader_float()
mtlx_geometric_UsdPrimvarReader_float
function mtlx_procedural2d_splittb_vector2()
mtlx_procedural2d_splittb_vector2
function mtlx_input_input_VDF()
mtlx_input_input_VDF
function mtlx_channel_separate4_vector4()
mtlx_channel_separate4_vector4
function mtlx_procedural3d_worleynoise3d_float()
mtlx_procedural3d_worleynoise3d_float
function mtlx_math_distance_vector4()
mtlx_math_distance_vector4
function mtlx_input_input_string()
mtlx_input_input_string
function mtlx_organization_dot_vector2()
mtlx_organization_dot_vector2
function mtlx_math_modulo_vector3FA()
mtlx_math_modulo_vector3FA
function mtlx_channel_extract_vector3()
mtlx_channel_extract_vector3
function mtlx_light_point_light()
mtlx_light_point_light
function mtlx_output_output_vector2array()
mtlx_output_output_vector2array
function mtlx_procedural3d_noise3d_color4()
mtlx_procedural3d_noise3d_color4
function mtlx_math_transformmatrix_vector4()
mtlx_math_transformmatrix_vector4
function mtlx_texture2d_tiledimage_color4()
mtlx_texture2d_tiledimage_color4
function mtlx_adjustment_curveadjust_color3()
mtlx_adjustment_curveadjust_color3
function mtlx_conditional_ifequal_matrix33B()
mtlx_conditional_ifequal_matrix33B
function mtlx_channel_convert_integer_boolean()
mtlx_channel_convert_integer_boolean
function mtlx_math_power_color4()
mtlx_math_power_color4
function mtlx_texture2d_UsdUVTexture()
mtlx_texture2d_UsdUVTexture
function mtlx_math_crossproduct_vector3()
mtlx_math_crossproduct_vector3
function mtlx_math_sqrt_vector2()
mtlx_math_sqrt_vector2
function mtlx_math_invert_float()
mtlx_math_invert_float
function mtlx_procedural2d_worleynoise2d_vector3()
mtlx_procedural2d_worleynoise2d_vector3
function mtlx_math_invertmatrix_matrix33()
mtlx_math_invertmatrix_matrix33
function mtlx_procedural2d_noise2d_float()
mtlx_procedural2d_noise2d_float
function mtlx_compositing_overlay_color4()
mtlx_compositing_overlay_color4
function mtlx_pbr_add_edf()
mtlx_pbr_add_edf
function mtlx_math_round_vector2()
mtlx_math_round_vector2
function mtlx_input_input_lightshader()
mtlx_input_input_lightshader
function mtlx_adjustment_curveadjust_vector3()
mtlx_adjustment_curveadjust_vector3
function mtlx_math_divide_color4FA()
mtlx_math_divide_color4FA
function mtlx_pbr_open_pbr_surface_surfaceshader()
mtlx_pbr_open_pbr_surface_surfaceshader
function mtlx_output_output_filename()
mtlx_output_output_filename
function mtlx_pbr_layer_bsdf()
mtlx_pbr_layer_bsdf
function mtlx_conditional_switch_float()
mtlx_conditional_switch_float
function mtlx_math_floor_float()
mtlx_math_floor_float
function mtlx_colortransform_g22_rec709_to_lin_rec709_color3()
mtlx_colortransform_g22_rec709_to_lin_rec709_color3
function mtlx_adjustment_range_vector2FA()
mtlx_adjustment_range_vector2FA
function mtlx_procedural2d_tiledcircles_color3()
mtlx_procedural2d_tiledcircles_color3
function mtlx_organization_dot_displacementshader()
mtlx_organization_dot_displacementshader
function mtlx_material_surfacematerial()
mtlx_material_surfacematerial
function mtlx_pbr_multiply_vdfF()
mtlx_pbr_multiply_vdfF
function mtlx_procedural2d_ramplr_float()
mtlx_procedural2d_ramplr_float
function mtlx_procedural3d_noise3d_vector2FA()
mtlx_procedural3d_noise3d_vector2FA
function mtlx_channel_separate2_vector2()
mtlx_channel_separate2_vector2
function mtlx_conditional_ifgreater_matrix33I()
mtlx_conditional_ifgreater_matrix33I
function mtlx_math_floor_color4()
mtlx_math_floor_color4
function mtlx_compositing_screen_float()
mtlx_compositing_screen_float
function mtlx_math_divide_matrix33()
mtlx_math_divide_matrix33
function mtlx_texture2d_image_vector3()
mtlx_texture2d_image_vector3
function mtlx_channel_convert_integer_vector3()
mtlx_channel_convert_integer_vector3
function mtlx_shader_convert_vector3_surfaceshader()
mtlx_shader_convert_vector3_surfaceshader
function mtlx_input_input_material()
mtlx_input_input_material
function mtlx_math_ceil_color4()
mtlx_math_ceil_color4
function mtlx_pbr_artistic_ior()
mtlx_pbr_artistic_ior
function mtlx_procedural2d_ramp4_vector3()
mtlx_procedural2d_ramp4_vector3
function mtlx_geometric_geompropvalue_string()
mtlx_geometric_geompropvalue_string
function mtlx_math_modulo_vector2()
mtlx_math_modulo_vector2
function mtlx_math_add_float()
mtlx_math_add_float
function mtlx_math_exp_vector4()
mtlx_math_exp_vector4
function mtlx_math_atan2_vector4()
mtlx_math_atan2_vector4
function mtlx_math_power_color3()
mtlx_math_power_color3
function mtlx_compositing_mix_surfaceshader()
mtlx_compositing_mix_surfaceshader
function mtlx_pbr_mix_bsdf()
mtlx_pbr_mix_bsdf
function mtlx_math_max_vector4FA()
mtlx_math_max_vector4FA
function mtlx_conditional_switch_vector4()
mtlx_conditional_switch_vector4
function mtlx_pbr_layer_vdf()
mtlx_pbr_layer_vdf
function mtlx_shader_convert_color3_surfaceshader()
mtlx_shader_convert_color3_surfaceshader
function mtlx_compositing_difference_float()
mtlx_compositing_difference_float
function mtlx_procedural3d_worleynoise3d_vector3()
mtlx_procedural3d_worleynoise3d_vector3
function mtlx_math_divide_vector4()
mtlx_math_divide_vector4
function mtlx_shader_convert_float_surfaceshader()
mtlx_shader_convert_float_surfaceshader
function mtlx_math_acos_vector2()
mtlx_math_acos_vector2
function mtlx_conditional_ifgreater_boolean()
mtlx_conditional_ifgreater_boolean
function mtlx_channel_extract_vector2()
mtlx_channel_extract_vector2
function mtlx_conditional_ifgreater_color4()
mtlx_conditional_ifgreater_color4
function mtlx_math_clamp_vector2FA()
mtlx_math_clamp_vector2FA
function mtlx_pbr_multiply_bsdfC()
mtlx_pbr_multiply_bsdfC
function mtlx_pbr_gltf_pbr_surfaceshader()
mtlx_pbr_gltf_pbr_surfaceshader
function mtlx_procedural2d_grid_color3()
mtlx_procedural2d_grid_color3
function mtlx_math_subtract_matrix33()
mtlx_math_subtract_matrix33
function mtlx_math_power_vector2()
mtlx_math_power_vector2
function mtlx_math_acos_vector3()
mtlx_math_acos_vector3
function mtlx_procedural_constant_vector3()
mtlx_procedural_constant_vector3
function mtlx_compositing_difference_color3()
mtlx_compositing_difference_color3
function mtlx_math_normalize_vector4()
mtlx_math_normalize_vector4
function mtlx_adjustment_smoothstep_vector4FA()
mtlx_adjustment_smoothstep_vector4FA
function mtlx_npr_gooch_shade()
mtlx_npr_gooch_shade
function mtlx_colortransform_lin_adobergb_to_lin_rec709_color3()
mtlx_colortransform_lin_adobergb_to_lin_rec709_color3
function mtlx_conditional_switch_matrix33()
mtlx_conditional_switch_matrix33
function mtlx_channel_combine2_vector2()
mtlx_channel_combine2_vector2
function mtlx_adjustment_rgbtohsv_color4()
mtlx_adjustment_rgbtohsv_color4
function mtlx_compositing_mask_color4()
mtlx_compositing_mask_color4
function mtlx_math_multiply_matrix33()
mtlx_math_multiply_matrix33
function mtlx_adjustment_range_color4FA()
mtlx_adjustment_range_color4FA
function mtlx_texture2d_image_vector4()
mtlx_texture2d_image_vector4
function mtlx_compositing_outside_float()
mtlx_compositing_outside_float
function mtlx_geometric_geompropvalue_boolean()
mtlx_geometric_geompropvalue_boolean
function mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4()
mtlx_colortransform_srgb_displayp3_to_lin_rec709_color4
function mtlx_math_max_color3FA()
mtlx_math_max_color3FA
function mtlx_math_invert_vector2FA()
mtlx_math_invert_vector2FA
function mtlx_math_dotproduct_vector2()
mtlx_math_dotproduct_vector2
function mtlx_math_sign_float()
mtlx_math_sign_float
function mtlx_compositing_plus_color3()
mtlx_compositing_plus_color3
function mtlx_channel_combine2_vector4VV()
mtlx_channel_combine2_vector4VV
function mtlx_conditional_ifgreatereq_vector2()
mtlx_conditional_ifgreatereq_vector2
function mtlx_math_max_color4FA()
mtlx_math_max_color4FA
function mtlx_math_subtract_matrix44()
mtlx_math_subtract_matrix44
function mtlx_conditional_ifgreatereq_color4()
mtlx_conditional_ifgreatereq_color4
function mtlx_math_invert_color3FA()
mtlx_math_invert_color3FA
function mtlx_input_input_BSDF()
mtlx_input_input_BSDF
function mtlx_math_determinant_matrix44()
mtlx_math_determinant_matrix44
function mtlx_conditional_switch_color3I()
mtlx_conditional_switch_color3I
function mtlx_procedural2d_noise2d_vector4FA()
mtlx_procedural2d_noise2d_vector4FA
function mtlx_channel_separate3_vector3()
mtlx_channel_separate3_vector3
function mtlx_math_sin_vector4()
mtlx_math_sin_vector4
function mtlx_adjustment_remap_color3FA()
mtlx_adjustment_remap_color3FA
function mtlx_conditional_switch_vector2I()
mtlx_conditional_switch_vector2I
function mtlx_math_round_float()
mtlx_math_round_float
function mtlx_pbr_subsurface_bsdf()
mtlx_pbr_subsurface_bsdf
function mtlx_adjustment_contrast_color3()
mtlx_adjustment_contrast_color3
function mtlx_channel_convert_float_vector4()
mtlx_channel_convert_float_vector4
function mtlx_global_ambientocclusion_float()
mtlx_global_ambientocclusion_float
function mtlx_math_normalize_vector2()
mtlx_math_normalize_vector2
function mtlx_pbr_glossiness_anisotropy()
mtlx_pbr_glossiness_anisotropy
function mtlx_geometric_texcoord_vector2()
mtlx_geometric_texcoord_vector2
function mtlx_procedural2d_ramp4_color4()
mtlx_procedural2d_ramp4_color4
function mtlx_math_absval_color3()
mtlx_math_absval_color3
function mtlx_compositing_mix_vector3_vector3()
mtlx_compositing_mix_vector3_vector3
function mtlx_math_clamp_color3()
mtlx_math_clamp_color3
function mtlx_math_cos_float()
mtlx_math_cos_float
function mtlx_colortransform_lin_adobergb_to_lin_rec709_color4()
mtlx_colortransform_lin_adobergb_to_lin_rec709_color4
function mtlx_math_subtract_float()
mtlx_math_subtract_float
function mtlx_adjustment_smoothstep_vector3()
mtlx_adjustment_smoothstep_vector3
function mtlx_procedural2d_worleynoise2d_vector2()
mtlx_procedural2d_worleynoise2d_vector2
function mtlx_math_dotproduct_vector3()
mtlx_math_dotproduct_vector3
function mtlx_output_output_vector4()
mtlx_output_output_vector4
function mtlx_compositing_dodge_color3()
mtlx_compositing_dodge_color3
function mtlx_conditional_ifgreater_matrix44I()
mtlx_conditional_ifgreater_matrix44I
function mtlx_channel_convert_float_vector2()
mtlx_channel_convert_float_vector2
function mtlx_procedural2d_cellnoise2d_float()
mtlx_procedural2d_cellnoise2d_float
function mtlx_math_invert_color4FA()
mtlx_math_invert_color4FA
function mtlx_math_power_vector4()
mtlx_math_power_vector4
function mtlx_conditional_switch_matrix44I()
mtlx_conditional_switch_matrix44I
function mtlx_math_determinant_matrix33()
mtlx_math_determinant_matrix33
function mtlx_math_clamp_color4()
mtlx_math_clamp_color4
function mtlx_math_clamp_vector4()
mtlx_math_clamp_vector4
function mtlx_pbr_displacement_float()
mtlx_pbr_displacement_float
function mtlx_math_modulo_float()
mtlx_math_modulo_float
function mtlx_math_power_vector3()
mtlx_math_power_vector3
function mtlx_math_modulo_vector2FA()
mtlx_math_modulo_vector2FA
function mtlx_compositing_minus_color4()
mtlx_compositing_minus_color4
function mtlx_procedural2d_ramplr_vector2()
mtlx_procedural2d_ramplr_vector2
function mtlx_conditional_ifgreatereq_matrix44()
mtlx_conditional_ifgreatereq_matrix44
function mtlx_math_sqrt_float()
mtlx_math_sqrt_float
function mtlx_conditional_ifequal_color3()
mtlx_conditional_ifequal_color3
function mtlx_math_ceil_vector2()
mtlx_math_ceil_vector2
function mtlx_pbr_surface()
mtlx_pbr_surface
function mtlx_procedural2d_tiledhexagons_color3()
mtlx_procedural2d_tiledhexagons_color3
function mtlx_colortransform_acescg_to_lin_rec709_color3()
mtlx_colortransform_acescg_to_lin_rec709_color3
function mtlx_pbr_uniform_edf()
mtlx_pbr_uniform_edf
function mtlx_texture2d_gltf_iridescence_thickness_float_1_0()
mtlx_texture2d_gltf_iridescence_thickness_float_1_0
function mtlx_conditional_ifgreatereq_matrix33()
mtlx_conditional_ifgreatereq_matrix33
function mtlx_conditional_ifgreatereq_integer()
mtlx_conditional_ifgreatereq_integer
function mtlx_output_output_color3()
mtlx_output_output_color3
function mtlx_math_divide_color3()
mtlx_math_divide_color3
function mtlx_output_output_matrix44()
mtlx_output_output_matrix44
function mtlx_adjustment_curveadjust_color4()
mtlx_adjustment_curveadjust_color4
function mtlx_math_atan2_vector2()
mtlx_math_atan2_vector2
function mtlx_math_asin_vector2()
mtlx_math_asin_vector2
function mtlx_conditional_ifgreater_vector2I()
mtlx_conditional_ifgreater_vector2I
function mtlx_math_normalize_vector3()
mtlx_math_normalize_vector3
function mtlx_conditional_ifequal_vector2B()
mtlx_conditional_ifequal_vector2B
function mtlx_shader_surface_unlit()
mtlx_shader_surface_unlit
function mtlx_texture3d_triplanarprojection_vector3()
mtlx_texture3d_triplanarprojection_vector3
function mtlx_procedural2d_noise2d_vector3FA()
mtlx_procedural2d_noise2d_vector3FA
function mtlx_geometric_UsdPrimvarReader_vector3()
mtlx_geometric_UsdPrimvarReader_vector3
function mtlx_geometric_geompropvalue_float()
mtlx_geometric_geompropvalue_float
function mtlx_channel_convert_integer_float()
mtlx_channel_convert_integer_float
function mtlx_input_input_vector2()
mtlx_input_input_vector2
function mtlx_conditional_ifgreater_float()
mtlx_conditional_ifgreater_float
function mtlx_conditional_switch_color4()
mtlx_conditional_switch_color4
function mtlx_conditional_switch_matrix44()
mtlx_conditional_switch_matrix44
function mtlx_organization_dot_boolean()
mtlx_organization_dot_boolean
function mtlx_procedural2d_ramp4_float()
mtlx_procedural2d_ramp4_float
mtlx_material_surfacematerial nodedef_node
function mtlx_procedural2d_splitlr_vector2()
mtlx_procedural2d_splitlr_vector2
function mtlx_math_safepower_vector3()
mtlx_math_safepower_vector3
function mtlx_channel_convert_float_color3()
mtlx_channel_convert_float_color3
function mtlx_pbr_generalized_schlick_bsdf()
mtlx_pbr_generalized_schlick_bsdf
function mtlx_procedural_randomfloat_integer()
mtlx_procedural_randomfloat_integer
function mtlx_conditional_ifgreatereq_booleanI()
mtlx_conditional_ifgreatereq_booleanI
function mtlx_pbr_lama_sss()
mtlx_pbr_lama_sss
function mtlx_conditional_ifequal_vector3B()
mtlx_conditional_ifequal_vector3B
function mtlx_pbr_conductor_bsdf()
mtlx_pbr_conductor_bsdf
function mtlx_colortransform_rec709_display_to_lin_rec709_color3()
mtlx_colortransform_rec709_display_to_lin_rec709_color3
function mtlx_shader_convert_vector2_surfaceshader()
mtlx_shader_convert_vector2_surfaceshader
function mtlx_texture2d_gltf_image_vector3_vector3_1_0()
mtlx_texture2d_gltf_image_vector3_vector3_1_0
function mtlx_adjustment_range_vector2()
mtlx_adjustment_range_vector2
function mtlx_procedural2d_ramptb_color3()
mtlx_procedural2d_ramptb_color3
function mtlx_procedural3d_fractal3d_vector2()
mtlx_procedural3d_fractal3d_vector2
function mtlx_procedural3d_fractal3d_vector4()
mtlx_procedural3d_fractal3d_vector4
function mtlx_conditional_ifequal_booleanI()
mtlx_conditional_ifequal_booleanI
function mtlx_pbr_volume()
mtlx_pbr_volume
function mtlx_compositing_overlay_float()
mtlx_compositing_overlay_float
function mtlx_geometric_UsdPrimvarReader_vector4()
mtlx_geometric_UsdPrimvarReader_vector4
function mtlx_compositing_in_color4()
mtlx_compositing_in_color4
function mtlx_texture2d_tiledimage_vector3()
mtlx_texture2d_tiledimage_vector3
function mtlx_geometric_tangent_vector3()
mtlx_geometric_tangent_vector3
function mtlx_pbr_conical_edf()
mtlx_pbr_conical_edf
function mtlx_application_time_float()
mtlx_application_time_float
function mtlx_compositing_mix_volumeshader()
mtlx_compositing_mix_volumeshader
function mtlx_conditional_ifgreatereq_vector3I()
mtlx_conditional_ifgreatereq_vector3I
function mtlx_procedural3d_fractal3d_vector2FA()
mtlx_procedural3d_fractal3d_vector2FA
function mtlx_conditional_ifgreater_integerI()
mtlx_conditional_ifgreater_integerI
function mtlx_math_dotproduct_vector4()
mtlx_math_dotproduct_vector4
function mtlx_math_safepower_color3FA()
mtlx_math_safepower_color3FA
function mtlx_math_clamp_vector2()
mtlx_math_clamp_vector2
function mtlx_compositing_mix_vector4()
mtlx_compositing_mix_vector4
function mtlx_math_distance_vector2()
mtlx_math_distance_vector2
function mtlx_geometric_bump_vector3()
mtlx_geometric_bump_vector3
function mtlx_procedural3d_cellnoise3d_float()
mtlx_procedural3d_cellnoise3d_float
function mtlx_procedural3d_fractal3d_vector3FA()
mtlx_procedural3d_fractal3d_vector3FA
function mtlx_conditional_switch_vector3()
mtlx_conditional_switch_vector3
function mtlx_procedural2d_splitlr_vector3()
mtlx_procedural2d_splitlr_vector3
function mtlx_math_subtract_vector2()
mtlx_math_subtract_vector2
function mtlx_math_rotate3d_vector3()
mtlx_math_rotate3d_vector3
function mtlx_conditional_ifequal_color4I()
mtlx_conditional_ifequal_color4I
function mtlx_procedural3d_noise3d_float()
mtlx_procedural3d_noise3d_float
function mtlx_compositing_plus_float()
mtlx_compositing_plus_float
function mtlx_procedural3d_fractal3d_color4()
mtlx_procedural3d_fractal3d_color4
function mtlx_adjustment_curveadjust_float()
mtlx_adjustment_curveadjust_float
function mtlx_conditional_ifequal_float()
mtlx_conditional_ifequal_float
function mtlx_math_invert_vector3()
mtlx_math_invert_vector3
function mtlx_channel_extract_color4()
mtlx_channel_extract_color4
function mtlx_math_subtract_vector3FA()
mtlx_math_subtract_vector3FA
function mtlx_colortransform_g18_rec709_to_lin_rec709_color4()
mtlx_colortransform_g18_rec709_to_lin_rec709_color4
function mtlx_procedural3d_randomcolor_float()
mtlx_procedural3d_randomcolor_float
function mtlx_math_max_vector2FA()
mtlx_math_max_vector2FA
function mtlx_shader_convert_color4_surfaceshader()
mtlx_shader_convert_color4_surfaceshader
function mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3()
mtlx_colortransform_srgb_displayp3_to_lin_rec709_color3
function mtlx_math_subtract_vector4FA()
mtlx_math_subtract_vector4FA
function mtlx_conditional_ifequal_matrix44()
mtlx_conditional_ifequal_matrix44
function mtlx_channel_convert_boolean_vector2()
mtlx_channel_convert_boolean_vector2
function mtlx_math_add_color4()
mtlx_math_add_color4
function mtlx_procedural_constant_vector4()
mtlx_procedural_constant_vector4
function mtlx_math_atan2_float()
mtlx_math_atan2_float
function mtlx_math_min_vector3FA()
mtlx_math_min_vector3FA
function mtlx_texture3d_triplanarprojection_color3()
mtlx_texture3d_triplanarprojection_color3
function mtlx_output_output_vector3()
mtlx_output_output_vector3
function mtlx_conditional_switch_color3()
mtlx_conditional_switch_color3
function mtlx_output_output_VDF()
mtlx_output_output_VDF
function mtlx_compositing_burn_color4()
mtlx_compositing_burn_color4
function mtlx_math_divide_vector4FA()
mtlx_math_divide_vector4FA
function mtlx_pbr_mix_edf()
mtlx_pbr_mix_edf
function mtlx_procedural2d_ramp4_color3()
mtlx_procedural2d_ramp4_color3
function mtlx_geometric_geomcolor_float()
mtlx_geometric_geomcolor_float
function mtlx_texture3d_triplanarprojection_color4()
mtlx_texture3d_triplanarprojection_color4
function mtlx_texture3d_triplanarprojection_float()
mtlx_texture3d_triplanarprojection_float
function mtlx_colortransform_lin_displayp3_to_lin_rec709_color4()
mtlx_colortransform_lin_displayp3_to_lin_rec709_color4
function mtlx_math_divide_vector3FA()
mtlx_math_divide_vector3FA
function mtlx_adjustment_contrast_vector2FA()
mtlx_adjustment_contrast_vector2FA
function mtlx_input_input_filename()
mtlx_input_input_filename
function mtlx_texture2d_gltf_normalmap_vector3_1_0()
mtlx_texture2d_gltf_normalmap_vector3_1_0
function mtlx_math_add_vector4FA()
mtlx_math_add_vector4FA
function mtlx_math_multiply_matrix44()
mtlx_math_multiply_matrix44
function mtlx_math_ln_vector4()
mtlx_math_ln_vector4
function mtlx_procedural2d_splittb_color3()
mtlx_procedural2d_splittb_color3
function mtlx_adjustment_contrast_color4FA()
mtlx_adjustment_contrast_color4FA
function mtlx_channel_convert_vector4_color4()
mtlx_channel_convert_vector4_color4
function mtlx_math_exp_vector2()
mtlx_math_exp_vector2
function mtlx_math_ln_vector2()
mtlx_math_ln_vector2
function mtlx_geometric_geompropvalue_color3()
mtlx_geometric_geompropvalue_color3
function mtlx_math_ceil_vector4()
mtlx_math_ceil_vector4
function mtlx_math_power_vector2FA()
mtlx_math_power_vector2FA
function mtlx_output_output_material()
mtlx_output_output_material
function mtlx_math_sin_vector2()
mtlx_math_sin_vector2
function mtlx_procedural3d_noise3d_vector3FA()
mtlx_procedural3d_noise3d_vector3FA
function mtlx_conditional_ifequal_vector2I()
mtlx_conditional_ifequal_vector2I
function mtlx_math_add_matrix33()
mtlx_math_add_matrix33
function mtlx_conditional_ifequal_vector3()
mtlx_conditional_ifequal_vector3
function mtlx_compositing_outside_color3()
mtlx_compositing_outside_color3
function mtlx_math_safepower_vector4FA()
mtlx_math_safepower_vector4FA
function mtlx_procedural_randomfloat_float()
mtlx_procedural_randomfloat_float
function mtlx_math_add_vector4()
mtlx_math_add_vector4
function mtlx_procedural2d_ramptb_vector4()
mtlx_procedural2d_ramptb_vector4
function mtlx_channel_convert_color3_vector2()
mtlx_channel_convert_color3_vector2
function mtlx_math_rotate2d_vector2()
mtlx_math_rotate2d_vector2
function mtlx_channel_convert_boolean_color4()
mtlx_channel_convert_boolean_color4
function mtlx_organization_dot_volumeshader()
mtlx_organization_dot_volumeshader
function mtlx_math_atan2_vector3()
mtlx_math_atan2_vector3
function mtlx_math_magnitude_vector2()
mtlx_math_magnitude_vector2
function mtlx_compositing_plus_color4()
mtlx_compositing_plus_color4
function mtlx_geometric_geomcolor_color3()
mtlx_geometric_geomcolor_color3
function mtlx_adjustment_range_vector4()
mtlx_adjustment_range_vector4
function mtlx_conditional_ifgreater_color3I()
mtlx_conditional_ifgreater_color3I
function mtlx_channel_convert_vector3_color3()
mtlx_channel_convert_vector3_color3
function mtlx_procedural2d_cloverleaf_float()
mtlx_procedural2d_cloverleaf_float
function mtlx_math_multiply_vector2()
mtlx_math_multiply_vector2
function mtlx_adjustment_contrast_color4()
mtlx_adjustment_contrast_color4
function mtlx_math_min_color4FA()
mtlx_math_min_color4FA
function mtlx_pbr_lama_conductor()
mtlx_pbr_lama_conductor
function mtlx_math_sqrt_vector4()
mtlx_math_sqrt_vector4
function mtlx_math_normalmap_float()
mtlx_math_normalmap_float
function mtlx_conditional_ifgreatereq_matrix33I()
mtlx_conditional_ifgreatereq_matrix33I
function mtlx_input_input_matrix44()
mtlx_input_input_matrix44
function mtlx_conditional_ifgreater_vector3()
mtlx_conditional_ifgreater_vector3
function mtlx_channel_convert_boolean_vector3()
mtlx_channel_convert_boolean_vector3
function mtlx_math_refract_vector3()
mtlx_math_refract_vector3
function mtlx_math_absval_color4()
mtlx_math_absval_color4
function mtlx_math_modulo_color3()
mtlx_math_modulo_color3
function mtlx_conditional_switch_floatI()
mtlx_conditional_switch_floatI
function mtlx_colortransform_adobergb_to_lin_rec709_color4()
mtlx_colortransform_adobergb_to_lin_rec709_color4
function mtlx_math_subtract_vector3()
mtlx_math_subtract_vector3
function mtlx_procedural2d_noise2d_color3FA()
mtlx_procedural2d_noise2d_color3FA
function mtlx_math_tan_vector4()
mtlx_math_tan_vector4
function mtlx_shader_convert_boolean_surfaceshader()
mtlx_shader_convert_boolean_surfaceshader
function mtlx_output_output_EDF()
mtlx_output_output_EDF
function mtlx_geometric_UsdPrimvarReader_integer()
mtlx_geometric_UsdPrimvarReader_integer
function mtlx_math_divide_vector2FA()
mtlx_math_divide_vector2FA
function mtlx_conditional_ifgreatereq_vector4I()
mtlx_conditional_ifgreatereq_vector4I
function mtlx_pbr_disney_bsdf_2015_surface()
mtlx_pbr_disney_bsdf_2015_surface
function mtlx_conditional_ifequal_matrix33I()
mtlx_conditional_ifequal_matrix33I
function mtlx_material_volumematerial()
mtlx_material_volumematerial
function mtlx_math_power_color3FA()
mtlx_math_power_color3FA
function mtlx_pbr_lama_mix_edf()
mtlx_pbr_lama_mix_edf
function mtlx_conditional_ifgreatereq_boolean()
mtlx_conditional_ifgreatereq_boolean
function mtlx_colortransform_g18_rec709_to_lin_rec709_color3()
mtlx_colortransform_g18_rec709_to_lin_rec709_color3
function mtlx_adjustment_remap_vector2FA()
mtlx_adjustment_remap_vector2FA
function mtlx_math_ceil_integer()
mtlx_math_ceil_integer
function mtlx_compositing_out_color4()
mtlx_compositing_out_color4
function mtlx_procedural_constant_boolean()
mtlx_procedural_constant_boolean
function mtlx_conditional_ifequal_color3I()
mtlx_conditional_ifequal_color3I
function mtlx_math_modulo_vector4FA()
mtlx_math_modulo_vector4FA
function mtlx_compositing_mix_color4()
mtlx_compositing_mix_color4
function mtlx_channel_convert_vector3_color4()
mtlx_channel_convert_vector3_color4
function mtlx_procedural2d_ramp4_vector2()
mtlx_procedural2d_ramp4_vector2
function mtlx_conditional_ifgreater_vector4()
mtlx_conditional_ifgreater_vector4
function mtlx_conditional_switch_vector4I()
mtlx_conditional_switch_vector4I
function mtlx_compositing_inside_float()
mtlx_compositing_inside_float
function mtlx_compositing_over_color4()
mtlx_compositing_over_color4
function mtlx_adjustment_hsvtorgb_color3()
mtlx_adjustment_hsvtorgb_color3
function mtlx_geometric_UsdPrimvarReader_string()
mtlx_geometric_UsdPrimvarReader_string
function mtlx_conditional_switch_matrix33I()
mtlx_conditional_switch_matrix33I
function mtlx_procedural2d_noise2d_vector2()
mtlx_procedural2d_noise2d_vector2
function mtlx_math_round_color3()
mtlx_math_round_color3
function mtlx_math_multiply_color3()
mtlx_math_multiply_color3
function mtlx_math_multiply_color4FA()
mtlx_math_multiply_color4FA
function mtlx_channel_convert_color3_vector4()
mtlx_channel_convert_color3_vector4
function mtlx_math_power_color4FA()
mtlx_math_power_color4FA
function mtlx_adjustment_range_vector3()
mtlx_adjustment_range_vector3
function mtlx_channel_convert_vector3_vector2()
mtlx_channel_convert_vector3_vector2
function mtlx_geometric_geompropvalue_vector4()
mtlx_geometric_geompropvalue_vector4
function mtlx_conditional_ifgreater_matrix33()
mtlx_conditional_ifgreater_matrix33
function mtlx_adjustment_range_float()
mtlx_adjustment_range_float
function mtlx_math_subtract_vector2FA()
mtlx_math_subtract_vector2FA
function mtlx_procedural2d_ramplr_color4()
mtlx_procedural2d_ramplr_color4
function mtlx_texture2d_tiledimage_vector4()
mtlx_texture2d_tiledimage_vector4
function mtlx_math_add_matrix33FA()
mtlx_math_add_matrix33FA
function mtlx_pbr_burley_diffuse_bsdf()
mtlx_pbr_burley_diffuse_bsdf
function mtlx_pbr_lama_mix_bsdf()
mtlx_pbr_lama_mix_bsdf
function mtlx_convolution2d_heighttonormal_vector3()
mtlx_convolution2d_heighttonormal_vector3
function mtlx_output_output_boolean()
mtlx_output_output_boolean
function mtlx_pbr_lama_diffuse()
mtlx_pbr_lama_diffuse
function mtlx_pbr_add_bsdf()
mtlx_pbr_add_bsdf
function mtlx_translation_standard_surface_to_UsdPreviewSurface()
mtlx_translation_standard_surface_to_UsdPreviewSurface
function mtlx_math_multiply_vector3()
mtlx_math_multiply_vector3
function mtlx_adjustment_hsvadjust_color3()
mtlx_adjustment_hsvadjust_color3
function mtlx_math_trianglewave_float()
mtlx_math_trianglewave_float
function mtlx_channel_combine2_vector4VF()
mtlx_channel_combine2_vector4VF
function mtlx_texture2d_tiledimage_float()
mtlx_texture2d_tiledimage_float
function mtlx_adjustment_saturate_color4()
mtlx_adjustment_saturate_color4
function mtlx_pbr_measured_edf()
mtlx_pbr_measured_edf
function mtlx_organization_dot_vector4()
mtlx_organization_dot_vector4
function mtlx_pbr_lama_surface()
mtlx_pbr_lama_surface
function mtlx_conditional_ifgreater_matrix44()
mtlx_conditional_ifgreater_matrix44
function mtlx_math_sin_vector3()
mtlx_math_sin_vector3
function mtlx_procedural2d_splittb_vector3()
mtlx_procedural2d_splittb_vector3
function mtlx_channel_convert_boolean_vector4()
mtlx_channel_convert_boolean_vector4
function mtlx_procedural3d_noise3d_color3()
mtlx_procedural3d_noise3d_color3
function mtlx_math_divide_color4()
mtlx_math_divide_color4
function mtlx_procedural2d_ramplr_color3()
mtlx_procedural2d_ramplr_color3
function mtlx_channel_convert_float_color4()
mtlx_channel_convert_float_color4
function mtlx_pbr_light()
mtlx_pbr_light
function mtlx_texture2d_tiledimage_vector2()
mtlx_texture2d_tiledimage_vector2
function mtlx_procedural2d_noise2d_color4()
mtlx_procedural2d_noise2d_color4
function mtlx_math_transformmatrix_vector2M3()
mtlx_math_transformmatrix_vector2M3
function mtlx_math_min_vector3()
mtlx_math_min_vector3
function mtlx_math_max_vector3FA()
mtlx_math_max_vector3FA
function mtlx_math_round_color4()
mtlx_math_round_color4
function mtlx_conditional_ifequal_vector3I()
mtlx_conditional_ifequal_vector3I
function mtlx_conditional_ifequal_color4B()
mtlx_conditional_ifequal_color4B
function mtlx_pbr_displacement_vector3()
mtlx_pbr_displacement_vector3
function mtlx_pbr_lama_add_edf()
mtlx_pbr_lama_add_edf
function mtlx_pbr_sheen_bsdf()
mtlx_pbr_sheen_bsdf
function mtlx_convolution2d_blur_color3()
mtlx_convolution2d_blur_color3
function mtlx_math_transpose_matrix44()
mtlx_math_transpose_matrix44
function mtlx_texture2d_tiledimage_color3()
mtlx_texture2d_tiledimage_color3
function mtlx_math_divide_color3FA()
mtlx_math_divide_color3FA
function mtlx_input_input_volumeshader()
mtlx_input_input_volumeshader
function mtlx_math_multiply_vector4FA()
mtlx_math_multiply_vector4FA
function mtlx_colortransform_srgb_texture_to_lin_rec709_color3()
mtlx_colortransform_srgb_texture_to_lin_rec709_color3
function mtlx_compositing_mix_float()
mtlx_compositing_mix_float
function mtlx_procedural3d_noise3d_color4FA()
mtlx_procedural3d_noise3d_color4FA
function mtlx_math_multiply_vector3FA()
mtlx_math_multiply_vector3FA
function mtlx_math_subtract_matrix44FA()
mtlx_math_subtract_matrix44FA
function mtlx_adjustment_smoothstep_float()
mtlx_adjustment_smoothstep_float
function mtlx_procedural_constant_color3()
mtlx_procedural_constant_color3
function mtlx_math_absval_float()
mtlx_math_absval_float
function mtlx_math_invert_vector2()
mtlx_math_invert_vector2
function mtlx_compositing_minus_color3()
mtlx_compositing_minus_color3
function mtlx_texture3d_triplanarprojection_vector4()
mtlx_texture3d_triplanarprojection_vector4
function mtlx_compositing_difference_color4()
mtlx_compositing_difference_color4
function mtlx_math_sqrt_vector3()
mtlx_math_sqrt_vector3
function mtlx_texture2d_UsdUVTexture_23()
mtlx_texture2d_UsdUVTexture_23
function mtlx_math_add_color3()
mtlx_math_add_color3
function mtlx_adjustment_saturate_color3()
mtlx_adjustment_saturate_color3
function mtlx_math_min_color3()
mtlx_math_min_color3
function mtlx_conditional_ifgreater_floatI()
mtlx_conditional_ifgreater_floatI
function mtlx_geometric_geompropvalue_vector2()
mtlx_geometric_geompropvalue_vector2
function mtlx_pbr_roughness_dual()
mtlx_pbr_roughness_dual
function mtlx_adjustment_smoothstep_vector4()
mtlx_adjustment_smoothstep_vector4
function mtlx_npr_viewdirection_vector3()
mtlx_npr_viewdirection_vector3
function mtlx_conditional_ifequal_color4()
mtlx_conditional_ifequal_color4
function mtlx_math_tan_float()
mtlx_math_tan_float
function mtlx_adjustment_remap_color4FA()
mtlx_adjustment_remap_color4FA
function mtlx_geometric_bitangent_vector3()
mtlx_geometric_bitangent_vector3
function mtlx_input_input_matrix33()
mtlx_input_input_matrix33
function mtlx_channel_convert_color4_vector4()
mtlx_channel_convert_color4_vector4
function mtlx_pbr_lama_layer_bsdf()
mtlx_pbr_lama_layer_bsdf
function mtlx_adjustment_smoothstep_color3()
mtlx_adjustment_smoothstep_color3
function mtlx_output_output_string()
mtlx_output_output_string
function mtlx_conditional_ifequal_matrix44B()
mtlx_conditional_ifequal_matrix44B
function mtlx_compositing_screen_color4()
mtlx_compositing_screen_color4
function mtlx_input_input_float()
mtlx_input_input_float
function mtlx_procedural2d_hexagon_float()
mtlx_procedural2d_hexagon_float
function mtlx_adjustment_luminance_color4()
mtlx_adjustment_luminance_color4
function mtlx_conditional_ifequal_vector4()
mtlx_conditional_ifequal_vector4
function mtlx_math_cos_vector2()
mtlx_math_cos_vector2
function mtlx_procedural2d_splitlr_color3()
mtlx_procedural2d_splitlr_color3
function mtlx_adjustment_luminance_color3()
mtlx_adjustment_luminance_color3
function mtlx_convolution2d_blur_color4()
mtlx_convolution2d_blur_color4
function mtlx_convolution2d_blur_vector2()
mtlx_convolution2d_blur_vector2
function mtlx_channel_convert_color4_color3()
mtlx_channel_convert_color4_color3
function mtlx_procedural_constant_float()
mtlx_procedural_constant_float
function mtlx_procedural3d_fractal3d_color3()
mtlx_procedural3d_fractal3d_color3
function mtlx_procedural2d_tiledcloverleafs_color3()
mtlx_procedural2d_tiledcloverleafs_color3
function mtlx_math_asin_vector4()
mtlx_math_asin_vector4
function mtlx_procedural3d_unifiednoise3d_float()
mtlx_procedural3d_unifiednoise3d_float
function mtlx_channel_convert_float_vector3()
mtlx_channel_convert_float_vector3
function mtlx_math_asin_float()
mtlx_math_asin_float
function mtlx_convolution2d_blur_vector3()
mtlx_convolution2d_blur_vector3
function mtlx_geometric_geompropvalue_vector3()
mtlx_geometric_geompropvalue_vector3
function mtlx_channel_convert_integer_vector2()
mtlx_channel_convert_integer_vector2
function mtlx_math_sign_vector4()
mtlx_math_sign_vector4
function mtlx_math_exp_vector3()
mtlx_math_exp_vector3
function mtlx_compositing_mix_vector3()
mtlx_compositing_mix_vector3
function mtlx_procedural2d_ramplr_vector4()
mtlx_procedural2d_ramplr_vector4
function mtlx_math_divide_float()
mtlx_math_divide_float
function mtlx_input_input_displacementshader()
mtlx_input_input_displacementshader
function mtlx_procedural2d_splittb_vector4()
mtlx_procedural2d_splittb_vector4
function mtlx_output_output_matrix33()
mtlx_output_output_matrix33
function mtlx_math_absval_vector4()
mtlx_math_absval_vector4
function mtlx_procedural3d_noise3d_vector4()
mtlx_procedural3d_noise3d_vector4
function mtlx_math_multiply_vector4()
mtlx_math_multiply_vector4
function mtlx_compositing_mix_vector4_vector4()
mtlx_compositing_mix_vector4_vector4
function mtlx_math_safepower_color4FA()
mtlx_math_safepower_color4FA
function mtlx_output_output_volumeshader()
mtlx_output_output_volumeshader
function mtlx_procedural3d_fractal3d_color3FA()
mtlx_procedural3d_fractal3d_color3FA
function mtlx_math_add_vector3()
mtlx_math_add_vector3
function mtlx_math_normalmap_vector2()
mtlx_math_normalmap_vector2