1 /** 2 * @class renderLight 3 * @extends component 4 * @description 5 * A rendering light in 3D space. 6 * 7 * 8 */ 9 function renderLight() { 10 11 /** 12 * Resets the lights properties back to the default state. 13 */ 14 this.reset = function(){}; 15 16 17 18 /** 19 * Type of light. See {@link sandboxe.renderLight.type} for possible choices. 20 * @type {Number} 21 */ 22 this.type = 0.0; 23 24 /** 25 * Whether to enable the light itself. 26 * @type {Boolean} 27 */ 28 this.enabled = false; 29 30 /** 31 * Global / absolute position of the light. 32 * @type {vector} 33 */ 34 this.position = {}; 35 36 /** 37 * Intensity of the light. 38 * @type {Number} 39 */ 40 this.intensity = 0.0; 41 42 /** 43 * Color of the light. 44 * @type {color} 45 */ 46 this.color = {}; 47 48 49 50 51 52 return this; 53 }