2018-04-09 09:35:04 +02:00
|
|
|
/**
|
2018-08-17 14:53:02 +02:00
|
|
|
* R3.D3.API.Light.Ambient
|
2018-04-09 09:35:04 +02:00
|
|
|
* @constructor
|
|
|
|
* @param apiLight
|
|
|
|
*/
|
|
|
|
R3.D3.API.Light.Ambient = function(
|
|
|
|
apiLight
|
|
|
|
) {
|
|
|
|
|
|
|
|
if (R3.Utils.UndefinedOrNull(apiLight)) {
|
2019-07-24 14:45:42 +02:00
|
|
|
apiLight = {};
|
2018-04-09 09:35:04 +02:00
|
|
|
}
|
2019-07-24 14:45:42 +02:00
|
|
|
this.apiLight = apiLight;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
|
|
|
R3.D3.API.Light.call(
|
|
|
|
this,
|
2019-07-24 14:45:42 +02:00
|
|
|
this.apiLight,
|
|
|
|
this.apiLight.color,
|
|
|
|
this.apiLight.intensity
|
2018-04-09 09:35:04 +02:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
R3.D3.API.Light.Ambient.prototype = Object.create(R3.D3.API.Light.prototype);
|
2018-08-17 14:53:02 +02:00
|
|
|
R3.D3.API.Light.Ambient.prototype.constructor = R3.D3.API.Light.Ambient;
|