mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-21 15:24:09 +00:00
added support for nodejs
This commit is contained in:
@@ -1,14 +1,20 @@
|
||||
(function(global){
|
||||
var LiteGraph = global.LiteGraph;
|
||||
|
||||
//Works with Litegl.js to create WebGL nodes
|
||||
var LGraphTexture
|
||||
if(typeof(LiteGraph) != "undefined")
|
||||
global.LGraphTexture = null;
|
||||
|
||||
if(typeof(GL) != "undefined")
|
||||
{
|
||||
LGraphTexture = function()
|
||||
function LGraphTexture()
|
||||
{
|
||||
this.addOutput("Texture","Texture");
|
||||
this.properties = { name:"", filter: true };
|
||||
this.size = [LGraphTexture.image_preview_size, LGraphTexture.image_preview_size];
|
||||
}
|
||||
|
||||
global.LGraphTexture = LGraphTexture;
|
||||
|
||||
LGraphTexture.title = "Texture";
|
||||
LGraphTexture.desc = "Texture";
|
||||
LGraphTexture.widgets_info = {"name": { widget:"texture"}, "filter": { widget:"checkbox"} };
|
||||
@@ -2463,4 +2469,6 @@ LGraphTextureKuwaharaFilter.pixel_shader = "\n\
|
||||
|
||||
LiteGraph.registerNodeType("texture/cubemap", LGraphCubemap );
|
||||
|
||||
} //litegl.js defined
|
||||
} //litegl.js defined
|
||||
|
||||
})(this);
|
||||
Reference in New Issue
Block a user