34 lines
776 B
JavaScript
34 lines
776 B
JavaScript
/**
|
|
* R3.D3.API.Light.Ambient
|
|
* @constructor
|
|
* @param apiLight
|
|
*/
|
|
R3.D3.API.Light.Ambient = function(
|
|
apiLight
|
|
) {
|
|
|
|
if (R3.Utils.UndefinedOrNull(apiLight)) {
|
|
apiLight = {
|
|
lightType : R3.D3.API.Light.LIGHT_TYPE_AMBIENT
|
|
};
|
|
}
|
|
|
|
if (R3.Utils.UndefinedOrNull(apiLight.lightType)) {
|
|
apiLight.lightType = R3.D3.API.Light.LIGHT_TYPE_AMBIENT;
|
|
}
|
|
|
|
R3.D3.API.Light.call(
|
|
this,
|
|
apiLight.id,
|
|
apiLight.name,
|
|
apiLight.lightType,
|
|
apiLight.color,
|
|
apiLight.intensity,
|
|
apiLight.parentScene,
|
|
apiLight.parent
|
|
);
|
|
};
|
|
|
|
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;
|