r3-legacy/src/r3-d3-fog-normal.js

41 lines
745 B
JavaScript

/**
* R3.D3.Fog.Normal
* @param apiComponent
* @constructor
*/
R3.D3.Fog.Normal = function(
apiComponent
) {
__RUNTIME_COMPONENT__;
R3.D3.Fog.call(
this,
true
);
};
R3.D3.Fog.Normal.prototype = Object.create(R3.D3.Fog.prototype);
R3.D3.Fog.Normal.prototype.constructor = R3.D3.Fog.Normal;
R3.D3.Fog.Normal.prototype.createInstance = function() {
this.instance = this.graphics.Fog(this);
__CREATE_INSTANCE__;
};
R3.D3.Fog.Normal.prototype.updateInstance = function(property) {
if (
property === 'near' ||
property === 'far'
) {
this.graphics.updateInstance(this, property);
return;
}
R3.D3.Fog.prototype.updateInstance.call(this, property);
};