From 04343eda8c2f870b0da55cfdc8003c99fe1cc4de Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:53:10 -0700 Subject: Remove trailing spaces --- js/helper-classes/RDGE/src/core/script/jshader.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'js/helper-classes/RDGE/src/core/script/jshader.js') diff --git a/js/helper-classes/RDGE/src/core/script/jshader.js b/js/helper-classes/RDGE/src/core/script/jshader.js index f8d79580..123a53e4 100755 --- a/js/helper-classes/RDGE/src/core/script/jshader.js +++ b/js/helper-classes/RDGE/src/core/script/jshader.js @@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE. // RDGE namespaces var RDGE = RDGE || {}; -/* +/* this API should be familiar to anyone who has worked with HLSL effect files. */ @@ -45,27 +45,27 @@ RDGE.bindMap['vec2'] = function(ctx, a,b) { ctx.uniform2fv(a,b); }; RDGE.bindMap['vec3'] = function(ctx, a,b) { ctx.uniform3fv(a,b); }; RDGE.bindMap['vec4'] = function(ctx, a,b) { ctx.uniform4fv(a,b); }; RDGE.bindMap['mat3'] = function(ctx, a,b) { ctx.uniformMatrix3fv(a,false,b); }; -RDGE.bindMap['mat4'] = function(ctx, a,b) -{ - ctx.uniformMatrix4fv(a,false,b); +RDGE.bindMap['mat4'] = function(ctx, a,b) +{ + ctx.uniformMatrix4fv(a,false,b); RDGE.globals.engine.getContext().debug.mat4CallCount++; }; -RDGE.bindMap['tex2d'] = function(ctx, a,b) +RDGE.bindMap['tex2d'] = function(ctx, a,b) { ctx.activeTexture(ctx.TEXTURE0+b[0]); ctx.bindTexture(ctx.TEXTURE_2D, b[1]); ctx.uniform1iv(a,[b[0]]); }; -RDGE.bindMap['texCube']=function(ctx, a,b) +RDGE.bindMap['texCube']=function(ctx, a,b) { ctx.activeTexture(ctx.TEXTURE0+b[0]); ctx.bindTexture(ctx.TEXTURE_CUBE_MAP, b[1]); ctx.uniform1iv(a,[b[0]]); }; -RDGE.lightDataMap = +RDGE.lightDataMap = [ function(ctx, loc, lightNode) { ctx.uniform3fv(loc, lightNode.position); }, function(ctx, loc, lightNode) { ctx.uniform4fv(loc, lightNode.lightDiffuse); }, @@ -410,7 +410,7 @@ RDGE.jshader = function (addr) { // link up aliases for (var p in curTechnique[i].params) { if (typeof curTechnique[i].params[p] == 'string') { - // this just redirects to an already existing parameter. + // this just redirects to an already existing parameter. this[t][p] = this[t].passes[i].params[p]; } } @@ -446,7 +446,7 @@ RDGE.jshader = function (addr) { /* * Init a local parameter at any time during the life of the jshader. - * This will add the parameter to the list of parameters to be bound + * This will add the parameter to the list of parameters to be bound * before rendering */ this.initLocalParameter = function (name, param) { @@ -518,7 +518,7 @@ RDGE.jshader = function (addr) { source = vShaderDef; } else { var vshaderRequest = new XMLHttpRequest(); - var urlVertShader = vShaderDef; + var urlVertShader = vShaderDef; vshaderRequest.open("GET", urlVertShader, false); vshaderRequest.send(null); source = vshaderRequest.responseText; -- cgit v1.2.3