r3-legacy/src/r3-d3-api-fog-exp.js

29 lines
494 B
JavaScript
Raw Normal View History

2019-08-10 19:48:08 +02:00
/**
* R3.D3.API.Fog.Exp
* @param apiFog
* @param density
* @constructor
*/
R3.D3.API.Fog.Exp = function(
apiFog,
density
) {
__API_COMPONENT_MACRO__;
R3.D3.API.Fog.call(
this,
apiFog,
apiFog.color
);
if (R3.Utils.UndefinedOrNull(density)) {
density = 0.00025;
}
this.density = density;
};
R3.D3.API.Fog.Exp.prototype = Object.create(R3.D3.API.Fog.prototype);
R3.D3.API.Fog.Exp.prototype.constructor = R3.D3.API.Fog.Exp;