|
@@ -5,11 +5,10 @@
|
|
|
|
|
|
THREE.Sprite = ( function () {
|
|
|
|
|
|
- var vertices = new THREE.Float32Attribute( 3 * 3, 3 );
|
|
|
- vertices.set( [ - 0.5, - 0.5, 0, 0.5, - 0.5, 0, 0.5, 0.5, 0 ] );
|
|
|
+ var vertices = new Float32Array( [ - 0.5, - 0.5, 0, 0.5, - 0.5, 0, 0.5, 0.5, 0 ] );
|
|
|
|
|
|
var geometry = new THREE.BufferGeometry();
|
|
|
- geometry.addAttribute( 'position', vertices );
|
|
|
+ geometry.addAttribute( 'position', new THREE.BufferAttribute( vertices, 3 ) );
|
|
|
|
|
|
return function ( material ) {
|
|
|
|
|
@@ -48,4 +47,4 @@ THREE.Sprite.prototype.clone = function ( object ) {
|
|
|
|
|
|
// Backwards compatibility
|
|
|
|
|
|
-THREE.Particle = THREE.Sprite;
|
|
|
+THREE.Particle = THREE.Sprite;
|