added support for nodejs

This commit is contained in:
tamat
2018-03-08 12:58:39 +01:00
parent 1df90b5348
commit f984476c83
17 changed files with 555 additions and 628 deletions

View File

@@ -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);