a:114:{s:9:"#provides";s:20:"dojox.gfx3d.lighting";s:9:"#resource";s:17:"gfx3d/lighting.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:15:"dojox.gfx._base";}}s:26:"dojox.gfx3d.lighting.Model";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:4:{s:8:"incident";a:1:{s:4:"type";s:0:"";}s:6:"lights";a:1:{s:4:"type";s:0:"";}s:7:"ambient";a:1:{s:4:"type";s:0:"";}s:8:"specular";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:801:" this.incident = lite.normalize(incident); this.lights = []; for(var i = 0; i < lights.length; ++i){ var l = lights[i]; this.lights.push({direction: lite.normalize(l.direction), color: lite.toStdColor(l.color)}); } this.ambient = lite.toStdColor(ambient.color ? ambient.color : "white"); this.ambient = lite.scaleColor(ambient.intensity, this.ambient); this.ambient = lite.scaleColor(this.ambient.a, this.ambient); this.ambient.a = 1; this.specular = lite.toStdColor(specular ? specular : "white"); this.specular = lite.scaleColor(this.specular.a, this.specular); this.specular.a = 1; this.npr_cool = {r: 0, g: 0, b: 0.4, a: 1}; this.npr_warm = {r: 0.4, g: 0.4, b: 0.2, a: 1}; this.npr_alpha = 0.2; this.npr_beta = 0.6; this.npr_scale = 0.6;";s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:35:"dojox.gfx3d.lighting.Model.constant";a:5:{s:9:"prototype";s:26:"dojox.gfx3d.lighting.Model";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:6:"normal";a:1:{s:4:"type";s:0:"";}s:6:"finish";a:1:{s:4:"type";s:0:"";}s:7:"pigment";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:185:" pigment = lite.toStdColor(pigment); var alpha = pigment.a, color = lite.scaleColor(alpha, pigment); color.a = alpha; return lite.fromStdColor(lite.saturateColor(color));";s:7:"summary";s:0:"";}s:32:"dojox.gfx3d.lighting.Model.matte";a:5:{s:9:"prototype";s:26:"dojox.gfx3d.lighting.Model";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:6:"normal";a:1:{s:4:"type";s:0:"";}s:6:"finish";a:1:{s:4:"type";s:0:"";}s:7:"pigment";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:570:" if(typeof finish == "string"){ finish = lite.finish[finish]; } pigment = lite.toStdColor(pigment); normal = lite.faceforward(lite.normalize(normal), this.incident); var ambient = lite.scaleColor(finish.Ka, this.ambient), shadow = lite.saturate(-4 * lite.dot(normal, this.incident)), diffuse = lite.scaleColor(shadow * finish.Kd, lite.diffuse(normal, this.lights)), color = lite.scaleColor(pigment.a, lite.multiplyColor(pigment, lite.addColor(ambient, diffuse))); color.a = pigment.a; return lite.fromStdColor(lite.saturateColor(color));";s:7:"summary";s:0:"";}s:32:"dojox.gfx3d.lighting.Model.metal";a:5:{s:9:"prototype";s:26:"dojox.gfx3d.lighting.Model";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:6:"normal";a:1:{s:4:"type";s:0:"";}s:6:"finish";a:1:{s:4:"type";s:0:"";}s:7:"pigment";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:845:" if(typeof finish == "string"){ finish = lite.finish[finish]; } pigment = lite.toStdColor(pigment); normal = lite.faceforward(lite.normalize(normal), this.incident); var v = lite.scale(-1, this.incident), specular, color, ambient = lite.scaleColor(finish.Ka, this.ambient), shadow = lite.saturate(-4 * lite.dot(normal, this.incident)); if("phong" in finish){ specular = lite.scaleColor(shadow * finish.Ks * finish.phong, lite.phong(normal, v, finish.phong_size, this.lights)); }else{ specular = lite.scaleColor(shadow * finish.Ks, lite.specular(normal, v, finish.roughness, this.lights)); } color = lite.scaleColor(pigment.a, lite.addColor(lite.multiplyColor(pigment, ambient), lite.multiplyColor(this.specular, specular))); color.a = pigment.a; return lite.fromStdColor(lite.saturateColor(color));";s:7:"summary";s:0:"";}s:34:"dojox.gfx3d.lighting.Model.plastic";a:5:{s:9:"prototype";s:26:"dojox.gfx3d.lighting.Model";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:6:"normal";a:1:{s:4:"type";s:0:"";}s:6:"finish";a:1:{s:4:"type";s:0:"";}s:7:"pigment";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:955:" if(typeof finish == "string"){ finish = lite.finish[finish]; } pigment = lite.toStdColor(pigment); normal = lite.faceforward(lite.normalize(normal), this.incident); var v = lite.scale(-1, this.incident), specular, color, ambient = lite.scaleColor(finish.Ka, this.ambient), shadow = lite.saturate(-4 * lite.dot(normal, this.incident)), diffuse = lite.scaleColor(shadow * finish.Kd, lite.diffuse(normal, this.lights)); if("phong" in finish){ specular = lite.scaleColor(shadow * finish.Ks * finish.phong, lite.phong(normal, v, finish.phong_size, this.lights)); }else{ specular = lite.scaleColor(shadow * finish.Ks, lite.specular(normal, v, finish.roughness, this.lights)); } color = lite.scaleColor(pigment.a, lite.addColor(lite.multiplyColor(pigment, lite.addColor(ambient, diffuse)), lite.multiplyColor(this.specular, specular))); color.a = pigment.a; return lite.fromStdColor(lite.saturateColor(color));";s:7:"summary";s:0:"";}s:30:"dojox.gfx3d.lighting.Model.npr";a:5:{s:9:"prototype";s:26:"dojox.gfx3d.lighting.Model";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:6:"normal";a:1:{s:4:"type";s:0:"";}s:6:"finish";a:1:{s:4:"type";s:0:"";}s:7:"pigment";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:881:" if(typeof finish == "string"){ finish = lite.finish[finish]; } pigment = lite.toStdColor(pigment); normal = lite.faceforward(lite.normalize(normal), this.incident); var ambient = lite.scaleColor(finish.Ka, this.ambient), shadow = lite.saturate(-4 * lite.dot(normal, this.incident)), diffuse = lite.scaleColor(shadow * finish.Kd, lite.diffuse(normal, this.lights)), color = lite.scaleColor(pigment.a, lite.multiplyColor(pigment, lite.addColor(ambient, diffuse))), cool = lite.addColor(this.npr_cool, lite.scaleColor(this.npr_alpha, color)), warm = lite.addColor(this.npr_warm, lite.scaleColor(this.npr_beta, color)), d = (1 + lite.dot(this.incident, normal)) / 2, color = lite.scaleColor(this.npr_scale, lite.addColor(color, lite.mixColor(cool, warm, d))); color.a = pigment.a; return lite.fromStdColor(lite.saturateColor(color));";s:7:"summary";s:0:"";}s:35:"dojox.gfx3d.lighting.Model.incident";a:2:{s:8:"instance";s:26:"dojox.gfx3d.lighting.Model";s:7:"summary";s:0:"";}s:33:"dojox.gfx3d.lighting.Model.lights";a:2:{s:8:"instance";s:26:"dojox.gfx3d.lighting.Model";s:7:"summary";s:0:"";}s:34:"dojox.gfx3d.lighting.Model.ambient";a:2:{s:8:"instance";s:26:"dojox.gfx3d.lighting.Model";s:7:"summary";s:0:"";}s:36:"dojox.gfx3d.lighting.Model.ambient.a";a:2:{s:8:"instance";s:26:"dojox.gfx3d.lighting.Model";s:7:"summary";s:0:"";}s:35:"dojox.gfx3d.lighting.Model.specular";a:2:{s:8:"instance";s:26:"dojox.gfx3d.lighting.Model";s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.Model.specular.a";a:2:{s:8:"instance";s:26:"dojox.gfx3d.lighting.Model";s:7:"summary";s:0:"";}s:35:"dojox.gfx3d.lighting.Model.npr_cool";a:2:{s:8:"instance";s:26:"dojox.gfx3d.lighting.Model";s:7:"summary";s:0:"";}s:35:"dojox.gfx3d.lighting.Model.npr_warm";a:2:{s:8:"instance";s:26:"dojox.gfx3d.lighting.Model";s:7:"summary";s:0:"";}s:36:"dojox.gfx3d.lighting.Model.npr_alpha";a:2:{s:8:"instance";s:26:"dojox.gfx3d.lighting.Model";s:7:"summary";s:0:"";}s:35:"dojox.gfx3d.lighting.Model.npr_beta";a:2:{s:8:"instance";s:26:"dojox.gfx3d.lighting.Model";s:7:"summary";s:0:"";}s:36:"dojox.gfx3d.lighting.Model.npr_scale";a:2:{s:8:"instance";s:26:"dojox.gfx3d.lighting.Model";s:7:"summary";s:0:"";}s:27:"dojox.gfx3d.lighting.finish";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:39:"dojox.gfx3d.lighting.finish.defaults.Ka";a:1:{s:7:"summary";s:0:"";}s:39:"dojox.gfx3d.lighting.finish.defaults.Kd";a:1:{s:7:"summary";s:0:"";}s:39:"dojox.gfx3d.lighting.finish.defaults.Ks";a:1:{s:7:"summary";s:0:"";}s:46:"dojox.gfx3d.lighting.finish.defaults.roughness";a:1:{s:7:"summary";s:0:"";}s:36:"dojox.gfx3d.lighting.finish.defaults";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:35:"dojox.gfx3d.lighting.finish.dull.Ka";a:1:{s:7:"summary";s:0:"";}s:35:"dojox.gfx3d.lighting.finish.dull.Kd";a:1:{s:7:"summary";s:0:"";}s:35:"dojox.gfx3d.lighting.finish.dull.Ks";a:1:{s:7:"summary";s:0:"";}s:42:"dojox.gfx3d.lighting.finish.dull.roughness";a:1:{s:7:"summary";s:0:"";}s:32:"dojox.gfx3d.lighting.finish.dull";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:36:"dojox.gfx3d.lighting.finish.shiny.Ka";a:1:{s:7:"summary";s:0:"";}s:36:"dojox.gfx3d.lighting.finish.shiny.Kd";a:1:{s:7:"summary";s:0:"";}s:36:"dojox.gfx3d.lighting.finish.shiny.Ks";a:1:{s:7:"summary";s:0:"";}s:43:"dojox.gfx3d.lighting.finish.shiny.roughness";a:1:{s:7:"summary";s:0:"";}s:33:"dojox.gfx3d.lighting.finish.shiny";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.glossy.Ka";a:1:{s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.glossy.Kd";a:1:{s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.glossy.Ks";a:1:{s:7:"summary";s:0:"";}s:44:"dojox.gfx3d.lighting.finish.glossy.roughness";a:1:{s:7:"summary";s:0:"";}s:34:"dojox.gfx3d.lighting.finish.glossy";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:41:"dojox.gfx3d.lighting.finish.phong_dull.Ka";a:1:{s:7:"summary";s:0:"";}s:41:"dojox.gfx3d.lighting.finish.phong_dull.Kd";a:1:{s:7:"summary";s:0:"";}s:41:"dojox.gfx3d.lighting.finish.phong_dull.Ks";a:1:{s:7:"summary";s:0:"";}s:44:"dojox.gfx3d.lighting.finish.phong_dull.phong";a:1:{s:7:"summary";s:0:"";}s:49:"dojox.gfx3d.lighting.finish.phong_dull.phong_size";a:1:{s:7:"summary";s:0:"";}s:38:"dojox.gfx3d.lighting.finish.phong_dull";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:42:"dojox.gfx3d.lighting.finish.phong_shiny.Ka";a:1:{s:7:"summary";s:0:"";}s:42:"dojox.gfx3d.lighting.finish.phong_shiny.Kd";a:1:{s:7:"summary";s:0:"";}s:42:"dojox.gfx3d.lighting.finish.phong_shiny.Ks";a:1:{s:7:"summary";s:0:"";}s:45:"dojox.gfx3d.lighting.finish.phong_shiny.phong";a:1:{s:7:"summary";s:0:"";}s:50:"dojox.gfx3d.lighting.finish.phong_shiny.phong_size";a:1:{s:7:"summary";s:0:"";}s:39:"dojox.gfx3d.lighting.finish.phong_shiny";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:43:"dojox.gfx3d.lighting.finish.phong_glossy.Ka";a:1:{s:7:"summary";s:0:"";}s:43:"dojox.gfx3d.lighting.finish.phong_glossy.Kd";a:1:{s:7:"summary";s:0:"";}s:43:"dojox.gfx3d.lighting.finish.phong_glossy.Ks";a:1:{s:7:"summary";s:0:"";}s:46:"dojox.gfx3d.lighting.finish.phong_glossy.phong";a:1:{s:7:"summary";s:0:"";}s:51:"dojox.gfx3d.lighting.finish.phong_glossy.phong_size";a:1:{s:7:"summary";s:0:"";}s:40:"dojox.gfx3d.lighting.finish.phong_glossy";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:39:"dojox.gfx3d.lighting.finish.luminous.Ka";a:1:{s:7:"summary";s:0:"";}s:39:"dojox.gfx3d.lighting.finish.luminous.Kd";a:1:{s:7:"summary";s:0:"";}s:39:"dojox.gfx3d.lighting.finish.luminous.Ks";a:1:{s:7:"summary";s:0:"";}s:46:"dojox.gfx3d.lighting.finish.luminous.roughness";a:1:{s:7:"summary";s:0:"";}s:36:"dojox.gfx3d.lighting.finish.luminous";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalA.Ka";a:1:{s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalA.Kd";a:1:{s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalA.Ks";a:1:{s:7:"summary";s:0:"";}s:44:"dojox.gfx3d.lighting.finish.metalA.roughness";a:1:{s:7:"summary";s:0:"";}s:34:"dojox.gfx3d.lighting.finish.metalA";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalB.Ka";a:1:{s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalB.Kd";a:1:{s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalB.Ks";a:1:{s:7:"summary";s:0:"";}s:44:"dojox.gfx3d.lighting.finish.metalB.roughness";a:1:{s:7:"summary";s:0:"";}s:34:"dojox.gfx3d.lighting.finish.metalB";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalC.Ka";a:1:{s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalC.Kd";a:1:{s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalC.Ks";a:1:{s:7:"summary";s:0:"";}s:44:"dojox.gfx3d.lighting.finish.metalC.roughness";a:1:{s:7:"summary";s:0:"";}s:34:"dojox.gfx3d.lighting.finish.metalC";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalD.Ka";a:1:{s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalD.Kd";a:1:{s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalD.Ks";a:1:{s:7:"summary";s:0:"";}s:44:"dojox.gfx3d.lighting.finish.metalD.roughness";a:1:{s:7:"summary";s:0:"";}s:34:"dojox.gfx3d.lighting.finish.metalD";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalE.Ka";a:1:{s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalE.Kd";a:1:{s:7:"summary";s:0:"";}s:37:"dojox.gfx3d.lighting.finish.metalE.Ks";a:1:{s:7:"summary";s:0:"";}s:44:"dojox.gfx3d.lighting.finish.metalE.roughness";a:1:{s:7:"summary";s:0:"";}s:34:"dojox.gfx3d.lighting.finish.metalE";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:26:"dojox.gfx3d.lighting.black";a:3:{s:4:"type";s:8:"Function";s:6:"source";s:35:" return {r: 0, g: 0, b: 0, a: 1};";s:7:"summary";s:0:"";}s:26:"dojox.gfx3d.lighting.white";a:3:{s:4:"type";s:8:"Function";s:6:"source";s:35:" return {r: 1, g: 1, b: 1, a: 1};";s:7:"summary";s:0:"";}s:31:"dojox.gfx3d.lighting.toStdColor";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"c";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:97:" c = dojox.gfx.normalizeColor(c); return {r: c.r / 255, g: c.g / 255, b: c.b / 255, a: c.a};";s:7:"summary";s:0:"";}s:33:"dojox.gfx3d.lighting.fromStdColor";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"c";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:101:" return new dojo.Color([Math.round(255 * c.r), Math.round(255 * c.g), Math.round(255 * c.b), c.a]);";s:7:"summary";s:0:"";}s:31:"dojox.gfx3d.lighting.scaleColor";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:1:"s";a:1:{s:4:"type";s:0:"";}s:1:"c";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:59:" return {r: s * c.r, g: s * c.g, b: s * c.b, a: s * c.a};";s:7:"summary";s:0:"";}s:29:"dojox.gfx3d.lighting.addColor";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:1:"a";a:1:{s:4:"type";s:0:"";}s:1:"b";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:67:" return {r: a.r + b.r, g: a.g + b.g, b: a.b + b.b, a: a.a + b.a};";s:7:"summary";s:0:"";}s:34:"dojox.gfx3d.lighting.multiplyColor";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:1:"a";a:1:{s:4:"type";s:0:"";}s:1:"b";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:67:" return {r: a.r * b.r, g: a.g * b.g, b: a.b * b.b, a: a.a * b.a};";s:7:"summary";s:0:"";}s:34:"dojox.gfx3d.lighting.saturateColor";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"c";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:176:" return { r: c.r < 0 ? 0 : c.r > 1 ? 1 : c.r, g: c.g < 0 ? 0 : c.g > 1 ? 1 : c.g, b: c.b < 0 ? 0 : c.b > 1 ? 1 : c.b, a: c.a < 0 ? 0 : c.a > 1 ? 1 : c.a };";s:7:"summary";s:0:"";}s:29:"dojox.gfx3d.lighting.mixColor";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:2:"c1";a:1:{s:4:"type";s:0:"";}s:2:"c2";a:1:{s:4:"type";s:0:"";}s:1:"s";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:76:" return lite.addColor(lite.scaleColor(s, c1), lite.scaleColor(1 - s, c2));";s:7:"summary";s:0:"";}s:31:"dojox.gfx3d.lighting.diff2Color";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:2:"c1";a:1:{s:4:"type";s:0:"";}s:2:"c2";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:136:" var r = c1.r - c2.r; var g = c1.g - c2.g; var b = c1.b - c2.b; var a = c1.a - c2.a; return r * r + g * g + b * b + a * a;";s:7:"summary";s:0:"";}s:33:"dojox.gfx3d.lighting.length2Color";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"c";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:56:" return c.r * c.r + c.g * c.g + c.b * c.b + c.a * c.a;";s:7:"summary";s:0:"";}s:24:"dojox.gfx3d.lighting.dot";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:1:"a";a:1:{s:4:"type";s:0:"";}s:1:"b";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:44:" return a.x * b.x + a.y * b.y + a.z * b.z;";s:7:"summary";s:0:"";}s:26:"dojox.gfx3d.lighting.scale";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:1:"s";a:1:{s:4:"type";s:0:"";}s:1:"v";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:47:" return {x: s * v.x, y: s * v.y, z: s * v.z};";s:7:"summary";s:0:"";}s:24:"dojox.gfx3d.lighting.add";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:1:"a";a:1:{s:4:"type";s:0:"";}s:1:"b";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:53:" return {x: a.x + b.x, y: a.y + b.y, z: a.z + b.z};";s:7:"summary";s:0:"";}s:29:"dojox.gfx3d.lighting.saturate";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"v";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:38:" return Math.min(Math.max(v, 0), 1);";s:7:"summary";s:0:"";}s:27:"dojox.gfx3d.lighting.length";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"v";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:52:" return Math.sqrt(dojox.gfx3d.lighting.dot(v, v));";s:7:"summary";s:0:"";}s:30:"dojox.gfx3d.lighting.normalize";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"v";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:44:" return lite.scale(1 / lite.length(v), v);";s:7:"summary";s:0:"";}s:32:"dojox.gfx3d.lighting.faceforward";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:1:"n";a:1:{s:4:"type";s:0:"";}s:1:"i";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:94:" var p = dojox.gfx3d.lighting; var s = p.dot(i, n) < 0 ? 1 : -1; return p.scale(s, n);";s:7:"summary";s:0:"";}s:28:"dojox.gfx3d.lighting.reflect";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:1:"i";a:1:{s:4:"type";s:0:"";}s:1:"n";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:82:" var p = dojox.gfx3d.lighting; return p.add(i, p.scale(-2 * p.dot(i, n), n));";s:7:"summary";s:0:"";}s:28:"dojox.gfx3d.lighting.diffuse";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:6:"normal";a:1:{s:4:"type";s:0:"";}s:6:"lights";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:239:" var c = lite.black(); for(var i = 0; i < lights.length; ++i){ var l = lights[i], d = lite.dot(lite.normalize(l.direction), normal); c = lite.addColor(c, lite.scaleColor(d, l.color)); } return lite.saturateColor(c);";s:7:"summary";s:0:"";}s:29:"dojox.gfx3d.lighting.specular";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:4:{s:6:"normal";a:1:{s:4:"type";s:0:"";}s:1:"v";a:1:{s:4:"type";s:0:"";}s:9:"roughness";a:1:{s:4:"type";s:0:"";}s:6:"lights";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:319:" var c = lite.black(); for(var i = 0; i < lights.length; ++i){ var l = lights[i], h = lite.normalize(lite.add(lite.normalize(l.direction), v)), s = Math.pow(Math.max(0, lite.dot(normal, h)), 1 / roughness); c = lite.addColor(c, lite.scaleColor(s, l.color)); } return lite.saturateColor(c);";s:7:"summary";s:0:"";}s:26:"dojox.gfx3d.lighting.phong";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:4:{s:6:"normal";a:1:{s:4:"type";s:0:"";}s:1:"v";a:1:{s:4:"type";s:0:"";}s:4:"size";a:1:{s:4:"type";s:0:"";}s:6:"lights";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:365:" normal = lite.normalize(normal); var c = lite.black(); for(var i = 0; i < lights.length; ++i){ var l = lights[i], r = lite.reflect(lite.scale(-1, lite.normalize(v)), normal), s = Math.pow(Math.max(0, lite.dot(r, lite.normalize(l.direction))), size); c = lite.addColor(c, lite.scaleColor(s, l.color)); } return lite.saturateColor(c);";s:7:"summary";s:0:"";}s:20:"dojox.gfx3d.lighting";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:11:"dojox.gfx3d";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}