|
@@ -7,7 +7,7 @@
|
|
|
|
|
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
|
|
|
-const REVISION = '148';
|
|
|
+const REVISION = '149dev';
|
|
|
const MOUSE = {
|
|
|
LEFT: 0,
|
|
|
MIDDLE: 1,
|
|
@@ -141,6 +141,10 @@ const RGBA_ASTC_10x10_Format = 37819;
|
|
|
const RGBA_ASTC_12x10_Format = 37820;
|
|
|
const RGBA_ASTC_12x12_Format = 37821;
|
|
|
const RGBA_BPTC_Format = 36492;
|
|
|
+const RED_RGTC1_Format = 36283;
|
|
|
+const SIGNED_RED_RGTC1_Format = 36284;
|
|
|
+const RED_GREEN_RGTC2_Format = 36285;
|
|
|
+const SIGNED_RED_GREEN_RGTC2_Format = 36286;
|
|
|
const LoopOnce = 2200;
|
|
|
const LoopRepeat = 2201;
|
|
|
const LoopPingPong = 2202;
|
|
@@ -4810,7 +4814,7 @@ const _z = /*@__PURE__*/new Vector3();
|
|
|
const _matrix$1 = /*@__PURE__*/new Matrix4();
|
|
|
const _quaternion$3 = /*@__PURE__*/new Quaternion();
|
|
|
class Euler {
|
|
|
- constructor(x = 0, y = 0, z = 0, order = Euler.DefaultOrder) {
|
|
|
+ constructor(x = 0, y = 0, z = 0, order = Euler.DEFAULT_ORDER) {
|
|
|
this.isEuler = true;
|
|
|
this._x = x;
|
|
|
this._y = y;
|
|
@@ -4994,8 +4998,7 @@ class Euler {
|
|
|
console.error('THREE.Euler: .toVector3() has been removed. Use Vector3.setFromEuler() instead');
|
|
|
}
|
|
|
}
|
|
|
-Euler.DefaultOrder = 'XYZ';
|
|
|
-Euler.RotationOrders = ['XYZ', 'YZX', 'ZXY', 'XZY', 'YXZ', 'ZYX'];
|
|
|
+Euler.DEFAULT_ORDER = 'XYZ';
|
|
|
|
|
|
class Layers {
|
|
|
constructor() {
|
|
@@ -7146,12 +7149,12 @@ class Mesh extends Object3D {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- getVertexPosition(vert, target) {
|
|
|
+ getVertexPosition(index, target) {
|
|
|
const geometry = this.geometry;
|
|
|
const position = geometry.attributes.position;
|
|
|
const morphPosition = geometry.morphAttributes.position;
|
|
|
const morphTargetsRelative = geometry.morphTargetsRelative;
|
|
|
- target.fromBufferAttribute(position, vert);
|
|
|
+ target.fromBufferAttribute(position, index);
|
|
|
const morphInfluences = this.morphTargetInfluences;
|
|
|
if (morphPosition && morphInfluences) {
|
|
|
_morphA.set(0, 0, 0);
|
|
@@ -7159,7 +7162,7 @@ class Mesh extends Object3D {
|
|
|
const influence = morphInfluences[i];
|
|
|
const morphAttribute = morphPosition[i];
|
|
|
if (influence === 0) continue;
|
|
|
- _tempA.fromBufferAttribute(morphAttribute, vert);
|
|
|
+ _tempA.fromBufferAttribute(morphAttribute, index);
|
|
|
if (morphTargetsRelative) {
|
|
|
_morphA.addScaledVector(_tempA, influence);
|
|
|
} else {
|
|
@@ -7169,7 +7172,7 @@ class Mesh extends Object3D {
|
|
|
target.add(_morphA);
|
|
|
}
|
|
|
if (this.isSkinnedMesh) {
|
|
|
- this.boneTransform(vert, target);
|
|
|
+ this.boneTransform(index, target);
|
|
|
}
|
|
|
return target;
|
|
|
}
|
|
@@ -16017,6 +16020,20 @@ function WebGLUtils(gl, extensions, capabilities) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // RGTC
|
|
|
+
|
|
|
+ if (p === RED_RGTC1_Format || p === SIGNED_RED_RGTC1_Format || p === RED_GREEN_RGTC2_Format || p === SIGNED_RED_GREEN_RGTC2_Format) {
|
|
|
+ extension = extensions.get('EXT_texture_compression_rgtc');
|
|
|
+ if (extension !== null) {
|
|
|
+ if (p === RGBA_BPTC_Format) return extension.COMPRESSED_RED_RGTC1_EXT;
|
|
|
+ if (p === SIGNED_RED_RGTC1_Format) return extension.COMPRESSED_SIGNED_RED_RGTC1_EXT;
|
|
|
+ if (p === RED_GREEN_RGTC2_Format) return extension.COMPRESSED_RED_GREEN_RGTC2_EXT;
|
|
|
+ if (p === SIGNED_RED_GREEN_RGTC2_Format) return extension.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;
|
|
|
+ } else {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//
|
|
|
|
|
|
if (p === UnsignedInt248Type) {
|
|
@@ -32570,6 +32587,8 @@ exports.QuadraticBezierCurve3 = QuadraticBezierCurve3;
|
|
|
exports.Quaternion = Quaternion;
|
|
|
exports.QuaternionKeyframeTrack = QuaternionKeyframeTrack;
|
|
|
exports.QuaternionLinearInterpolant = QuaternionLinearInterpolant;
|
|
|
+exports.RED_GREEN_RGTC2_Format = RED_GREEN_RGTC2_Format;
|
|
|
+exports.RED_RGTC1_Format = RED_RGTC1_Format;
|
|
|
exports.REVISION = REVISION;
|
|
|
exports.RGBADepthPacking = RGBADepthPacking;
|
|
|
exports.RGBAFormat = RGBAFormat;
|
|
@@ -32615,6 +32634,8 @@ exports.ReplaceStencilOp = ReplaceStencilOp;
|
|
|
exports.ReverseSubtractEquation = ReverseSubtractEquation;
|
|
|
exports.RingBufferGeometry = RingBufferGeometry;
|
|
|
exports.RingGeometry = RingGeometry;
|
|
|
+exports.SIGNED_RED_GREEN_RGTC2_Format = SIGNED_RED_GREEN_RGTC2_Format;
|
|
|
+exports.SIGNED_RED_RGTC1_Format = SIGNED_RED_RGTC1_Format;
|
|
|
exports.SRGBColorSpace = SRGBColorSpace;
|
|
|
exports.Scene = Scene;
|
|
|
exports.ShaderChunk = ShaderChunk;
|