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

37 lines
666 B
JavaScript

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