Skip to content

Commit 5a4757e

Browse files
committed
updated dist
1 parent 7c9446a commit 5a4757e

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

dist/aframe-environment-component.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,14 @@
209209
// create ground
210210
this.groundMaterial = null;
211211
this.ground = document.createElement('a-entity');
212-
this.ground.setAttribute('rotation', '-90 0 0');
213212
this.ground.classList.add('environmentGround');
214213
this.groundCanvas = null;
215214
this.groundTexture = null;
216215
this.groundMaterial = null;
217216
this.groundGeometry = null;
218217

219218
this.dressing = document.createElement('a-entity');
219+
this.dressing.classList.add('environmentDressing')
220220

221221
this.gridCanvas = null;
222222
this.gridTexture = null;
@@ -575,10 +575,11 @@
575575

576576
this.groundGeometry.verticesNeedUpdate = true;
577577
this.groundGeometry.normalsNeedUpdate = true;
578+
this.groundGeometry.rotateX(- Math.PI / 2)
578579
}
579580

580581
// apply Y scale. There's no need to recalculate the geometry for this. Just change scale
581-
this.ground.setAttribute('scale', {z: this.data.groundYScale});
582+
this.ground.setAttribute('scale', {y: this.data.groundYScale});
582583

583584
// update ground, playarea and grid textures.
584585
var groundResolution = 2048;

0 commit comments

Comments
 (0)