this.nodedef_icon = '';
this.nodedef_type = 'float';
this.
nodedef_href =
'https://kwokcb.github.io/MaterialX_Learn/documents/definitions/tiledimage.html';
this.nodedef_swatch = 'https://kwokcb.github.io/MaterialX_Learn/resources/mtlx/nodedef_materials/material_tiledimage_float_out_genglsl.png';
this.nodedef_group = 'texture2d';
this.addInput('file','filename');
this.addProperty('file', '', 'filename',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
this.addInput('default','float');
this.addProperty('default', 0.0, 'float',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
this.addInput('texcoord','vector2');
this.addProperty('texcoord', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":"UV0"});
this.addInput('uvtiling','vector2');
this.addProperty('uvtiling', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
this.addInput('uvoffset','vector2');
this.addProperty('uvoffset', [0.0, 0.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
this.addInput('realworldimagesize','vector2');
this.addProperty('realworldimagesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
this.addInput('realworldtilesize','vector2');
this.addProperty('realworldtilesize', [1.0, 1.0], 'vector2',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
this.addInput('filtertype','string');
this.addProperty('filtertype', 'linear', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
this.addInput('framerange','string');
this.addProperty('framerange', '', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
this.addInput('frameoffset','integer');
this.addProperty('frameoffset', 0, 'integer',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
this.addInput('frameendaction','string');
this.addProperty('frameendaction', 'constant', 'string',{"colorspace":"","unit":"","unittype":"","uiname":"","uimin":null,"uimax":null,"uifolder":"","defaultgeomprop":""});
this.addOutput('out','float');
this.title = 'tiledimage_float';
this.desc = "MaterialX:mtlx/texture2d/tiledimage_float";
this.onNodeCreated = function() {
}
this.onRemoved = function() {
}
this.onPropertyChanged = function(name, value, prev_value) {
MxShadingGraphEditor.theEditor.monitor.onPropertyChanged(this.title, name, value, prev_value,
this);
}
this.onPropertyInfoChanged = function(name, info, value, prev_value) {
MxShadingGraphEditor.theEditor.monitor.onPropertyInfoChanged(this.title, name, info, value, prev_value,
this);
}
this.onConnectOutput = function(slot, input_type, input, target_node, target_slot) {
MxShadingGraphEditor.theEditor.monitor.onConnectOutput(slot, input_type, input, target_node, target_slot,
this);
}
this.onConnectInput = function(target_slot, output_type, output, source, slot) {
MxShadingGraphEditor.theEditor.monitor.onConnectInput(target_slot, output_type, output, source, slot,
this);
}
this.bgcolor = '#111';
this.color = '#222';
this.shape = LiteGraph.ROUND_SHAPE;
this.boxcolor = '#161';
}
This class is a wrapper around the LiteGraph library to provide a MaterialX node editor.
mtlx_material_surfacematerial nodedef_name
mtlx_material_surfacematerial nodedef_href
mtlx_material_surfacematerial nodedef_node
function mtlx_texture2d_tiledimage_float()
mtlx_texture2d_tiledimage_float