Skip to content

Commit 6137a62

Browse files
committed
Updated builds.
1 parent 1497215 commit 6137a62

File tree

7 files changed

+506
-203
lines changed

7 files changed

+506
-203
lines changed

build/three.cjs

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4973,6 +4973,15 @@ class Texture extends EventDispatcher {
49734973
*/
49744974
this.isRenderTargetTexture = false;
49754975

4976+
/**
4977+
* Indicates if a texture should be handled like a texture array.
4978+
*
4979+
* @type {boolean}
4980+
* @readonly
4981+
* @default false
4982+
*/
4983+
this.isTextureArray = false;
4984+
49764985
/**
49774986
* Indicates whether this texture should be processed by `PMREMGenerator` or not
49784987
* (only relevant for render target textures).
@@ -5067,6 +5076,7 @@ class Texture extends EventDispatcher {
50675076

50685077
this.renderTarget = source.renderTarget;
50695078
this.isRenderTargetTexture = source.isRenderTargetTexture;
5079+
this.isTextureArray = source.isTextureArray;
50705080

50715081
this.userData = JSON.parse( JSON.stringify( source.userData ) );
50725082

@@ -6407,6 +6417,7 @@ class RenderTarget extends EventDispatcher {
64076417
* @property {?Texture} [depthTexture=null] - Reference to a depth texture.
64086418
* @property {number} [samples=0] - The MSAA samples count.
64096419
* @property {number} [count=1] - Defines the number of color attachments . Must be at least `1`.
6420+
* @property {boolean} [multiview=false] - Whether this target is used for multiview rendering.
64106421
*/
64116422

64126423
/**
@@ -6451,7 +6462,7 @@ class RenderTarget extends EventDispatcher {
64516462
* @type {number}
64526463
* @default 1
64536464
*/
6454-
this.depth = 1;
6465+
this.depth = options.depth ? options.depth : 1;
64556466

64566467
/**
64576468
* A rectangular area inside the render target's viewport. Fragments that are
@@ -6479,7 +6490,7 @@ class RenderTarget extends EventDispatcher {
64796490
*/
64806491
this.viewport = new Vector4( 0, 0, width, height );
64816492

6482-
const image = { width: width, height: height, depth: 1 };
6493+
const image = { width: width, height: height, depth: this.depth };
64836494

64846495
options = Object.assign( {
64856496
generateMipmaps: false,
@@ -6491,7 +6502,8 @@ class RenderTarget extends EventDispatcher {
64916502
resolveStencilBuffer: true,
64926503
depthTexture: null,
64936504
samples: 0,
6494-
count: 1
6505+
count: 1,
6506+
multiview: false
64956507
}, options );
64966508

64976509
const texture = new Texture( image, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.colorSpace );
@@ -6549,7 +6561,8 @@ class RenderTarget extends EventDispatcher {
65496561
*/
65506562
this.resolveStencilBuffer = options.resolveStencilBuffer;
65516563

6552-
this._depthTexture = options.depthTexture;
6564+
this._depthTexture = null;
6565+
this.depthTexture = options.depthTexture;
65536566

65546567
/**
65556568
* The number of MSAA samples.
@@ -6561,6 +6574,14 @@ class RenderTarget extends EventDispatcher {
65616574
*/
65626575
this.samples = options.samples;
65636576

6577+
/**
6578+
* Whether to this target is used in multiview rendering.
6579+
*
6580+
* @type {boolean}
6581+
* @default false
6582+
*/
6583+
this.multiview = options.multiview;
6584+
65646585
}
65656586

65666587
/**
@@ -48819,13 +48840,21 @@ class ArrayCamera extends PerspectiveCamera {
4881948840
*/
4882048841
this.isArrayCamera = true;
4882148842

48843+
/**
48844+
* Whether this camera is used with multiview rendering or not.
48845+
*
48846+
* @type {boolean}
48847+
* @readonly
48848+
* @default false
48849+
*/
48850+
this.isMultiViewCamera = false;
48851+
4882248852
/**
4882348853
* An array of perspective sub cameras.
4882448854
*
4882548855
* @type {Array<PerspectiveCamera>}
4882648856
*/
4882748857
this.cameras = array;
48828-
this.index = 0;
4882948858

4883048859
}
4883148860

build/three.core.js

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4971,6 +4971,15 @@ class Texture extends EventDispatcher {
49714971
*/
49724972
this.isRenderTargetTexture = false;
49734973

4974+
/**
4975+
* Indicates if a texture should be handled like a texture array.
4976+
*
4977+
* @type {boolean}
4978+
* @readonly
4979+
* @default false
4980+
*/
4981+
this.isTextureArray = false;
4982+
49744983
/**
49754984
* Indicates whether this texture should be processed by `PMREMGenerator` or not
49764985
* (only relevant for render target textures).
@@ -5065,6 +5074,7 @@ class Texture extends EventDispatcher {
50655074

50665075
this.renderTarget = source.renderTarget;
50675076
this.isRenderTargetTexture = source.isRenderTargetTexture;
5077+
this.isTextureArray = source.isTextureArray;
50685078

50695079
this.userData = JSON.parse( JSON.stringify( source.userData ) );
50705080

@@ -6405,6 +6415,7 @@ class RenderTarget extends EventDispatcher {
64056415
* @property {?Texture} [depthTexture=null] - Reference to a depth texture.
64066416
* @property {number} [samples=0] - The MSAA samples count.
64076417
* @property {number} [count=1] - Defines the number of color attachments . Must be at least `1`.
6418+
* @property {boolean} [multiview=false] - Whether this target is used for multiview rendering.
64086419
*/
64096420

64106421
/**
@@ -6449,7 +6460,7 @@ class RenderTarget extends EventDispatcher {
64496460
* @type {number}
64506461
* @default 1
64516462
*/
6452-
this.depth = 1;
6463+
this.depth = options.depth ? options.depth : 1;
64536464

64546465
/**
64556466
* A rectangular area inside the render target's viewport. Fragments that are
@@ -6477,7 +6488,7 @@ class RenderTarget extends EventDispatcher {
64776488
*/
64786489
this.viewport = new Vector4( 0, 0, width, height );
64796490

6480-
const image = { width: width, height: height, depth: 1 };
6491+
const image = { width: width, height: height, depth: this.depth };
64816492

64826493
options = Object.assign( {
64836494
generateMipmaps: false,
@@ -6489,7 +6500,8 @@ class RenderTarget extends EventDispatcher {
64896500
resolveStencilBuffer: true,
64906501
depthTexture: null,
64916502
samples: 0,
6492-
count: 1
6503+
count: 1,
6504+
multiview: false
64936505
}, options );
64946506

64956507
const texture = new Texture( image, options.mapping, options.wrapS, options.wrapT, options.magFilter, options.minFilter, options.format, options.type, options.anisotropy, options.colorSpace );
@@ -6547,7 +6559,8 @@ class RenderTarget extends EventDispatcher {
65476559
*/
65486560
this.resolveStencilBuffer = options.resolveStencilBuffer;
65496561

6550-
this._depthTexture = options.depthTexture;
6562+
this._depthTexture = null;
6563+
this.depthTexture = options.depthTexture;
65516564

65526565
/**
65536566
* The number of MSAA samples.
@@ -6559,6 +6572,14 @@ class RenderTarget extends EventDispatcher {
65596572
*/
65606573
this.samples = options.samples;
65616574

6575+
/**
6576+
* Whether to this target is used in multiview rendering.
6577+
*
6578+
* @type {boolean}
6579+
* @default false
6580+
*/
6581+
this.multiview = options.multiview;
6582+
65626583
}
65636584

65646585
/**
@@ -48817,13 +48838,21 @@ class ArrayCamera extends PerspectiveCamera {
4881748838
*/
4881848839
this.isArrayCamera = true;
4881948840

48841+
/**
48842+
* Whether this camera is used with multiview rendering or not.
48843+
*
48844+
* @type {boolean}
48845+
* @readonly
48846+
* @default false
48847+
*/
48848+
this.isMultiViewCamera = false;
48849+
4882048850
/**
4882148851
* An array of perspective sub cameras.
4882248852
*
4882348853
* @type {Array<PerspectiveCamera>}
4882448854
*/
4882548855
this.cameras = array;
48826-
this.index = 0;
4882748856

4882848857
}
4882948858

build/three.core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)