Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions dist/aframe-particleplayer-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -968,11 +968,16 @@ AFRAME.registerComponent('particleplayer', {

// Use triangle geometry as a helper for rotating.
const tri = (function() {
const tri = new THREE.Geometry();
tri.vertices.push(new THREE.Vector3());
tri.vertices.push(new THREE.Vector3());
tri.vertices.push(new THREE.Vector3());
tri.faces.push(new THREE.Face3(0, 1, 2));
const tri = new THREE.BufferGeometry();

const vertices = new Float32Array([
0.0, 0.0, 0.0, // Vertex 1
1.0, 0.0, 0.0, // Vertex 2
0.0, 1.0, 0.0 // Vertex 3
]);

tri.setAttribute('position', new THREE.BufferAttribute(vertices, 3));

return tri;
})();

Expand Down