|
|
@@ -80,13 +80,13 @@ class ViewportTextureNode extends TextureNode {
|
|
|
this.isOutputTextureNode = true;
|
|
|
|
|
|
/**
|
|
|
- * The `updateBeforeType` is set to `NodeUpdateType.FRAME` since the node renders the
|
|
|
- * scene once per frame in its {@link ViewportTextureNode#updateBefore} method.
|
|
|
+ * The `updateBeforeType` is set to `NodeUpdateType.RENDER` since the node should extract
|
|
|
+ * the current contents of the bound framebuffer for each render call.
|
|
|
*
|
|
|
* @type {string}
|
|
|
- * @default 'frame'
|
|
|
+ * @default 'render'
|
|
|
*/
|
|
|
- this.updateBeforeType = NodeUpdateType.FRAME;
|
|
|
+ this.updateBeforeType = NodeUpdateType.RENDER;
|
|
|
|
|
|
/**
|
|
|
* The framebuffer texture for the current renderer context.
|