/** * R3.D3.Fog.Normal * @param apiComponent * @constructor */ R3.D3.Fog.Normal = function( apiComponent ) { __RUNTIME_COMPONENT_MACRO__; R3.D3.API.Fog.Normal.call( this, apiComponent, apiComponent.near, apiComponent.far ); R3.D3.Fog.call(this); }; 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.color, this.near, this.far ); R3.Component.prototype.createInstance.call(this); }; 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); };