From 18609d375e7aab9cb48c9b3f5b291f85cbd28683 Mon Sep 17 00:00:00 2001 From: John Mayhew Date: Tue, 3 Apr 2012 13:39:32 -0700 Subject: removed old unused import and export functions. --- js/lib/rdge/materials/bump-metal-material.js | 54 ------- js/lib/rdge/materials/cloud-material.js | 41 ----- js/lib/rdge/materials/flat-material.js | 28 ---- js/lib/rdge/materials/linear-gradient-material.js | 63 -------- js/lib/rdge/materials/material.js | 15 -- js/lib/rdge/materials/pulse-material.js | 42 ----- js/lib/rdge/materials/radial-blur-material.js | 38 ----- js/lib/rdge/materials/radial-gradient-material.js | 59 ------- js/lib/rdge/materials/taper-material.js | 38 ----- js/lib/rdge/materials/twist-vert-material.js | 38 ----- js/lib/rdge/materials/uber-material.js | 187 ---------------------- 11 files changed, 603 deletions(-) (limited to 'js/lib/rdge') diff --git a/js/lib/rdge/materials/bump-metal-material.js b/js/lib/rdge/materials/bump-metal-material.js index d764de66..27d5793c 100755 --- a/js/lib/rdge/materials/bump-metal-material.js +++ b/js/lib/rdge/materials/bump-metal-material.js @@ -193,60 +193,6 @@ var BumpMetalMaterial = function BumpMetalMaterial() { return; }; - - this.export = function() - { - // every material needs the base type and instance name - var exportStr = "material: " + this.getShaderName() + "\n"; - exportStr += "name: " + this.getName() + "\n"; - - var world = this.getWorld(); - if (!world) - throw new Error( "no world in material.export, " + this.getName() ); - - exportStr += "lightDiff: " + this.getLightDiff() + "\n"; - exportStr += "diffuseTexture: " + this.getDiffuseTexture() + "\n"; - exportStr += "specularTexture: " + this.getSpecularTexture() + "\n"; - exportStr += "normalMap: " + this.getNormalTexture() + "\n"; - - // every material needs to terminate like this - exportStr += "endMaterial\n"; - - return exportStr; - }; - - this.import = function( importStr ) - { - var pu = new MaterialParser( importStr ); - var material = pu.nextValue( "material: " ); - if (material != this.getShaderName()) throw new Error( "ill-formed material" ); - this.setName( pu.nextValue( "name: ") ); - - var rtnStr; - try - { - var lightDiff = eval( "[" + pu.nextValue( "lightDiff: " ) + "]" ), - dt = pu.nextValue( "diffuseTexture: " ), - st = pu.nextValue( "specularTexture: " ), - nt = pu.nextValue( "normalMap: " ); - - this.setProperty( "lightDiff", lightDiff); - this.setProperty( "diffuseTexture", dt ); - this.setProperty( "specularTexture", st ); - this.setProperty( "normalMap", nt ); - - var endKey = "endMaterial\n"; - var index = importStr.indexOf( endKey ); - index += endKey.length; - rtnStr = importStr.substr( index ); - } - catch (e) - { - throw new Error( "could not import material: " + importStr ); - } - - return rtnStr; - }; }; /////////////////////////////////////////////////////////////////////////////////////// diff --git a/js/lib/rdge/materials/cloud-material.js b/js/lib/rdge/materials/cloud-material.js index 092553ce..bde42ac3 100644 --- a/js/lib/rdge/materials/cloud-material.js +++ b/js/lib/rdge/materials/cloud-material.js @@ -191,47 +191,6 @@ var CloudMaterial = function CloudMaterial() { throw new Error("could not import material: " + jObj); } }; - - - this.export = function () { - // every material needs the base type and instance name - var exportStr = "material: " + this.getShaderName() + "\n"; - exportStr += "name: " + this.getName() + "\n"; - - var world = this.getWorld(); - if (!world) - throw new Error("no world in material.export, " + this.getName()); - - var texMapName = this._propValues[this._propNames[0]]; - exportStr += "texture: " + texMapName + "\n"; - - // every material needs to terminate like this - exportStr += "endMaterial\n"; - - return exportStr; - }; - - this.import = function (importStr) { - var pu = new MaterialParser(importStr); - var material = pu.nextValue("material: "); - if (material != this.getShaderName()) throw new Error("ill-formed material"); - this.setName(pu.nextValue("name: ")); - - var rtnStr; - try { - this._propValues[this._propNames[0]] = pu.nextValue("texture: "); - - var endKey = "endMaterial\n"; - var index = importStr.indexOf(endKey); - index += endKey.length; - rtnStr = importStr.substr(index); - } - catch (e) { - throw new Error("could not import material: " + importStr); - } - - return rtnStr; - }; }; /////////////////////////////////////////////////////////////////////////////////////// diff --git a/js/lib/rdge/materials/flat-material.js b/js/lib/rdge/materials/flat-material.js index 106641a9..9442ae5b 100755 --- a/js/lib/rdge/materials/flat-material.js +++ b/js/lib/rdge/materials/flat-material.js @@ -79,34 +79,6 @@ var FlatMaterial = function FlatMaterial() { }; /////////////////////////////////////////////////////////////////////// - this.export = function () { - // this function should be overridden by subclasses - var exportStr = "material: " + this.getShaderName() + "\n"; - exportStr += "name: " + this.getName() + "\n"; - exportStr += "color: " + String(this._propValues["color"]) + "\n"; - exportStr += "endMaterial\n"; - - return exportStr; - }; - - this.import = function (importStr) { - var pu = new MaterialParser(importStr); - var material = pu.nextValue("material: "); - if (material != this.getShaderName()) throw new Error("ill-formed material"); - this.setName(pu.nextValue("name: ")); - - var rtnStr; - try { - var color = eval("[" + pu.nextValue("color: ") + "]"); - this.setProperty("color", color); - } - catch (e) { - throw new Error("could not import material: " + importStr); - } - - return rtnStr; - }; - this.exportJSON = function () { var jObj = { diff --git a/js/lib/rdge/materials/linear-gradient-material.js b/js/lib/rdge/materials/linear-gradient-material.js index 87e41ad6..51a7430c 100755 --- a/js/lib/rdge/materials/linear-gradient-material.js +++ b/js/lib/rdge/materials/linear-gradient-material.js @@ -296,69 +296,6 @@ var LinearGradientMaterial = function LinearGradientMaterial() { throw new Error("could not import material: " + importStr); } }; - - this.export = function () { - // every material needs the base type and instance name - var exportStr = "material: " + this.getShaderName() + "\n"; - exportStr += "name: " + this.getName() + "\n"; - - exportStr += "color1: " + this.getColor1() + "\n"; - exportStr += "color2: " + this.getColor2() + "\n"; - exportStr += "color3: " + this.getColor3() + "\n"; - exportStr += "color4: " + this.getColor4() + "\n"; - - exportStr += "colorStop1: " + this.getColorStop1() + "\n"; - exportStr += "colorStop2: " + this.getColorStop2() + "\n"; - exportStr += "colorStop3: " + this.getColorStop3() + "\n"; - exportStr += "colorStop4: " + this.getColorStop4() + "\n"; - - exportStr += "angle: " + this.getAngle() + "\n"; - - // every material needs to terminate like this - exportStr += "endMaterial\n"; - - return exportStr; - }; - - this.import = function (importStr) { - var pu = new MaterialParser(importStr); - var material = pu.nextValue("material: "); - if (material != this.getShaderName()) throw new Error("ill-formed material"); - this.setName(pu.nextValue("name: ")); - - var rtnStr; - try { - var color1 = eval("[" + pu.nextValue("color1: ") + "]"), - color2 = eval("[" + pu.nextValue("color2: ") + "]"), - color3 = eval("[" + pu.nextValue("color3: ") + "]"), - color4 = eval("[" + pu.nextValue("color4: ") + "]"), - colorStop1 = Number(pu.nextValue("colorStop1: ")), - colorStop2 = Number(pu.nextValue("colorStop2: ")), - colorStop3 = Number(pu.nextValue("colorStop3: ")), - colorStop4 = Number(pu.nextValue("colorStop4: ")), - angle = Number(pu.nextValue("angle: ")); - - var endKey = "endMaterial\n"; - var index = importStr.indexOf(endKey); - index += endKey.length; - rtnStr = importStr.substr(index); - - this.setProperty("color1", color1); - this.setProperty("color2", color2); - this.setProperty("color3", color3); - this.setProperty("color4", color4); - this.setProperty("colorStop1", colorStop1); - this.setProperty("colorStop2", colorStop2); - this.setProperty("colorStop3", colorStop3); - this.setProperty("colorStop4", colorStop4); - this.setProperty("angle", angle); - } - catch (e) { - throw new Error("could not import material: " + importStr); - } - - return rtnStr; - }; }; /////////////////////////////////////////////////////////////////////////////////////// diff --git a/js/lib/rdge/materials/material.js b/js/lib/rdge/materials/material.js index c1d13b15..276c7687 100755 --- a/js/lib/rdge/materials/material.js +++ b/js/lib/rdge/materials/material.js @@ -252,21 +252,6 @@ var Material = function GLMaterial( world ) { return tex; }; - this.export = function() { - // this function should be overridden by subclasses - var exportStr = "material: " + this.getShaderName() + "\n" + "endMaterial\n"; - return exportStr; - }; - - this.import = function( importStr ) { - var endKey = "endMaterial\n"; - var index = importStr.indexOf( endKey ); - index += endKey.length; - var rtnStr = importStr.substr( index ); - - return rtnStr; - }; - /* this.setRenderProperties = function( glContext, shaderProgram ) { diff --git a/js/lib/rdge/materials/pulse-material.js b/js/lib/rdge/materials/pulse-material.js index 6dabc759..f26aa16c 100644 --- a/js/lib/rdge/materials/pulse-material.js +++ b/js/lib/rdge/materials/pulse-material.js @@ -190,48 +190,6 @@ var PulseMaterial = function PulseMaterial() { throw new Error( "could not import material: " + jObj ); } }; - - - this.export = function() { - // every material needs the base type and instance name - var exportStr = "material: " + this.getShaderName() + "\n"; - exportStr += "name: " + this.getName() + "\n"; - - var world = this.getWorld(); - if (!world) - throw new Error( "no world in material.export, " + this.getName() ); - - var texMapName = this._propValues[this._propNames[0]]; - exportStr += "texture: " +texMapName + "\n"; - - // every material needs to terminate like this - exportStr += "endMaterial\n"; - - return exportStr; - }; - - this.import = function( importStr ) { - var pu = new MaterialParser( importStr ); - var material = pu.nextValue( "material: " ); - if (material != this.getShaderName()) throw new Error( "ill-formed material" ); - this.setName( pu.nextValue( "name: ") ); - - var rtnStr; - try { - this._propValues[this._propNames[0]] = pu.nextValue( "texture: " ); - - var endKey = "endMaterial\n"; - var index = importStr.indexOf( endKey ); - index += endKey.length; - rtnStr = importStr.substr( index ); - } - catch (e) - { - throw new Error( "could not import material: " + importStr ); - } - - return rtnStr; - }; }; /////////////////////////////////////////////////////////////////////////////////////// diff --git a/js/lib/rdge/materials/radial-blur-material.js b/js/lib/rdge/materials/radial-blur-material.js index 67ed81af..6e1c024b 100644 --- a/js/lib/rdge/materials/radial-blur-material.js +++ b/js/lib/rdge/materials/radial-blur-material.js @@ -182,44 +182,6 @@ var RadialBlurMaterial = function RadialBlurMaterial() { return rtnStr; }; - - this.export = function () { - // every material needs the base type and instance name - var exportStr = "material: " + this.getShaderName() + "\n"; - exportStr += "name: " + this.getName() + "\n"; - - var world = this.getWorld(); - if (!world) - throw new Error("no world in material.export, " + this.getName()); - - var texMapName = this._propValues[this._propNames[0]]; - exportStr += "texture: " + texMapName + "\n"; - - // every material needs to terminate like this - exportStr += "endMaterial\n"; - - return exportStr; - }; - - this.import = function (importStr) { - var pu = new MaterialParser(importStr); - var material = pu.nextValue("material: "); - if (material != this.getShaderName()) throw new Error("ill-formed material"); - this.setName(pu.nextValue("name: ")); - - var rtnStr; - try { - var endKey = "endMaterial\n"; - var index = importStr.indexOf(endKey); - index += endKey.length; - rtnStr = importStr.substr(index); - } - catch (e) { - throw new Error("could not import material: " + importStr); - } - - return rtnStr; - }; }; /////////////////////////////////////////////////////////////////////////////////////// diff --git a/js/lib/rdge/materials/radial-gradient-material.js b/js/lib/rdge/materials/radial-gradient-material.js index 2d288c46..dd40d31d 100755 --- a/js/lib/rdge/materials/radial-gradient-material.js +++ b/js/lib/rdge/materials/radial-gradient-material.js @@ -280,65 +280,6 @@ var RadialGradientMaterial = function RadialGradientMaterial() { throw new Error("could not import material: " + importStr); } }; - - this.export = function () { - // every material needs the base type and instance name - var exportStr = "material: " + this.getShaderName() + "\n"; - exportStr += "name: " + this.getName() + "\n"; - - exportStr += "color1: " + this.getColor1() + "\n"; - exportStr += "color2: " + this.getColor2() + "\n"; - exportStr += "color3: " + this.getColor3() + "\n"; - exportStr += "color4: " + this.getColor4() + "\n"; - - exportStr += "colorStop1: " + this.getColorStop1() + "\n"; - exportStr += "colorStop2: " + this.getColorStop2() + "\n"; - exportStr += "colorStop3: " + this.getColorStop3() + "\n"; - exportStr += "colorStop4: " + this.getColorStop4() + "\n"; - - // every material needs to terminate like this - exportStr += "endMaterial\n"; - - return exportStr; - }; - - this.import = function (importStr) { - var pu = new MaterialParser(importStr); - var material = pu.nextValue("material: "); - if (material != this.getShaderName()) throw new Error("ill-formed material"); - this.setName(pu.nextValue("name: ")); - - var rtnStr; - try { - var color1 = eval("[" + pu.nextValue("color1: ") + "]"), - color2 = eval("[" + pu.nextValue("color2: ") + "]"), - color3 = eval("[" + pu.nextValue("color3: ") + "]"), - color4 = eval("[" + pu.nextValue("color4: ") + "]"), - colorStop1 = Number(pu.nextValue("colorStop1: ")), - colorStop2 = Number(pu.nextValue("colorStop2: ")), - colorStop3 = Number(pu.nextValue("colorStop3: ")), - colorStop4 = Number(pu.nextValue("colorStop4: ")); - - this.setProperty("color1", color1); - this.setProperty("color2", color2); - this.setProperty("color3", color3); - this.setProperty("color4", color4); - this.setProperty("colorStop1", colorStop1); - this.setProperty("colorStop2", colorStop2); - this.setProperty("colorStop3", colorStop3); - this.setProperty("colorStop4", colorStop4); - - var endKey = "endMaterial\n"; - var index = importStr.indexOf(endKey); - index += endKey.length; - rtnStr = importStr.substr(index); - } - catch (e) { - throw new Error("could not import material: " + importStr); - } - - return rtnStr; - }; }; /////////////////////////////////////////////////////////////////////////////////////// diff --git a/js/lib/rdge/materials/taper-material.js b/js/lib/rdge/materials/taper-material.js index 2a70a153..356087d6 100644 --- a/js/lib/rdge/materials/taper-material.js +++ b/js/lib/rdge/materials/taper-material.js @@ -115,44 +115,6 @@ function TaperMaterial() { } }; - this.export = function () { - // this function should be overridden by subclasses - var exportStr = "material: " + this.getShaderName() + "\n"; - exportStr += "name: " + this.getName() + "\n"; - - if (this._shader) - exportStr += "color: " + this._shader.colorMe.color + "\n"; - else - exportStr += "color: " + this.getColor() + "\n"; - exportStr += "endMaterial\n"; - - return exportStr; - }; - - this.import = function (importStr) { - var pu = new MaterialParser(importStr); - var material = pu.nextValue("material: "); - if (material != this.getShaderName()) throw new Error("ill-formed material"); - this.setName(pu.nextValue("name: ")); - - var rtnStr; - try { - var color = eval("[" + pu.nextValue("color: ") + "]"); - - this.setProperty("color", color); - - var endKey = "endMaterial\n"; - var index = importStr.indexOf(endKey); - index += endKey.length; - rtnStr = importStr.substr(index); - } - catch (e) { - throw new Error("could not import material: " + importStr); - } - - return rtnStr; - }; - this.update = function (time) { //var speed = 0.01; //time *= speed; diff --git a/js/lib/rdge/materials/twist-vert-material.js b/js/lib/rdge/materials/twist-vert-material.js index 0cf4d954..54e5168f 100644 --- a/js/lib/rdge/materials/twist-vert-material.js +++ b/js/lib/rdge/materials/twist-vert-material.js @@ -121,44 +121,6 @@ function TwistVertMaterial() { } }; - this.export = function () { - // this function should be overridden by subclasses - var exportStr = "material: " + this.getShaderName() + "\n"; - exportStr += "name: " + this.getName() + "\n"; - - if (this._shader) - exportStr += "color: " + String(this._shader.twistMe.color) + "\n"; - else - exportStr += "color: " + this.getColor() + "\n"; - exportStr += "endMaterial\n"; - - return exportStr; - }; - - this.import = function (importStr) { - var pu = new MaterialParser(importStr); - var material = pu.nextValue("material: "); - if (material != this.getShaderName()) throw new Error("ill-formed material"); - this.setName(pu.nextValue("name: ")); - - var rtnStr; - try { - var color = eval("[" + pu.nextValue("color: ") + "]"); - - this.setProperty("color", color); - - var endKey = "endMaterial\n"; - var index = importStr.indexOf(endKey); - index += endKey.length; - rtnStr = importStr.substr(index); - } - catch (e) { - throw new Error("could not import material: " + importStr); - } - - return rtnStr; - }; - this.update = function (time) { if (this._shader && this._shader.twistMe) { var angle = this._angle; diff --git a/js/lib/rdge/materials/uber-material.js b/js/lib/rdge/materials/uber-material.js index da6ea9f4..e94458cc 100755 --- a/js/lib/rdge/materials/uber-material.js +++ b/js/lib/rdge/materials/uber-material.js @@ -367,115 +367,6 @@ var UberMaterial = function UberMaterial() { this._materialNode.setShader(this._shader); }; - this.import = function (importStr) { - // limit the key searches to this material - var endKey = "endMaterial\n"; - var index = importStr.indexOf(endKey); - index += endKey.length; - importStr = importStr.slice(0, index); - var pu = new MaterialParser(importStr); - - var matProps = pu.nextValue("materialProps: "); - if (matProps) { - var ambientColor = eval("[" + pu.nextValue("ambientColor: ") + ']'); this.setProperty("ambientColor", ambientColor); - var diffuseColor = eval("[" + pu.nextValue("diffuseColor: ") + ']'); this.setProperty("diffuseColor", diffuseColor); - var specularColor = eval("[" + pu.nextValue("specularColor: ") + ']'); this.setProperty("specularColor", specularColor); - var specularPower = eval("[" + pu.nextValue("specularPower: ") + ']'); this.setProperty("specularPower", specularPower); - } - - var lightProps = pu.nextValue("lightProps: "); - if (lightProps) { - this._lights = []; - var lightStr; - for (var i = 0; i < this._MAX_LIGHTS; i++) { - var type = pu.nextValue("light" + i + ": "); - if (type) { - var light = new Object; - switch (type) { - case "directional": - lightStr = pu.nextValue('light' + i + 'Dir: '); - light.direction = eval("[" + lightStr + "]"); - break; - - case "spot": - lightStr = pu.nextValue('light' + i + 'Pos: '); - light.position = eval("[" + lightStr + "]"); - - lightStr = pu.nextValue('light' + i + 'OuterSpotCutoff: '); - light['spotInnerCutoff'] = Number(lightStr); - - lightStr = pu.nextValue('light' + i + 'InnerSpotCutoff: '); - light['spotOuterCutoff'] = Number(lightStr); - break; - - case "point": - lightStr = pu.nextValue('light' + i + 'Pos: '); - light.position = eval("[" + lightStr + "]"); - - lightStr = pu.nextValue('light' + i + 'Attenuation: '); - light.attenuation = eval("[" + lightStr + "]"); - break; - - default: - throw new Error("unrecognized light type on import: " + type); - break; - } - - // common to all lights - light.diffuseColor = eval("[" + pu.nextValue('light' + i + 'Color: ') + "]"); - light.specularColor = eval("[" + pu.nextValue('light' + i + 'SpecularColor: ') + "]"); - - // push the light - this._lights.push(light); - } - else { - this._lights[i] = 'undefined'; - } - - // advance to the next light - var endLightKey = "endMaterial\n"; - index = importStr.indexOf(endLightKey); - if (index < 0) throw new Error("ill-formed light encountered in import"); - index += endLightKey.length; - importStr = importStr.slice(0, index); - - } - - if (this._lights.length > 0) { - this._ubershaderCaps.lighting = - { - 'light0': this._lights[0], - 'light1': this._lights[1], - 'light2': this._lights[2], - 'light3': this._lights[3] - } - } - } - - var diffuseMap = pu.nextValue("diffuseMap: ") - if (diffuseMap) { - this.setProperty("diffuseMap", diffuseMap); - } - - var normalMap = pu.nextValue("normalMap: "); - if (normalMap) { - this.setProperty("normalMap", normalMap); - } - - var specularMap = pu.nextValue("specularMap: "); - if (specularMap) { - this.setProperty("specularMap", specularMap); - } - - var environmentMap = pu.nextValue("environmentMap: "); - if (environmentMap) { - this.setProperty("environmentMap", environmentMap); - this.setProperty("environmentAmount", Number(pu.nextValue("environmentAmount"))); - } - - this.rebuildShader(); - }; - this.importJSON = function (jObj) { if (this.getShaderName() != jObj.material) throw new Error("ill-formed material"); this.setName(jObj.name); @@ -640,84 +531,6 @@ var UberMaterial = function UberMaterial() { return jObj; }; - - this.export = function () { - // every material needs the base type and instance name - var exportStr = "material: " + this.getShaderName() + "\n"; - exportStr += "name: " + this.getName() + "\n"; - - var caps = this._ubershaderCaps; - - // export the material properties - if (typeof caps.material != 'undefined') { - exportStr += "materialProps: true\n"; - exportStr += "ambientColor: " + this._ambientColor + "\n"; - exportStr += "diffuseColor: " + this._diffuseColor + "\n"; - exportStr += "specularColor: " + this._specularColor + "\n"; - exportStr += "specularPower: " + this._specularPower + "\n"; - } - - if (typeof caps.lighting != 'undefined') { - exportStr += "lightProps: true\n"; - - var light = caps.lighting['light' + i]; - for (var i = 0; i < this._MAX_LIGHTS; i++) { - var light = caps.lighting["light" + i]; - if (typeof light != "undefined") { - exportStr += "light" + i + ': ' + light.type + "\n"; - - // output the light secific data - if (light.type === 'directional') { - exportStr += 'light' + i + 'Dir: ' + light['direction'] + '\n'; - } - else if (light.type === 'spot') { - exportStr += 'light' + i + 'Pos: ' + light['position'] + '\n'; - exportStr += 'light' + i + 'SpotInnerCutoff: ' + light['spotInnerCutoff'] + '\n'; - exportStr += 'light' + i + 'SpotOuterCutoff: ' + light['spotOuterCutoff'] + '\n'; - } - else // light.type === 'point' - { - exportStr += 'light' + i + 'Pos: ' + (light['position'] || [0, 0, 0]) + '\n'; - exportStr += 'light' + i + 'Attenuation: ' + (light['attenuation'] || [1, 0, 0]) + '\n'; - } - - // common to all lights - exportStr += 'light' + i + 'Color: ' + (light['diffuseColor'] || [1, 1, 1, 1]) + '\n'; - exportStr += 'light' + i + 'SpecularColor: ' + (light['specularColor'] || [1, 1, 1, 1]) + '\n'; - - exportStr += "endlight\n"; - } - } - } - - var world = this.getWorld(); - if (!world) { - throw new Error("no world in material.export, " + this.getName()); - } - - if (typeof caps.diffuseMap != 'undefined') { - exportStr += "diffuseMap: " + caps.diffuseMap.texture + "\n"; - } - - if (typeof caps.normalMap != 'undefined') { - exportStr += "normalMap: " + caps.normalMap.texture + "\n"; - } - - if (typeof caps.specularMap != 'undefined') { - exportStr += "specularMap: " + caps.specularMap.texture + "\n"; - } - - if (typeof caps.environmentMap != 'undefined') { - exportStr += "environmentMap: " + caps.environmentMap.texture + "\n"; - exportStr += "environmentAmount: " + caps.environmentMap.envReflection + "\n"; - } - - // every material needs to terminate like this - exportStr += "endMaterial\n"; - - return exportStr; - }; - this.buildUberShader = function (caps) { var preproc = ""; var paramBlock = {}; -- cgit v1.2.3