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

43 lines
789 B
JavaScript

/**
* R3.D3.API.Fog.Exp
* @param apiComponent
*
* @property density
*
* @constructor
*/
R3.D3.API.Fog.Exp = function(
apiComponent
) {
__API_COMPONENT__;
if (R3.Utils.UndefinedOrNull(apiComponent.density)) {
apiComponent.density = 0.00025;
}
this.density = apiComponent.density;
this.guiInfo.density = {
range: [0, 0.001],
step: 0.00001,
dp: 5
};
R3.D3.API.Fog.call(
this,
apiComponent
);
};
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;
R3.D3.API.Fog.Exp.GUI = function() {
return {
density : {
grain : 0.00001,
min : 0,
max : 1
}
};
};