2019-08-10 19:48:08 +02:00
|
|
|
/**
|
|
|
|
* R3.D3.API.Fog.Exp
|
2019-10-06 21:11:18 +02:00
|
|
|
* @param apiComponent
|
|
|
|
*
|
|
|
|
* @property density
|
|
|
|
*
|
2019-08-10 19:48:08 +02:00
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
R3.D3.API.Fog.Exp = function(
|
2019-10-06 21:11:18 +02:00
|
|
|
apiComponent
|
2019-08-10 19:48:08 +02:00
|
|
|
) {
|
|
|
|
|
|
|
|
R3.D3.API.Fog.call(
|
|
|
|
this,
|
2019-10-06 21:11:18 +02:00
|
|
|
apiComponent
|
2019-08-10 19:48:08 +02:00
|
|
|
);
|
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
if (R3.Utils.UndefinedOrNull(apiComponent.density)) {
|
|
|
|
apiComponent.density = 0.00025;
|
2019-08-10 19:48:08 +02:00
|
|
|
}
|
2019-10-06 21:11:18 +02:00
|
|
|
this.density = apiComponent.density;
|
2019-08-10 19:48:08 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2019-10-06 21:11:18 +02:00
|
|
|
|
|
|
|
R3.D3.API.Fog.Exp.GUI = function() {
|
|
|
|
return {
|
|
|
|
density : {
|
|
|
|
grain : 0.00001,
|
|
|
|
min : 0,
|
|
|
|
max : 1
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|