Skip to content

Commit b7af3d1

Browse files
committed
Updated builds.
1 parent 6f5cc26 commit b7af3d1

File tree

4 files changed

+22
-52
lines changed

4 files changed

+22
-52
lines changed

build/three.cjs

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16282,7 +16282,6 @@ class WebXRManager extends EventDispatcher {
1628216282
const scope = this;
1628316283
let session = null;
1628416284
let framebufferScaleFactor = 1.0;
16285-
let limitWithNativeFramebufferScaleFactor = false;
1628616285
let referenceSpace = null;
1628716286
let referenceSpaceType = 'local-floor';
1628816287
let customReferenceSpace = null;
@@ -16394,9 +16393,8 @@ class WebXRManager extends EventDispatcher {
1639416393
type: 'sessionend'
1639516394
});
1639616395
}
16397-
this.setFramebufferScaleFactor = function (value, limited = false) {
16396+
this.setFramebufferScaleFactor = function (value) {
1639816397
framebufferScaleFactor = value;
16399-
limitWithNativeFramebufferScaleFactor = limited;
1640016398
if (scope.isPresenting === true) {
1640116399
console.warn('THREE.WebXRManager: Cannot change framebuffer scale while presenting.');
1640216400
}
@@ -16440,12 +16438,6 @@ class WebXRManager extends EventDispatcher {
1644016438
if (attributes.xrCompatible !== true) {
1644116439
await gl.makeXRCompatible();
1644216440
}
16443-
if (limitWithNativeFramebufferScaleFactor === true && XRWebGLLayer.getNativeFramebufferScaleFactor) {
16444-
const nativeFramebufferScaleFactor = XRWebGLLayer.getNativeFramebufferScaleFactor(session);
16445-
if (nativeFramebufferScaleFactor < framebufferScaleFactor) {
16446-
framebufferScaleFactor = nativeFramebufferScaleFactor;
16447-
}
16448-
}
1644916441
if (session.renderState.layers === undefined || renderer.capabilities.isWebGL2 === false) {
1645016442
const layerInit = {
1645116443
antialias: session.renderState.layers === undefined ? attributes.antialias : true,
@@ -19123,7 +19115,7 @@ class InterleavedBufferAttribute {
1912319115
}
1912419116
clone(data) {
1912519117
if (data === undefined) {
19126-
console.log('THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will deinterleave buffer data.');
19118+
console.log('THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.');
1912719119
const array = [];
1912819120
for (let i = 0; i < this.count; i++) {
1912919121
const index = i * this.data.stride + this.offset;
@@ -19144,7 +19136,7 @@ class InterleavedBufferAttribute {
1914419136
}
1914519137
toJSON(data) {
1914619138
if (data === undefined) {
19147-
console.log('THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will deinterleave buffer data.');
19139+
console.log('THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.');
1914819140
const array = [];
1914919141
for (let i = 0; i < this.count; i++) {
1915019142
const index = i * this.data.stride + this.offset;
@@ -19153,7 +19145,7 @@ class InterleavedBufferAttribute {
1915319145
}
1915419146
}
1915519147

19156-
// deinterleave data and save it as an ordinary buffer attribute for now
19148+
// de-interleave data and save it as an ordinary buffer attribute for now
1915719149

1915819150
return {
1915919151
itemSize: this.itemSize,
@@ -19162,7 +19154,7 @@ class InterleavedBufferAttribute {
1916219154
normalized: this.normalized
1916319155
};
1916419156
} else {
19165-
// save as true interleaved attribtue
19157+
// save as true interleaved attribute
1916619158

1916719159
if (data.interleavedBuffers === undefined) {
1916819160
data.interleavedBuffers = {};
@@ -21864,7 +21856,7 @@ class PolyhedronGeometry extends BufferGeometry {
2186421856
const b = new Vector3();
2186521857
const c = new Vector3();
2186621858

21867-
// iterate over all faces and apply a subdivison with the given detail value
21859+
// iterate over all faces and apply a subdivision with the given detail value
2186821860

2186921861
for (let i = 0; i < indices.length; i += 3) {
2187021862
// get the vertices of the face
@@ -23562,7 +23554,7 @@ class ShapeGeometry extends BufferGeometry {
2356223554
uvs.push(vertex.x, vertex.y); // world uvs
2356323555
}
2356423556

23565-
// incides
23557+
// indices
2356623558

2356723559
for (let i = 0, l = faces.length; i < l; i++) {
2356823560
const face = faces[i];

build/three.js

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16284,7 +16284,6 @@
1628416284
const scope = this;
1628516285
let session = null;
1628616286
let framebufferScaleFactor = 1.0;
16287-
let limitWithNativeFramebufferScaleFactor = false;
1628816287
let referenceSpace = null;
1628916288
let referenceSpaceType = 'local-floor';
1629016289
let customReferenceSpace = null;
@@ -16396,9 +16395,8 @@
1639616395
type: 'sessionend'
1639716396
});
1639816397
}
16399-
this.setFramebufferScaleFactor = function (value, limited = false) {
16398+
this.setFramebufferScaleFactor = function (value) {
1640016399
framebufferScaleFactor = value;
16401-
limitWithNativeFramebufferScaleFactor = limited;
1640216400
if (scope.isPresenting === true) {
1640316401
console.warn('THREE.WebXRManager: Cannot change framebuffer scale while presenting.');
1640416402
}
@@ -16442,12 +16440,6 @@
1644216440
if (attributes.xrCompatible !== true) {
1644316441
await gl.makeXRCompatible();
1644416442
}
16445-
if (limitWithNativeFramebufferScaleFactor === true && XRWebGLLayer.getNativeFramebufferScaleFactor) {
16446-
const nativeFramebufferScaleFactor = XRWebGLLayer.getNativeFramebufferScaleFactor(session);
16447-
if (nativeFramebufferScaleFactor < framebufferScaleFactor) {
16448-
framebufferScaleFactor = nativeFramebufferScaleFactor;
16449-
}
16450-
}
1645116443
if (session.renderState.layers === undefined || renderer.capabilities.isWebGL2 === false) {
1645216444
const layerInit = {
1645316445
antialias: session.renderState.layers === undefined ? attributes.antialias : true,
@@ -19125,7 +19117,7 @@
1912519117
}
1912619118
clone(data) {
1912719119
if (data === undefined) {
19128-
console.log('THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will deinterleave buffer data.');
19120+
console.log('THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.');
1912919121
const array = [];
1913019122
for (let i = 0; i < this.count; i++) {
1913119123
const index = i * this.data.stride + this.offset;
@@ -19146,7 +19138,7 @@
1914619138
}
1914719139
toJSON(data) {
1914819140
if (data === undefined) {
19149-
console.log('THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will deinterleave buffer data.');
19141+
console.log('THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.');
1915019142
const array = [];
1915119143
for (let i = 0; i < this.count; i++) {
1915219144
const index = i * this.data.stride + this.offset;
@@ -19155,7 +19147,7 @@
1915519147
}
1915619148
}
1915719149

19158-
// deinterleave data and save it as an ordinary buffer attribute for now
19150+
// de-interleave data and save it as an ordinary buffer attribute for now
1915919151

1916019152
return {
1916119153
itemSize: this.itemSize,
@@ -19164,7 +19156,7 @@
1916419156
normalized: this.normalized
1916519157
};
1916619158
} else {
19167-
// save as true interleaved attribtue
19159+
// save as true interleaved attribute
1916819160

1916919161
if (data.interleavedBuffers === undefined) {
1917019162
data.interleavedBuffers = {};
@@ -21866,7 +21858,7 @@
2186621858
const b = new Vector3();
2186721859
const c = new Vector3();
2186821860

21869-
// iterate over all faces and apply a subdivison with the given detail value
21861+
// iterate over all faces and apply a subdivision with the given detail value
2187021862

2187121863
for (let i = 0; i < indices.length; i += 3) {
2187221864
// get the vertices of the face
@@ -23564,7 +23556,7 @@
2356423556
uvs.push(vertex.x, vertex.y); // world uvs
2356523557
}
2356623558

23567-
// incides
23559+
// indices
2356823560

2356923561
for (let i = 0, l = faces.length; i < l; i++) {
2357023562
const face = faces[i];

build/three.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.

build/three.module.js

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25103,7 +25103,6 @@ class WebXRManager extends EventDispatcher {
2510325103

2510425104
let session = null;
2510525105
let framebufferScaleFactor = 1.0;
25106-
let limitWithNativeFramebufferScaleFactor = false;
2510725106

2510825107
let referenceSpace = null;
2510925108
let referenceSpaceType = 'local-floor';
@@ -25263,10 +25262,9 @@ class WebXRManager extends EventDispatcher {
2526325262

2526425263
}
2526525264

25266-
this.setFramebufferScaleFactor = function ( value, limited = false ) {
25265+
this.setFramebufferScaleFactor = function ( value ) {
2526725266

2526825267
framebufferScaleFactor = value;
25269-
limitWithNativeFramebufferScaleFactor = limited;
2527025268

2527125269
if ( scope.isPresenting === true ) {
2527225270

@@ -25347,18 +25345,6 @@ class WebXRManager extends EventDispatcher {
2534725345

2534825346
}
2534925347

25350-
if ( limitWithNativeFramebufferScaleFactor === true && XRWebGLLayer.getNativeFramebufferScaleFactor ) {
25351-
25352-
const nativeFramebufferScaleFactor = XRWebGLLayer.getNativeFramebufferScaleFactor( session );
25353-
25354-
if ( nativeFramebufferScaleFactor < framebufferScaleFactor ) {
25355-
25356-
framebufferScaleFactor = nativeFramebufferScaleFactor;
25357-
25358-
}
25359-
25360-
}
25361-
2536225348
if ( ( session.renderState.layers === undefined ) || ( renderer.capabilities.isWebGL2 === false ) ) {
2536325349

2536425350
const layerInit = {
@@ -29649,7 +29635,7 @@ class InterleavedBufferAttribute {
2964929635

2965029636
if ( data === undefined ) {
2965129637

29652-
console.log( 'THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will deinterleave buffer data.' );
29638+
console.log( 'THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will de-interleave buffer data.' );
2965329639

2965429640
const array = [];
2965529641

@@ -29691,7 +29677,7 @@ class InterleavedBufferAttribute {
2969129677

2969229678
if ( data === undefined ) {
2969329679

29694-
console.log( 'THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will deinterleave buffer data.' );
29680+
console.log( 'THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will de-interleave buffer data.' );
2969529681

2969629682
const array = [];
2969729683

@@ -29707,7 +29693,7 @@ class InterleavedBufferAttribute {
2970729693

2970829694
}
2970929695

29710-
// deinterleave data and save it as an ordinary buffer attribute for now
29696+
// de-interleave data and save it as an ordinary buffer attribute for now
2971129697

2971229698
return {
2971329699
itemSize: this.itemSize,
@@ -29718,7 +29704,7 @@ class InterleavedBufferAttribute {
2971829704

2971929705
} else {
2972029706

29721-
// save as true interleaved attribtue
29707+
// save as true interleaved attribute
2972229708

2972329709
if ( data.interleavedBuffers === undefined ) {
2972429710

@@ -33955,7 +33941,7 @@ class PolyhedronGeometry extends BufferGeometry {
3395533941
const b = new Vector3();
3395633942
const c = new Vector3();
3395733943

33958-
// iterate over all faces and apply a subdivison with the given detail value
33944+
// iterate over all faces and apply a subdivision with the given detail value
3395933945

3396033946
for ( let i = 0; i < indices.length; i += 3 ) {
3396133947

@@ -36457,7 +36443,7 @@ class ShapeGeometry extends BufferGeometry {
3645736443

3645836444
}
3645936445

36460-
// incides
36446+
// indices
3646136447

3646236448
for ( let i = 0, l = faces.length; i < l; i ++ ) {
3646336449

0 commit comments

Comments
 (0)