29 lines
494 B
JavaScript
29 lines
494 B
JavaScript
|
/**
|
||
|
* 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;
|