reduce sky segments

This commit is contained in:
Kevin Ngo
2018-10-04 16:46:05 -07:00
parent 3e91ac70a3
commit a8f930b686
6 changed files with 17 additions and 12 deletions

View File

@@ -1,3 +1,5 @@
const ANIME = AFRAME.ANIME || AFRAME.anime;
AFRAME.registerComponent('beams', {
schema: {
poolSize: {default: 3}
@@ -29,7 +31,7 @@ AFRAME.registerComponent('beams', {
for (var i = 0; i < this.data.poolSize; i++) {
beam = new THREE.Mesh(geo, j === 0 ? redMaterial : blueMaterial);
beam.visible = false;
beam.anim = AFRAME.anime({
beam.anim = ANIME({
targets: beam.scale,
x: 0.00001,
autoplay: false,