Skip to content

Commit d7e1cc7

Browse files
authored
PassNode: Clean up. (#31428)
1 parent 99a8d81 commit d7e1cc7

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/nodes/display/PassNode.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class PassNode extends TempNode {
335335
this._layers = null;
336336

337337
/**
338-
* Scales the resolution of the internal render taregt.
338+
* Scales the resolution of the internal render target.
339339
*
340340
* @private
341341
* @type {number}
@@ -350,7 +350,7 @@ class PassNode extends TempNode {
350350
* @type {?Vector4}
351351
* @default null
352352
*/
353-
this._customViewport = null;
353+
this._viewport = null;
354354

355355
/**
356356
* Custom scissor definition.
@@ -359,7 +359,7 @@ class PassNode extends TempNode {
359359
* @type {?Vector4}
360360
* @default null
361361
*/
362-
this._customScissor = null;
362+
this._scissor = null;
363363

364364
/**
365365
* This flag can be used for type testing.
@@ -724,8 +724,8 @@ class PassNode extends TempNode {
724724

725725
this.renderTarget.setSize( effectiveWidth, effectiveHeight );
726726

727-
if ( this._customScissor !== null ) this.renderTarget.scissor.copy( this._customScissor );
728-
if ( this._customViewport !== null ) this.renderTarget.viewport.copy( this._customViewport );
727+
if ( this._scissor !== null ) this.renderTarget.scissor.copy( this._scissor );
728+
if ( this._viewport !== null ) this.renderTarget.viewport.copy( this._viewport );
729729

730730
}
731731

@@ -744,23 +744,23 @@ class PassNode extends TempNode {
744744

745745
if ( x === null ) {
746746

747-
this._customScissor = null;
747+
this._scissor = null;
748748

749749
} else {
750750

751-
if ( this._customScissor === null ) this._customScissor = new Vector4();
751+
if ( this._scissor === null ) this._scissor = new Vector4();
752752

753753
if ( x.isVector4 ) {
754754

755-
this._customScissor.copy( x );
755+
this._scissor.copy( x );
756756

757757
} else {
758758

759-
this._customScissor.set( x, y, width, height );
759+
this._scissor.set( x, y, width, height );
760760

761761
}
762762

763-
this._customScissor.multiplyScalar( this._pixelRatio * this._resolution ).floor();
763+
this._scissor.multiplyScalar( this._pixelRatio * this._resolution ).floor();
764764

765765
}
766766

@@ -780,23 +780,23 @@ class PassNode extends TempNode {
780780

781781
if ( x === null ) {
782782

783-
this._customViewport = null;
783+
this._viewport = null;
784784

785785
} else {
786786

787-
if ( this._customViewport === null ) this._customViewport = new Vector4();
787+
if ( this._viewport === null ) this._viewport = new Vector4();
788788

789789
if ( x.isVector4 ) {
790790

791-
this._customViewport.copy( x );
791+
this._viewport.copy( x );
792792

793793
} else {
794794

795-
this._customViewport.set( x, y, width, height );
795+
this._viewport.set( x, y, width, height );
796796

797797
}
798798

799-
this._customViewport.multiplyScalar( this._pixelRatio * this._resolution ).floor();
799+
this._viewport.multiplyScalar( this._pixelRatio * this._resolution ).floor();
800800

801801
}
802802

0 commit comments

Comments
 (0)