tweak loading indicator

This commit is contained in:
Kevin Ngo
2018-10-13 09:46:05 -07:00
parent 1037e58408
commit 388a80cd28
2 changed files with 4 additions and 4 deletions

View File

@@ -115,8 +115,7 @@ AFRAME.registerComponent('song', {
onFetchProgress: function (evt) {
const progress = evt.loaded / evt.total;
this.songLoadingIndicator.setAttribute(
'geometry', 'thetaLength', progress * 360);
this.songLoadingIndicator.setAttribute('geometry', 'thetaLength', progress * 360);
},
onRestart: function () {

View File

@@ -77,8 +77,9 @@
id="songLoadingIndicator"
bind__visible="isSongLoading"
geometry="primitive: ring; radiusInner: 0.05; radiusOuter: 0.08"
material="shader: flat; color: #FAFAFA; opacity: 0.75"
position="0 1.4 -2.5">
material="shader: flat; color: #FAFAFA; opacity: 0.75; side: back"
position="0 1.4 -2.5"
rotation="0 180 0">
</a-entity>
<a-entity