UNPKG

snapsvg

Version:
13 lines (11 loc) 326 B
/** * @class Light * @author Matthew Wagerfield */ FSS.Light = function(ambient, diffuse) { FSS.Object.call(this); this.ambient = new FSS.Color(ambient || '#FFFFFF'); this.diffuse = new FSS.Color(diffuse || '#FFFFFF'); this.ray = FSS.Vector3.create(); }; FSS.Light.prototype = Object.create(FSS.Object.prototype);