Skip to content

Commit

Permalink
PMREMNode: Mark default texture as render target texture. (#29044)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Aug 1, 2024
1 parent 20ece62 commit 1199339
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/nodes/pmrem/PMREMNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ class PMREMNode extends TempNode {
this.levelNode = levelNode;

this._generator = null;
this._texture = texture( new Texture() );

const defaultTexture = new Texture();
defaultTexture.isRenderTargetTexture = true;

this._texture = texture( defaultTexture );

this._width = uniform( 0 );
this._height = uniform( 0 );
this._maxMip = uniform( 0 );
Expand Down

0 comments on commit 1199339

Please sign in to comment.