Skip to content

Commit 04298d7

Browse files
committed
updated dist
1 parent 4acdd19 commit 04298d7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

dist/aframe-environment-component.js

Lines changed: 2 additions & 3 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');
212213
this.ground.classList.add('environmentGround');
213214
this.groundCanvas = null;
214215
this.groundTexture = null;
215216
this.groundMaterial = null;
216217
this.groundGeometry = null;
217218

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

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

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

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

584583
// update ground, playarea and grid textures.
585584
var groundResolution = 2048;

0 commit comments

Comments
 (0)