|
@@ -1,7 +1,7 @@
|
|
import { Vector3 } from '../math/Vector3.js';
|
|
import { Vector3 } from '../math/Vector3.js';
|
|
import { Vector2 } from '../math/Vector2.js';
|
|
import { Vector2 } from '../math/Vector2.js';
|
|
import { denormalize, normalize } from '../math/MathUtils.js';
|
|
import { denormalize, normalize } from '../math/MathUtils.js';
|
|
-import { StaticDrawUsage } from '../constants.js';
|
|
|
|
|
|
+import { StaticDrawUsage, FloatType } from '../constants.js';
|
|
import { fromHalfFloat, toHalfFloat } from '../extras/DataUtils.js';
|
|
import { fromHalfFloat, toHalfFloat } from '../extras/DataUtils.js';
|
|
|
|
|
|
const _vector = /*@__PURE__*/ new Vector3();
|
|
const _vector = /*@__PURE__*/ new Vector3();
|
|
@@ -378,6 +378,18 @@ class Int8BufferAttribute extends BufferAttribute {
|
|
|
|
|
|
super( new Int8Array( array ), itemSize, normalized );
|
|
super( new Int8Array( array ), itemSize, normalized );
|
|
|
|
|
|
|
|
+ this.gpuType = FloatType;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ copy( source ) {
|
|
|
|
+
|
|
|
|
+ super.copy( source );
|
|
|
|
+
|
|
|
|
+ this.gpuType = source.gpuType;
|
|
|
|
+
|
|
|
|
+ return this;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -388,6 +400,18 @@ class Uint8BufferAttribute extends BufferAttribute {
|
|
|
|
|
|
super( new Uint8Array( array ), itemSize, normalized );
|
|
super( new Uint8Array( array ), itemSize, normalized );
|
|
|
|
|
|
|
|
+ this.gpuType = FloatType;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ copy( source ) {
|
|
|
|
+
|
|
|
|
+ super.copy( source );
|
|
|
|
+
|
|
|
|
+ this.gpuType = source.gpuType;
|
|
|
|
+
|
|
|
|
+ return this;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -408,6 +432,18 @@ class Int16BufferAttribute extends BufferAttribute {
|
|
|
|
|
|
super( new Int16Array( array ), itemSize, normalized );
|
|
super( new Int16Array( array ), itemSize, normalized );
|
|
|
|
|
|
|
|
+ this.gpuType = FloatType;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ copy( source ) {
|
|
|
|
+
|
|
|
|
+ super.copy( source );
|
|
|
|
+
|
|
|
|
+ this.gpuType = source.gpuType;
|
|
|
|
+
|
|
|
|
+ return this;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -418,6 +454,18 @@ class Uint16BufferAttribute extends BufferAttribute {
|
|
|
|
|
|
super( new Uint16Array( array ), itemSize, normalized );
|
|
super( new Uint16Array( array ), itemSize, normalized );
|
|
|
|
|
|
|
|
+ this.gpuType = FloatType;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ copy( source ) {
|
|
|
|
+
|
|
|
|
+ super.copy( source );
|
|
|
|
+
|
|
|
|
+ this.gpuType = source.gpuType;
|
|
|
|
+
|
|
|
|
+ return this;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|