25 lines
516 B
JavaScript
25 lines
516 B
JavaScript
/**
|
|
* R3.D3.API.Light.Ambient
|
|
* @constructor
|
|
* @param apiLight
|
|
*/
|
|
R3.D3.API.Light.Ambient = function(
|
|
apiLight
|
|
) {
|
|
|
|
if (R3.Utils.UndefinedOrNull(apiLight)) {
|
|
apiLight = {};
|
|
}
|
|
this.apiLight = apiLight;
|
|
|
|
R3.D3.API.Light.call(
|
|
this,
|
|
this.apiLight,
|
|
this.apiLight.color,
|
|
this.apiLight.intensity
|
|
);
|
|
};
|
|
|
|
R3.D3.API.Light.Ambient.prototype = Object.create(R3.D3.API.Light.prototype);
|
|
R3.D3.API.Light.Ambient.prototype.constructor = R3.D3.API.Light.Ambient;
|