@@ -335,7 +335,7 @@ class PassNode extends TempNode {
335
335
this . _layers = null ;
336
336
337
337
/**
338
- * Scales the resolution of the internal render taregt .
338
+ * Scales the resolution of the internal render target .
339
339
*
340
340
* @private
341
341
* @type {number }
@@ -350,7 +350,7 @@ class PassNode extends TempNode {
350
350
* @type {?Vector4 }
351
351
* @default null
352
352
*/
353
- this . _customViewport = null ;
353
+ this . _viewport = null ;
354
354
355
355
/**
356
356
* Custom scissor definition.
@@ -359,7 +359,7 @@ class PassNode extends TempNode {
359
359
* @type {?Vector4 }
360
360
* @default null
361
361
*/
362
- this . _customScissor = null ;
362
+ this . _scissor = null ;
363
363
364
364
/**
365
365
* This flag can be used for type testing.
@@ -724,8 +724,8 @@ class PassNode extends TempNode {
724
724
725
725
this . renderTarget . setSize ( effectiveWidth , effectiveHeight ) ;
726
726
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 ) ;
729
729
730
730
}
731
731
@@ -744,23 +744,23 @@ class PassNode extends TempNode {
744
744
745
745
if ( x === null ) {
746
746
747
- this . _customScissor = null ;
747
+ this . _scissor = null ;
748
748
749
749
} else {
750
750
751
- if ( this . _customScissor === null ) this . _customScissor = new Vector4 ( ) ;
751
+ if ( this . _scissor === null ) this . _scissor = new Vector4 ( ) ;
752
752
753
753
if ( x . isVector4 ) {
754
754
755
- this . _customScissor . copy ( x ) ;
755
+ this . _scissor . copy ( x ) ;
756
756
757
757
} else {
758
758
759
- this . _customScissor . set ( x , y , width , height ) ;
759
+ this . _scissor . set ( x , y , width , height ) ;
760
760
761
761
}
762
762
763
- this . _customScissor . multiplyScalar ( this . _pixelRatio * this . _resolution ) . floor ( ) ;
763
+ this . _scissor . multiplyScalar ( this . _pixelRatio * this . _resolution ) . floor ( ) ;
764
764
765
765
}
766
766
@@ -780,23 +780,23 @@ class PassNode extends TempNode {
780
780
781
781
if ( x === null ) {
782
782
783
- this . _customViewport = null ;
783
+ this . _viewport = null ;
784
784
785
785
} else {
786
786
787
- if ( this . _customViewport === null ) this . _customViewport = new Vector4 ( ) ;
787
+ if ( this . _viewport === null ) this . _viewport = new Vector4 ( ) ;
788
788
789
789
if ( x . isVector4 ) {
790
790
791
- this . _customViewport . copy ( x ) ;
791
+ this . _viewport . copy ( x ) ;
792
792
793
793
} else {
794
794
795
- this . _customViewport . set ( x , y , width , height ) ;
795
+ this . _viewport . set ( x , y , width , height ) ;
796
796
797
797
}
798
798
799
- this . _customViewport . multiplyScalar ( this . _pixelRatio * this . _resolution ) . floor ( ) ;
799
+ this . _viewport . multiplyScalar ( this . _pixelRatio * this . _resolution ) . floor ( ) ;
800
800
801
801
}
802
802
0 commit comments