var p = dojox.gfx3d.lighting; this.incident = p.normalize(incident); this.lights = []; for(var i = 0; i < lights.length; ++i){ var l = lights[i]; this.lights.push({direction: p.normalize(l.direction), color: p.toStdColor(l.color)}); } this.ambient = p.toStdColor(ambient.color ? ambient.color : "white"); console.debug('ambient = ', this.ambient); this.ambient = p.scaleColor(ambient.intensity, this.ambient); this.ambient = p.scaleColor(this.ambient.a, this.ambient); this.ambient.a = 1; this.specular = p.toStdColor(specular ? specular : "white"); this.specular = p.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; }, 
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; }, 
	constructor: function(incident, lights, ambient, specular){		var p = dojox.gfx3d.lighting;		this.incident = p.normalize(incident);		this.lights = [];		for(var i = 0; i < lights.length; ++i){			var l = lights[i];			this.lights.push({direction: p.normalize(l.direction), color: p.toStdColor(l.color)});		}		this.ambient = p.toStdColor(ambient.color ? ambient.color : "white");		console.debug('ambient = ', this.ambient);		this.ambient = p.scaleColor(ambient.intensity, this.ambient);		this.ambient = p.scaleColor(this.ambient.a, this.ambient);		this.ambient.a = 1;		this.specular = p.toStdColor(specular ? specular : "white");		this.specular = p.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;	},
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/c7d2075e077f52d30bb22fd290f5cbb6f2dca879/lighting.js/clean/gfx3d/lighting.js