Skip to content

Commit 617ebf5

Browse files
authored
ViewportTextureNode: Change update type to RENDER. (mrdoob#32664)
1 parent 06be002 commit 617ebf5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/nodes/display/ViewportTextureNode.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ class ViewportTextureNode extends TextureNode {
8080
this.isOutputTextureNode = true;
8181

8282
/**
83-
* The `updateBeforeType` is set to `NodeUpdateType.FRAME` since the node renders the
84-
* scene once per frame in its {@link ViewportTextureNode#updateBefore} method.
83+
* The `updateBeforeType` is set to `NodeUpdateType.RENDER` since the node should extract
84+
* the current contents of the bound framebuffer for each render call.
8585
*
8686
* @type {string}
87-
* @default 'frame'
87+
* @default 'render'
8888
*/
89-
this.updateBeforeType = NodeUpdateType.FRAME;
89+
this.updateBeforeType = NodeUpdateType.RENDER;
9090

9191
/**
9292
* The framebuffer texture for the current renderer context.

0 commit comments

Comments
 (0)