|
|
@@ -112,6 +112,14 @@ class BilateralBlurNode extends TempNode {
|
|
|
this._textureNode = passTexture( this, this._verticalRT.texture );
|
|
|
this._textureNode.uvNode = textureNode.uvNode;
|
|
|
|
|
|
+ /**
|
|
|
+ * The material for the blur pass.
|
|
|
+ *
|
|
|
+ * @private
|
|
|
+ * @type {?NodeMaterial}
|
|
|
+ */
|
|
|
+ this._material = null;
|
|
|
+
|
|
|
/**
|
|
|
* The `updateBeforeType` is set to `NodeUpdateType.FRAME` since the node renders
|
|
|
* its effect once per frame in `updateBefore()`.
|
|
|
@@ -318,6 +326,8 @@ class BilateralBlurNode extends TempNode {
|
|
|
this._horizontalRT.dispose();
|
|
|
this._verticalRT.dispose();
|
|
|
|
|
|
+ if ( this._material !== null ) this._material.dispose();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|